GetCartContent


Definition

Get the contents of the shopping cart.

Usage

Use this command to display the contents of the shopping cart.

Availability

All resellers have access to this command.

Implementation on eNom.com

http://www.enom.com/

The cart link calls the GetCartContent command. The command creates the list of cart contents on the cart page.

Constraints

The query must meet the following requirements:

  • The login ID and password must be valid.

Input parameters

Build the query string using this syntax:

https://resellertest.enom.com/interface.asp?
command=nameofcommand&uid=yourloginid&pw=yourpassword
&paramname=paramvalue&nextparamname=nextparamvalue

 

Parameter Status Description Max Size
UID Required Account login ID 20
PW Required Account password 20
ResponseType Optional Format of response. Permitted values are Text (default), HTML, or XML. 4

 

Returned parameters and values

Parameter Description
ItemID Item number
Description Nature of the transaction. Options are Register, Renew
Years Number of years to register
NameID Name ID
Name Domain name
StatusID Current status of the name. Value A indicates item is active and will be affected by future transactions, or I for inactive
ItemPrice Item price
Renew Auto-renew setting. Value 1 indicates this item is set to auto-renew, 0 indicates this item is not set to auto-renew
NeedsConfig A NeedsConfig value of 1 indicates that the Preconfigure icon should be displayed for this cart item. This happens when the cart item is a domain name that requires preconfiguration, and the preconfiguration has not yet been done.
IsMailPak An IsMailPak value of 1 indicates that the POP Email icon should be displayed for this cart item. This happens when the cart item is a domain name for which POP mail is available, and the user has not added the POP Email to the shopping cart.
ShowWPPSLink A ShowWPPSLink value of 1 indicates that the Whois Privacy Protection Service (WPPS, ID Protect) icon should be displayed for this cart item. This happens when the cart item is a domain name for which WPPS is available, and the user has not added WPPS to the shopping cart.
QtyDesc Unit by which this item is sold
SubItem A SubItem value of 0 indicates that this item is a single line item in the shopping cart
FreeTrial A FreeTrial value of 0 indicates that the user begins paying for this item as soon as it is purchased
Command Name of command executed
ErrCount The number of errors if any occurred. If greater than 0 check the Err(1 to ErrCount) values.
ErrX Error messages explaining the failure. These can be presented as is back to the client.
Done True indicates this entire response has reached you successfully.

 

Notes

  • The default response format is plain text. To receive the response in HTML or XML format, send ResponseType=HTML or ResponseType=XML in your request.
  • Check the return parameter ErrCount. If greater than If greater than 0 the transaction failed. The parameter Err(ErrCount) can be presented to the client. Otherwise process the returned parameters as defined above.rameter StThe parameter StatusID returns A for active and will be affected by future transactions, or I for inactive.

Example