Skip to main content
WEBHOOK
order.completion
{
  "id": "O-01H5WQGHKCBB85MQFM68S9KJ5Q",
  "status": "PROCESSING",
  "created_at": "2023-11-07T05:31:56Z",
  "completed_at": "2023-11-07T05:31:56Z",
  "description": "Your own reference text",
  "payment_method": {
    "type": "ACCOUNT_BALANCE",
    "currency": "USD"
  },
  "currency": "USD",
  "total_price": "10",
  "total_discount": "1"
}

Webhook overview

Webhooks work differently to the API endpoints. Take a read of our guide to understand how they work.
This event is essential when using the async ordering mode if you need to take action when an order has completed processing. It’s also useful if you want to feed ordering data into your system. The webhook payload depends on whether the order was processed successfully or not. You should use the status field to determine the type of payload you have received.
  • Successfully completed orders will have a status of COMPLETED
  • Failed orders will have a status of FAILED

Body

application/json
  • Completed order
  • Failed order
id
string
required
Example:
status
enum<string>
required
Available options:
COMPLETED
Example:
created_at
string<date-time>
required
payment_method
object
required
currency
string
required
Example:
total_price
string
required
Example:
total_discount
string
required
Example:
completed_at
string<date-time>
description
string | null
Maximum length: 128
Example:

Response

200