Skip to content

Subscribe to the Store events

Request

Add subscription for a store events

Bodyapplication/json
callbackUrlstring, (uri)required

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

Example:"https://myserver.com/send/callback/here"
eventNamestringrequired

Event name for the subscription

Enum:"orderInProgress""orderShipped""orderDelivered"
Example:"orderInProgress"
curl -i -X POST \
  https://innovario.apishowdown.com/_mock/petstore/store/subscribe \
  -H 'Content-Type: application/json' \
  -d '{
    "callbackUrl": "https://myserver.com/send/callback/here",
    "eventName": "orderInProgress"
  }'

Responses

Successful operation

Bodyapplication/json
Array [
Array of numbers, [ 111 .. 777 ] items
]
Response
[ [ 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0 ] ]

Callbacks

Order in Progress (Summary)
post
Order in Progress (Only Description)
put
Very long description Lorem ipsum dolor sit amet,
post
Order delivered
post
deprecated