2

I'm uses Drupal commerce services for mobile commerce. But I don't know how to Post jSON to REST service Cart or Order. With Comment services I"m post JSON successful as below:

URL: [http://myserver.com/services/comment/][1]
METHOD: POST
JSON BODY:
{
    "comment":{
      "comment_body":{
        "und":[
          {"value":"Good job"}
        ]
      },
      "nid":"23",
      "subject":"Drupal Services Comment"
    }
}

I don't know what is JSON Body to POST to Cart or Order Service like that? Anyone Please help me? Thanks

1 Answer 1

0

I found JSON structure for Cart or Order Services. It's something as below:

{
   "type":"commerce_order",
   "commerce_customer_billing":"10",
   "commerce_line_items":
       [
           "11",
           "13",
           "14",
           "15",
           "16"
       ]
}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.