v1
latestOpenAPI 3.0.02026-07-263118119.8 KBWebhooks
webhook
Create a webhook.
Specify a topic and a url. Use this call to either create or update a webhook for a topic.
<details> <summary><strong>Error Glossary</strong> (click to expand)</summary>| Code | HTTP Status | Message |
|---|---|---|
| AP009 | 401 | Unauthorized |
| AP101 | 401 | No authenticated user |
| AP1000 | 200 | Invalid API |
| AP1102 | 400 | Topic required to create webhook |
| AP1103 | 400 | URL is invalid or missing |
| AP1104 | 400 | Unrecognized topic |
| AP1105 | 200 | Error creating webhook |
| AP1107 | 400 | Merchant is required |
post/v2/webhook
Headers
Content-Typestring required
authorizationstring required
A merchant scoped token.
Request body
Response
Success - Webhook Subscribed
Example response
{
"webhooks": {
"payloadVersion": "2.0"
}
}