Sign in to review
Join our community of software reviewers on Subscribed.fyi

Continue With Google
Continue With LinkedIn
Continue Review with Email
Continue with Email
Enter your email to continue.
Continue
Enter your password
Enter your password to finish setting up your account.
Continue
Activate your email
Enter activation code we sent to your email.
Submit
Reset your password
Enter activation code we sent to your email.
Submit
Set your new password
Enter a new password for your account.
Submit
Log in
Provide My Insights
Commerce Layer
Commerce Layer
Commerce Layer
back button Go to Commerce Layer

How to Cancel Commerce Layer (2026)

How to cancel Commerce Layer

To cancel a Commerce Layer order, use the appropriate method based on the order’s status: void the authorization before capture, trigger a full refund after capture via API, or use the Orders App UI for manual refunds.

Before Payment Capture (Void Authorization)

Orders in placed status with authorized but uncaptured payments can be cancelled directly. This automatically voids the payment authorization and sets the order status to cancelled and payment status to cancelled. Use the API to update the order with the _cancel trigger.

  • Send a PATCH request to /api/orders/:id with {"_cancel": true} in the attributes.
  • Example using curl:
    curl -g -X PATCH 
    'https://yourdomain.commercelayer.io/api/orders/xYZkjABcde' 
    -H 'Accept: application/vnd.api+json' 
    -H 'Authorization: Bearer your-access-token' 
    -H 'Content-Type: application/vnd.api+json' 
    -d '{"data": {"type": "orders", "id": "xYZkjABcde", "attributes": {"_cancel": true}}}'
  • Successful response moves the order to cancelled status.

After Payment Capture (Refund)

For captured payments, initiate a refund process. A full refund sets the order to cancelled and payment to refunded; partial keeps it partially_refunded. Trigger via API on the order or related return.

  • Send a PATCH request to /api/orders/:id with {"_refund": amount} (use full captured amount for complete cancellation).
  • Example for full refund:
    curl -g -X PATCH 
    'https://yourdomain.commercelayer.io/api/orders/xYZkjABcde' 
    -H 'Accept: application/vnd.api+json' 
    -H 'Authorization: Bearer your-access-token' 
    -H 'Content-Type: application/vnd.api+json' 
    -d '{"data": {"type": "orders", "id": "xYZkjABcde", "attributes": {"_refund": 100.00}}}'
  • Monitor the refund status; if stuck, use _forward: true to unblock.

Using Orders App UI (Manual Cancellation/Refund)

In the Commerce Layer Orders App, access order details, select Refund from the menu, choose full/partial amount, add a note, and confirm. The order status updates to partially_refunded or cancelled, visible in the timeline.

Additional Considerations

  • Before approval, orders can enter editing status to remove/change items (total ≤ authorized amount), then cancel or stop editing.
  • Placed orders cannot be deleted; cancel or archive via PATCH with market/organization references.
  • For returns from fulfilled orders, create a return, approve/ship/receive it, then refund from the return without cancelling the order.
  • Remove individual items anytime: DELETE /api/line_items/:id for cart items or /api/order_subscription_items/:id for subscriptions.

Always verify order status (e.g., via GET /api/orders/:id) before proceeding, as actions depend on payment/fulfillment states.

Looking for a replacement?

See the best Commerce Layer alternatives, ranked by user reviews and Subscribed score.