Skip to main content

Response envelope

Successful responses:
Errors:

Status codes

Common error messages

Limit and delivery errors

Reward redemption caps, raffle entry caps, and the shipping/digital delivery modes return machine-readable codes instead of prose. Some carry a :<value> suffix so you can render the number without a second call. Two more surface to your customers in the Rigaly app rather than to your integration — worth knowing when you read a support ticket:

Digital provisioning errors

A digital reward draws its value from a digital_asset_source: a fixed value (static), a batch of one-time codes you upload (pool), or an HTTPS endpoint of yours that Rigaly calls at redemption time (external). These codes cover the pool and webhook endpoints, plus the two failures a redemption itself can hit. Full behavior: digital provisioning sources.
POST /rewards/{id}/webhook/test is the exception to everything above: it returns HTTP 200 even when the test failed. Read data.ok, not the status code — a transport failure at your endpoint is a test result, not an API error.
See the reward delivery guide and the raffles guide for the behavior behind these.