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