Create group customer

post

/PASService/rest/services/groupCustomers

Creates single or multiple customers

Request

Supported Media Types
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 single or multiple customers.

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/groupCustomers"

Example Request Body

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

"{
  "groupCustomers": [
    {
      "multiFields": {
        
      },
      "dateOfBirth": "2020-01-06T00:00:00Z",
      "dateOfDeath": "2080-01-06T00:00:00Z",
      "updatedGmt": "2020-01-06T00:00:00Z",
      "companyName": "PB_DICust",
      "email": "sa@mail.com",
      "prefix": "Mr",
      "sex": "M",
      "suffix": "Jo",
      "legalResidenceCountryCode": "US",
      "additionalPrefix": "Jo",
      "additionalSuffix": "Sa",
      "title": "John",
      "maritalStatus": "UnMarried",
      "birthCountryCode": "CA",
      "citizenshipCountryCode": "US",
      "birthRegionCode": "CA",
      "primaryPhone": "123-3434",
      "textField1": "PB_DICust Cust",
      "textField2": "PB_DICust Cust",
      "checkBox1": "D",
      "checkBox2": "E",
      "radio1": "True",
      "radio2": "False",
      "combo1": "T",
      "combo2": "W",
      "entityTypeCode": "GROUPCUST",
      "date1": "2020-01-06T00:00:00Z",
      "date2": "2020-01-06T00:00:00Z",
      "addresses": [
        
      ],
      "customerNumber": "GC102985",
      "primaryEnrollmentRelationship": "Employment",
      "enrollmentClassGroup": "02",
      "allowedForCopy": "No",
      "hierarchyRelationship": "Employment",
      "clientId": "0547B20B-8BAA-46A1-9BB7-4169DCE379C2",
      "firstName": "John",
      "lastName": "We",
      "middleInitial": "Jo",
      "taxId": "999382333",
      "type": "20",
      "taxIdType": "D",
      "status": "Active",
      "companyId": "80798FC2-FEB9-4998-A575-513FF89698B1",
      "groupCustomerId": "657A66FF-CCB4-4835-A910-9B1AB96609A8"
    }
  ]
}
"

Example Response Body

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

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