x-api-key
parameter in the header of your request.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"}
Content-Type
: Include application/json
as the value for this parameter.Authorization
: Include your Bearer token in this parameter.curl-H "Content-Type: application/json"-H "Authorization: <Bearer token>"
curl --request get \--url https://api.payroc.com/v1/funding-balance
application/json
{"limit": 2,"count": 2,"hasMore": true,"links": [{"rel": "previous","method": "get","href": "https://api.payroc.com/v1/funding-balance?before=65&limit=2"},{"rel": "next","method": "get","href": "https://api.payroc.com/v1/funding-balance?after=66&limit=2"}],"data": [{"merchantId": "65","funds": 120000,"pending": 50050,"available": 69950,"currency": "USD"},{"merchantId": "66","funds": 50000,"pending": 0,"available": 50000,"currency": "USD"}]}
Content-Type
: Include application/json as the value for this parameter.Authorization
: Include your Bearer token in this parameter.Idempotency-Key
: Include a UUID v4 to make the request idempotent.curl-H "Content-Type: application/json"-H "Authorization: <Bearer token>"-H "Idempotency-Key: <UUID v4>"
curl --request post \--url https://api.payroc.com/v1/funding-instructions \--header 'Content-Type: application/json' \--header 'Idempotency-Key: abc123' \--data '{"merchants":[{"merchantId":"123456","recipients":[{"fundingAccountId":5432425374,"paymentMethod":"ACH","amount":{"value":12350,"currency":"USD"},"metadata":{"customerId":"2345"}}]}],"metadata":{"internalInstructionRef":"abcdef"}}'
application/json
{"instructionId": 123,"createdDate": "2021-09-05T13:15:00.000Z","lastModifiedDate": null,"status": "accepted","merchants": [{"merchantId": "99999","recipients": [{"status": "accepted","fundingAccountId": 67890,"paymentMethod": "ACH","amount": {"value": 12350,"currency": "USD"},"metadata": {"customerId": "2345"},"link": {"rel": "fundingAccount","method": "get","href": "https://api.payroc.com/v1/funding-accounts/67890"}}],"link": {"rel": "merchant","method": "get","href": "https://api.payroc.com/v1/merchants/99999"}}],"metadata": {"instructionRef": "abcd"}}