AMS API / Rebates
Rebates — singlesPOST
Sets the standard rebate, additional rebate and additional margin for single bets.
POST
https://api.3et.ams.com/ams/v1/api/player/{playerId}/rebates/singles Requires
apiTokenBody
| Field | Type | Notes |
|---|---|---|
playerId | long | Target player |
currencyId | long | Accepted but not used |
marketLive | boolean | true = live, false = pre-match |
sportMarkets | array | Each item { "sport": { "id": … }, "market": { "id": … } } |
standardRebateAgreed | decimal | Standard rebate |
additionalRebatePlayable | decimal | Additional rebate |
additionalMargin | decimal | Additional margin |
Request
curl -X POST "https://api.3et.ams.com/ams/v1/api/player/12345/rebates/singles" \
-H "apiToken: $(printenv 3ET_API_TOKEN)" \
-H "Accept: application/json" \
-H "Content-Type: application/json" \
-d '{
"playerId": 12345,
"currencyId": 1,
"marketLive": true,
"sportMarkets": [
{
"sport": {
"id": 1
},
"market": {
"id": 10
}
}
],
"standardRebateAgreed": 0.5,
"additionalRebatePlayable": 0.25,
"additionalMargin": 0.1
}'Response 200
sportMarkets is not copied into the update, so it comes back null.
json
{
"agentIds": [],
"playerIds": [
12345
],
"sportMarkets": null,
"marketStatus": true,
"standardRebateAgreed": 0.5,
"additionalMargin": 0.1,
"additionalRebatePlayable": 0.25,
"betType": "SINGLE"
}Errors
400, 401, 403, 500, 503.
