Quantcast
Channel: Opinion: Shopify Community - Shopify APIs & SDKs
Viewing all articles
Browse latest Browse all 25503

Getting 400 bad request when creating a customer using post request and JSON by Utpal Maity

$
0
0

Hi All,

I am ver new in the Shopify development and recently I have got a project where I have to use Shopify provided APIs for like creating Customers , Product etc. So for API testing puspose I want to craete a customer using test data as provided in the Shopify API documentation but it is giving bad request error. I am giving the data which I am posting.Please review it and tell me if I am making any mistake.

 

{
  "customer": {
    "first_name": "Steve",
    "last_name": "Lastnameson",
    "email": "steve.lastnameson@example.com",
    "verified_email": true,
    "addresses": [
      {
        "address1": "123 Oak St",
        "city": "Ottawa",
        "province": "ON",
        "phone": "555-1212",
        "zip": "123 ABC",
        "last_name": "Lastnameson",
        "first_name": "Mother",
        "country": "CA"
      }
    ]
  }
}

 

Thanks and Regards

Utpal Maity


Viewing all articles
Browse latest Browse all 25503


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>