Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Next »

Object Model

These json objects are used with the REST MyAccount API.   

  • 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

CreditCard

CustomerCredentials

MyAccount

NotReviewedItem

Order

OrderTracking

OrderItem

ReviewedItem

 

 

 

 

TODO:

/myaccount/loggedIn (GET)

/myaccount/login (GET/POST)

/myaccount/logout (GET)

/myaccount/changePassword (POST)

/myaccount/forgotPassword (POST)

/myaccount/settings (GET)

/myaccount/settings (POST)

/myaccount/settings (PUT)

/myaccount/settings (DELETE)

/myaccount/shippingAddresses (GET)

/myaccount/shippingAddresses/id (GET)

/myaccount/shippingAddresses (POST)

/myaccount/shippingAddresses/id (PUT)

/myaccount/shippingAddresses/id (DELETE)

/myaccount/billingAddresses (GET)

/myaccount/billingAddresses/id (GET)

/myaccount/billingAddresses (POST)

/myaccount/billingAddresses/id (PUT)

/myaccount/billingAddresses/id (DELETE)

/myaccount/creditCards (GET)

/myaccount/creditCards/id (GET)

/myaccount/creditCards (POST)

/myaccount/creditCards/id (PUT)

/myaccount/creditCards/id (DELETE)

/myaccount/orders (GET)

/myaccount/orders/orderId (GET)

/myaccount/orders/orderId/tracking (GET)

/myaccount/orders/orderId/case (GET)

/myaccount/orders/orderId/case (POST)

/myaccount/orders/orderId/case/messages (GET)
/myaccount/orders/orderId/case/messages (POST)

/myaccount/notReviewedYet (GET)

/myaccount/reviews (GET)

 

 

 

 

 

  • No labels