Skip to main content
POST
/
api
/
customer
createNewCustomer
curl --request POST \
  --url https://api.artemis.cynopsis.co/api/customer \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Domain-ID: <x-domain-id>' \
  --data '{
  "active": true,
  "assigneeId": 123,
  "batchUploadId": 123,
  "forms": {},
  "id": 123,
  "profileId": 123,
  "profileReferenceId": "<string>",
  "referenceId": "<string>",
  "type": "CORPORATE",
  "vendorEntityGuid": "<string>",
  "vendorName": "<string>"
}'
{
  "active": true,
  "assignees": [
    {
      "email": "<string>",
      "firstName": "<string>",
      "fullName": "<string>",
      "id": 123,
      "lastName": "<string>"
    }
  ],
  "createdAt": {
    "date": 123,
    "day": 123,
    "hours": 123,
    "minutes": 123,
    "month": 123,
    "nanos": 123,
    "seconds": 123,
    "time": 123,
    "timezoneOffset": 123,
    "year": 123
  },
  "createdBy": {
    "email": "<string>",
    "firstName": "<string>",
    "fullName": "<string>",
    "id": 123,
    "lastName": "<string>"
  },
  "forms": {},
  "id": 123,
  "lastRiskAssessment": "2023-11-07T05:31:56Z",
  "listRoleAsText": [
    "<string>"
  ],
  "notes": {},
  "other": {},
  "parentId": 123,
  "particular": {},
  "profileId": 123,
  "profileReferenceId": "<string>",
  "referenceId": "<string>",
  "riskRating": "HIGH",
  "roles": [
    {
      "appointedDate": "2023-12-25",
      "createdAt": {
        "date": 123,
        "day": 123,
        "hours": 123,
        "minutes": 123,
        "month": 123,
        "nanos": 123,
        "seconds": 123,
        "time": 123,
        "timezoneOffset": 123,
        "year": 123
      },
      "createdBy": {
        "email": "<string>",
        "firstName": "<string>",
        "fullName": "<string>",
        "id": 123,
        "lastName": "<string>"
      },
      "id": 123,
      "resignedDate": "2023-12-25",
      "role": "<string>",
      "updatedAt": {
        "date": 123,
        "day": 123,
        "hours": 123,
        "minutes": 123,
        "month": 123,
        "nanos": 123,
        "seconds": 123,
        "time": 123,
        "timezoneOffset": 123,
        "year": 123
      },
      "updatedBy": {
        "email": "<string>",
        "firstName": "<string>",
        "fullName": "<string>",
        "id": 123,
        "lastName": "<string>"
      }
    }
  ],
  "status": "ACCEPTED",
  "type": "CORPORATE",
  "updatedAt": {
    "date": 123,
    "day": 123,
    "hours": 123,
    "minutes": 123,
    "month": 123,
    "nanos": 123,
    "seconds": 123,
    "time": 123,
    "timezoneOffset": 123,
    "year": 123
  },
  "updatedBy": {
    "email": "<string>",
    "firstName": "<string>",
    "fullName": "<string>",
    "id": 123,
    "lastName": "<string>"
  },
  "vendorEntityGuid": "<string>",
  "vendorName": "<string>"
}

Description

This endpoint creates a new Individual Primary Customer. You can submit either:
  • A minimal request with only the mandatory fields, or
  • A full request with all optional fields.
Important:
  • To create a new individual primary customer, it is mandatory for the end user to provide their profileReferenceId and personal particulars (name, gender, countryOfResidence, and nationality) inside the request body.
  • The type field must be set to INDIVIDUAL.

Sample Request Body 1 — Mandatory Fields Only

{
  "active": true,
  "profileReferenceId": "180062353535",
  "other": {
    "industry": "EDUCATION",
    "occupation": "TEACHING PROFESSIONAL",
    "onBoardingMode": "NON FACE-TO-FACE",
    "paymentMode": [
      "CREDIT CARD"
    ],
    "productServiceComplexity": "SIMPLE"
  },
  "particular": {
    "name": "Individual Primary Customer",
    "gender": "MALE",
    "countryOfResidence": "SINGAPORE",
    "nationality": [
      "SINGAPORE"
    ]
  },
  "type": "INDIVIDUAL",
  "domainId": [
    {{domain_id}}
  ],
  "assigneeId": {{assignee_id}}
}

