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 string

Callbacks

POST 

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

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

Body

    orderId string
    timestamp date-time
    status string

Callbacks Responses

Callback successfully processed and no retries will be performed

Schema

    someProp string
Loading...