curl --request POST \
--url https://api.dancity.app/api/external/v1/data/buy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--header 'channel: <api-key>' \
--data '
{
"plan": "<string>",
"phone": "08012345678",
"wallettype": "main",
"pin": "<string>",
"customerRef": "<string>",
"saveAsBeneficiary": true,
"beneficiaryName": "<string>",
"promocode": "<string>",
"deviceKey": "<string>"
}
'