V 1.0.6 - Merchant Webhooks API
Version 1.0.6 (latest)
Last updated
Was this helpful?
Version 1.0.6 (latest)
Last updated
Was this helpful?
The common services is offered by the BAAS platform. One of the main services is the merchant webhook service. The Webhook Merchant API allows merchants to subscribe to various transaction status events and receive notifications through configured callback APIs or by polling for these events.
Download OpenAPI specs:
Retrieve a webhook configuration (for a given event type code) for a merchant
eventTypeCode for which the webhook configuration must be retrieved.
Can be SC_SUBSCRIPTION, CI_SUBSCRIPTION, HELLO_WORLD...etc.
SC_SUBSCRIPTION
Retrieve webhook events with a given delivery status (OK, ERROR, INACTIVE...)
Delivery status of the events to retrieve
eventTypeCode for which the webhook configuration must be retrieved. Can be ANY, SC_SUBSCRIPTION, CI_SUBSCRIPTION, TEST...
SC_SUBSCRIPTION
event code for the event type
["SC_SUBSCRIPTION_INITIALIZED","SC_SUBSCRIPTION_PRE_ACCEPTED"]
Event to retrieve must have a timestamp greater that fromTimestamp
2023-06-27T15:20:30.456Z
Event to retrieve must have a timestamp lower that toTimestamp
2023-09-27T15:20:30.456Z
Page, starting from 1. Default is 1.
Page size. Default is 20.
Sort. Default is -timestamp.
Configure a webhook (for a given event type) for a merchant. The event type must match the family code of the merchant's subscription product.
Data to configure webhooks for a merchant
Event type code for which we want to configure the webhook. Can be ANY, SC_SUBSCRIPTION, SC_CANCEL_REQUEST, CI_SUBSCRIPTION, HELLO_WORLD.
SC_SUBSCRIPTION
Is this webhook active ? Default is false.
true
Url to use for this webhook. Default is null.
https://www.acme.com/webhooks/events/credit
Authentication method to use for this webhook. Default is null.
BASIC_AUTH
Possible values: Authentication login to use for this webhook if authentication method is BASIC_AUTH. Default is null.
mySuperLogin
Authentication password to use for this webhook if authentication method is BASIC_AUTH. Default is null.
mySuperPassword
Authentication scope to use for this webhook. Not used so far (OAUTH2 is not yet supported). Default is null.
mySuperScope
Key to use to sign the events for this webhook (using HMAC-SHA256). When the webhook endpoint will be called (during event delivery), the header X-BAAS-SIGNATURE will contain the signature of the event. Default is null.
e5399af3ebcde0f3ead45086e13e932f36b1e5a1db002c8bb6a2870a1d22a7b6
Secret (or ApiKey if authentication method is API_KEY) to send alongside with the events for this webhook. When the webhook endpoint will be called (during event delivery), the header X-BAAS-SECRET will contain the secret. If the authentication method is API_KEY, the header Authorization will contain the secret. Default is null.
mySuperSecretOrMyAPIKey
Email to use to notify alerts (typically used if too many errors are encountered on a webhook)
support@acme.com
List of active event codes for the given event type. If this field is not specified, all event codes that belong to the given eventTypeCode will be activated (current and future).
["SC_SUBSCRIPTION_ACCEPTED","SC_SUBSCRIPTION_REJECTED"]
No content