Get your own cart
const url = 'https://api-omni.linra.net/api/v1/scent/cart';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://api-omni.linra.net/api/v1/scent/cart \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Query Parameters
Section titled “Query Parameters”Optional per-customer cart selector (max 128 chars) — omit for the bare partner-level cart.
Responses
Section titled “Responses”The caller’s cart for the given customerRef (or the bare partner-level cart if omitted).
object
object
object
object
Additive, purely presentational marketing data — never affects what you pay or what
settlement computes. Appears ONLY when your account has the marketing-block feature enabled
(ask your account manager if you don’t see it); when it’s off, the marketing key is
entirely absent from the response, not merely present with empty fields.
object
The catalog’s current resolved price for this variant — for display alongside compareAtPrice, not necessarily identical to the partner-specific price shown elsewhere in this response.
A “was” price to show as a strike-through, populated ONLY when there is a genuine reason to show one (a real historical price drop, or an account-level override) — never a fake or stale discount. Null means show no strike-through at all.
Derived from currentPrice vs compareAtPrice. Null exactly when compareAtPrice is null. Currency-free (a ratio) — no display-currency equivalent.
Example
{ "state": "SUCCESS", "payload": { "status": "Open", "items": [ { "baseCurrency": "SAR", "availability": "Available", "marketing": { "badges": [ "LIMITED" ] } } ] }}customerRef exceeds 128 characters.
The envelope every /api/v1 ERROR response uses. state carries the machine-readable error code (see the Errors guide).
object
Always null on an error response.
object
object
Examples
{ "state": "VALIDATION_CUSTOMER_REF_TOO_LONG", "payload": null, "details": { "maxLength": 128 }}Too many requests — see the Rate limits guide. Retry after the Retry-After header (seconds).
The envelope every /api/v1 ERROR response uses. state carries the machine-readable error code (see the Errors guide).
object
Always null on an error response.
object
object
Example
{ "state": "NOT_FOUND_ORDER", "payload": null}Headers
Section titled “Headers”Seconds to wait before retrying.