67 Registry Services, Version 1.0
This chapter provides the information necessary to send messages contained in version 1.0 of the Registry Services API. Information can be obtained using the Web Service Description Language (WSDL) in conjunction with a Simple Object Access Protocol (SOAP), XML Schema, and various methods contained in the classes of the API to provide the web service described above.
The URL for the WSDL is:
https://<servername>:<portNumber>/ws/v1_0/RegistryServices?wsdl
where <servername>
is the name or address of the server. For a cloud installation, the default port number is 443.
The information presented below describes the methods and classes.
The format of the method and any arguments is shown along with an explanation of what the method does and any other information that is necessary to use the method properly. If an argument is shown in dark blue, it is a class and the class name is a link to a description of the class and its attributes.
The class section shows the attributes of the classes along with an explanation of each attribute and when necessary, when they are used.
Note:
Authentication is required. See Introduction for information on creating and implementing an authentication key.
Methods
This section presents the methods used in Version 1.0 of the Registry Services API.
addOrUpdateRegistry
UpdateRegistryResponseType addOrUpdateRegistry( RegistryRequestType registryData, string userId) throws RelateProcessingException, AttributeException
Variable | Required? | Description |
---|---|---|
|
[optional] |
Registry information being added or updated. |
|
[optional] |
ID of the user performing the action. |
The addOrUpdateRegistry
method adds new registries to the system, or updates existing registries.
This method returns a UpdateRegistryResponseType element.
addOrUpdateRegistryDetail
UpdateRegistryDetailResponseType addOrUpdateRegistryDetail( RegistryDetailRequestType registryDetailData, string userId) throws RelateProcessingException
Variable | Required? | Description |
---|---|---|
|
[optional] |
Registry details being added or updated. |
|
[optional] |
ID of the user performing the action. |
The addOrUpdateRegistryDetail
method adds items to a registry, or makes changes to items already entered into the registry.
This method returns a UpdateRegistryDetailResponseType element.
customerRegistryAssociation
CustomerRegistryAssociationResponseType customerRegistryAssociation( CustomerRegistryAssociationRequestType registryAssociationData, string userId) throws RelateProcessingException
Variable | Required? | Description |
---|---|---|
|
[optional] |
Customer-registry association information. |
|
[required] |
ID of the user performing the action. |
The customerRegistryAssociation
method associates a registry with a customer.
This method returns a CustomerRegistryAssociationResponseType element.
deleteRegistry
UpdateRegistryResponseType deleteRegistry( long registryId, string userId) throws RelateProcessingException
Variable | Required? | Description |
---|---|---|
|
[optional] |
ID of the registry being deleted. |
|
[required] |
ID of the user deleting the registry. |
The deleteRegistry
method deletes an existing gift registry from the system.
This method returns a UpdateRegistryResponseType element.
getRegistry
RegistryResponseType getRegistry( long registryId, string userId) throws RelateProcessingException
Variable | Required? | Description |
---|---|---|
|
[required] |
ID of the registry. |
|
[required] |
ID of the user retrieving the registry. |
The getRegistry
method retrieves information about a gift registry.
This method returns a RegistryResponseType element.
getRegistryDetail
RegistryDetailResponseType getRegistryDetail( long registryId, string userId) throws RelateProcessingException
Variable | Required? | Description |
---|---|---|
|
[optional] |
ID of the registry. |
|
[optional] |
ID of the user retrieving the registry. |
The getRegistryDetail
method retrieves information about the items in a gift registry.
This method returns a RegistryDetailResponseType element.
searchRegistry
RegistrySummaryType[] searchRegistry( RegistrySearchCriteriaType[] registryCriterias,) throws RelateProcessingException
Variable | Required? | Description |
---|---|---|
|
[optional] |
Array of search criteria. |
The searchRegistry
method searches for registries matching the given criteria.
This method returns an array of RegistrySummaryType elements.
sellOrReturnRegistryItems
ReturnRegistryItemType sellOrReturnRegistryItems( RegistryItemsType registryItemsType, string userId) throws RelateProcessingException, IllegalRetailTranIdException
Variable | Required? | Description |
---|---|---|
|
[optional] |
Registry items being sold or returned. |
|
[optional] |
ID of the user performing the transaction. |
The sellOrReturnRegistryItems
method lists items in the registry as sold or returned.
This method returns a ReturnRegistryItemType element.
Classes
This section presents the classes used in Version 1.0 of the Registry Services API.
ContactInformationReturnType
The ContactInformationReturnType
class contains the following elements:
Type | Element | Description |
---|---|---|
Address |
Array of addresses. |
|
|
Array of emails. |
|
Telephone |
Array of telephone numbers. |
CustAddressType
The CustAddressType
class contains the following elements.
Type | Element | Description |
---|---|---|
AddressLine1 |
Address line 1. |
|
AddressLine2 |
Address line 2. |
|
AddressLine3 |
Address line 3. |
|
AddressLine4 |
Address line 4. |
|
string |
ApartmentNumber |
Apartment number. |
City |
City. |
|
string |
Country |
Country. |
string |
County |
County. |
Territory |
Territory, state, or province. |
|
PostalCode |
Postal Code. |
CustContactInformationType
The ContactInformationReturnType
class contains the following elements:
Type | Element | Description |
---|---|---|
Address |
Array of addresses. |
|
|
Array of emails. |
|
Telephone |
Array of telephone numbers. |
CustEMailType
The EMailType
class contains the following elements:
Type | Element | Description |
---|---|---|
string |
EmailAddress |
The email address. |
CustTelephoneType
The TelephoneType
class contains the following elements:
Type | Element | Description |
---|---|---|
string |
PhoneNumber |
Telephone number. |
string |
Extension |
Telephone extension. |
CustomerRegistryAssociationRequestType
The CustomerRegistryAssociationRequestType
class contains the following elements:
Type | Element | Description |
---|---|---|
GiftRegistryId |
ID of the gift registry. |
|
Owners |
Array of registry owners. |
CustomerRegistryAssociationResponseType
The CustomerRegistryAssociationResponseType
class contains the following elements:
Type | Element | Description |
---|---|---|
GiftRegistryId |
ID of the gift registry. |
|
string[] |
CustId |
Array of IDs of the customers associated with the registry. |
string |
Status |
Status of the registry. |
IllegalRetailTranIdException
The IllegalRetailTranIdException
class contains the following elements
Type | Element | Description |
---|---|---|
string |
faultDetail |
Detailed description of the fault, including any debugging information. |
string |
message |
Error message. |
relateExceptionCode |
ID for the error. |
RegAddressIdType
The RegAddressIdType
class contains the following element:
Type | Element | Description |
---|---|---|
string |
AddressTypecode |
Type of address. |
RegAddressRequestType
The RegAddressRequestType
class contains the following elements:
Type | Element | Description |
---|---|---|
Action |
Action being performed on the registry. |
|
GiftRegAddressId |
Type of address. |
|
string |
AddressName |
Name of the address. |
string |
AddressLine1 |
Line 1 of the street address. |
string |
AddressLine2 |
Line 2 of the street address. |
string |
AddressLine3 |
Line 3 of the street address. |
string |
AddressLine4 |
Line 4 of the street address. |
string |
Apartment |
Address apartment. |
string |
City |
Address city. |
string |
Territory |
Address territory/state/province. |
string |
County |
Address county. |
string |
Country |
Address country. |
string |
PostalCode |
Postal/Zip Code for the address. |
RegAddressResponseType
The RegAddressResponseType
class contains the following elements:
Type | Element | Description |
---|---|---|
GiftRegAddressId |
Type of address. |
|
string |
AddressName |
Name of the address. |
string |
AddressLine1 |
Line 1 of the street address. |
string |
AddressLine2 |
Line 2 of the street address. |
string |
AddressLine3 |
Line 3 of the street address. |
string |
AddressLine4 |
Line 4 of the street address. |
string |
Apartment |
Address apartment. |
string |
City |
Address city. |
string |
Territory |
Address territory/state/province. |
string |
County |
Address county. |
string |
Country |
Address country. |
string |
PostalCode |
Postal/Zip Code for the address. |
RegAttributeType
The RegAttributeType
class contains the following element:
Type | Element | Description |
---|---|---|
AttributeValueType[] |
Attribute |
Array of values for the attribute. |
The RegAttributeType
class contains the following attributes:
Type | Attribute | Description |
---|---|---|
string |
GroupName |
Name of the attribute. |
string |
Action |
Attribute action. |
RegItemIdType
The RegItemIdType
class contains the following element:
Type | Element | Description |
---|---|---|
string |
ItemId |
ID of the item. |
RegItemRequestType
The RegItemRequestType
class contains the following elements:
Type | Element | Description |
---|---|---|
Action |
Action being performed on the registry. |
|
RegItemIdType |
GiftRegItemMapId |
Item ID. |
string |
ItemXrefId |
Cross-reference ID for the item. |
string |
DesiredQuantity |
Desired quantity for the item. |
RegItemResponseType
The RegItemResponseType
class contains the following elements:
Type | Element | Description |
---|---|---|
RegItemIdType |
GiftRegItemMapId |
Item ID. |
string |
ItemXrefIds |
Array of cross-reference IDs for the item. |
string |
DesiredQuantity |
Desired quantity for the item. |
string |
PurchasedQuantity |
Purchased quantity of the item. |
RegOwnerIdType
The RegOwnerIdType
class contains the following element:
Type | Element | Description |
---|---|---|
string |
CustId |
Customer ID for the owner. |
RegOwnerRequestType
The RegOwnerRequestType
class contains the following elements:
Type | Element | Description |
---|---|---|
Action |
Action being performed. |
|
GiftRegOwnerMapId |
Registry owner. |
|
AlternateKey |
Array of alternate keys for the owner. |
|
string |
CardNumber |
Card number for the owner. |
string |
Nickname |
Owner nickname. |
boolean |
PrimaryFlag |
Indicates whether the owner is the primary owner. |
ContactInformation |
Contact information for the owner. |
RegOwnerResponseType
The RegOwnerResponseType
class contains the following elements:
Type | Element | Description |
---|---|---|
GiftRegOwnerMapId |
Registry owner. |
|
string |
Nickname |
Owner nickname. |
boolean |
PrimaryFlag |
Indicates whether the owner is the primary owner. |
ContactInformation |
Contact information for the owner. |
RegistryDetailRequestType
The RegistryDetailRequestType
class contains the following elements:
Type | Element | Description |
---|---|---|
GiftRegistryId |
ID of the gift registry. |
|
Items |
Array of items for the registry. |
RegistryDetailResponseType
The RegistryDetailResponseType
class contains the following elements:
Type | Element | Description |
---|---|---|
GiftRegistryId |
ID of the gift registry. |
|
Items |
Array of items in the registry. |
RegistryIdType
The RegistryIdType
class contains the following element:
Type | Element | Description |
---|---|---|
long |
RegistryId |
ID for the registry. |
RegistryItemsType
The RegistryItemsType
class contains the following elements:
Type | Element | Description |
---|---|---|
long |
GiftRegistryId |
ID for the registry. |
string |
CustId |
ID for the customer who is buying or returning the registry item. |
decimal |
Quantity |
Quantity of the item. |
TransactionTypeCode |
Type of registry action being performed. |
|
date |
BusinessDate |
Business date of the action. |
string |
LocationId |
ID of the location where the action is being performed. |
string |
WorkstationId |
ID of the workstation where the action is being performed. |
string |
sequenceNumber |
Sequence number of the transaction in which the action is being performed. |
string |
ItemId |
ID of the registry item. |
string |
ItemRefId |
Cross reference ID used to look up Customer Engagement item ID. |
RegistryResponseType
The RegistryResponseType
class contains the following elements:
Type | Element | Description |
---|---|---|
GiftRegistryId |
ID of the gift registry. |
|
string |
Name |
Name of the gift registry. |
string |
EventTypecode |
Type of event. |
string |
EventDate |
Date of the event. |
string |
ExpirationDate |
Expiration date of the registry. |
boolean |
PublishedFlag |
Indicates whether the registry is published. |
string |
LocationCreated |
ID for the location where the registry was created. |
string |
Comments |
Comments on the registry. |
string |
ImageData |
URL for the image associated with the registry. |
string |
CreateDate |
Date the registry was created. |
string |
CreateUserId |
ID of the User who created the registry. |
string |
UpdateDate |
Date the registry was most recently updated. |
string |
UpdateUserId |
ID of the User who most recently updated the registry. |
Addresses |
Array of addresses for the registry. |
|
Owners |
Array of registry owners. |
|
AttributeGroup |
Group of attributes. |
RegistryRequestType
The RegistryRequestType
class contains the following elements:
Type | Element | Description |
---|---|---|
GiftRegistryId |
ID for the gift registry. |
|
string |
Name |
Name of the registry. |
string |
EventTypecode |
Code identifying the type of event. |
date |
EventDate |
Date of the event. |
date |
ExpirationDate |
Expiration date for the registry. |
boolean |
PublishedFlag |
Indicates whether the registry is published. |
string |
Comments |
Comments about the registry. |
string |
ImageData |
URL for the image associated with the registry. |
Addresses |
Array of addresses for the registry. |
|
Owners |
Array of registry owners. |
|
Items |
Items for the registry. |
|
AttributeGroup |
Group of attributes. |
RegistrySearchCriteriaType
The RegistrySearchCriteriaType
class contains the following elements:
Type | Element | Description |
---|---|---|
string[] |
fieldValue |
Array of values to use in the search. |
searchFieldType |
Registry field being searched. |
|
searchOperator |
Comparison operator to use in the search. |
RegistrySummaryType
The RegistrySummaryType
class contains the following elements:
Type | Element | Description |
---|---|---|
GiftRegistryId |
ID for the gift registry. |
|
string |
Name |
Name of the registry. |
string |
EventTypecode |
Code identifying the type of event. |
string |
EventDate |
Date of the event. |
boolean |
PublishedFlag |
Indicates whether the registry is published. |
string |
FirstName |
First Name of the primary owner. |
string |
LastName |
Last Name of the primary owner. |
ReturnRegistryItemType
The ReturnRegistryItemType
class contains the following elements:
Type | Element | Description |
---|---|---|
long |
GiftRegistryId |
ID of the gift registry. |
string |
ItemId |
ID of the item. |
string |
Status |
Status code of the result. OK indicates the request was successful. |
UpdateRegistryDetailResponseType
The UpdateRegistryDetailResponseType
class contains the following elements:
Type | Element | Description |
---|---|---|
GiftRegistryId |
ID of the gift registry. |
|
string[] |
ItemId |
Array of items updated in the registry. |
string |
Status |
Status of the gift registry. |