Custom charge request

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 StatusDescriptionCode (optional)
400Charge amount is not rounded to hundredths or less than 0CHARGE_AMOUNT_INVALID
400Invalid currency code usedCHARGE_CURRENCY_INVALID
400Description is empty or exceeds 255 characters limitCHARGE_DESCRIPTION_INVALID
400Invalid UUID keyCHARGE_IDEMPOTENCY_KEY_INVALID
400UUID key was used for another requestCHARGE_IDEMPOTENCY_KEY_NOT_UNIQUE
402Payment was declined by the bankCHARGE_DECLINED
402Store doesn't have any connected payment methodsCHARGE_PAYMENT_SOURCE_MISSING
402Charge limit exceededCHARGE_LIMIT_EXCEEDED
403Token doesn't exist, or the charge scope is missing

Error response body (optional)

FieldTypeDescription
errorMessagestringError message
errorCodestringError code
Language
Click Try It! to start a request and see the response here!