Retrieve Alternate Address
post
/rest/v7/commerceDocuments{ProcessVarName}{MainDocVarName}/{_id}/actions/_retrieve_alternate_address
This action returns alternative bill_to and ship_to addresses associated with the current customer and Transaction.
Request
Path Parameters
-
MainDocVarName: string
The variable name of the main document, the first letter must be capitalized
-
ProcessVarName: string
The variable name of the Commerce process, the first letter must be capitalized
-
_id: integer
Current unique user-side ID. This is the internal identifier for a transaction within a CPQ site.
Root Schema : commerceTransaction-_retrieve_alternate_addressRequest
Type:
Show Source
object
-
accountAddressCriteria(optional):
object Query Definition
Title:
Query Definition
Captures the query definition for the current resource request. -
cacheInstanceId(optional):
string
Title:
Cache Instance Id
The unique identifier for the entry of transaction data stored in the cache. This typically is obtained from first createTransaction or OpenTransaction action and passed along in subsequent Modify/Interact action to avoid reload transaction data from db.
Nested Schema : Query Definition
Type:
object
Title:
Query Definition
Captures the query definition for the current resource request.
Show Source
-
actions(optional):
array actions
Array of actions names, whose state is requested in the state object response.
-
childDefs(optional):
array childDefs
-
enableHierarchy(optional):
boolean
Parameter value should be true to execute hierarchy search and sort. Default value is false.
-
excludeFieldTypes(optional):
array excludeFieldTypes
Array of field names that you want to exclude in the response.
-
expand(optional):
array expand
Array of child resource names that you want to expand so that the contents return with the parent in the same request.
-
expandedDomains(optional):
array expandedDomains
Array of field names, whose expanded domains are requested in the state object response.
-
expandNodes(optional):
boolean
Boolean value that only be available when enableHierarchy is true. True = all nodes will be expanded; False = All nodes will be collapsed.Default value is true.
-
fields(optional):
array fields
Array of field names that you wanted returned in a request.
-
groups(optional):
array groups
Array of group names, whose state is requested in the state object response.
-
limit(optional):
integer
Positive integer value that specifies the maximum number of items returned by the server.
-
nodesExceptionList(optional):
array nodesExceptionList
Array of document_number, recording the nodes that violate current expandNodes flag
-
offset(optional):
integer
Non-negative integer values that specifies the index of the first item to be returned. The offset index begins at 0. By default, the offset is 0, which returns all items starting from the first item in the collection.
-
orderBy(optional):
array orderBy
Array of field names, each optionally followed by asc or desc, that specifies the order of items returned in the response payload.
-
q(optional):
string
Filter (a ??where??clause) to restrict the items returned in the collection. By default, no filtering is applied.
-
state(optional):
boolean
Boolean value that specifies whether to calculate the state property. By default, this value is set to false indicating that state is not calculated.
-
totalResults(optional):
boolean
Boolean value that specifies whether to calculate the totalResults property. By default, this value is set to false indicating that totalResults is not calculated.
Nested Schema : actions
Type:
array
Array of actions names, whose state is requested in the state object response.
Show Source
Nested Schema : childDefs
Type:
Show Source
array
-
Array of:
object Child query criteria.
Title:
Child query criteria.
Captures the query criteria for the child resource.
Nested Schema : excludeFieldTypes
Type:
array
Array of field names that you want to exclude in the response.
Show Source
Nested Schema : expand
Type:
array
Array of child resource names that you want to expand so that the contents return with the parent in the same request.
Show Source
Nested Schema : expandedDomains
Type:
array
Array of field names, whose expanded domains are requested in the state object response.
Show Source
Nested Schema : fields
Type:
array
Array of field names that you wanted returned in a request.
Show Source
Nested Schema : groups
Type:
array
Array of group names, whose state is requested in the state object response.
Show Source
Nested Schema : nodesExceptionList
Type:
array
Array of document_number, recording the nodes that violate current expandNodes flag
Show Source
Nested Schema : orderBy
Type:
array
Array of field names, each optionally followed by asc or desc, that specifies the order of items returned in the response payload.
Show Source
Nested Schema : Child query criteria.
Type:
object
Title:
Child query criteria.
Captures the query criteria for the child resource.
Show Source
-
name(optional):
string
Rest alias name of the child resource this query belongs to.
-
queryDef(optional):
object Query Definition
Title:
Query Definition
Captures the query definition for the current resource request. -
recursive(optional):
boolean
Boolean value that specifies whether this query is a recursive expand on the current child resource query.
Response
Default Response
Root Schema : commerceTransaction-_retrieve_alternate_addressResponse
Type:
Show Source
object
-
accountAddressCriteria(optional):
object Query Definition
Title:
Query Definition
Captures the query definition for the current resource request. -
accountAddressList(optional):
object Account Address List
Title:
Account Address List
Alternative 'bill_to/ship_to' addresses associated with the current customer and Transaction. -
cacheInstanceId(optional):
string
Title:
Cache Instance Id
The unique identifier for the entry of transaction data stored in the cache. This typically is obtained from first createTransaction or OpenTransaction action and passed along in subsequent Modify/Interact action to avoid reload transaction data from db.
Nested Schema : Query Definition
Type:
object
Title:
Query Definition
Captures the query definition for the current resource request.
Show Source
-
actions(optional):
array actions
Array of actions names, whose state is requested in the state object response.
-
childDefs(optional):
array childDefs
-
enableHierarchy(optional):
boolean
Parameter value should be true to execute hierarchy search and sort. Default value is false.
-
excludeFieldTypes(optional):
array excludeFieldTypes
Array of field names that you want to exclude in the response.
-
expand(optional):
array expand
Array of child resource names that you want to expand so that the contents return with the parent in the same request.
-
expandedDomains(optional):
array expandedDomains
Array of field names, whose expanded domains are requested in the state object response.
-
expandNodes(optional):
boolean
Boolean value that only be available when enableHierarchy is true. True = all nodes will be expanded; False = All nodes will be collapsed.Default value is true.
-
fields(optional):
array fields
Array of field names that you wanted returned in a request.
-
groups(optional):
array groups
Array of group names, whose state is requested in the state object response.
-
limit(optional):
integer
Positive integer value that specifies the maximum number of items returned by the server.
-
nodesExceptionList(optional):
array nodesExceptionList
Array of document_number, recording the nodes that violate current expandNodes flag
-
offset(optional):
integer
Non-negative integer values that specifies the index of the first item to be returned. The offset index begins at 0. By default, the offset is 0, which returns all items starting from the first item in the collection.
-
orderBy(optional):
array orderBy
Array of field names, each optionally followed by asc or desc, that specifies the order of items returned in the response payload.
-
q(optional):
string
Filter (a ??where??clause) to restrict the items returned in the collection. By default, no filtering is applied.
-
state(optional):
boolean
Boolean value that specifies whether to calculate the state property. By default, this value is set to false indicating that state is not calculated.
-
totalResults(optional):
boolean
Boolean value that specifies whether to calculate the totalResults property. By default, this value is set to false indicating that totalResults is not calculated.
Nested Schema : Account Address List
Type:
object
Title:
Account Address List
Alternative 'bill_to/ship_to' addresses associated with the current customer and Transaction.
Nested Schema : actions
Type:
array
Array of actions names, whose state is requested in the state object response.
Show Source
Nested Schema : childDefs
Type:
Show Source
array
-
Array of:
object Child query criteria.
Title:
Child query criteria.
Captures the query criteria for the child resource.
Nested Schema : excludeFieldTypes
Type:
array
Array of field names that you want to exclude in the response.
Show Source
Nested Schema : expand
Type:
array
Array of child resource names that you want to expand so that the contents return with the parent in the same request.
Show Source
Nested Schema : expandedDomains
Type:
array
Array of field names, whose expanded domains are requested in the state object response.
Show Source
Nested Schema : fields
Type:
array
Array of field names that you wanted returned in a request.
Show Source
Nested Schema : groups
Type:
array
Array of group names, whose state is requested in the state object response.
Show Source
Nested Schema : nodesExceptionList
Type:
array
Array of document_number, recording the nodes that violate current expandNodes flag
Show Source
Nested Schema : orderBy
Type:
array
Array of field names, each optionally followed by asc or desc, that specifies the order of items returned in the response payload.
Show Source
Nested Schema : Child query criteria.
Type:
object
Title:
Child query criteria.
Captures the query criteria for the child resource.
Show Source
-
name(optional):
string
Rest alias name of the child resource this query belongs to.
-
queryDef(optional):
object Query Definition
Title:
Query Definition
Captures the query definition for the current resource request. -
recursive(optional):
boolean
Boolean value that specifies whether this query is a recursive expand on the current child resource query.