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/funding-recipients \--header 'Authorization: Bearer <access token>' \--header 'Content-Type: application/json' \--header 'Idempotency-Key: 8e03978e-40d5-43e8-bc93-6894a57f9324' \--data '{"recipientType":"privateCorporation","taxId":"12-3456789","charityId":"abc123","doingBusinessAs":"abc123","address":{"address1":"1 Example Ave.","address2":"Example Address Line 2","address3":"Example Address Line 3","city":"Chicago","state":"Illinois","country":"US","postalCode":"60056"},"contactMethods":[{"type":"email","value":"[email protected]"}],"metadata":{"yourCustomField":"abc123"},"owners":[{"firstName":"Jane","middleName":"Helen","lastName":"Doe","dateOfBirth":"1964-03-22","address":{"address1":"1 Example Ave.","address2":"Example Address Line 2","address3":"Example Address Line 3","city":"Chicago","state":"Illinois","country":"US","postalCode":"60056"},"identifiers":[{"type":"nationalId","value":"xxxxx4320"}],"contactMethods":[{"type":"email","value":"[email protected]"}],"relationship":{"equityPercentage":48.5,"title":"CFO","isControlProng":true,"isAuthorizedSignatory":false}}],"fundingAccounts":[{"type":"checking","use":"credit","nameOnAccount":"Jane Doe","paymentMethods":[{"type":"ach","value":{"routingNumber":"123456789","accountNumber":"1234567890"}}],"metadata":{"yourCustomField":"abc123"}}]}'
application/json
{"recipientId": 234,"status": "approved","createdDate": "2024-07-02T15:30:00Z","lastModifiedDate": "2024-07-02T15:30:00Z","recipientType": "privateCorporation","taxId": "12-3456789","charityId": "abc123","doingBuinessAs": "abc123","address": {"address1": "1 Example Ave.","address2": "Example Address Line 2","address3": "Example Address Line 3","city": "Chicago","state": "Illinois","country": "US","postalCode": "60056"},"contactMethods": [{"type": "email",}],"metadata": {"yourCustomField": "abc123"},"owners": [{"ownerId": 4564,"link": {"rel": "owner","href": "https://api.payroc.com/v1/owners/4564","method": "get"}}],"fundingAccounts": [{"fundingAccountId": 123,"status": "approved","link": {"rel": "fundingAccount","href": "https://api.payroc.com/v1/funding-accounts/123","method": "get"}},{"fundingAccountId": 124,"status": "rejected","link": {"rel": "fundingAccount","href": "https://api.payroc.com/v1/funding-accounts/124","method": "get"}}]}