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
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
¶mname=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

The following query requests the contents of the shopping cart for account resellid, and requests the response in XML format:
Query
https://resellertest.enom.com/interface.asp?
command=GetCartContent&uid=resellid&pw=resellpw
&ResponseType=XML
The response indicates that the shopping cart currently contains a domain to register (resellerdocs.us):
Output
<interface-response>
<GetCartContent>
<ContainsDomain>true</ContainsDomain>
<item>
<ItemID>889018</ItemID>
<Description>Email Pak - 10 email boxes</Description>
<ProdType>38</ProdType>
<Years>1</Years>
<NameID>152533676</NameID>
<Name>resellerdocs.com</Name>
<StatusID>A</StatusID>
<ItemPrice>9.95</ItemPrice>
<ItemTotalPrice>9.9500</ItemTotalPrice>
<ItemUnitPrice>9.9500</ItemUnitPrice>
<Renew>0</Renew>
<cd>
<IsMailPak>1</IsMailPak>
<ShowWPPSLink>0</ShowWPPSLink>
<ShowWBLLink>0</ShowWBLLink>
<ShowMobilizerLink>0</ShowMobilizerLink>
<ShowMailLink>0</ShowMailLink>
<p>
<QtyDesc>Pak(s)</QtyDesc>
<SubItem>0</SubItem>
<FreeTrial>0</FreeTrial>
</p>
</cd>
</item>
<item>
<ItemID>889049</ItemID>
<Description>Register</Description>
<ProdType>10</ProdType>
<Years>1</Years>
<NameID>152932786</NameID>
<Name>resellerdocs1.com</Name>
<StatusID>A</StatusID>
<ItemPrice>8.95</ItemPrice>
<ItemTotalPrice>8.9500</ItemTotalPrice>
<ItemUnitPrice>8.9500</ItemUnitPrice>
<Renew>0</Renew>
<cd>
<IsMailPak>0</IsMailPak>
<ShowWPPSLink>1</ShowWPPSLink>
<ShowWBLLink>1</ShowWBLLink>
<ShowMobilizerLink>0</ShowMobilizerLink>
<ShowMailLink>1</ShowMailLink>
<p>
<QtyDesc>Year(s)</QtyDesc>
<SubItem>0</SubItem>
<FreeTrial>0</FreeTrial>
<ICANNFees>0.20</ICANNFees>
<BaseItemPrice>8.75</BaseItemPrice>
</p>
</cd>
</item>
<item>
<ItemID>889066</ItemID>
<Description>Register</Description>
<ProdType>10</ProdType>
<Years>1</Years>
<NameID>152932796</NameID>
<Name>resellerdocs123.com</Name>
<StatusID>A</StatusID>
<ItemPrice>8.95</ItemPrice>
<ItemTotalPrice>8.9500</ItemTotalPrice>
<ItemUnitPrice>8.9500</ItemUnitPrice>
<Renew>0</Renew>
<cd>
<IsMailPak>0</IsMailPak>
<ShowWPPSLink>1</ShowWPPSLink>
<ShowWBLLink>1</ShowWBLLink>
<ShowMobilizerLink>0</ShowMobilizerLink>
<ShowMailLink>1</ShowMailLink>
<p>
<QtyDesc>Year(s)</QtyDesc>
<SubItem>0</SubItem>
<FreeTrial>0</FreeTrial>
<ICANNFees>0.20</ICANNFees>
<BaseItemPrice>8.75</BaseItemPrice>
</p>
</cd>
</item>
</GetCartContent>
<GroupCounts>
<Group ParentItemID="889049" GroupCount="1"/>
<Group ParentItemID="889066" GroupCount="1"/>
<Group ParentItemID="889018" GroupCount="1"/>
</GroupCounts>
<CartItems>3</CartItems>
<Command>GETCARTCONTENT</Command>
<Language>eng</Language>
<ErrCount>0</ErrCount>
<ResponseCount>0</ResponseCount>
<MinPeriod/>
<MaxPeriod>10</MaxPeriod>
<Server>SJL21WRESELLT01</Server>
<Site>eNom</Site>
<IsLockable/>
<IsRealTimeTLD/>
<TimeDifference>+0.00</TimeDifference>
<ExecTime>0.843</ExecTime>
<Done>true</Done>
<RequestDateTime>12/8/2011 3:43:27 AM</RequestDateTime>
<debug></debug>
</interface-response>

