Create group customer

post

/PASService/rest/services/v1/groupCustomers

Creates single or multiple customers.

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/json ()
Root Schema : schema
Type: string
Back to Top

Response

201 Response

This response code indicates that the operation has created groupCustomers successfully.
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" \
     -H "Content-Type: application/json" \
     -u 'Authorization: Basic dXNlcm5hbWU6cGFzc3dvcmQ=' \
     -L "http://server:port/PASService/rest/services/v1/groupCustomers" \
     -d '{"Use this placeholder to plug-in the example request body given below"}'

Example Request Body

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

{
    "groupCustomers": [
        {
"multiFields": {
      },
            "companyName": "Test_24Feb_POST",
            "legalResidenceCountryCode": "CA",
            "entityTypeCode": "GROUPCUST",
            "customerNumber": "Test_24Nov_POST",
            "primaryEnrollmentRelationship": "AFFILIATES",
            "enrollmentClassGroup": "03",
            "allowedForCopy": "Yes",
            "hierarchyRelationship": "AFFILIATES",
            "clientId": null,
            "type": "20",
            "companyId": "7204C2FE-13B1-4A48-8CDA-DE8386C60EF9",
            "groupCustomerId": null,
            "OriginalEffectiveDate": "2015-08-04T00:00:00Z",
            "CustomerStatus": {
                "textValue": "01",
                "optionText": "Incomplete"
            },
            "SitusState": {
                "textValue": "01",
                "optionText": "AL"
            },
            "ChangeEffectiveDate": "2015-08-04T00:00:00Z",
            "CustomerLegalName": "Test_24Feb_POST"
        }
    ]
}

Example Response Body

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

{
    "groupCustomers": [
        "7E8C5E71-F8D5-4E82-8D87-D08B8548A4B6"
    ]
}
Back to Top