1

There is no option to set store ID in place order API:

rest/default/V1/carts/1/order

Payload has below data only:

{
    "paymentMethod": {
                "method": "banktransfer"
     },
    "billing_address": {
                "email": "[email protected]",
            "region": "New York",
            "region_id": 43,
            "region_code": "NY",
                "country_id": "US",
                "street": ["123 Oak Ave"],
                "postcode": "10577",
                "city": "Purchase",
                "telephone": "512-555-1111",
                "firstname": "Jane",
                "lastname": "Doe"
     }
}

How to set store ID here?

1 Answer 1

0

Pass your storeID in API url

rest/<store-id>/V1/carts/1/order
1
  • Thanks for reply @vishnunath. This is not working for me. I have replaced store-code(default) with my another store-code but it always place order with default store only. Commented Jun 22, 2018 at 10:22

Your Answer

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

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