422
errors represent a problem that could be relayed to the shopper. All other
error responses represent either a bug in your integration, an authentication
issue, or a rate limit being reached.
400
400
response will be returned, with
details about the problematic fields. For example, the channel
query parameter
requires one of web
, pos
or mobile
. If you provide a different value, you’ll
receive an error like this:
401
, 403
401
response indicates an invalid API key, while a 403
response
indicates the API key does not have permission to perform the requested action.
404
404
response will be returned.
For example, if you redeem a reward
and pass a reward_id
or a customer_merchant_id
that does not exist in LoyaltyLion,
a 404
response will be returned.
422
422
response will
be returned. This kind of error will always have a code
, and each API
endpoint’s documentation page which error codes to expect, and what they mean.
For example, if you redeem a reward
but it is out of stock, a reward_out_of_stock
code will be returned.
You should review the expected error codes, determine which will apply to your
integration, and turn them into an appropriate shopper-facing error message.
429
429
response will be returned.