v1
latestOpenAPI 3.1.02026-08-06911,228852.2 KBOrder and Pay: Webhook
Create a Webhook
Configures a new webhook to be used for order status updates.
put/o/wh/1/webhook
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"
}
]
}