Customer

Customer

API documentation: https://api.seamless.insure/customer/documentation/swagger/

 

Create a customer

Content-Type: application/json

Authorization: Bearer {{accessToken}}

  • Body: Please see OpenAPI specification for details. Certain fields may be dependent on configuration.

  • Example:

POST /customer/api/v2/customers HTTP/1.1 Authorization: Bearer eyJhbGciOiJI…<your_jwt_token> Content-Type: application/json Accept: application/json { "ssn": null, "externalReference": "123456", "companyName": null, "firstName": "Seamless", "middleName": null, "lastName": "Contemi", "fullName": "Seamless Contemi", "userName": null, "dateOfBirth": "1990-01-01", "type": "cl", "status": null, "statusDetail": null, "gender": "female", "occupation": null, "education": null, "industry": null }
HTTP/1.1 201 Created Content-Type: application/json; charset=utf-8 { "statusCode": 201, "success": true, "data": { "id": "392bee6a-b974-4f25-946f-1a31bb41c8b1", "reference": "500172", "tenantId": "contemi-testing", "organizationId": "contemi-testing|392bee6a-b974-4f25-946f-1a31bb41c8b1", "createdAt": "2022-02-10T09:06:30.591Z", "updatedAt": "2022-02-10T09:06:30.591Z", "createdBy": "External Application", "updatedBy": "External Application", "version": 1, "ssn": null, "companyName": "Seamless Contemi", "username": null, "fullName": "Seamless Contemi", "firstName": "Seamless", "middleName": null, "lastName": "Contemi", "externalReference": "123456", "dateOfBirth": "1990-01-01", "type": "cl", "status": null, "statusDetail": null, "gender": "female", "occupation": null, "education": null, "industry": null } }

Update a customer

Content-Type: application/json

Authorization: Bearer {{accessToken}}

  • Body: Please see OpenAPI specification for details. Certain fields may be dependent on configuration.

  • Example:

PUT /customer/api/v2/customers/392bee6a-b974-4f25-946f-1a31bb41c8b1 HTTP/1.1 Authorization: Bearer eyJhbGciOiJI…<your_jwt_token> Content-Type: application/json Accept: application/json { "id": "392bee6a-b974-4f25-946f-1a31bb41c8b1", "ssn": null, "externalReference": "123456", "companyName": null, "firstName": "Seamless", "middleName": null, "lastName": "Contemi", "fullName": "Seamless Contemi", "userName": null, "dateOfBirth": "1990-01-01", "type": "cl", "status": null, "statusDetail": null, "gender": "female", "occupation": null, "education": null, "industry": null }
HTTP/1.1 200 OK Content-Type: application/json; charset=utf-8 { "statusCode": 200, "success": true, "data": { "id": "392bee6a-b974-4f25-946f-1a31bb41c8b1", "reference": "500172", "tenantId": "contemi-testing", "organizationId": "contemi-testing|392bee6a-b974-4f25-946f-1a31bb41c8b1", "createdAt": "2022-02-10T09:06:30.591Z", "updatedAt": "2022-02-10T09:08:49.829Z", "createdBy": "External Application", "updatedBy": "External Application", "version": 3, "ssn": null, "companyName": "Seamless Contemi", "username": null, "fullName": "Seamless Contemi", "firstName": "Seamless", "middleName": null, "lastName": "Contemi", "externalReference": "123456", "dateOfBirth": "1990-01-01", "type": "cl", "status": null, "statusDetail": null, "gender": "female", "occupation": null, "education": null, "industry": null } }

Get single customer

(We can replace {{customerId}} with Id of customer on Seamless)

  • Method: GET

  • Header:

Content-Type: application/json

Authorization: Bearer {{accessToken}}

  • Example:

Get a customer

 

 

Search customers

{ "Page": 1, "ItemsPerPage": 10, "Criteria": { "Profile": [], "SSN": null, "FullName": null, "Type": null // "pl" or "cl", ... } }

*Note: Type is "pl" or "cl"

  • Header:

Content-Type: application/json

Authorization: Bearer {{accessToken}}

  • Example:

Search customers

 

 

Get customers

page: 1

itemsPerPage: 10

order: {"createdAt":"ASC"}

externalReference: 12345abc

Note: that value is example, we can modify it, order directions: ASC or DESC

  • Header:

Content-Type: application/json

Authorization: Bearer {{accessToken}}

 

  • Example:

Get customer list

 

 

Delete a customer

(We can replace {{customerId}} with Id of customer on Seamless)

  • Method: DELETE

  • Header:

Content-Type: application/json

Authorization: Bearer {{accessToken}}

  • Example:

Delete a customer

 

 

 

If you would like to request an article, drop us a mail at seamless.support@seamless.insure

Seamless Help Center