Create clients addresses

post

/PASService/rest/services/clients/{clientId}/addresses

Creates single or multiple client addresses based on the specified client Id

Request

Supported Media Types
Path Parameters
  • Pattern: \{?[0-9A-F]{8}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{4}-[0-9A-F]{12}\}?
    Client Id
Body ()
Root Schema : schema
Type: string
Back to Top

Response

Supported Media Types

Default Response

successful operation
Back to Top

Examples

This example describes how to create a single or multiple client addresses based on the specified client Id.

Example cURL Command

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

curl -X POST -H "Accept: application/json" -u username:password "server:port/PASService/rest/services/clients/DE91F107-6BCC-46AB-877C-05D810E5C563/addresses"

Example Request Body

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

"{
  "addresses": [
    {
      "multiFields": {
        
      },
      "defaultFlag": "A",
      "eMailCorrespondenceFlag": "C",
      "effectiveDate": "2020-01-06T16:38:45Z",
      "addressLine1": "1801 Walnut Street",
      "addressLine2": "18 Walnut Street1",
      "addressLine3": "18 Walnut Street2",
      "addressLine4": "18 Walnut Street3",
      "addressLine5": "18 Walnut Street4",
      "addressLine6": "18 Walnut Street5",
      "city": "Philadelphia",
      "postalID": "PSA124",
      "email": "dea@mail.com",
      "faxNumber": "2323-2323",
      "phones": [
        
      ],
      "addressType": "02",
      "clientId": "DE91F107-6BCC-46AB-877C-05D810E5C563",
      "addressId": "93E55B39-74F5-4996-9D58-8A20623A128E",
      "expiryDate": "2020-01-06T16:38:45Z",
      "region": "CA",
      "municipality": "CA",
      "state": "38",
      "country": "US",
      "phone": "123-123-1233"
    }
  ]
}"

Example Response Body

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

"{
  "addresses": [
    "EA8B3C28-6950-407A-84DB-211AA99B0A2C"
  ]
}"
Back to Top