Closed remear closed 10 years ago
This has been fixed.
{
"credits": [
{
"status": "failed",
"description": null,
"links": {
"customer": null,
"destination": "CC4qCBEGm0wYpbaSwV3BhrWB",
"order": null
},
"updated_at": "2014-05-15T21:40:46.215339Z",
"created_at": "2014-05-15T21:40:44.715083Z",
"transaction_number": "CR184-650-7239",
"failure_reason": "Transaction amount exceeds threshold amount.",
"currency": "USD",
"amount": 250001,
"failure_reason_code": "amount-exceeds-limit",
"meta": {},
"href": "/credits/CR4rbuVJWc2qVWpJmS4jESz3",
"appears_on_statement_as": "myawesomesite.com",
"id": "CR4rbuVJWc2qVWpJmS4jESz3"
}
],
"errors": [
{
"status": "Conflict",
"category_code": "amount-exceeds-limit",
"additional": null,
"status_code": 409,
"category_type": "logical",
"extras": {},
"request_id": "OHM9108d58cdc7911e39ae806429171ffad",
"description": "Transaction amount exceeds threshold amount. Your request id is OHM9108d58cdc7911e39ae806429171ffad."
}
],
"links": {
"credits.order": "/orders/{credits.order}",
"credits.customer": "/customers/{credits.customer}",
"credits.destination": "/resources/{credits.destination}",
"credits.reversals": "/credits/{credits.id}/reversals",
"credits.events": "/credits/{credits.id}/events"
}
}
Spec says this should 409. Instead, it throws 400.