logo
On this page

Subscribe to the Store events

POST

https://petstore.swagger.io/v2/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 orderInProgress
POST

https://petstore.swagger.io/v2{$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

1
Copied!
Request
Collapse all
Base URL
https://petstore.swagger.io/v2
Default server
Body
{
"callbackUrl": "https://myserver.com/send/callback/here",
"eventName": "orderInProgress"
}
RESPONSEClear

Click the "Send" button above and see the response here!

On this page

Back to top