Cancel an order awaiting payment
const url = 'https://api.example.com/cms/customer/example/payment/example/cancel';const options = {method: 'POST', headers: {'API-Key': '<API-Key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://api.example.com/cms/customer/example/payment/example/cancel \ --header 'API-Key: <API-Key>'Cancels the customer’s order while it is awaiting payment (status “on_hold” or “unpaid”). Items held in stock for it are put back. The order’s status becomes “cancelled”.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”Customer ID
Payment ID
Responses
Section titled “Responses”The cancelled payment
API representation of a payment
object
Payment ID
Order amount (DB decimal serialized as a string)
Order currency
Order amount in base currency (DB decimal serialized as a string)
Payment status
Response message
Last update timestamp, MySQL datetime (Y-m-d H:i:s)
Payment timestamp, MySQL datetime (Y-m-d H:i:s)
User ID
Payment method
Renewal ID
Cart items
object
Purchased product item. Currently serialized as a string reference of the form “WhiteBeard\ECommerce\ProductItems:
API representation of an ecommerce pricing tier (product item)
object
Item ID
Description
Product ID
Product name
Price
The price it sells at today: its timed offer’s price while one runs, otherwise price
Currency
Available
Item order
Shippable
Weight
Installments
Once per user
Is upgrade
Upgrade type
Upgrade from
Upgrade exclude items
Upgrade price web
Upgrade price mobile
Field values, keyed by field key (each {name, value, type}), e.g. {“size”: {“name”: “Size”, “value”: “large”, “type”: “list”}}: the same keys the product search takes in settings; an empty array when there are none
object
object
Has image
Additional label 1
Additional label 2
Additional label 3
Diameter
Length
Depth
Width
Recurrent
Recurrent price
Recurrent start
Recurrent schedule
SKU
Stock enabled
Stock available
Whether orders are accepted when out of stock
Package quantity
Related items
object
Images (attachments)
object
High resolution URL
Video (only for video attachments)
object
Duration (only when present in metadata)
Files (attachments)
object
Duration (only when present in metadata)
Product details. Deprecated to avoid circular references. Use productId instead.
object
Translations
Action data to be executed when a pricing tier is bought
object
Action data to be executed when a pricing tier is bought as a renewal
object
Price matrix
object
Subtotal amount
Shipping amount
Tax amount
Discount amount
Total amount
Shipping status. “delivered” means digitally delivered (no physical product); “shipped_delivered” is a physical shipment that arrived.
Shipment tracking number: from the shipping provider when it created the shipment, or set by hand on the order. Null when there is none.
Authorization
Shipping price
Tax price
Reference order ID
Source of the payment (such as website or mobile app store)
Payment properties: those sent when the payment was created (such as UTM parameters, coupon code, affiliate info, stripe_mode), and those the system keeps on it (such as renewal_id, or payment method and CRM sync details)
object
Example
{ "price": "12", "price_baseCurrency": "12", "lastUpdate": "2026-09-29 13:22:40", "timestamp": "2026-09-18 14:46:39", "cart": [ { "item": "WhiteBeard\\ECommerce\\ProductItems:133", "price": 12 } ], "shippingStatus": "waiting", "shippingTrackingNumber": "1Z999AA10123456784", "address": "[]", "shipping_address": "[]", "properties": { "utm_source": "newsletter", "renewal_id": 3 }}The order is not awaiting payment (it is paid, failed, reversed or already cancelled)
Payment not found