The following query requests the contents of the shopping cart for account resellid, and requests the response in HTML format:
Query
https://resellertest.enom.com/interface.asp?
command=GetCartContent&uid=resellid&pw=resellpw
&ResponseType=html
The response indicates that the shopping cart currently contains a domain to register (resellerdocs.us):
Output
;URL Interface
;Machine is SJL0VWRESELL_T1
;Encoding Type is utf-8
ItemID1: 988418
Description1: SSL Certificate - RapidSSL
ProdType1: 23
Years1: 2
NameID1:
Name1:
StatusID1: I
ItemPrice1: 9.95
Renew1:
ParentItemID1:
ICANNFees1:
BaseItemPrice1:
ItemID2: 988419
Description2: GeoTrust Anti-Malware Scan
ProdType2: 177
Years2: 1
NameID2:
Name2:
StatusID2: I
ItemPrice2: 15.00
Renew2:
ParentItemID2:
ICANNFees2:
BaseItemPrice2:
ItemID3: 987632
Description3: RichContent Free Trial
ProdType3: 200
Years3: 1
NameID3:
Name3: ; EndUserEmailAddress@example.com
StatusID3: I
ItemPrice3: 0.00
Renew3:
ParentItemID3:
ICANNFees3: 0
BaseItemPrice3: 0
ItemID4: 988111
Description4: Register
.
.
.
GroupCount: 34
CartItems: 34
Command: GETCARTCONTENT
APIType: API
Language: eng
ErrCount: 0
ResponseCount: 0
MinPeriod:
MaxPeriod: 10
Server: SJL0VWRESELL_T1
Site: eNom
IsLockable:
IsRealTimeTLD:
TimeDifference: +0.00
ExecTime: 0.594
Done: true
RequestDateTime: 2/3/2015 4:43:53 PM

The following query requests the contents of the shopping cart for account resellid, and requests the response in Text format:
Query
https://resellertest.enom.com/interface.asp?
command=GetCartContent&uid=resellid&pw=resellpw
&ResponseType=text
The response indicates that the shopping cart currently contains a domain to register (resellerdocs.us):
Output
;URL Interface
;Machine is SJL0VWRESELL_T1
;Encoding Type is utf-8
ItemID1=988418
Description1=SSL Certificate - RapidSSL
ProdType1=23
Years1=2
NameID1=
Name1=
StatusID1=I
ItemPrice1=9.95
Renew1=
ParentItemID1=
ICANNFees1=
BaseItemPrice1=
ItemID2=988419
Description2=GeoTrust Anti-Malware Scan
ProdType2=177
Years2=1
NameID2=
Name2=
StatusID2=I
ItemPrice2=15.00
Renew2=
ParentItemID2=
ICANNFees2=
BaseItemPrice2=
ItemID3=987632
Description3=RichContent Free Trial
ProdType3=200
Years3=1
NameID3=
Name3=; EndUserEmailAddress@example.com
StatusID3=I
ItemPrice3=0.00
Renew3=
ParentItemID3=
ICANNFees3=0
BaseItemPrice3=0
.
.
.
GroupCount=34
CartItems=34
Command=GETCARTCONTENT
APIType=API
Language=eng
ErrCount=0
ResponseCount=0
MinPeriod=
MaxPeriod=10
Server=SJL0VWRESELL_T1
Site=eNom
IsLockable=
IsRealTimeTLD=
TimeDifference=+0.00
ExecTime=0.391
Done=true
RequestDateTime=2/3/2015 4:45:21 PM