API HTTP response example
{
"statusCode": 200,
"body": {
"status": 200,
"orderId": "xwr-123455",
"authorization": "533793",
"last4": "7777",
"brand": "Visa",
"result": {
"time_local_tran": "165407",
"systems_trace_audit_number": "000283",
"success": true,
"retrieval_ref_num": "701016540713",
"resp_code": "00",
"reserved_private4": null,
"proc_code": "000000",
"network_international_id": "0003",
"mti": "0210",
"merchant_id": 485,
"date_local_tran": "0110",
"card_acceptor_terminal_id": "00112478",
"authorization_id_resp": "533793"
},
"errors": [],
"_signature": "2e9d23b194905314561b8c750f7a74447aa7ce262c9c4d4589a26bc8aad046bce455f5ab2bfb5c9e5e75da2030550b91627d4020c82e5b
a55f6c7ac4b692b8191655f17831b2bca8bf85eade12d5918bcd9b10fe41bfc1f9115baf6c3b9de13cac7170e350bcc4a46bb58d2abc18396c8377b5e5544809aa
41beab114d717ec6"
},
"headers": {
"...": "..."
},
"request": {
"uri": {
"...": "..."
},
"method": "post",
"headers": {
"...": "..."
}
}
}
{
"status": 200,
"orderId": "TEST 1",
"authorization": "533793",
"amount": 1,
"currency": "CRC",
"result": {
"time_local_tran": "165407",
"systems_trace_audit_number": "000283",
"success": true,
"retrieval_ref_num": "701016540713",
"resp_code": "00",
"reserved_private4": null,
"proc_code": "000000",
"network_international_id": "0003",
"mti": "0210",
"merchant_id": 1280,
"date_local_tran": "0110",
"card_acceptor_terminal_id": "00112478",
"authorization_id_resp": "533793"
},
"errors": [],
"callback": null,
"_signature": "4899d010ded0a9538fb131a588bc81cd0e1b0c614ce7e28932c7abd8870f913c374f2af86b7aefff490bcd728ee535e3ff1dee0f3f10b282fda102321acd1db665c6dc8af6c48a01b2d38d9f2c86a6
75a6de86deb1caec7402ea1b468f337df01bc22ef0bf64f6df9b032e79bed75a9827455bfe3559715807be47716ecd4ec9",
"last4": "4242",
"brand": "Visa",
"tokenizeResp": {
"status": 201,
"requestId": "TEST 1",
"result": {
"token": "c833e9db-2c0c-4a41-9be9-5253f7d5daf2",
"last_digits": "4242",
"khash": "424242HEQ9IFOU6WIPLI",
"bin": "424242"
},
"expiration_date": "2209",
"brand": "Visa",
"nickname": "Visa-4242",
"cardHolder": "Jhon Doe",
"errors": [],
"_signature": "3896228bc4bd29b62f84793e9ed78392cd6c70b833f4910eb72273aaaa54d75d08a050f2b2195451b0428e4cf85afa51e0985e4ba75e0363ea86633e9bcf9f5846c504f76abf96f5b0d988e
042d5a59107192798bd520847f6665e98d7e34bfe27c917ed53562a936b80e13356e230b0ac3361f1e826cc2f32f1c79f2aa6cd40"
}
}
Javascript example of the payment endpoint request. This function also obtains the JSON “body” received in response.