Invoice & Payments
Payer Merchant Portal
Other solutions
Powered By

Title
Message
Create new category
What is the title of your new category?
Edit page index title
What is the title of the page index?
Edit category
What is the new title of your category?
Edit link
What is the new title and URL of your link?
Events API and Subscribing to Events
Copy Markdown
Open in ChatGPT
Open in Claude
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
InvoicePaymentReceivedPayload{invoiceNumber* 50001234456orderId* 473332paymentDate* 2020-09-01amountInCents* 1000currencyCode SEKorderReferenceId 1234541}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
Last updated on
Was this page helpful?
Next to read:
Payment eventsDiscard Changes
Do you want to discard your current changes and overwrite with the template?
Archive Synced Block
Message
Create new Template
What is this template's title?
Delete Template
Message