Skip to content

Get a variant's current availability

GET
/api/v1/scent/catalog/variants/{id}/availability
curl --request GET \
--url https://api-omni.linra.net/api/v1/scent/catalog/variants/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0/availability \
--header 'Authorization: Bearer <token>'
id
required
string format: uuid

The variant’s availability state.

Media typeapplication/json
object
state
required
string
payload
required
details
object
payload
required
object
variantId
string format: uuid
availability

A simple 2-state in-stock indicator — distinct from VariantAvailabilityState’s 3-state Available/Limited/Unavailable used on cart/quote responses (which carry line-quantity context this endpoint doesn’t have).

string
Allowed values: OutOfStock InStock
selfAvailable
boolean
vendorAvailable
boolean
Example
{
"state": "SUCCESS",
"payload": {
"availability": "OutOfStock"
}
}

Too many requests — see the Rate limits guide. Retry after the Retry-After header (seconds).

Media typeapplication/json

The envelope every /api/v1 ERROR response uses. state carries the machine-readable error code (see the Errors guide).

object
state
required
string
payload
required

Always null on an error response.

object
details
object
Example
{
"state": "NOT_FOUND_ORDER",
"payload": null
}
Retry-After
integer

Seconds to wait before retrying.