API ReferenceUnified modelsUnified customer

Create a unified customer

POST
/unified/customer

Authorization

bearerAuth
AuthorizationBearer <token>

In: header

Request Body

application/json

email*string

Email address of the customer.

name*string

Name of the customer.

address_line1?string|null

First line of the customer's address.

address_line2?string|null

Second line of the customer's address.

address_city?string|null

City of the customer's address.

address_country?string|null

Country of the customer's address.

address_state?string|null

State or province of the customer's address.

address_postal_code?string|null

Postal code of the customer's address.

shipping_address_line1?string|null

First line of the customer's shipping address.

shipping_address_line2?string|null

Second line of the customer's shipping address.

shipping_address_city?string|null

City of the customer's shipping address.

shipping_address_country?string|null

Country of the customer's shipping address.

shipping_address_state?string|null

State or province of the customer's shipping address.

shipping_address_postal_code?string|null

Postal code of the customer's shipping address.

phone?string|null

Phone number of the customer.

Response Body

application/json

curl -X POST "https://dev-backend.thelinks.ai/api/v1/unified/customer" \  -H "Content-Type: application/json" \  -d '{    "email": "customer@example.com",    "name": "Acme Corp"  }'
{
  "data": {
    "id": "cust_12345",
    "source_system": "salesforce",
    "source_system_img_url": "https://cdn.example.com/salesforce.png",
    "source_id": "sf_98765",
    "external_system_provider_id": "provider_001",
    "external_system_config_id": "config_abc",
    "external_system_data": {
      "custom_field": "value"
    },
    "supporting_data_definition_id": "support_001",
    "email": "customer@example.com",
    "name": "Acme Corp",
    "address_line1": "123 Main St",
    "address_line2": "Suite 456",
    "address_city": "Los Santos",
    "address_country": "USA",
    "address_state": "California",
    "address_postal_code": "90001",
    "shipping_address_line1": "789 Market St",
    "shipping_address_line2": "Floor 2",
    "shipping_address_city": "San Fierro",
    "shipping_address_country": "USA",
    "shipping_address_state": "Nevada",
    "shipping_address_postal_code": "94103",
    "phone": "+123456789",
    "is_primary": true,
    "local_was_deleted": false,
    "local_was_updated": true,
    "source_data_created_at": "2024-01-01T12:00:00Z",
    "is_active": true
  }
}
Empty