{
"data": [
{
"id": "xYZkjABcde",
"type": "authorizations",
"links": {
"self": "https://yourdomain.commercelayer.io/api/authorizations/xYZkjABcde"
},
"attributes": {
"number": "42/T/001",
"type": "authorizations",
"currency_code": "EUR",
"amount_cents": 1500,
"amount_float": 15.0,
"formatted_amount": "€15,00",
"succeeded": false,
"message": "Accepted",
"error_code": "00001",
"error_detail": "Already settled",
"token": "xxxx-yyyy-zzzz",
"gateway_transaction_id": "xxxx-yyyy-zzzz",
"created_at": "2018-01-01T12:00:00.000Z",
"updated_at": "2018-01-01T12:00:00.000Z",
"reference": "ANY-EXTERNAL-REFEFERNCE",
"reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
"metadata": {
"foo": "bar"
},
"cvv_code": "000",
"cvv_message": "validated",
"avs_code": "000",
"avs_message": "validated",
"fraud_review": "passed",
"capture_amount_cents": 500,
"capture_amount_float": 5.0,
"formatted_capture_amount": "€5,00",
"capture_balance_cents": 1000,
"capture_balance_float": 10.0,
"formatted_capture_balance": "€10,00",
"void_balance_cents": 1500,
"void_balance_float": 15.0,
"formatted_void_balance": "€15,00"
},
"relationships": {
"order": {
"links": {
"self": "https://yourdomain.commercelayer.io/api/authorizations/xYZkjABcde/relationships/order",
"related": "https://yourdomain.commercelayer.io/api/authorizations/xYZkjABcde/order"
}
},
"attachments": {
"links": {
"self": "https://yourdomain.commercelayer.io/api/authorizations/xYZkjABcde/relationships/attachments",
"related": "https://yourdomain.commercelayer.io/api/authorizations/xYZkjABcde/attachments"
}
},
"events": {
"links": {
"self": "https://yourdomain.commercelayer.io/api/authorizations/xYZkjABcde/relationships/events",
"related": "https://yourdomain.commercelayer.io/api/authorizations/xYZkjABcde/events"
}
},
"versions": {
"links": {
"self": "https://yourdomain.commercelayer.io/api/authorizations/xYZkjABcde/relationships/versions",
"related": "https://yourdomain.commercelayer.io/api/authorizations/xYZkjABcde/versions"
}
},
"captures": {
"links": {
"self": "https://yourdomain.commercelayer.io/api/authorizations/xYZkjABcde/relationships/captures",
"related": "https://yourdomain.commercelayer.io/api/authorizations/xYZkjABcde/captures"
}
},
"voids": {
"links": {
"self": "https://yourdomain.commercelayer.io/api/authorizations/xYZkjABcde/relationships/voids",
"related": "https://yourdomain.commercelayer.io/api/authorizations/xYZkjABcde/voids"
}
}
},
"meta": {
"mode": "test"
}
},
{
"other": "... 9 authorizations (first page)"
}
],
"meta": {
"record_count": 140,
"page_count": 14
},
"links": {
"first": "https://yourdomain.commercelayer.io/api/authorizations?page[number]=1&page[size]=10",
"next": "https://yourdomain.commercelayer.io/api/authorizations?page[number]=2&page[size]=10",
"last": "https://yourdomain.commercelayer.io/api/authorizations?page[number]=14&page[size]=10"
}
}