Webhooks
Listen for events on your account so your integration can automatically trigger reactions.
Headers
Content-Typeapplication/jsonX-Webhook-Signaturesha256=...User-AgentYourAPI-Webhooks/1.0Verification
const crypto = require('crypto');\n\nfunction verifyWebhook(payload, signature) {\n const expectedSignature = crypto\n .createHmac('sha256', POLLEN_PAY_API_SECRET_KEY)\n .update(payload, 'utf8')\n .digest('hex');\n \n return signature === `sha256=${expectedSignature}`;\n}Event types
Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
requestedReceiptA revised receipt, representing a list of products, similar to a basket's product structure, if the basket/order was adjusted.
Array items contain:
requestedReceipt[].nameName of the product.
requestedReceipt[].pricePrice of the product.
requestedReceipt[].currencyCurrency of the price (e.g., 'GBP', 'USD').
requestedReceipt[].vatValue Added Tax percentage.
requestedReceipt[].qtyQuantity of the product.
requestedReceipt[].discountDiscount applied to the product.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "order_request",
"outstanding": "6250",
"requestedReceipt": [
{
"name": "Product X",
"price": 5000,
"currency": "GBP",
"vat": 20,
"qty": 1,
"discount": 0
},
{
"name": "Product Y",
"price": 5000,
"currency": "GBP",
"vat": 20,
"qty": 1,
"discount": 0
}
]
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "order_creation",
"outstanding": "6250"
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "defcon_up",
"outstanding": "6250"
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "defcon_down",
"outstanding": "6250"
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "admin_order_archived",
"outstanding": "6250"
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "order_completed",
"outstanding": "0"
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "admin_bad_debt",
"outstanding": "6250"
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "admin_passed_for_collection",
"outstanding": "6250"
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "admin_vulnerabe_customer",
"outstanding": "6250"
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
paymentOptional full payment object associated with this event. (References Payment)
Object properties:
payment.idUnique identifier for the payment.
payment.currencyThe currency of the payment (e.g., 'GBP').
payment.amountThe amount of the payment in pence (or smallest currency unit).
payment.typeThe type of payment (e.g., 'buy_in', 'scheduled').
payment.statusThe current status of the payment.
payment.dueDateUnix timestamp of when the payment is due.
payment.factDateUnix timestamp of when the payment was actually made (if applicable).
payment.lateFeeAny late fee applied to the payment in pence.
payment.orderIdThe ID of the order this payment belongs to.
payment.paymentMethodBrandThe brand of the payment method (e.g., 'Visa', 'Mastercard', 'Amex', 'PayPal').
payment.last4The last four digits of the payment card, if applicable.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "reminder_email",
"outstanding": "6250",
"payment": {
"id": "pay_x1y2z3a4-b5c6-7890-1234-567890abcdef",
"currency": "GBP",
"amount": 10000,
"type": "manual",
"status": "paid",
"dueDate": 1678886400,
"factDate": 1678886400,
"lateFee": null,
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"paymentMethodBrand": "Visa",
"last4": "4242"
}
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
paymentOptional full payment object associated with this event. (References Payment)
Object properties:
payment.idUnique identifier for the payment.
payment.currencyThe currency of the payment (e.g., 'GBP').
payment.amountThe amount of the payment in pence (or smallest currency unit).
payment.typeThe type of payment (e.g., 'buy_in', 'scheduled').
payment.statusThe current status of the payment.
payment.dueDateUnix timestamp of when the payment is due.
payment.factDateUnix timestamp of when the payment was actually made (if applicable).
payment.lateFeeAny late fee applied to the payment in pence.
payment.orderIdThe ID of the order this payment belongs to.
payment.paymentMethodBrandThe brand of the payment method (e.g., 'Visa', 'Mastercard', 'Amex', 'PayPal').
payment.last4The last four digits of the payment card, if applicable.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "reminder_message",
"outstanding": "6250",
"payment": {
"id": "pay_x1y2z3a4-b5c6-7890-1234-567890abcdef",
"currency": "GBP",
"amount": 10000,
"type": "manual",
"status": "paid",
"dueDate": 1678886400,
"factDate": 1678886400,
"lateFee": null,
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"paymentMethodBrand": "Visa",
"last4": "4242"
}
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
paymentOptional full payment object associated with this event. (References Payment)
Object properties:
payment.idUnique identifier for the payment.
payment.currencyThe currency of the payment (e.g., 'GBP').
payment.amountThe amount of the payment in pence (or smallest currency unit).
payment.typeThe type of payment (e.g., 'buy_in', 'scheduled').
payment.statusThe current status of the payment.
payment.dueDateUnix timestamp of when the payment is due.
payment.factDateUnix timestamp of when the payment was actually made (if applicable).
payment.lateFeeAny late fee applied to the payment in pence.
payment.orderIdThe ID of the order this payment belongs to.
payment.paymentMethodBrandThe brand of the payment method (e.g., 'Visa', 'Mastercard', 'Amex', 'PayPal').
payment.last4The last four digits of the payment card, if applicable.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "scheduled_payment_attempt",
"outstanding": "6250",
"payment": {
"id": "pay_x1y2z3a4-b5c6-7890-1234-567890abcdef",
"currency": "GBP",
"amount": 10000,
"type": "manual",
"status": "paid",
"dueDate": 1678886400,
"factDate": 1678886400,
"lateFee": null,
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"paymentMethodBrand": "Visa",
"last4": "4242"
}
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
paymentOptional full payment object associated with this event. (References Payment)
Object properties:
payment.idUnique identifier for the payment.
payment.currencyThe currency of the payment (e.g., 'GBP').
payment.amountThe amount of the payment in pence (or smallest currency unit).
payment.typeThe type of payment (e.g., 'buy_in', 'scheduled').
payment.statusThe current status of the payment.
payment.dueDateUnix timestamp of when the payment is due.
payment.factDateUnix timestamp of when the payment was actually made (if applicable).
payment.lateFeeAny late fee applied to the payment in pence.
payment.orderIdThe ID of the order this payment belongs to.
payment.paymentMethodBrandThe brand of the payment method (e.g., 'Visa', 'Mastercard', 'Amex', 'PayPal').
payment.last4The last four digits of the payment card, if applicable.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "manual_payment_attempt",
"outstanding": "6250",
"payment": {
"id": "pay_x1y2z3a4-b5c6-7890-1234-567890abcdef",
"currency": "GBP",
"amount": 10000,
"type": "manual",
"status": "paid",
"dueDate": 1678886400,
"factDate": 1678886400,
"lateFee": null,
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"paymentMethodBrand": "Visa",
"last4": "4242"
}
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
paymentOptional full payment object associated with this event. (References Payment)
Object properties:
payment.idUnique identifier for the payment.
payment.currencyThe currency of the payment (e.g., 'GBP').
payment.amountThe amount of the payment in pence (or smallest currency unit).
payment.typeThe type of payment (e.g., 'buy_in', 'scheduled').
payment.statusThe current status of the payment.
payment.dueDateUnix timestamp of when the payment is due.
payment.factDateUnix timestamp of when the payment was actually made (if applicable).
payment.lateFeeAny late fee applied to the payment in pence.
payment.orderIdThe ID of the order this payment belongs to.
payment.paymentMethodBrandThe brand of the payment method (e.g., 'Visa', 'Mastercard', 'Amex', 'PayPal').
payment.last4The last four digits of the payment card, if applicable.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "payment_succes",
"outstanding": "6250",
"payment": {
"id": "pay_x1y2z3a4-b5c6-7890-1234-567890abcdef",
"currency": "GBP",
"amount": 10000,
"type": "manual",
"status": "paid",
"dueDate": 1678886400,
"factDate": 1678886400,
"lateFee": null,
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"paymentMethodBrand": "Visa",
"last4": "4242"
}
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
paymentOptional full payment object associated with this event. (References Payment)
Object properties:
payment.idUnique identifier for the payment.
payment.currencyThe currency of the payment (e.g., 'GBP').
payment.amountThe amount of the payment in pence (or smallest currency unit).
payment.typeThe type of payment (e.g., 'buy_in', 'scheduled').
payment.statusThe current status of the payment.
payment.dueDateUnix timestamp of when the payment is due.
payment.factDateUnix timestamp of when the payment was actually made (if applicable).
payment.lateFeeAny late fee applied to the payment in pence.
payment.orderIdThe ID of the order this payment belongs to.
payment.paymentMethodBrandThe brand of the payment method (e.g., 'Visa', 'Mastercard', 'Amex', 'PayPal').
payment.last4The last four digits of the payment card, if applicable.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "payment_error",
"outstanding": "6250",
"payment": {
"id": "pay_x1y2z3a4-b5c6-7890-1234-567890abcdef",
"currency": "GBP",
"amount": 10000,
"type": "manual",
"status": "paid",
"dueDate": 1678886400,
"factDate": 1678886400,
"lateFee": null,
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"paymentMethodBrand": "Visa",
"last4": "4242"
}
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
paymentOptional full payment object associated with this event. (References Payment)
Object properties:
payment.idUnique identifier for the payment.
payment.currencyThe currency of the payment (e.g., 'GBP').
payment.amountThe amount of the payment in pence (or smallest currency unit).
payment.typeThe type of payment (e.g., 'buy_in', 'scheduled').
payment.statusThe current status of the payment.
payment.dueDateUnix timestamp of when the payment is due.
payment.factDateUnix timestamp of when the payment was actually made (if applicable).
payment.lateFeeAny late fee applied to the payment in pence.
payment.orderIdThe ID of the order this payment belongs to.
payment.paymentMethodBrandThe brand of the payment method (e.g., 'Visa', 'Mastercard', 'Amex', 'PayPal').
payment.last4The last four digits of the payment card, if applicable.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "missed_payment",
"outstanding": "6250",
"payment": {
"id": "pay_x1y2z3a4-b5c6-7890-1234-567890abcdef",
"currency": "GBP",
"amount": 10000,
"type": "manual",
"status": "paid",
"dueDate": 1678886400,
"factDate": 1678886400,
"lateFee": null,
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"paymentMethodBrand": "Visa",
"last4": "4242"
}
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
paymentOptional full payment object associated with this event. (References Payment)
Object properties:
payment.idUnique identifier for the payment.
payment.currencyThe currency of the payment (e.g., 'GBP').
payment.amountThe amount of the payment in pence (or smallest currency unit).
payment.typeThe type of payment (e.g., 'buy_in', 'scheduled').
payment.statusThe current status of the payment.
payment.dueDateUnix timestamp of when the payment is due.
payment.factDateUnix timestamp of when the payment was actually made (if applicable).
payment.lateFeeAny late fee applied to the payment in pence.
payment.orderIdThe ID of the order this payment belongs to.
payment.paymentMethodBrandThe brand of the payment method (e.g., 'Visa', 'Mastercard', 'Amex', 'PayPal').
payment.last4The last four digits of the payment card, if applicable.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "fee_levied",
"outstanding": "6250",
"payment": {
"id": "pay_x1y2z3a4-b5c6-7890-1234-567890abcdef",
"currency": "GBP",
"amount": 10000,
"type": "manual",
"status": "paid",
"dueDate": 1678886400,
"factDate": 1678886400,
"lateFee": null,
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"paymentMethodBrand": "Visa",
"last4": "4242"
}
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
paymentOptional full payment object associated with this event. (References Payment)
Object properties:
payment.idUnique identifier for the payment.
payment.currencyThe currency of the payment (e.g., 'GBP').
payment.amountThe amount of the payment in pence (or smallest currency unit).
payment.typeThe type of payment (e.g., 'buy_in', 'scheduled').
payment.statusThe current status of the payment.
payment.dueDateUnix timestamp of when the payment is due.
payment.factDateUnix timestamp of when the payment was actually made (if applicable).
payment.lateFeeAny late fee applied to the payment in pence.
payment.orderIdThe ID of the order this payment belongs to.
payment.paymentMethodBrandThe brand of the payment method (e.g., 'Visa', 'Mastercard', 'Amex', 'PayPal').
payment.last4The last four digits of the payment card, if applicable.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "fees_adjusted",
"outstanding": "6250",
"payment": {
"id": "pay_x1y2z3a4-b5c6-7890-1234-567890abcdef",
"currency": "GBP",
"amount": 10000,
"type": "manual",
"status": "paid",
"dueDate": 1678886400,
"factDate": 1678886400,
"lateFee": null,
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"paymentMethodBrand": "Visa",
"last4": "4242"
}
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
paymentOptional full payment object associated with this event. (References Payment)
Object properties:
payment.idUnique identifier for the payment.
payment.currencyThe currency of the payment (e.g., 'GBP').
payment.amountThe amount of the payment in pence (or smallest currency unit).
payment.typeThe type of payment (e.g., 'buy_in', 'scheduled').
payment.statusThe current status of the payment.
payment.dueDateUnix timestamp of when the payment is due.
payment.factDateUnix timestamp of when the payment was actually made (if applicable).
payment.lateFeeAny late fee applied to the payment in pence.
payment.orderIdThe ID of the order this payment belongs to.
payment.paymentMethodBrandThe brand of the payment method (e.g., 'Visa', 'Mastercard', 'Amex', 'PayPal').
payment.last4The last four digits of the payment card, if applicable.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "fee_paid",
"outstanding": "6250",
"payment": {
"id": "pay_x1y2z3a4-b5c6-7890-1234-567890abcdef",
"currency": "GBP",
"amount": 10000,
"type": "manual",
"status": "paid",
"dueDate": 1678886400,
"factDate": 1678886400,
"lateFee": null,
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"paymentMethodBrand": "Visa",
"last4": "4242"
}
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
paymentOptional full payment object associated with this event. (References Payment)
Object properties:
payment.idUnique identifier for the payment.
payment.currencyThe currency of the payment (e.g., 'GBP').
payment.amountThe amount of the payment in pence (or smallest currency unit).
payment.typeThe type of payment (e.g., 'buy_in', 'scheduled').
payment.statusThe current status of the payment.
payment.dueDateUnix timestamp of when the payment is due.
payment.factDateUnix timestamp of when the payment was actually made (if applicable).
payment.lateFeeAny late fee applied to the payment in pence.
payment.orderIdThe ID of the order this payment belongs to.
payment.paymentMethodBrandThe brand of the payment method (e.g., 'Visa', 'Mastercard', 'Amex', 'PayPal').
payment.last4The last four digits of the payment card, if applicable.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "schedule_altered",
"outstanding": "6250",
"payment": {
"id": "pay_x1y2z3a4-b5c6-7890-1234-567890abcdef",
"currency": "GBP",
"amount": 10000,
"type": "manual",
"status": "paid",
"dueDate": 1678886400,
"factDate": 1678886400,
"lateFee": null,
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"paymentMethodBrand": "Visa",
"last4": "4242"
}
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
paymentOptional full payment object associated with this event. (References Payment)
Object properties:
payment.idUnique identifier for the payment.
payment.currencyThe currency of the payment (e.g., 'GBP').
payment.amountThe amount of the payment in pence (or smallest currency unit).
payment.typeThe type of payment (e.g., 'buy_in', 'scheduled').
payment.statusThe current status of the payment.
payment.dueDateUnix timestamp of when the payment is due.
payment.factDateUnix timestamp of when the payment was actually made (if applicable).
payment.lateFeeAny late fee applied to the payment in pence.
payment.orderIdThe ID of the order this payment belongs to.
payment.paymentMethodBrandThe brand of the payment method (e.g., 'Visa', 'Mastercard', 'Amex', 'PayPal').
payment.last4The last four digits of the payment card, if applicable.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "admin_adjusted_schedule",
"outstanding": "6250",
"payment": {
"id": "pay_x1y2z3a4-b5c6-7890-1234-567890abcdef",
"currency": "GBP",
"amount": 10000,
"type": "manual",
"status": "paid",
"dueDate": 1678886400,
"factDate": 1678886400,
"lateFee": null,
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"paymentMethodBrand": "Visa",
"last4": "4242"
}
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
paymentOptional full payment object associated with this event. (References Payment)
Object properties:
payment.idUnique identifier for the payment.
payment.currencyThe currency of the payment (e.g., 'GBP').
payment.amountThe amount of the payment in pence (or smallest currency unit).
payment.typeThe type of payment (e.g., 'buy_in', 'scheduled').
payment.statusThe current status of the payment.
payment.dueDateUnix timestamp of when the payment is due.
payment.factDateUnix timestamp of when the payment was actually made (if applicable).
payment.lateFeeAny late fee applied to the payment in pence.
payment.orderIdThe ID of the order this payment belongs to.
payment.paymentMethodBrandThe brand of the payment method (e.g., 'Visa', 'Mastercard', 'Amex', 'PayPal').
payment.last4The last four digits of the payment card, if applicable.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "delinquent_notice_email",
"outstanding": "6250",
"payment": {
"id": "pay_x1y2z3a4-b5c6-7890-1234-567890abcdef",
"currency": "GBP",
"amount": 10000,
"type": "manual",
"status": "paid",
"dueDate": 1678886400,
"factDate": 1678886400,
"lateFee": null,
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"paymentMethodBrand": "Visa",
"last4": "4242"
}
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
paymentOptional full payment object associated with this event. (References Payment)
Object properties:
payment.idUnique identifier for the payment.
payment.currencyThe currency of the payment (e.g., 'GBP').
payment.amountThe amount of the payment in pence (or smallest currency unit).
payment.typeThe type of payment (e.g., 'buy_in', 'scheduled').
payment.statusThe current status of the payment.
payment.dueDateUnix timestamp of when the payment is due.
payment.factDateUnix timestamp of when the payment was actually made (if applicable).
payment.lateFeeAny late fee applied to the payment in pence.
payment.orderIdThe ID of the order this payment belongs to.
payment.paymentMethodBrandThe brand of the payment method (e.g., 'Visa', 'Mastercard', 'Amex', 'PayPal').
payment.last4The last four digits of the payment card, if applicable.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "delinquent_notice_message",
"outstanding": "6250",
"payment": {
"id": "pay_x1y2z3a4-b5c6-7890-1234-567890abcdef",
"currency": "GBP",
"amount": 10000,
"type": "manual",
"status": "paid",
"dueDate": 1678886400,
"factDate": 1678886400,
"lateFee": null,
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"paymentMethodBrand": "Visa",
"last4": "4242"
}
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
paymentOptional full payment object associated with this event. (References Payment)
Object properties:
payment.idUnique identifier for the payment.
payment.currencyThe currency of the payment (e.g., 'GBP').
payment.amountThe amount of the payment in pence (or smallest currency unit).
payment.typeThe type of payment (e.g., 'buy_in', 'scheduled').
payment.statusThe current status of the payment.
payment.dueDateUnix timestamp of when the payment is due.
payment.factDateUnix timestamp of when the payment was actually made (if applicable).
payment.lateFeeAny late fee applied to the payment in pence.
payment.orderIdThe ID of the order this payment belongs to.
payment.paymentMethodBrandThe brand of the payment method (e.g., 'Visa', 'Mastercard', 'Amex', 'PayPal').
payment.last4The last four digits of the payment card, if applicable.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "admin_adjusted_amounts",
"outstanding": "6250",
"payment": {
"id": "pay_x1y2z3a4-b5c6-7890-1234-567890abcdef",
"currency": "GBP",
"amount": 10000,
"type": "manual",
"status": "paid",
"dueDate": 1678886400,
"factDate": 1678886400,
"lateFee": null,
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"paymentMethodBrand": "Visa",
"last4": "4242"
}
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
revisedReceiptA revised receipt, representing a list of products, similar to a basket's product structure, if the basket/order was adjusted.
Array items contain:
revisedReceipt[].nameName of the product.
revisedReceipt[].pricePrice of the product.
revisedReceipt[].currencyCurrency of the price (e.g., 'GBP', 'USD').
revisedReceipt[].vatValue Added Tax percentage.
revisedReceipt[].qtyQuantity of the product.
revisedReceipt[].discountDiscount applied to the product.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "refund",
"outstanding": "6250",
"revisedReceipt": [
{
"name": "Product X",
"price": 5000,
"currency": "GBP",
"vat": 20,
"qty": 1,
"discount": 0
},
{
"name": "Product Y",
"price": 5000,
"currency": "GBP",
"vat": 20,
"qty": 1,
"discount": 0
}
]
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
revisedReceiptA revised receipt, representing a list of products, similar to a basket's product structure, if the basket/order was adjusted.
Array items contain:
revisedReceipt[].nameName of the product.
revisedReceipt[].pricePrice of the product.
revisedReceipt[].currencyCurrency of the price (e.g., 'GBP', 'USD').
revisedReceipt[].vatValue Added Tax percentage.
revisedReceipt[].qtyQuantity of the product.
revisedReceipt[].discountDiscount applied to the product.
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "admin_adjusted_basket",
"outstanding": "6250",
"revisedReceipt": [
{
"name": "Product X",
"price": 5000,
"currency": "GBP",
"vat": 20,
"qty": 1,
"discount": 0
},
{
"name": "Product Y",
"price": 5000,
"currency": "GBP",
"vat": 20,
"qty": 1,
"discount": 0
}
]
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
supportTicketIdOptional ID of a support ticket associated with this event. (References SupportTicket)
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "support_ticket_created",
"outstanding": "6250",
"supportTicketId": null
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
supportTicketIdOptional ID of a support ticket associated with this event. (References SupportTicket)
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "support_ticket_update",
"outstanding": "6250",
"supportTicketId": null
}Event object
eventIdUnique identifier for the order event.
orderIdThe ID of the order this event belongs to. (References Order)
timestampUnix timestamp of when the event occurred.
typeThe type of order event.
outstandingThe outstanding amount at the time of the event, or a relevant note.
supportTicketIdOptional ID of a support ticket associated with this event. (References SupportTicket)
Example payload
{
"eventId": "evt_1a2b3c4d-5e6f-7890-1234-567890abcdef",
"orderId": "ord_a1b2c3d4-e5f6-7890-1234-567890abcdef",
"timestamp": 1678886400,
"type": "support_ticket_resolved",
"outstanding": "6250",
"supportTicketId": null
}