Create a Webhook
POST/webhook
Creates a new Webhook and attaches it to the requested Company. A WebhookEvent stops broadcasting when it gets 200 a response.
Request
- application/json
Body
Input data
Possible values: [order-updated
, order-pending
, order-paid
, order-cancelled
]
The trigger that will invoke the Webhook.
Possible values: <= 65535 characters
The url to which to make POST request(s) after a trigger of the event. Only if a request fails, there can be a retry.
Responses
- 200
- 403
- 404
- 406
Webhook created.
- application/json
- Schema
- Example (from schema)
Schema
The guid of the Webhook.
Possible values: [order-updated
, order-pending
, order-paid
, order-cancelled
]
The trigger that will invoke the Webhook.
Possible values: <= 65535 characters
The url to which to make POST request(s) after a trigger of the event. Only if a request fails, there can be a retry.
The time it was created.
The time it was last updated.
{
"guid": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
"event": "order-updated",
"url": "string",
"created_at": "2023-08-01T14:40:24+00:00",
"updated_at": "2023-08-01T14:40:24+00:00"
}
Unauthorized. You do not have permission to manage the Webhook for the Company.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}
Company not found.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}
Request is invalid, see error context for validation errors.
- application/json
- Schema
- Example (from schema)
Schema
The general error code.
The exact reason of failure.
{
"error_code": "string",
"error_description": "string"
}