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.
InvoicePaymentReceivedPayload{invoiceNumber* 50001234456orderId* 473332paymentDate* 2020-09-01amountInCents* 1000currencyCode SEKorderReferenceId 1234541}Above is an example of the payload for the events INVOICE__PAYMENT__RECEIVED
Was this page helpful?