curl --request POST \
--url 'https://api.payroc.com/v1/funding-recipients' \
--header 'Authorization: Bearer <access-token>' \
--header 'Content-Type: application/json' \
--header 'Idempotency-Key: <uuid>' \
--data '{
"address": {
"address1": "1 Example Ave.",
"address2": "Example Address Line 2",
"address3": "Example Address Line 3",
"city": "Chicago",
"country": "US",
"postalCode": "60056",
"state": "Illinois"
},
"contactMethods": [
{
"type": "email",
"value": "jane.doe@example.com"
},
{
"type": "phone",
"value": "2025550164"
}
],
"doingBusinessAs": "Pizza Doe",
"fundingAccounts": [
{
"nameOnAccount": "Jane Doe",
"paymentMethods": [
{
"type": "ach",
"value": {
"accountNumber": "1234567890",
"routingNumber": "123456789"
}
}
],
"type": "checking",
"use": "credit"
}
],
"metadata": {
"yourCustomField": "abc123"
},
"owners": [
{
"address": {
"address1": "1 Example Ave.",
"city": "Chicago",
"country": "US",
"postalCode": "60056",
"state": "Illinois"
},
"contactMethods": [
{
"type": "email",
"value": "jane.doe@example.com"
},
{
"type": "phone",
"value": "2025550164"
}
],
"dateOfBirth": "1964-03-22",
"firstName": "Jane",
"identifiers": [
{
"type": "nationalId",
"value": "000-00-4320"
}
],
"lastName": "Doe",
"middleName": "Helen",
"relationship": {
"equityPercentage": 48.5,
"isAuthorizedSignatory": false,
"isControlProng": true,
"title": "CFO"
}
}
],
"recipientType": "privateCorporation",
"taxId": "12-3456789"
}'