Cookie Consent by Free Privacy Policy Generator Update cookies preferences


amountstring requiredThe amount is a string representation of a decimal number, rounded to 2 decimal places.
currencystring requiredThe currency in ISO 4217 format. Only "GBP" is supported.

422 Errors

Where a Money object is included in an API request, it will be validated according to the specification above. Invalid Money objects will trigger a 422 Unprocessable Entity response. The following is a list of common examples.

amount is omitted or nullinvalid_object{Money object}.amount Amount field required
amount is less than or equal to 0invalid_objectamount must be greater than 0.00
amount has more than 2 decimal placesinvalid_objectamount. must be a valid ISO 4217 format value
amount is not a decimal number, for example: "free", "1,000", "$2" or an empty stringinvalid_objectThe object provided is not valid
currency is omitted or nullinvalid_object{Money object}.currency Currency field required
currency is not a valid currency code, not all uppercase or an empty stringinvalid_object{Money object}.currency Currency not supported for this merchant
currency is supported by Afterpay, but not valid for the Merchant accountunsupported_currencyAn error occurred

Example Money object

  "amount": "29.99",
  "currency": "GBP"