Sample Request Body 2 — All Fields

{
  "active": true,
  "profileReferenceId": "180062353535",
  "other": {
    "industry": "EDUCATION",
    "occupation": "TEACHING PROFESSIONAL",
    "onBoardingMode": "NON FACE-TO-FACE",
    "paymentMode": [
      "CREDIT CARD"
    ],
    "productServiceComplexity": "SIMPLE",
    "sourceOfFunds": "",
    "bankAccount": [],
    "additionalInformation": "",
    "natureOfBusinessRelationship": ""
  },
  "particular": {
    "salutation": "",
    "name": "Individual Primary Customer",
    "alias": [],
    "formerName": [],
    "gender": "MALE",
    "countryOfResidence": "SINGAPORE",
    "nationality": [
      "SINGAPORE"
    ],
    "countryOfBirth": "",
    "dateOfBirth": null,
    "address": [],
    "phone": [],
    "email": [],
    "identityDocumentType": "",
    "identityNumber": "",
    "identityIssuedDate": null,
    "identityExpiryDate": null
  },
  "type": "INDIVIDUAL",
  "domainId": [
    {{domain_id}}
  ],
  "assigneeId": {{assignee_id}}
}

Success Response — 200 OK

{
  "id": 925,
  "createdAt": "2022-07-26T04:21:41.616+00:00",
  "updatedAt": "2022-07-26T04:21:41.636+00:00",
  "createdBy": null,
  "updatedBy": null,
  "active": true,
  "parentId": null,
  "profileId": 915,
  "type": "INDIVIDUAL",
  "referenceId": null,
  "profileReferenceId": "180062353535B",
  "particular": {
    "salutation": "",
    "name": "Individual Primary Customer",
    "alias": [],
    "formerName": [],
    "gender": "MALE",
    "countryOfResidence": "SINGAPORE",
    "nationality": [
      "SINGAPORE"
    ],
    "countryOfBirth": "",
    "dateOfBirth": null,
    "address": [],
    "phone": [],
    "email": [],
    "identityDocumentType": "",
    "identityNumber": "",
    "identityIssuedDate": null,
    "identityExpiryDate": null
  },
  "other": {
    "industry": "EDUCATION",
    "occupation": "TEACHING PROFESSIONAL",
    "onBoardingMode": "NON FACE-TO-FACE",
    "paymentMode": [
      "CREDIT CARD"
    ],
    "productServiceComplexity": "SIMPLE",
    "sourceOfFunds": "",
    "bankAccount": [],
    "natureOfBusinessRelationship": "",
    "additionalInformation": "",
    "documentList": null
  },
  "vendorName": "",
  "vendorEntityGuid": "",
  "lastRiskAssessment": null,
  "status": "DRAFT",
  "riskRating": "UNKNOWN",
  "roles": [],
  "listRoleAsText": []
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

X-Domain-ID
integer
required

X-Domain-ID

Body

application/json

customerDTO

profileReferenceId
string
required
type
enum<string>
required
Available options:
CORPORATE,
INDIVIDUAL
active
boolean
assigneeId
integer
batchUploadId
integer
forms
object
id
integer
profileId
integer
referenceId
string
vendorEntityGuid
string
vendorName
string

Response

OK

active
boolean
assignees
UserInfo · object[]
createdAt
object
createdBy
object
forms
object
id
integer
lastRiskAssessment
string<date-time>
listRoleAsText
string[]
notes
object
other
object
parentId
integer
particular
object
profileId
integer
profileReferenceId
string
referenceId
string
riskRating
enum<string>
Available options:
HIGH,
LOW,
MEDIUM,
MEDIUM_HIGH,
MEDIUM_LOW,
UNKNOWN
roles
CRPRoleResponseDto · object[]
status
enum<string>
Available options:
ACCEPTED,
CLEARED,
DRAFT,
PENDING,
REJECTED,
REQUEST_CHANGES
type
enum<string>
Available options:
CORPORATE,
INDIVIDUAL
updatedAt
object
updatedBy
object
vendorEntityGuid
string
vendorName
string