Parameter | Type | Required? | Default | Description |
---|---|---|---|---|
scope | enum | no | standard | Determines the scope the API operates on. See Offers scoping |
Key | Type | Optional? | Description |
---|---|---|---|
authorization_token | string | yes | See below |
authorization_token
param, so we can register his physical presence in the store.authorization_token_required
is true
), it's impossible to register usage.Key | Type | Description |
---|---|---|
usage | OfferUsage | See Offer usage model |
Status | Response body | Description |
---|---|---|
404 | {"error": "Offer#10000951 not found"} | - |
422 | {"error": "Already active"} | The offer has been just used |
422 | {"error": "Not granted"} | The offer is not available to member |
422 | {"error": "Usage authorization token missing"} | Usage token is missing |
422 | {"error": "Usage authorization token invalid"} | Provided usage token is invalid |
422 | {"error": "User limit exceeded"} | Member exhausted his pool of uses |
422 | {"error": "Periodic user limit exceeded"} | Member exhausted his pool of uses within current time period |
422 | {"error": "Global limit exceeded"} | There are no more offers available globally (stock is empty) |
422 | {"error": "Not in usable timeframes"} | Offer is not usable yet or anymore |
467 | {"error": "Member is banned!", "banned_until": "2137-10-28T17:24:06.207Z"} | Member is banned |
{
"usage": {
"usable": true,
"max_uses": 100,
"uses_left": 68,
"active_until": "2019-05-08T14:47:22.323Z"
}
}