Events API and Subscribing to Events

Subscribe to events

Events may be sent for certain actions in Payer B2B. Complete API documentation is available at: Payer B2B EventsAPI

To subscribe for events, use the POST /api/v1/events/callbacks method below and specify which URL the event should be sent to. It is possible to subscribe to the same event with multiple callback URLs.

Setup subscription for Event

Setup a subscription for when an invoice is paid

https://b2b.payer.se/api/v1/events/callbacks?type=INVOICE_PAYMENT_RECEIVED&url=https://yourcallbackurl.merchant

Fetch the payload

Once you have received an event to your subscription URL, us the token to get the payload and remember to ACK the event.

Bash
Copy

Above is an example of the payload for the events INVOICE__PAYMENT__RECEIVED

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard