A payment webhook is a POST URL delivered by the API partner to November First, when the payment is created. Webhook calls are triggered every time there is a change in:
- Payment Status
- Approval Status
- Initiation Status
Calls to the Payment webhook are delivered in this format:
"{\"CustomerCVR\":\"28860633\",\"PaymentReference\":\"1TYY9IDKTBC\",\"PaymentStatus\":\"Pending\",\"ApprovalStatus\":\"Pending\",\"CustomerNumber\":\"208100006\",\"RecipientName\":\"Jonas Test\",\"ToAmount\":200.0000,\"ToCurrencyCode\":\"ISK\",\"InitiationStatus\":null,\"IsSepa\":false,\"FeeSharingType\":\"Shared\"}"
IMPORTANT The webhook object has a Payment Status with extra options. Please don't confuse it with the ApprovalStatus.
The options are described below:
PAYMENT STATUS VALUES:
Pending: Payment Created but not ready to be paid.
Scheduled: Payment to be paid at a future date.
AwaitingCustomerPayment: Payment executed and awaiting the customer funds to our account.
AwaitingTransfer: Payment ready to be sent to the recipient.
Completed: Payment sent to the final recipient.
TradeReverted: International payment canceled.
TransferForbidden: Payment cannot be sent because the recipient is restricted.
Canceled: Payment canceled by November First or customer request.
*APPROVAL STATUS VALUES:**
PendingApproval: the payment is pending approval.
Approved: the payment has been approved and is ready to be paid.
Rejected: the payment has been rejected by an approver.
PartiallyApproved: the payment needs additional approvers.
The description of each field of the webhook is described below:
Field | Description |
---|---|
CustomerCVR | The CVR of the customer. |
PaymentReference | The reference of the payment. |
PaymentStatus | The status of the payment. |
ApprovalStatus | The Status of the Approval, with values. |
CustomerNumber | The November First customer number. |
RecipientName | The name of the recipient of the payment. |
ToAmount | The amount to be sent to the recipient. |
ToCurrencyCode | The currency of the "ToAmount" field. |
InitiationStatus | The Payment initiation status, with values: Initiated, Sent, Accepted, Rejected. |
IsSepa | A boolean field describing if the payment is a EUR transfer to a recipient in the SEPA region. |
FeeSharingType | The fee sharing type of the payment: |