Subscribe to the Store events
POST
https://petstore.swagger.io/v2/store/subscribe
Add subscription for a store events
Request
- application/json
Responses
- 201
Subscription added
- application/json
Callbacks
POST orderInProgress
POST
A callback triggered every time an Order is updated status to "inProgress" (Description)https://petstore.swagger.io/v2{$request.body#/callbackUrl}?event={$request.body#/eventName}
- application/json
- application/xml
Callbacks Responses
- 200
- 299
- 500
Callback successfully processed and no retries will be performed
- application/json
Response for cancelling subscription
Callback processing failed and retries will be performed
PUT
Order in Progress (Only Description)https://petstore.swagger.io/v2{$request.body#/callbackUrl}?event={$request.body#/eventName}
- application/json
- application/xml
Callbacks Responses
- 200
Callback successfully processed and no retries will be performed
- application/json
POST
A callback triggered every time an Order is shipped to the recipienthttps://petstore.swagger.io/v2{$request.body#/callbackUrl}?event={$request.body#/eventName}
- application/json
Callbacks Responses
- 200
Callback successfully processed and no retries will be performed
POST
A callback triggered every time an Order is delivered to the recipienthttps://petstore.swagger.io/v2http://notificationServer.com?url={$request.body#/callbackUrl}&event={$request.body#/eventName}
- application/json
Callbacks Responses
- 200
Callback successfully processed and no retries will be performed
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
1
RESPONSEClear