Post

1 follower Follow
0
Avatar

Customer API Creation with JSON

On the API Sandbox - I am trying to create a customer with the following JSON - it results in a "There was an internal server error."

The same set of data with XML input works fine - what is wrong with it, can't figure out.

{
"Guid":"6da12781-b7fb-480a-8019-365bf5d27cej"
"CustomerCode":"5000",
"CustomerName":"Test Panels - Auckland",
"salesPerson" : {
"Obsolete" : null,
"LastModifiedOn" : null,
"Guid" : "a3bb24f4-2a2e-4435-98f4-5c98e112d6dd",
"FullName" : "John Dorey",
"Email" : "John@dorey.com" },
"PhoneNumber" : "09 333 3896",
"Addresses" : [ {
"Suburb" : null,
"StreetAddress" : "72 Ellice Road\r\nGlenfield",
"Region" : null,
"PostalCode" : "0629",
"Country" : "New Zealand",
"City" : "Auckland",
"AddressType" : "Physical",
"AddressName" : "Physical"
}, {
"Suburb" : null,
"StreetAddress" : "PO Box 101 760\r\nNorth Shore",
"Region" : null,
"PostalCode" : "0745",
"Country" : "New Zealand",
"City" : "Auckland",
"AddressType" : "Postal",
"AddressName" : "Postal"
} ]
}

Boyai Pukhrambam

Please sign in to leave a comment.