curl --request POST \
--url https://api.cadanapay.com/v1/beneficiaries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "John Doe",
"email": "john.doe@example.com",
"countryCode": "PH",
"currency": "PHP",
"kyc": {
"firstName": "John",
"lastName": "Doe",
"dateOfBirth": "1985-12-20",
"countryCode": "PH",
"idType": "PASSPORT",
"idNumber": "PA1234567",
"idFileFront": "517075a2-17db-469f-9481-eb8347cb920c"
},
"paymentDetails": {
"preferredMethod": "bank",
"bank": {
"accountName": "John Doe",
"accountNumber": "123456789",
"bankName": "Philippines Bank",
"bankCode": "001",
"address": {
"line1": "Mabini St",
"line2": "Bldg 2",
"city": "Manila",
"postalCode": "1000",
"countryCode": "PH"
}
}
}
}
'