Webhooks
webhook
Changed onCreate 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
Request
- Base URLhttps://api.sandbox-pay.aero.inc
- Authnone declared. Required headers: Content-Type, authorization
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Content-Typestring required
authorizationstring required
A merchant scoped token.
Request body
Response
Success - Webhook Subscribed
Example response
{
"webhooks": {
"payloadVersion": "2.0"
}
}Changes
- info
added the optional property
/to the response with the status
- info