Get a specific address for a specific group customer by groupCustomer Id and address Id

get

/PASService/rest/services/v1/groupCustomers/{groupCustomerId}/addresses/{addressId}

Gets the address for a group customer based on the specified groupCustomer Id and address Id.

Request

Path Parameters

There's no request body for this operation.

Back to Top

Response

200 Response

This operation fetches specific address for a specific groupCustomer by groupCustomer Id and address Id successfully.
Back to Top

Examples

This example describes how to get the address for a group customer based on the specified client Id and address Id.

Example cURL Command

Use the following cURL command to submit a request on the REST resource:

curl \
    -X GET \
    -H "Content-Type: application/json" \
    -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \ 
    -L "http://server:port/PASService/rest/services/v1/groupCustomers/9B6E4F84-CD02-4D78-AD5B-239EA7A32AFC/addresses/ABDA1F51-441A-4FB0-8AE9-01850184C237"
    

Example Response Body

The following shows an example of the response body in JSON format:

{
    "address": {
        "links": [
            {
                "href": "http://server:port/PASService/rest/services/v1/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/v1/codes?codeName=AddressRole&codeValue=04",
                "rel": "codes/addressType",
                "mediaType": "application/json",
                "method": "GET"
            },
            {
                "href": "http://server:port/PASService/rest/services/v1/codes?codeName=State&codeValue=01",
                "rel": "codes/state",
                "mediaType": "application/json",
                "method": "GET"
            }
        ],
        "multiFields": {},
        "codes": [
            {
                "codeName": "AsCodeAddressRole",
                "codeValue": "04",
                "longDescription": "Billing",
                "shortDescription": "Billing"
            },
            {
                "codeName": "AsCodeState",
                "codeValue": "01",
                "longDescription": "Alabama",
                "shortDescription": "AL"
            }
        ],
        "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
    }
}

Back to Top