Webhooks
curl -X 'POST' \
'https://pos-api.sandbox.vibrant.app/pos/v1/webhooks' \
-H 'accept: application/json' \
-H 'apikey: vibrant_pos.YOUR_SECRET_KEY' \
-H 'Content-Type: application/json' \
-d '{
"enabledEvents": [
"payment_intent.succeeded"
],
"description": "My PI succeeded webhook",
"url": "https://myPlaceToReceiveWebhhoks.com/thanks",
"status": "enabled"
"metadata": {
"remember_this": "something"
}
}'Authorizations
apikeystringRequired
Header parameters
Idempotency-KeystringOptional
To perform an idempotent request, provide an Idempotency-Key: header to the request.
Body
enabledEventsstring[]RequiredDefault:
The list of events to enable for this endpoint. You may specify [’*’] to enable all events, except those that require explicit selection.
["*","balance.available","card_transaction.created","card_transaction.updated","charge.created","charge.failed","charge.pending","charge.refunded","charge.refund.updated","charge.succeeded","charge.updated","file.created","file.deleted","file.updated","location.created","location.deleted","location.updated","order.created","order.deleted","order.updated","payment_intent.canceled","payment_intent.created","payment_intent.payment_failed","payment_intent.processing","payment_intent.requires_action","payment_intent.requires_confirmation","payment_intent.requires_payment_method","payment_intent.succeeded","payout.canceled","payout.created","payout.failed","payout.paid","payout.updated","product.created","product.deleted","product.updated","refund.canceled","refund.created","refund.failed","refund.processing","refund.requires_confirmation","refund.requires_payment_method","refund.succeeded","spot.created","spot.deleted","spot.updated","terminal.action_canceled","terminal.action_failed","terminal.action_in_progress","terminal.action_succeeded","terminal.created","terminal.updated","trxn.created","user.created","user.deleted","user.updated","webhook.created","webhook.updated"]descriptionstringOptionalDefault:
Add a small description to your webhook
My new and dandy webhookmetadataall ofOptional
Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata.
objectOptional
urlstringRequiredDefault:
The URL of the webhook endpoint.
https://myPlaceToReceiveWebhhoks.com/thanksstatusstringRequiredDefault:
Enables or Disables the webhook
enabledResponses
201Success
application/json
400
Event X is not allowed
403
Forbidden.
post
/pos/v1/webhooksReceiving a webhook
Name
Value
Webhook event verification
Webhook Retrial behaviour
Webhooks best practices
Last updated