curl, jq and a shell.
1
Get sandbox access and an API key
- Sign in to the sandbox developer dashboard and request API access. AllRide activates it; you get an email. If you have no sandbox sign-in yet, send your AllRide account manager (or AllRide through the Support link at the top of this site) your company name and the email address of your first user.
- Open API keys and create a key with these scopes:
view-profile,view-provider-voucher-sets,manage-provider-voucher-sets,submit-provider-voucher-sets,activate-provider-voucher-sets,upload-provider-vouchers,view-webhooks,manage-webhooks. Copy the secret: it is shown once. - Export the base URL and the key, then check who you are:
environment is test. A 401 api-key-invalid means the key is wrong or is a production key; a 403 api-access-inactive means API access is not active yet.2
Create a voucher set
Pick a category, then create a The response is
code set. The content becomes the set’s draft; consumers see nothing yet.201 with "status": "draft". Your partner’s default locale must be one of the keys of every text (de here).3
Add three vouchers
The batch API creates up to 1,000 vouchers in one transaction, all or nothing.Values come back masked (
QS••••AA); the API never returns them in clear text except through the audited reveal operation.4
Submit the content for approval
Consumers only ever see approved content. Create a change request from the draft and submit it:The change request goes to
scanning while automated checks run. In the sandbox, a change request whose checks pass is approved automatically; in production, AllRide reviews every one. Poll the set until status is inactive and liveRevisionNo is 1:5
Activate the set and receive a webhook
Register an endpoint for Then activate the set:Within five minutes the sandbox consumer
redemption-created. Use a public HTTPS URL that you control (for example a request inspector); store both secrets from the response.sandbox-transit redeems one voucher of every new active set. Your endpoint receives a redemption-created delivery (event plus the provider view of the redemption in payload), and the stock drops by one. Verify the x-signing-signature header as described in Verifying signatures.6
Next steps
- Import thousands of vouchers with uploads.
- Generate links next to codes with dynamic links.
- Configure stock alerts and schedule activations.
- Work through the going-live checklist.