curl --location --request POST 'https://identity.uat.payroc.com/authorize' --header 'x-api-key: <api key>'
{
"access_token": "eyJhbGc....adQssw5c",
"expires_in": 3600,
"scope": "service_a service_b",
"token_type": "Bearer"
}
curl
-H "Authorization: Bearer <access token>"
Card scheme | Card number | Requires CVV? |
---|---|---|
American Express | 3400000000000000 | Yes |
Debit MasterCard | 5100270000000007 | Yes |
Diners | 3600000000000008 | No |
Discover | 6011000000000004 | Yes |
JCB | 3528000000000007 | Yes |
Maestro | 5000330000000000 | Yes |
MasterCard | 5001650000000000 | Yes |
Visa Credit | 4539858876047062 | Yes |
Visa Debit | 4000060000000006 | Yes |
Visa Electron | 4001020000000009 | No |
Card number | Benefit category | PIN |
---|---|---|
6007602801003837964 | Food Stamp | 1234 |
6007602801003837965 | Food Stamp | 1234 |
060076028010038379673 | Cash Only | 1234 |
6007602801003837968 | Cash Only | 1234 |
6007602801003837969 | Cash Only | 1234 |
6007602801003837971 | Inactive card | 1234 |
Value | Response | Example |
---|---|---|
01 | Declined | 501 |
02 | Referral | 1002 |
03 | CVV failure | 1403 |
Any other | Authorized | 4541 |
{"paymentId": "F1I17KBL0E","processingTerminalId": "3204001","order": {"orderId": "Test_001","dateTime": "2023-05-24T14:44:20.63+01:00","amount": 4000,"currency": "USD"},"card": {"type": "Visa Credit","entryMethod": "keyed","cardNumber": "444433******1111","expiryDate": "0334","securityChecks": {"cvvResult": "M","avsResult": "Y"}},"paymentResult": {"type": "sale","status": "ready","approvalCode": "OK14472","authorizedAmount": 4000,"currency": "USD","responseCode": "A","responseMessage": "OK14472"}}
{"paymentId": "CBA7UOVS0J","processingTerminalId": "3204001","order": {"orderId": "Test_005","dateTime": "2023-05-24T14:48:39.548+01:00","amount": 4160,"currency": "USD","breakdown": {"subtotal": 4000,"surcharge": {"bypass": false,"amount": 160,"percentage": 4.0}}},"card": {"type": "Visa Credit","entryMethod": "keyed","cardNumber": "444433******1111","expiryDate": "0334","securityChecks": {"cvvResult": "M","avsResult": "Y"}},"paymentResult": {"type": "sale","status": "ready","approvalCode": "OK14476","authorizedAmount": 4160,"currency": "USD","responseCode": "A","responseMessage": "OK14476"}}
false
.{"paymentId": "C7BHY7KWCW","processingTerminalId": "3204001","operator": "Davi-Crisostomo-CHP","order": {"orderId": "1234567890Q1","dateTime": "2023-06-20T21:03:30.925+01:00","description": "PreAuth Card Transaction (WEB) - Sale - KEYED (plain_text) with CVV","amount": 12346,"currency": "USD"},"card": {"type": "Visa Credit","entryMethod": "keyed","cardholderName": "Davi","cardNumber": "444433******1111","expiryDate": "1223","securityChecks": {"cvvResult": "M","avsResult": "Y"}},"transactionResult": {"type": "sale","status": "pending","approvalCode": "OK24233","authorizedAmount": 12346,"currency": "USD","responseCode": "A","responseMessage": "OK24233"}}
{"paymentId": "C7BHY7KWCW","processingTerminalId": "3204001","operator": "Davi-Crisostomo-CHP","order": {"orderId": "1234567890Q1","dateTime": "2023-06-20T21:03:31+01:00","description": "PreAuth Card Transaction (WEB) - Sale - KEYED (plain_text) with CVV","amount": 6532,"currency": "USD"},"card": {"type": "Visa Credit","entryMethod": "keyed","cardholderName": "Davi","cardNumber": "444433******1111","expiryDate": "1223","securityChecks": {"cvvResult": "M","avsResult": "Y"}},"transactionResult": {"type": "sale","status": "ready","approvalCode": "OK24233","authorizedAmount": 6532,"currency": "USD","responseCode": "A","responseMessage": "OK24233"}}
{"paymentId": "C7BHY7KWCW","processingTerminalId": "3204001","operator": "ROBBIE-KIRWAN-adjust","order": {"orderId": "1234567890Q1","dateTime": "2023-06-20T21:03:31+01:00","description": "PreAuth Card Transaction (WEB) - Sale - KEYED (plain_text) with CVV","amount": 400,"currency": "USD"},"card": {"type": "Visa Credit","entryMethod": "keyed","cardholderName": "Davi","cardNumber": "444433******1111","expiryDate": "1223","securityChecks": {"cvvResult": "M","avsResult": "Y"}},"transactionResult": {"type": "sale","status": "ready","approvalCode": "OK24233","authorizedAmount": 400,"currency": "USD","responseCode": "A","responseMessage": "OK24233"}}
{"secureTokenId": "MREF_1a93f3a6-9029-419f-9e87-3e2db6f0ae85uA","processingTerminalId": "3204001","source": {"type": "card","cardholderName": "","cardNumber": "444433******1111","expiryDate": "1226"},"token": "2967538502417872","status": "cvv_validated"}
{"paymentId": "C8Y177VHWR","processingTerminalId": "3204001","order": {"orderId": "Test_006","dateTime": "2023-05-24T15:21:01.037+01:00","amount": 4000,"currency": "USD"},"card": {"type": "Visa Credit","entryMethod": "keyed","cardNumber": "444433******1111","expiryDate": "1226","secureToken": {"secureTokenId": "MREF_1a93f3a6-9029-419f-9e87-3e2db6f0ae85uA","customerName": "","token": "2967538502417872","status": "cvv_validated","link": {"rel": "self","method": "GET","href": "https://api.uat.payroc.com/v1/processing-terminals/3204001/secure-tokens/MREF_1a93f3a6-9029-419f-9e87-3e2db6f0ae85uA"}},"securityChecks": {"cvvResult": "M","avsResult": "Y"}},"transactionResult": {"type": "sale","status": "ready","approvalCode": "OK14486","authorizedAmount": 4000,"currency": "USD","responseCode": "A","responseMessage": "OK14486","cardSchemeReferenceId": "JxDfFMHyOE2lyQJ2MnFp"}}
{"secureTokenId": "MREF_fe532d13-d330-4872-b646-61750144030bG4","processingTerminalId": "3204001","customer": {"contactMethods": [{"type": "email",}]},"source": {"type": "card","cardholderName": "Test Card 13 Uat Usa","cardNumber": "374245*****1003","expiryDate": "1224"},"token": "2967538321403871","status": "cvv_validated"}
{"paymentPlanId": "PaymentPlanTest","processingTerminalId": "3204001","name": "Davi Crisostomo","description": "Payment Plan creation","currency": "USD","setupOrder": {"amount": 11000,"description": "Setup Amount"},"length": 24,"type": "manual","frequency": "monthly","onUpdate": "update","onDelete": "complete"}
{"paymentPlanId": "PaymentPlanTest","processingTerminalId": "3204001","name": "Davi Crisostomo","description": "Payment Plan creation","currency": "USD","setupOrder": {"amount": 11000,"description": "Setup Amount"},"length": 24,"type": "automatic","frequency": "weekly","onUpdate": "update","onDelete": "complete"}
{"subscriptionId": "SubTest","processingTerminalId": "3204001","paymentPlan": {"paymentPlanId": "PaymentPlanTest","name": "Davi Crisostomo","link": {"rel": "self","method": "GET","href": "https://api.uat.payroc.com/v1/processing-terminals/3204001/payment-plans/PaymentPlanTest"}},"secureToken": {"secureTokenId": "MREF_1a93f3a6-9029-419f-9e87-3e2db6f0ae85uA","customerName": "","token": "2967538502417872","status": "cvv_validated","link": {"rel": "self","method": "GET","href": "https://api.uat.payroc.com/v1/processing-terminals/3204001/secure-tokens/MREF_1a93f3a6-9029-419f-9e87-3e2db6f0ae85uA"}},"name": "Davi Crisostomo","description": "Create Subscription from ICC payment","currency": "USD","setupOrder": {"orderId": "TheOrderID","amount": 11000,"description": "Desription of SETUPORDER"},"recurringOrder": {"amount": 11000,"description": "RECURRING Order price"},"currentState": {"status": "active","nextDueDate": "2023-08-02","paidInvoices": 0,"outstandingInvoices": 122},"startDate": "2023-08-02","endDate": "2025-12-02","length": 24,"type": "automatic","frequency": "weekly","pauseCollectionFor": 0}
{"paymentId": "KOHM1D3EZH","processingTerminalId": "3204001","operator": "Davi Crisostomo","order": {"orderId": "UniqueValueForOrderID","dateTime": "2023-06-20T20:25:57.641+01:00","description": "Subscription Payment - Manual","amount": 11000,"currency": "USD"},"card": {"type": "Visa Credit","entryMethod": "keyed","cardNumber": "444433******1111","expiryDate": "1226","secureToken": {"secureTokenId": "MREF_1a93f3a6-9029-419f-9e87-3e2db6f0ae85uA","customerName": "","token": "2967538502417872","status": "cvv_validated","link": {"rel": "self","method": "GET","href": "https://api.uat.payroc.com/v1/processing-terminals/3204001/secure-tokens/MREF_1a93f3a6-9029-419f-9e87-3e2db6f0ae85uA"}},"securityChecks": {"cvvResult": "M","avsResult": "Y"}},"transactionResult": {"type": "sale","status": "ready","approvalCode": "OK24225","authorizedAmount": 11000,"currency": "USD","responseCode": "A","responseMessage": "OK24225","cardSchemeReferenceId": "nkMX2G7ZqPavgbYiYacQ"}}
{"subscriptionId": "SubTest","processingTerminalId": "3204001","paymentPlan": {"paymentPlanId": "PaymentPlanTest","name": "Davi Crisostomo","link": {"rel": "self","method": "GET","href": "https://api.uat.payroc.com/v1/processing-terminals/3204001/payment-plans/PaymentPlanTest"}},"secureToken": {"secureTokenId": "MREF_1a93f3a6-9029-419f-9e87-3e2db6f0ae85uA","customerName": "","token": "2967538502417872","status": "cvv_validated","link": {"rel": "self","method": "GET","href": "https://api.uat.payroc.com/v1/processing-terminals/3204001/secure-tokens/MREF_1a93f3a6-9029-419f-9e87-3e2db6f0ae85uA"}},"name": "Davi Crisostomo","description": "NEW DESCRIPTION FOR SUBSCRIPTION","currency": "USD","setupOrder": {"orderId": "TheOrderID","amount": 11000,"description": "Desription of SETUPORDER"},"recurringOrder": {"amount": 11000,"description": "RECURRING Order price"},"currentState": {"status": "active","nextDueDate": "2023-08-02","paidInvoices": 1,"outstandingInvoices": 121},"startDate": "2023-08-02","endDate": "2025-12-02","length": 24,"type": "automatic","frequency": "weekly","pauseCollectionFor": 0}
{"subscriptionId": "SubTest","processingTerminalId": "3204001","paymentPlan": {"paymentPlanId": "PaymentPlanTest","name": "Davi Crisostomo","link": {"rel": "self","method": "GET","href": "https://api.uat.payroc.com/v1/processing-terminals/3204001/payment-plans/PaymentPlanTest"}},"secureToken": {"secureTokenId": "MREF_1a93f3a6-9029-419f-9e87-3e2db6f0ae85uA","customerName": "","token": "2967538502417872","status": "cvv_validated","link": {"rel": "self","method": "GET","href": "https://api.uat.payroc.com/v1/processing-terminals/3204001/secure-tokens/MREF_1a93f3a6-9029-419f-9e87-3e2db6f0ae85uA"}},"name": "Davi Crisostomo","description": "NEW DESCRIPTION FOR SUBSCRIPTION","currency": "USD","setupOrder": {"orderId": "TheOrderID","amount": 11000,"description": "Desription of SETUPORDER"},"recurringOrder": {"amount": 11000,"description": "RECURRING Order price"},"currentState": {"status": "cancelled","nextDueDate": "2023-08-02","paidInvoices": 1,"outstandingInvoices": 121},"startDate": "2023-08-02","endDate": "2025-12-02","length": 24,"type": "automatic","frequency": "weekly","pauseCollectionFor": 0}
{"subscriptionId": "SubTest","processingTerminalId": "3204001","paymentPlan": {"paymentPlanId": "PaymentPlanTest","name": "Davi Crisostomo","link": {"rel": "self","method": "GET","href": "https://api.uat.payroc.com/v1/processing-terminals/3204001/payment-plans/PaymentPlanTest"}},"secureToken": {"secureTokenId": "MREF_1a93f3a6-9029-419f-9e87-3e2db6f0ae85uA","customerName": "","token": "2967538502417872","status": "cvv_validated","link": {"rel": "self","method": "GET","href": "https://api.uat.payroc.com/v1/processing-terminals/3204001/secure-tokens/MREF_1a93f3a6-9029-419f-9e87-3e2db6f0ae85uA"}},"name": "Davi Crisostomo","description": "NEW DESCRIPTION FOR SUBSCRIPTION","currency": "USD","setupOrder": {"orderId": "TheOrderID","amount": 11000,"description": "Desription of SETUPORDER"},"recurringOrder": {"amount": 11000,"description": "RECURRING Order price"},"currentState": {"status": "active","nextDueDate": "2023-08-02","paidInvoices": 1,"outstandingInvoices": 121},"startDate": "2023-08-02","endDate": "2025-12-02","length": 24,"type": "automatic","frequency": "weekly","pauseCollectionFor": 0}
{"channel": "POS","processingTerminalId": "3204001","operator": "Davi-CHP","order": {"orderId": "CC-12","description": "BT ACH - Sale with CC","currency": "USD","amount": 9700},"paymentMethod": {"type": "ach","accountType": "checking","secCode": "web","nameOnAccount": "Davi","accountNumber": "49100130","routingNumber": "292735277"}}