Retrieve Promotion
Returns one promotion of an account, with its status and, for a code promotion with a cap, the uses counted so far.
X-Account-Code header. A promotion of another account, and an id that no promotion holds, answer 404 PROMOTION_NOT_FOUND. An id that is not a UUID v4 answers 400 INVALID_PARAMETERS.
status is computed when you read the promotion: SCHEDULED before starts_at, ACTIVE inside the window, EXPIRED after ends_at, and DISABLED once you disable it. For a code promotion with a cap, limits.used is the number of uses counted so far. A promotion with no cap shows limits: null.Authorizations
Headers
The account_id found in your Yuno Dashboard (UUID). Required. A promotion belongs to one account, and this header names it. Omitting it returns 400 INVALID_PARAMETERS ("x-account-code header is required.").
Path Parameters
Response
- The promotion.
A promotion. Every member is present, with null for an absent value.