3etDevelopers
AMS API / Rebates

Rebates — singlesPOST

Sets the standard rebate, additional rebate and additional margin for single bets.

POSThttps://api.3et.ams.com/ams/v1/api/player/{playerId}/rebates/singles
Requires apiToken

Body

FieldTypeNotes
playerIdlongTarget player
currencyIdlongAccepted but not used
marketLivebooleantrue = live, false = pre-match
sportMarketsarrayEach item { "sport": { "id": … }, "market": { "id": … } }
standardRebateAgreeddecimalStandard rebate
additionalRebatePlayabledecimalAdditional rebate
additionalMargindecimalAdditional 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.