Endpoint, both modes
Suspend a member POST
Suspends your customer external_player_id in every currency. New play stops; bets already open still settle. Calling it again suspends only the currencies still active and answers the same. A suspended agent can still call it.
HTTP Request
POST {{ API_URL }}/api/v1/members/suspend| Property | Type | Required | Description |
|---|
X-Api-Key | string | Required | On the endpoints: the API key of your API credential. A missing header or a key we do not know is answered 401 with code 1001. Send it with X-Timestamp and X-Signature on every request. |
X-Timestamp | string | Required | On the endpoints: Unix time in seconds when you signed the request. One more than 300 seconds away from our clock, in either direction, is answered 401 with code 1025. Keep your clock in sync (NTP). |
X-Signature | string | Required | On the endpoints: lowercase hex of HMAC-SHA256 with the secret of your API credential as the key, over the X-Timestamp value, a dot (.), then the raw request body exactly as you send it. One that does not match is answered 401 with code 1030. There is no nonce. |
Accept-Language | string | Optional | The language of message. English when absent or when we do not have the language; th for Thai. It is the only way to choose the language. message is for people only: decide on code. |
Parameter Description
| Property | Type | Required | Description |
|---|
external_player_id | string | Required | Your id of your customer, as in launch. |
Request Body
Request bodyjson
{
"external_player_id": "member01"
}Response
| Property | Type | Required | Description |
|---|
success | boolean | Required | Always true |
code | number | Required | Always 0 |
message | string | Required | For people only. Never decide on it. |
request_uuid | string | Required | Our id of the request. Quote it to support. |
data | object | Required | |
data.external_player_id | string | Required | |
data.suspended | boolean | Required | true while the customer is suspended, by your agent or by best-superapi. |
JSON response examplejson
{
"success": true,
"code": 0,
"message": "Member suspended",
"data": {
"external_player_id": "member01",
"suspended": true
},
"request_uuid": "d3445566-7788-49aa-bbcc-ddeeff001122"
}Errors
| HTTP | code | When |
|---|
| 400 | 4001 | A field has the wrong shape |
| 401 | 1001 | A header is missing or the key is unknown |
| 401 | 1030 | The signature does not match |
| 401 | 1025 | X-Timestamp is too far from our clock |
| 403 | 1031 | The caller's IP is not on the key's allowlist |
| 403 | 1032 | The endpoint is not for your agent's wallet mode |
| 403 | 1026 | A production key without an IP allowlist |
| 403 | 1002 | The request could not be checked |
| 404 | 3134 | No member with this external_player_id |
| 500 | 9001 | Something failed on our side |