Get list of addresses by group customer
get
/PASService/rest/services/groupCustomers/{id}/addresses
Get addresses for a group customer based on the specified client Id
Request
Path Parameters
-
id: string
Pattern:
\{?[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\}?
Client Id
Query Parameters
-
expand(optional): string
codes
Response
Supported Media Types
- application/json
Default Response
successful operation
Examples
This example describes how to get addresses for a group customer based on the specified client Id.
Example cURL Command
Use the following cURL command to submit a request on the REST resource:
curl -X GET -H "Accept: application/json" -u username:password "server:port/PASService/rest/services/groupCustomers/9B6E4F84-CD02-4D78-AD5B-239EA7A32AFC/addresses"
Example Response Body
The following shows an example of the response body in JSON format:
"{ "count": 1, "addresses": [ { "links": [ { "href": "http://server:port/PASService/rest/services/groupCustomers/9B6E4F84-CD02-4D78-AD5B-239EA7A32AFC/addresses/ABDA1F51-441A-4FB0-8AE9-01850184C237", "rel": "self", "mediaType": "application/json", "method": "GET" }, { "href": "http://server:port/PASService/rest/services/codes?codeName=AddressRole&codeValue=04", "rel": "codes/addressType", "mediaType": "application/json", "method": "GET" }, { "href": "http://server:port/PASService/rest/services/codes?codeName=State&codeValue=01", "rel": "codes/state", "mediaType": "application/json", "method": "GET" } ], "defaultFlag": "1", "effectiveDate": "2015-08-04T00:00:00Z", "addressLine1": "fegREF", "city": "EWFWF", "postalID": "4354135", "addressType": "04", "clientId": "9B6E4F84-CD02-4D78-AD5B-239EA7A32AFC", "addressId": "ABDA1F51-441A-4FB0-8AE9-01850184C237", "state": "01", "country": "CA", "ReturnMailIndicator": "CHECKED", "SystemDateGSM": "2015-08-04T00:00:00Z", "CostOfStamp": { "value": 0, "currency": "USD" }, "TestInteger": 0, "ClientGUID": { "textValue": "9B6E4F84-CD02-4D78-AD5B-239EA7A32AFC", "optionText": " " }, "TestDecimal": 0 } ] } "