Error object

Errors attributes

Field
Type
Description

type

enum

The type of error returned. One of “api_error”, “authentication_error”, “permission_error”, “voucher_error”, or “invalid_request_error”.

charge_id

string

For voucher errors, the ID of the failed charge.

decline_code

string

For voucher errors resuting from voucher issuer decline, a short string indicating the reason.

message

string

A human-readable message providing more details about the error.

param

string

If the error is parameter-specific, the parameter related to the error.

Error structure example

{
	"error": {
		"message": "No such voucher found",
		"param": "pin",
		"type": "invalid_request_error"
	}
}

Last updated