Bonuses
Cette page n'est pas disponible en français. La version anglaise est affichée.
Create a new Bonus Temporary
Authorization
bearerAuth AuthorizationBearer <token>
In: header
Header Parameters
accept-language?string
Request Body
application/json
TypeScript Definitions
Use the request body type in TypeScript.
Response Body
application/json
application/json
application/json
application/json
application/json
application/json
curl -X POST "https://example.com/api/v2/bonuses/temporary" \ -H "accept-language: ja" \ -H "Content-Type: application/json" \ -d '{ "platformId": 0, "name": "Preset", "amount": 55.55, "currencyCode": 0, "platformGroups": [ "EURJPY" ], "expiredAt": "11.11.2023 23:21", "lifetime": 0, "dynamicLots": 55.55, "enableAutoCredit": true, "scalpingThreshold": 0, "enableTrade": true, "disabledGroups": [ "EURJPY" ] }'{ "id": 0, "amount": "0.000", "name": "Preset", "default": "55.55", "currency": "GBP", "dynamicLots": "1.00", "platform": "MetaTrader4", "platformGroups": [ "EURJPY" ], "lifetime": 0, "enableAutoCredit": true, "scalpingThreshold": 1, "disabledGroups": [ "EURJPY" ], "enableTrade": true, "expiredAt": "2022-01-01T00:00:00+00:00", "createdAt": "2022-01-01T00:00:00+00:00", "updatedAt": "2022-01-01T00:00:00+00:00"}{ "error": { "message": "Bad Request", "code": 0, "details": [ { "issue": "The selected value is invalid.", "field": "parameter" } ] }}{ "error": { "message": "Unauthorized" }}{ "error": { "message": "Forbidden" }}{ "error": { "message": "Too Many Requests" }}{ "error": { "message": "Service Unavailable" }}