What your catalog contains
A voucher set appears in your catalog when all of these hold:- the set has an approved live revision (drafts and pending change requests are never visible to you);
- its effective status is
scheduled,activeordeactivation-scheduled; - its provider is active;
- AllRide has granted you access: the provider’s Provider Access allows you, and the set’s Consumer Access allows you too. Access is managed by AllRide, and a provider is visible to no consumer until AllRide grants access.
provider-not-found. A set that is not visible to you answers 404 voucher-set-not-found.
The catalog has three resources:
Reading the catalog needs the permission
view-consumer-catalog; changing toggles and settings needs manage-consumer-catalog. Both can be granted to API keys.
priceAcceptance with a status and a nextChangeAt:
A missing Price Acceptance never hides an entry from the catalog. Accept prices on the Prices page of the consumer dashboard, as described in Prices and price acceptance. The entry never shows the terms themselves; read them through the pricing operations.
Availability
availability tells you where a set is in its lifecycle as you see it:
Availability is computed from the clock at the moment of your request, so a set whose
activeFrom has passed is active immediately. A provider’s availability is active when any of its visible sets is active, else deactivation-scheduled when any is, else upcoming. Use nextActiveFrom and earliestDeactivateAt on the provider to show “coming soon” and “leaving soon” labels.
Stock is shown only as stockStatus (available, low or depleted), never as numbers. available does not promise more than one voucher; see batch redemptions.
Provider and voucher set toggles
Catalog Toggles let you choose what your channels offer without changing what AllRide makes visible:- the Provider Toggle (
providerToggle, set throughsetting.enabledon the provider) is off by default; - the Voucher Set Toggle (
voucherSetToggle, set throughsetting.enabledon the entry) defaults to the provider’ssetting.autoEnableNewVoucherSets, which is on by default.
voucher-set-unavailable.
Toggles never hide entries from the catalog operations: the list always returns every visible entry with its toggle values, so your management screens can show what is switched off. Apps and landing pages filter with filter[providerToggle]=true&filter[voucherSetToggle]=true.
autoEnableNewVoucherSets is not retroactive. When you change it, every set of that provider that is already visible keeps its current Voucher Set Toggle; only sets that become visible afterwards start with the new value. You can set toggles on upcoming sets so they are on when the set activates.
Your own settings and references
Both the provider and the entry carry asetting object that only you see. Update it with a JSON Merge Patch: properties you leave out stay unchanged and null clears a value.
- Look entries up by your reference with
filter[setting.externalRef]=ride-credit-5. A reference that is already used answers 409external-ref-taken. - A PATCH writes only the properties you send, so two systems that change different properties of the same setting both succeed.
- Calendar months of
entityLimitfollow your partner time zone. Changing theperiodstarts counting from zero under the new period; loweringmaxbelow the current count blocks further redemptions in that period.
Keeping a local copy
Apps that show the catalog to end customers should not call the API on every screen view. A pattern that works:- Load the catalog with the toggle filters and cache it for at most 60 seconds.
- Subscribe a webhook endpoint to the
catalog-*events and refresh the affected entry when one arrives:catalog-voucher-set-available,updated,activation-scheduled,activated,deactivation-scheduled,deactivated,unavailable,stock-lowanddepleted. - Treat a 409 from a redemption as the final word: the cache can be up to a minute old, and redeeming always checks the current state.
catalog-* webhooks are sent for every set visible to you, whatever your toggles say, so you also learn about new sets you might want to switch on. catalog-voucher-set-unavailable names the reason, for example access-revoked or voucher-set-archived.