Register to be notified when a variant becomes available again
POST
/api/v1/scent/cart/notify/{variantId}
const url = 'https://api-omni.linra.net/api/v1/scent/cart/notify/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0';const options = {method: 'POST', 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 POST \ --url https://api-omni.linra.net/api/v1/scent/cart/notify/2489E9AD-2EE2-8E00-8EC9-32D5F69181C0 \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”variantId
required
string format: uuid
Responses
Section titled “Responses”The registration.
Media typeapplication/json
object
state
required
string
payload
required
details
object
payload
required
object
id
string format: uuid
variantId
string format: uuid
partnerId
string format: uuid
createdAt
string format: date-time
firedAt
string format: date-time
Example
{ "state": "SUCCESS"}Registering on a variant that is already sellable, or notify is disabled.
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
Examples
{ "state": "BUSINESS_VARIANT_NOT_UNAVAILABLE", "payload": null, "details": {}}{ "state": "BUSINESS_NOTIFY_DISABLED", "payload": null, "details": {}}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}Headers
Section titled “Headers”Retry-After
integer
Seconds to wait before retrying.