Hello Everyone,
I was trying to add customer information alongwith creating an order on sandbox account using API but cannot do so. I can create order successfully but customer info. doesn't went along with it. Below is the json I was using within json format of order creation:
"customers": [ { "customerSince": "", "firstName": "Just", "lastName": "Happen", "addresses": [ { "zip": "123456", "country": "India", "address3": "street 3", "address2": "street 2", "city": "city", "address1": "#123", "id": "", "state": "Haryana" } ], "emailAddresses": [ { "emailAddress": "rohitpandey@gmail.com", "id": "", "verifiedTime": "" } ], "cards": [ { "last4": "1234", "firstName": "", "lastName": "", "cardType": "", "id": "", "first6": "987654", "expirationDate": "", "token": "" } ], "id": "", "phoneNumbers": [ { "phoneNumber": "7696070761", "id": "" } ] } ],
Please suggest what I may be doing wrong?
Thanks!