curl --location --request POST 'https://identity.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 "Content-Type: application/json"-H "Authorization: <Bearer token>"-H "Idempotency-Key: <UUID v4>"
curl --request post \--url https://api.payroc.com/v1/bank-transfer-payments \--header 'Authorization: Bearer <access token>' \--header 'Content-Type: application/json' \--header 'Idempotency-Key: 8e03978e-40d5-43e8-bc93-6894a57f9324' \--data '{"processingTerminalId":"1234001","order":{"orderId":"OrderRef6543","description":"Large Pepperoni Pizza","amount":4999,"currency":"USD","breakdown":{"subtotal":4347,"tip":{"type":"percentage","percentage":10},"taxes":[{"name":"Sales Tax","rate":5}]}},"customer":{"notificationLanguage":"en","contactMethods":[{"type":"email","value":"[email protected]"}]},"credentialOnFile":{"tokenize":true},"paymentMethod":{"type":"ach","accountType":"checking","nameOnAccount":"Sarah Hazel Hopper","accountNumber":"32183159","routingNumber":"063100277","secCode":"web"}}'
application/json
{"paymentId": "M2MJOG6O2Y","processingTerminalId": "1017","order": {"orderId": "OrderRef6543","dateTime": "2024-07-02T15:30:00Z","description": "Large Pepperoni Pizza","amount": 4999,"currency": "USD","breakdown": {"subtotal": 4347,"tip": {"type": "percentage","amount": 435,"percentage": 10},"taxes": [{"name": "Sales Tax","rate": 5,"amount": 217}]}},"customer": {"contactMethods": [{"type": "email",}],"notificationLanguage": "en"},"bankAccount": {"type": "ach","secCode": "web","accountType": "checking","nameOnAccount": "Sarah Hazel Hopper","accountNumber": "****3159","routingNumber": "063100277","secureToken": {"secureTokenId": "MREF_abc1de23-f4a5-6789-bcd0-12e345678901fa","customerName": "Sarah Hazel Hopper","token": "296753123456","status": "notValidated","link": {"rel": "self","method": "GET","href": "https://api.payroc.com/v1/processing-terminals/1234001/secure-tokens/MREF_abc1de23-f4a5-6789-bcd0-12e345678901fa"}}},"transactionResult": {"type": "payment","status": "ready","authorizedAmount": 4999,"currency": "USD","responseCode": "A","responseMessage": "NoError","processorResponseCode": "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"}}