elias1
1
Hi everyone.
I have a payload that I need to send differnet key:value
pairs. But they are nested.
Tried to find this answer somewhere else but I could not find.
{
"voucher_number":"VN-123456",
"contact":{
"name":"John Doe",
"phone":"123-456-7890",
"email":"example@example.com"
},
"customers":[
{
"customer_type_rate":63293383
},
{
"customer_type_rate":63293383
},
{
"customer_type_rate":63293383
}
],
"note":"Optional booking note"
}
This is the way I am sending the parameters:
But this is the error I am getting that is understood since I need to send them nested.
Therefore, what is the path I should follow to be able to send these parameters?
Why not just paste this into the JSON body instead of using the parameters?
elias1
3
But how will I send the items ? like the name, phone and so on?
It is similar as the url parameters using “[some_name]” then adding it into the payload?
Yes but you use <parameter>
for parameters and you can specify those in the API calls.
elias1
5
Thank you very much I will try it.
system
Closed
6
This topic was automatically closed after 70 days. New replies are no longer allowed.