Order and Pay: Webhook
Create a Webhook
Changed onConfigures a new webhook to be used for order status updates.
put/o/wh/1/webhook
Request
- Base URLhttps://api.trial.lsk.lightspeed.app
- URLhttps://api.trial.lsk.lightspeed.app/o/wh/1/webhook
- AuthOAuth 2Authorization code: https://auth.lsk-prod.app/realms/k-series/protocol/openid-connect/authToken URL: https://auth.lsk-prod.app/realms/k-series/protocol/openid-connect/token scopes: orders-api
Request body
Example request
{
"endpointId": "MY-AWESOME-ENDPOINT-ID",
"url": "https://webhook.site/1dc40b86-3d0d",
"withBasicAuth": true,
"username": "username",
"password": "password",
"provideAccount": true,
"expandTransactions": true,
"expandPayments": true,
"subscribeTo": [
{
"name": "DELIVERED",
"resource": "order"
}
]
}Response
Webhook
Example response
{
"endpointId": "MY-AWESOME-ENDPOINT-ID",
"url": "https://webhook.site/1dc40b86-3d0d",
"withBasicAuth": true,
"username": "username",
"password": "password",
"provideAccount": true,
"expandTransactions": true,
"expandPayments": true,
"subscribeTo": [
{
"name": "DELIVERED",
"resource": "order"
}
]
}Changes
- warning
added the new
itemenum value to the//response property for the response status - warning
added the new
order_apienum value to the//response property for the response status - info
api tag
Order and Pay: Webhookadded - info
api tag
Order and Payremoved - info
added the new
itemenum value to the request property// - info
added the new
order_apienum value to the request property//
- warning