#bookmypnr

1 messages · Page 1 of 1 (latest)

spare belfryBOT
winter drift
#

hi! an example of what exactly?

urban karma
#

price_data

#

We need to change dynamic pricing

winter drift
#

makes sense, so yes you can use price_data for that. What have you tried so far and what problem do you have?

urban karma
#

but it doesnot work

winter drift
#

yep it wouldn't since that is JSON and the API does not accept JSON. Why are you forming the URL-encoded POST data like that instead of using one of our client libraries?

#

but for example it would look like items[0][price_data][unit_amount]=200&items[0][price_data][product]=orderid_1234&items[0][price_data][currency]=eur if you were doing it this way.

urban karma
#

client libraries?

winter drift
urban karma
#

it still gives 400 bad request

winter drift
#

you can look at your API logs and see why

#

that will show you the request you made and the response(which will have an error message).