Skip to main content

Subscribe to the Store events

POST 

/store/subscribe

Add subscription for a store events

Request

Body

    callbackUrl urirequired

    This URL will be called by the server when the desired event will occur

    eventName stringrequired

    Possible values: [orderInProgress, orderShipped, orderDelivered]

    Event name for the subscription

Responses

Subscription added

Schema
    subscriptionId stringrequired

Callbacks

POST 

{$request.body#/callbackUrl}?event={$request.body#/eventName}

A callback triggered every time an Order is updated status to "inProgress" (Description)

Body

    orderId stringrequired
    timestamp date-timerequired
    status stringrequired

Callbacks Responses

Callback successfully processed and no retries will be performed

Schema
    someProp stringrequired
Loading...