post https://app.ecwid.com/api/v3//billing/transactions
Access scopes
Requires the following access scope: charge
Errors
In case of an error, Ecwid responds with an error HTTP status code and JSON-formatted body with an error description:
HTTP Status | Description | Code (optional) |
---|---|---|
400 | Charge amount is not rounded to hundredths or less than 0 | CHARGE_AMOUNT_INVALID |
400 | Invalid currency code used | CHARGE_CURRENCY_INVALID |
400 | Description is empty or exceeds 255 characters limit | CHARGE_DESCRIPTION_INVALID |
400 | Invalid UUID key | CHARGE_IDEMPOTENCY_KEY_INVALID |
400 | UUID key was used for another request | CHARGE_IDEMPOTENCY_KEY_NOT_UNIQUE |
402 | Payment was declined by the bank | CHARGE_DECLINED |
402 | Store doesn't have any connected payment methods | CHARGE_PAYMENT_SOURCE_MISSING |
402 | Charge limit exceeded | CHARGE_LIMIT_EXCEEDED |
403 | Token doesn't exist, or the charge scope is missing |
Error response body (optional)
Field | Type | Description |
---|---|---|
errorMessage | string | Error message |
errorCode | string | Error code |