POST

Charge Order


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Charges payments for an order using one or more payment methods.

Supports charging through multiple payment methods in a single request:

  • Regular payments: Charges using the customer's payment method (credit card, PayPal, etc.).
  • Gift cards: Redeems gift card codes
  • Memberships: Charges membership credits or benefits for specific line items.

The method processes all specified payment types and returns the created payments along with the updated order transactions.

A successful charge returns payments with a status of APPROVED, AUTHORIZED, PENDING, or PENDING_MERCHANT. PENDING and PENDING_MERCHANT payments are confirmed asynchronously, so poll the order's transactions or listen for payment events rather than treating the response as final.

Endpoint
POST
https://www.wixapis.com/ecom/v1/order-billing/charge-order

Errors
400Invalid Argument

There are 2 errors with this status code.

404Not Found

There are 2 errors with this status code.

409Already Exists

There are 3 errors with this status code.

428Failed Precondition

There are 12 errors with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?