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