Ask a Question

Ask a Question
Back to All

Problem Sending Create Order Request

Hi. We are using the create order endpoint under channel api to send an order to a restaurant. We are using php and have tried curl and guzzle with no luck. The post request works when we enter a hard coded string of our order data, but does not when we use a variable, or pull the string from a text file. We are using the api explorer on the website as a template for our request.

We are using json encode with JSON_NUMERIC_CHECK flag and appending single quotes around it before sending. and when using the variable, it doesn't work but when we hardcode the string which is inside the variable, it does work.

Any ideas?
Thanks