Subscribe to the Store events
POST/store/subscribe
URL | Description |
---|---|
https://petstore.swagger.io/v2 | Default server |
https://petstore.swagger.io/sandbox | Sandbox server |
http://127.0.0.1:4010 | Prism Mock API (local) |
Add subscription for a store events
Request
Responses
- 201
Subscription added
Callbacks
- POST orderInProgress
- PUT orderInProgress
- POST orderShipped
- POST orderDelivered
POST{$request.body#/callbackUrl}?event={$request.body#/eventName}
A callback triggered every time an Order is updated status to "inProgress" (Description)
Callbacks Responses
- 200
- 299
- 500
Callback successfully processed and no retries will be performed
Response for cancelling subscription
Callback processing failed and retries will be performed
PUT{$request.body#/callbackUrl}?event={$request.body#/eventName}
Order in Progress (Only Description)
Callbacks Responses
- 200
Callback successfully processed and no retries will be performed
POST{$request.body#/callbackUrl}?event={$request.body#/eventName}
A callback triggered every time an Order is shipped to the recipient
Callbacks Responses
- 200
Callback successfully processed and no retries will be performed
POSThttp://notificationServer.com?url={$request.body#/callbackUrl}&event={$request.body#/eventName}
A callback triggered every time an Order is delivered to the recipient
Callbacks Responses
- 200
Callback successfully processed and no retries will be performed