Attributes
Attribute | Type | Description |
---|---|---|
| string | The amount is a string representation of a decimal number, rounded to 2 decimal places. |
| string | The currency in ISO 4217 format. Only "EUR" 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.
Example | errorCode | message |
---|---|---|
|
| {Money object}.amount Amount field required |
|
| amount. must be a valid ISO 4217 format value |
|
| Amount must be a valid ISO 4217 format value |
|
| {Money object}.amount Amount field must be a valid ISO 4217 format value |
|
| {Money object}.currency Currency field required |
|
| {Money object}.currency Currency not supported for this merchant |
|
| An error occurred |
{
"amount": "29.99",
"currency": "EUR"
}