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 | Verification |
---|---|---|
Visa | 4761 7300 0000 0011 | Online only |
Mastercard | 5413 3300 8960 4111 | Online only |
Visa | 4761 7310 0000 0043 | Online or offline |
Mastercard | 5413 3300 8960 4111 | Online or offline |
Visa | 4761 7310 0000 0043 | Online or offline |
Mastercard | 5413 3300 8960 4111 | Online or offline |
Value | Response | Example |
---|---|---|
01 | Declined | 501 |
02 | Referral | 1002 |
03 | CVV failure | 1403 |
Any other | Authorized | 4541 |
{"operator": "jbloggs","processingTerminalId": "1021","order": {"orderId": "4fd4-99bc","currency": "USD","amount": 1000,"orderBreakdown": {"subtotalAmount": 1000}},"customizationOptions": {"entryMethod": "deviceRead"},"autoCapture": true,"processAsSale": false}
inProgress
, our gateway waits up to a minute for the status to change before it returns a response. Send GET requests until the value for status changes to completed
.
failed
or canceled
, contact your Payroc Integration Engineer.{"paymentInstructionId": "3743a9165d134678a9100ebba3b29597","status": "completed","link": {"rel": "payment","method": "GET","href": "https://api.payroc.com/v1/payments/DD6ZDQU7L2"}}
{"operator": "XYZ","terminal": 1021,"order": {"orderId": "4fd4-99bc","description": "Payment Instruction","currency": "USD","totalAmount": 10.00,"orderBreakdown": {"subtotalAmount": 10.00,"surcharge": {"bypass": "true"},"taxes": [{"name": "TAX10","rate": 10.0}],"tip": {}}},"customizationOptions": {"entryMethod": "DEVICE_READ"},"customer": {"name": "First Last","dateOfBirth": "2023-01-01","referenceNumber": "ABCDEFGH","billingAddress": {"line1": "billing Addr Line1","line2": "billing Addr Line2","city": "billCity","state": "AZ","country": "US","postalCode": 12345},"shippingAddress": {"name": "shipping recipient name","line1": "shipping Addr Line1","line2": "shipping Addr Line2","city": "shipCity","state": "AZ","country": "US","postalCode": "SH12345"},"phone": "+353891234567","notificationLanguage": "en"},"autoCapture": true,"processAsSale": false}
{"operator": "XYZ","terminal": 1021,"order": {"orderId": "TestPBC-123","description": "Payment Instruction","currency": "USD","totalAmount": 12100,"orderBreakdown": {"subtotalAmount": 12100,"surcharge": {"bypass": "true"},"taxes": [{"name": "TAX10","rate": 10.0}],"tip": {"percentage": 10,"type": "PERCENTAGE"}}},"customizationOptions": {"entryMethod": "DEVICE_READ"},"autoCapture": true,"processAsSale": false}
inProgress
, our gateway waits up to a minute for the status to change before it returns a response. Send GET requests until the value for status changes to completed
.
failed
or canceled
, contact your Payroc Integration Engineer.{"paymentInstructionId": "3743a9165d134678a9100ebba3b29597","status": "completed","link": {"rel": "payment","method": "GET","href": "https://api.payroc.com/v1/payments/DD6ZDQU7L2"}}
{"paymentId": "DD6ZDQU7L2","processingTerminalId": "1021","operator": "Postman","order": {"orderId": "4fd4-99bc","dateTime": "2023-07-26T16:42:25.018Z","description": "Example payment","amount": 1000,"currency": "USD"},"customer": {"shippingAddress": {}},"card": {"type": "MasterCard","entryMethod": "keyed","cardNumber": "500165******0000","expiryDate": "0328","securityChecks": {"cvvResult": "M","avsResult": "Y"}},"transactionResult": {"type": "sale","status": "ready","approvalCode": "OK3","authorizedAmount": 1000,"currency": "USD","responseCode": "A","responseMessage": "OK3"}}
{"operator": "jbloggs","processingTerminalId": "1021","order": {"orderId": "4fd4-99bc","currency": "USD","amount": 1000},"customizationOptions": {"entryMethod": "manualEntry"}}
inProgress
, our gateway waits up to a minute for the status to change before it returns a response. Send GET requests until the value for status changes to completed
.
failed
or canceled
, contact your Payroc Integration Engineer.{"refundInstructionId": "3743a9165d134678a9100ebba3b29597","status": "completed","link": {"rel": "refunds","method": "GET","href": "https://api.payroc.com/v1/refunds/DD6ZDQU7L27"}}
{"paymentId": "DD6ZDQU7L2","processingTerminalId": "1021","operator": "Postman","order": {"orderId": "4fd4-99bc","dateTime": "2023-07-26T16:42:25.018Z","description": "Example payment","amount": 1000,"currency": "USD"},"customer": {"shippingAddress": {}},"card": {"type": "MasterCard","entryMethod": "keyed","cardNumber": "500165******0000","expiryDate": "0328","securityChecks": {"cvvResult": "M","avsResult": "Y"}},"transactionResult": {"type": "sale","status": "ready","approvalCode": "OK3","authorizedAmount": 1000,"currency": "USD","responseCode": "A","responseMessage": "OK3"}}