---
title: "Add Customer"
method: POST
path: "/customers"
---

# Add Customer

`POST /customers`

Lets you register customers in the org’s loyalty program or just register their identifiers across sources such as InStore, Facebook,Webengage, WeChat, Martjack, TMall, Taobao, JD, ecommerce, Line, Website, and Mobile app. You can also add customer-level extended and custom field details.

You can also issue loyalty card to the customer using this API.

## Query parameters

- `rawSideEffects` boolean
- `mlp_single_enroll` boolean
- `source` 'INSTORE' | 'FACEBOOK' | 'WEB_ENGAGE' | 'WECHAT' | 'MARTJACK' | 'TMALL' | 'TAOBAO' | 'JD' | 'ECOMMERCE' | 'WEBSITE'
- `accountId` string

## Headers

- `X-CAP-API-OAUTH-TOKEN` string
- `WAIT_FOR_DOWNSTREAM` boolean
- `X-CAP-DIRECT-REPLAY` boolean
- `USER-CONTEXT-ENTITY-TYPE` string
- `USER-CONTEXT-ENTITY-ID` string
- `USER-CONTEXT-ENTITY-SOURCE` string
- `USER-CONTEXT-ENTITY-SOURCE-ID` string

## Request body

- object
  - `RAW_BODY` string, json

## Response `200`

200

- object
  - `createdId` integer
  - `warnings` unknown[]
    - unknown
  - `sideEffects` object[]
    - `awardedPoints` integer
    - `type` string

## Other responses

- `500` — 500

---

[API](https://skmtc.net/capillarytech/apis/sample-api.md) · [All operations](https://skmtc.net/capillarytech/apis/sample-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/capillarytech/sample-api/versions/de241f2ed9b3/schema)
