Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Objects

...

Object Model

These json objects are used with the REST MyAccount API.   

Info
  • id fields are only required for existing objects. When creating/adding new objects, the id field is always blank and provided by the UltraCart servers.
  • Any string fields larger than their maximum size are silently truncated. The field sizes are large enough to handle most data, and the truncation is rarely a problem. The biggest issue with with email addresses. But, an email over 100 characters is also a rarity (pity the soul that has that address).

 

 

Address

 

FieldTypeRequiredComment
idintYes*

Object Identifier. This will always be returned from the server.

Do not create one on your own (won't be accepted).

A common problem that causes our json deserializer to vomit is submitting a new Address with an empty string.

Null is okay. A string that is a parsable integer is okay. But a zero length string has no integer equivalent. Be careful not to do this!

companystring(50)No 
firstNamestring(30)Yes 
lastNamestring(30)Yes 
address1string(32)Yes 
address2string(32)No 
citystring(32)Yes 
statestring(32)Yes 
postalCodestring(20)YesIn the US, this is known as 'zip code'
countrystring(32)Yes 
titlestring(50)No 
dayPhonestring(25)No 
eveningPhonestring(25)No 

 

 

Case

CaseMessage

ChangePasswordRequest

...