POST
/
webhook
cURL
curl --request POST \
  --url https://api-v2.ziina.com/api/webhook \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "url": "<string>",
  "secret": "<string>"
}'
{
  "success": true,
  "error": "<string>"
}
Webhooks which we send currently include only one event payment_intent.status.updated

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
url
string
required

Url where webhooks will be sent

secret
string

Optional. Provide your client secret if you want to verify the authenticity of the request using HMAC. This ensures the request hasn't been tampered with. You can generate your own secret and use it consistently for signing and verifying requests.

Response

default - application/json
success
boolean
required

true if request was successful, false otherwise

error
string

Optional error message