curl --request POST \
--url https://api.cadanapay.com/v1/users/{userId}/beneficiaries \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "John Doe",
"email": "john.doe@example.com",
"countryCode": "PH",
"currency": "PHP",
"paymentDetails": {
"preferredMethod": "bank",
"bank": {
"accountName": "John Doe",
"accountNumber": "123456789",
"bankName": "Philippines Bank",
"bankCode": "001",
"currency": "PHP",
"address": {
"line1": "Mabini St",
"line2": "Bldg 2",
"city": "Manila",
"postalCode": "1000",
"state": "Metro Manila",
"countryCode": "PH"
}
}
}
}
'