{"info":{"_postman_id":"4b66ac12-1290-4d93-9246-891ed433b8d0","name":"Qontak Customer API & Webhook","schema":"https://schema.getpostman.com/json/collection/v2.0.0/collection.json","toc":[],"description":"<html><head></head><body></body></html>","owner":"42843014","collectionId":"4b66ac12-1290-4d93-9246-891ed433b8d0","publishedId":"2sBXiojohT","public":true,"customColor":{"top-bar":"FFFFFF","right-sidebar":"303030","highlight":"FF6C37"},"publishDate":"2026-04-01T08:32:09.000Z"},"item":[{"name":"OpenAPI","item":[{"name":"Customer Loyalty","item":[{"name":"Enroll Member","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["const CryptoJS = require('crypto-js');\nconst Header = require('postman-collection').Header;\nconst hmac_username = '';\nconst hmac_secret = '';\n\nconst resolvedUrlString = pm.variables.replaceIn(pm.request.url.toString());\n\nconst pathMatch = resolvedUrlString.match(/^[a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/[^/]+(\\/[^?#]*)?/);\nconst path = (pathMatch && pathMatch[1]) ? pathMatch[1] : '/';\n\nconst requestLine = pm.request.method + ' ' + path + ' HTTP/1.1';\nconst dateString = new Date().toUTCString();\nconst digest = CryptoJS.HmacSHA256(['date: ' + dateString, requestLine].join('\\n'), hmac_secret);\nconst signature = CryptoJS.enc.Base64.stringify(digest);\nconst hmac_header = 'hmac username=\"' + hmac_username + '\", algorithm=\"hmac-sha256\", ' +\n  'headers=\"date request-line\", signature=\"' + signature + '\"';\n\npm.request.headers.add(new Header(\"Authorization: \" + hmac_header));\npm.request.headers.add(new Header(\"Date: \" + dateString));"]}}],"id":"4ad5b9c8-f45f-45ce-b4e6-20713e5bec60","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"customer_id\": \"6a87f89afeebc490b9cc35e7\",\n    \"phone_number\": \"628779872632\",\n    \"email\": \"johanloe77@rockstar.com\",\n    \"customer_name\": \"Johan Loe\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.mekari.com/qontak/cdp/v1/customers/loyalty","description":"<p><strong>Summary:</strong> Enroll customer as Loyalty member</p>\n<p><strong>Description:</strong> Looks up a contact by <code>customer_id</code>, builds an encrypted member payload, and forwards it to the Loyalty Service for member creation.</p>\n<p><strong>Authentication:</strong> MAG<br /><strong>Permission:</strong> <code>customers_customers_manage</code></p>\n<p><strong>Request Body (JSON):</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>customer_id</code></td>\n<td>string</td>\n<td>yes</td>\n<td>Contact ObjectID hex</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Responses:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>Member enrolled successfully</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Invalid request body</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Unauthorized — missing/invalid MAG credentials</td>\n</tr>\n<tr>\n<td><code>403</code></td>\n<td>Forbidden — missing <code>customers_customers_manage</code> permission</td>\n</tr>\n<tr>\n<td><code>503</code></td>\n<td>Loyalty service unavailable</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["qontak","cdp","v1","customers","loyalty"],"host":["api","mekari","com"],"query":[],"variable":[]}},"response":[{"id":"40624686-82f2-46af-89b7-8782a1af3af2","name":"Enroll Member","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"customer_id\": \"6a0a87aca9a189ea680d088d\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.mekari.com/qontak/cdp/v1/customers/loyalty"},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"resp_code\": \"200\",\n    \"resp_desc\": {\n        \"id\": \"OK\",\n        \"en\": \"OK\"\n    },\n    \"meta\": {\n        \"version\": \"d4cce38\",\n        \"api_env\": \"production\",\n        \"trace_id\": \"\"\n    },\n    \"data\": [\n        {\n            \"birth_date\": null,\n            \"custom_field\": {\n                \"address\": null,\n                \"address_google_map\": null,\n                \"avg_annual_income\": null,\n                \"city\": null,\n                \"country\": null,\n                \"date_-_dd/mm/yyyy_-_masking\": null,\n                \"date_-_mm/dd/yyyy_-_masking\": null,\n                \"date_-_yyyy/mm/dd_-_masking\": null,\n                \"date_of_birth\": null,\n                \"dropdown_-_masking\": null,\n                \"file_upload_-_masking\": [],\n                \"gps_-_masking\": null,\n                \"lokasi_cod\": null,\n                \"makanan_favorit\": null,\n                \"multiline_text_-_masking\": null,\n                \"multiple_choice\": [],\n                \"number_-_currency_-_masking\": null,\n                \"number_-_numeric_-_masking\": null,\n                \"number_-_percentage_-_masking\": null,\n                \"province\": null,\n                \"signature_-_masking\": [],\n                \"single_line_-_masking\": null,\n                \"tes_single_lain\": \"asd\",\n                \"upload_id\": [],\n                \"url_-_masking\": null,\n                \"zipcode\": null\n            },\n            \"customer_id\": \"6a0a87aca9a189ea680d088d\",\n            \"customer_name\": \"Test Loyalty xbr\",\n            \"email\": null,\n            \"phone_number\": \"627343\"\n        }\n    ]\n}"}],"_postman_id":"4ad5b9c8-f45f-45ce-b4e6-20713e5bec60"},{"name":"Get Detail Member","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["const CryptoJS = require('crypto-js');\nconst Header = require('postman-collection').Header;\nconst hmac_username = '';\nconst hmac_secret = '';\n\nconst resolvedUrlString = pm.variables.replaceIn(pm.request.url.toString());\n\nconst pathMatch = resolvedUrlString.match(/^[a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/[^/]+(\\/[^?#]*)?/);\nconst path = (pathMatch && pathMatch[1]) ? pathMatch[1] : '/';\n\nconst requestLine = pm.request.method + ' ' + path + ' HTTP/1.1';\nconst dateString = new Date().toUTCString();\nconst digest = CryptoJS.HmacSHA256(['date: ' + dateString, requestLine].join('\\n'), hmac_secret);\nconst signature = CryptoJS.enc.Base64.stringify(digest);\nconst hmac_header = 'hmac username=\"' + hmac_username + '\", algorithm=\"hmac-sha256\", ' +\n  'headers=\"date request-line\", signature=\"' + signature + '\"';\n\npm.request.headers.add(new Header(\"Authorization: \" + hmac_header));\npm.request.headers.add(new Header(\"Date: \" + dateString));"]}}],"id":"6de33a0b-23cd-44a1-a2da-6183a486101e","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.mekari.com/qontak/cdp/v1/customers/:id/loyalty","description":"<p><strong>Summary:</strong> Get customer loyalty membership status</p>\n<p><strong>Description:</strong> Retrieves loyalty membership status, tier, and points balance for a customer.</p>\n<p><strong>Authentication:</strong> MAG<br /><strong>Permission:</strong> <code>customers_customers_view</code></p>\n<p><strong>Path Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Param</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"https://null\">id</a></td>\n<td>string</td>\n<td>yes</td>\n<td>Customer ObjectID hex</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Responses:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>Membership data returned</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Missing or invalid <a href=\"https://null\">id</a></td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Unauthorized</td>\n</tr>\n<tr>\n<td><code>403</code></td>\n<td>Forbidden</td>\n</tr>\n<tr>\n<td><code>503</code></td>\n<td>Loyalty service unavailable</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["qontak","cdp","v1","customers",":id","loyalty"],"host":["api","mekari","com"],"query":[],"variable":[{"type":"any","value":"6a87f89afeebc490b9cc35e7","key":"id"}]}},"response":[{"id":"7cd43f4e-0abe-48e4-9ce4-73b14bd2f36e","name":"Get Detail Member","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.mekari.com/qontak/cdp/v1/customers/:id/loyalty","protocol":"https","host":["api","mekari","com"],"path":["qontak","cdp","v1","customers",":id","loyalty"],"variable":[{"key":"id","value":"6a0a87aca9a189ea680d088d"}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"resp_code\": \"200\",\n  \"resp_desc\": {\n    \"id\": \"OK\",\n    \"en\": \"OK\"\n  },\n  \"meta\": {\n    \"version\": \"d4cce38\",\n    \"api_env\": \"production\",\n    \"trace_id\": \"\"\n  },\n  \"data\": [\n    {\n      \"id\": \"member_abc123\",\n      \"name\": \"John Doe\",\n      \"email\": \"john@example.com\",\n      \"phone_number\": \"628123456789\",\n      \"birth_date\": 631152000,\n      \"join_date\": 1700000000,\n      \"status\": \"Active\",\n      \"created_at\": 1700000000,\n      \"updated_at\": 1700000000,\n      \"custom_field\": {},\n      \"tiers\": [\n        {\n          \"tier_id\": {\n            \"id\": \"tier_001\",\n            \"name\": \"Gold\",\n            \"currency\": {\n              \"id\": \"currency_001\",\n              \"name\": \"Points\"\n            }\n          },\n          \"current_level_id\": {\n            \"id\": \"level_001\",\n            \"name\": \"Gold\"\n          },\n          \"progression\": {\n            \"status\": \"Active\",\n            \"total_point_in_current_level\": 1500,\n            \"points_needed_to_upgrade\": 500,\n            \"target_threshold\": 2000,\n            \"next_level_id\": {\n              \"id\": \"level_002\",\n              \"name\": \"Platinum\"\n            }\n          }\n        }\n      ],\n      \"wallet\": [\n        {\n          \"wallet_id\": \"wallet_abc\",\n          \"unit\": \"Points\",\n          \"total_point\": 2500,\n          \"balance_available\": 2000,\n          \"balance_pending\": 500,\n          \"lifetime_earned\": 5000,\n          \"expired_total_point\": 0,\n          \"currency_expire_at\": 0,\n          \"currency\": {\n            \"id\": \"currency_001\",\n            \"name\": \"Points\"\n          }\n        }\n      ]\n    }\n  ]\n}"}],"_postman_id":"6de33a0b-23cd-44a1-a2da-6183a486101e"},{"name":"Get Catalogue","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["const CryptoJS = require('crypto-js');\nconst Header = require('postman-collection').Header;\nconst hmac_username = '';\nconst hmac_secret = '';\n\nconst resolvedUrlString = pm.variables.replaceIn(pm.request.url.toString());\n\nconst pathMatch = resolvedUrlString.match(/^[a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/[^/]+(\\/[^?#]*)?/);\nconst path = (pathMatch && pathMatch[1]) ? pathMatch[1] : '/';\n\nconst requestLine = pm.request.method + ' ' + path + ' HTTP/1.1';\nconst dateString = new Date().toUTCString();\nconst digest = CryptoJS.HmacSHA256(['date: ' + dateString, requestLine].join('\\n'), hmac_secret);\nconst signature = CryptoJS.enc.Base64.stringify(digest);\nconst hmac_header = 'hmac username=\"' + hmac_username + '\", algorithm=\"hmac-sha256\", ' +\n  'headers=\"date request-line\", signature=\"' + signature + '\"';\n\npm.request.headers.add(new Header(\"Authorization: \" + hmac_header));\npm.request.headers.add(new Header(\"Date: \" + dateString));"]}}],"id":"73cb5391-e4f2-43ab-bd10-d070f1637dde","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.mekari.com/qontak/cdp/v1/customers/reward/catalogue","description":"<h2 id=\"get-v1customersrewardcatalogue\">GET <code>/v1/customers/reward/catalogue</code></h2>\n<p><strong>Description:</strong> Retrieves the loyalty reward catalogue. Returns a paginated list of available reward items from the Loyalty Service. Does not require a specific customer context — the catalogue is company-scoped and publicly browsable within the authenticated session.</p>\n<hr />\n<h3 id=\"request\">Request</h3>\n<p><strong>Method:</strong> <code>GET</code></p>\n<p><strong>URL:</strong> <code>/v1/customers/reward/catalogue</code></p>\n<h4 id=\"query-parameters\">Query Parameters</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Default</th>\n<th>Constraints</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>page</code></td>\n<td>integer</td>\n<td>No</td>\n<td><code>1</code></td>\n<td><code>&gt;= 1</code></td>\n<td>Page number for pagination</td>\n</tr>\n<tr>\n<td><code>per_page</code></td>\n<td>integer</td>\n<td>No</td>\n<td><code>10</code></td>\n<td><code>1–200</code></td>\n<td>Number of items per page (capped at 200)</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>No</td>\n<td>—</td>\n<td>Max 255 characters</td>\n<td>Filter rewards by name (partial match)</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"responses\">Responses</h3>\n<h4 id=\"200-ok--success\"><code>200 OK</code> — Success</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"data\": [\n    {\n      \"id\": \"rwd_01J1ABC123\",\n      \"name\": \"Diskon Voucher 50rb\",\n      \"description\": \"Voucher diskon belanja senilai Rp 50.000\",\n      \"amount\": 500,\n      \"currency_id\": {\n        \"id\": \"cur_points\",\n        \"name\": \"Points\"\n      },\n      \"expiration_days\": 30,\n      \"image_url\": \"https://cdn.example.com/rewards/voucher50.png\",\n      \"tier_id\": {\n        \"id\": \"tier_gold\",\n        \"name\": \"Gold\",\n        \"currency\": {\n          \"id\": \"cur_points\",\n          \"name\": \"Points\"\n        }\n      },\n      \"tier_level_id\": [\n        {\n          \"id\": \"level_1\",\n          \"name\": \"Bronze\"\n        },\n        {\n          \"id\": \"level_2\",\n          \"name\": \"Silver\"\n        }\n      ]\n    }\n  ],\n  \"pagination\": {\n    \"page\": 1,\n    \"per_page\": 10,\n    \"is_eligible_next\": true\n  }\n}\n\n</code></pre>\n<h4 id=\"response-body--data-item-schema\">Response Body — <code>data[]</code> Item Schema</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>id</code></td>\n<td>string</td>\n<td>Unique reward ID</td>\n</tr>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Display name of the reward</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>string</td>\n<td>Human-readable description</td>\n</tr>\n<tr>\n<td><code>amount</code></td>\n<td>integer (int64)</td>\n<td>Point cost to redeem this reward</td>\n</tr>\n<tr>\n<td><code>currency_id</code></td>\n<td>object</td>\n<td>Currency used for this reward</td>\n</tr>\n<tr>\n<td><code>currency_id.id</code></td>\n<td>string</td>\n<td>Currency identifier</td>\n</tr>\n<tr>\n<td><code>currency_id.name</code></td>\n<td>string</td>\n<td>Currency display name</td>\n</tr>\n<tr>\n<td><code>expiration_days</code></td>\n<td>integer (int64)</td>\n<td>Days until the redeemed reward expires</td>\n</tr>\n<tr>\n<td><code>image_url</code></td>\n<td>string</td>\n<td>URL of the reward image</td>\n</tr>\n<tr>\n<td><code>tier_id</code></td>\n<td>object</td>\n<td>Tier this reward belongs to</td>\n</tr>\n<tr>\n<td><code>tier_id.id</code></td>\n<td>string</td>\n<td>Tier identifier</td>\n</tr>\n<tr>\n<td><code>tier_id.name</code></td>\n<td>string</td>\n<td>Tier display name</td>\n</tr>\n<tr>\n<td><code>tier_id.currency</code></td>\n<td>object</td>\n<td>Tier's associated currency (<code>id</code>, <code>name</code>)</td>\n</tr>\n<tr>\n<td><code>tier_level_id</code></td>\n<td>array of objects</td>\n<td>Tier levels eligible to redeem this reward</td>\n</tr>\n<tr>\n<td><code>tier_level_id[].id</code></td>\n<td>string</td>\n<td>Level identifier</td>\n</tr>\n<tr>\n<td><code>tier_level_id[].name</code></td>\n<td>string</td>\n<td>Level display name</td>\n</tr>\n</tbody>\n</table>\n</div><h4 id=\"pagination-schema\">Pagination Schema</h4>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>page</code></td>\n<td>integer</td>\n<td>Current page number</td>\n</tr>\n<tr>\n<td><code>per_page</code></td>\n<td>integer</td>\n<td>Items per page</td>\n</tr>\n<tr>\n<td><code>is_eligible_next</code></td>\n<td>boolean</td>\n<td><code>true</code> if more pages are available (response count equals <code>per_page</code>)</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h4 id=\"400-bad-request--invalid-parameters\"><code>400 Bad Request</code> — Invalid Parameters</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"error\": \"Parameter name terlalu panjang\",\n  \"message\": \"name parameter exceeds maximum length of 255 characters\"\n}\n\n</code></pre>\n<p>Triggered when <code>name</code> query param exceeds 255 characters.</p>\n<hr />\n<h4 id=\"401-unauthorized--missing-or-invalid-mag-api-key--user-identity\"><code>401 Unauthorized</code> — Missing or invalid MAG API key / user identity</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"error\": \"Unauthorized\"\n}\n\n</code></pre>\n<hr />\n<h4 id=\"403-forbidden--insufficient-permission\"><code>403 Forbidden</code> — Insufficient permission</h4>\n<p>Returned by <code>RequirePermissionMiddleware</code> when the authenticated user does not have the <code>customers_customers_view</code> permission.</p>\n<hr />\n<h4 id=\"503-service-unavailable--loyalty-service-not-configured\"><code>503 Service Unavailable</code> — Loyalty service not configured</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"error\": \"Layanan loyalty tidak tersedia\",\n  \"message\": \"Loyalty service is not configured\"\n}\n\n</code></pre>\n<hr />\n<h4 id=\"500-internal-server-error--upstream-loyalty-service-failure\"><code>500 Internal Server Error</code> — Upstream Loyalty Service failure</h4>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"error\": \"Internal Server Error\"\n}\n\n</code></pre>\n<hr />\n<h3 id=\"notes\">Notes</h3>\n<ul>\n<li><p>Pagination uses <strong>cursor-style next-page detection</strong>: if the number of items returned equals <code>per_page</code>, <code>is_eligible_next</code> is <code>true</code>. There is no <code>total_count</code> field.</p>\n</li>\n<li><p><code>per_page</code> is automatically capped at <code>200</code> even if a higher value is sent.</p>\n</li>\n<li><p>The <code>name</code> filter is applied on the Loyalty Service side; partial match behaviour depends on the upstream service.</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["qontak","cdp","v1","customers","reward","catalogue"],"host":["api","mekari","com"],"query":[],"variable":[]}},"response":[{"id":"8b853c65-f4b0-41d0-8175-3bcae40ea145","name":"Get Catalogue","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.mekari.com/qontak/cdp/v1/customers/reward/catalogue"},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"data\": [\n    {\n      \"id\": \"rwd_01J1ABC123\",\n      \"name\": \"Diskon Voucher 50rb\",\n      \"description\": \"Voucher diskon belanja senilai Rp 50.000\",\n      \"amount\": 500,\n      \"currency_id\": {\n        \"id\": \"cur_points\",\n        \"name\": \"Points\"\n      },\n      \"expiration_days\": 30,\n      \"image_url\": \"https://cdn.example.com/rewards/voucher50.png\",\n      \"tier_id\": {\n        \"id\": \"tier_gold\",\n        \"name\": \"Gold\",\n        \"currency\": {\n          \"id\": \"cur_points\",\n          \"name\": \"Points\"\n        }\n      },\n      \"tier_level_id\": [\n        {\n          \"id\": \"level_1\",\n          \"name\": \"Bronze\"\n        },\n        {\n          \"id\": \"level_2\",\n          \"name\": \"Silver\"\n        }\n      ]\n    }\n  ],\n  \"pagination\": {\n    \"page\": 1,\n    \"per_page\": 10,\n    \"is_eligible_next\": true\n  }\n}\n"}],"_postman_id":"73cb5391-e4f2-43ab-bd10-d070f1637dde"},{"name":"Get Member Reward","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["const CryptoJS = require('crypto-js');\nconst Header = require('postman-collection').Header;\nconst hmac_username = '';\nconst hmac_secret = '';\n\nconst resolvedUrlString = pm.variables.replaceIn(pm.request.url.toString());\n\nconst pathMatch = resolvedUrlString.match(/^[a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/[^/]+(\\/[^?#]*)?/);\nconst path = (pathMatch && pathMatch[1]) ? pathMatch[1] : '/';\n\nconst requestLine = pm.request.method + ' ' + path + ' HTTP/1.1';\nconst dateString = new Date().toUTCString();\nconst digest = CryptoJS.HmacSHA256(['date: ' + dateString, requestLine].join('\\n'), hmac_secret);\nconst signature = CryptoJS.enc.Base64.stringify(digest);\nconst hmac_header = 'hmac username=\"' + hmac_username + '\", algorithm=\"hmac-sha256\", ' +\n  'headers=\"date request-line\", signature=\"' + signature + '\"';\n\npm.request.headers.add(new Header(\"Authorization: \" + hmac_header));\npm.request.headers.add(new Header(\"Date: \" + dateString));"]}}],"id":"50ec40d6-df01-45ec-a22d-d9ebd7cd6c49","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.mekari.com/qontak/cdp/v1/customers/:id/loyalty/reward","description":"<p><strong>Summary:</strong> List rewards eligible for redemption</p>\n<p><strong>Description:</strong> Returns a paginated list of rewards the customer is currently eligible to redeem.</p>\n<p><strong>Authentication:</strong> MAG<br /><strong>Permission:</strong> <code>customers_customers_view</code></p>\n<p><strong>Path Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Param</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"https://null\">id</a></td>\n<td>string</td>\n<td>yes</td>\n<td>Customer ObjectID hex</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Query Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Param</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"https://null\">name</a></td>\n<td>string</td>\n<td>no</td>\n<td>Filter by reward name (max 255 chars)</td>\n</tr>\n<tr>\n<td><a href=\"https://null\">status</a></td>\n<td>string</td>\n<td>no</td>\n<td>Filter by status: <code>Issued</code>, <code>Used</code>, or <code>Void</code></td>\n</tr>\n<tr>\n<td><code>page</code></td>\n<td>integer</td>\n<td>no</td>\n<td>Page number (default: 1)</td>\n</tr>\n<tr>\n<td><code>per_page</code></td>\n<td>integer</td>\n<td>no</td>\n<td>Items per page (default: 10, max: 200)</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Responses:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>Reward list returned with pagination metadata</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Invalid query parameters</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Unauthorized</td>\n</tr>\n<tr>\n<td><code>403</code></td>\n<td>Forbidden</td>\n</tr>\n<tr>\n<td><code>503</code></td>\n<td>Loyalty service unavailable</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["qontak","cdp","v1","customers",":id","loyalty","reward"],"host":["api","mekari","com"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"40c9b2a1-79de-430b-8e98-b42a778d3f8f","name":"Get Member Reward","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.mekari.com/qontak/cdp/v1/customers/:id/loyalty","protocol":"https","host":["api","mekari","com"],"path":["qontak","cdp","v1","customers",":id","loyalty"],"variable":[{"key":"id","value":"6a0a87aca9a189ea680d088d"}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"code\": 200,\n  \"error\": false,\n  \"message\": \"success\",\n  \"pagination\": {\n    \"page\": 1,\n    \"per_page\": 10,\n    \"is_eligible_next\": true\n  },\n  \"trace_id\": \"abc123\",\n  \"data\": [\n    {\n      \"reward_id\": {\n        \"id\": \"reward_001\",\n        \"name\": \"Voucher Diskon 50rb\"\n      },\n      \"description\": \"Voucher diskon senilai Rp 50.000\",\n      \"image_url\": \"https://cdn.example.com/reward_001.png\",\n      \"code_issued\": \"VOUCH-XYZ123\",\n      \"status\": \"Issued\",\n      \"expire_at\": 1800000000\n    }\n  ]\n}"}],"_postman_id":"50ec40d6-df01-45ec-a22d-d9ebd7cd6c49"},{"name":"Get Transaction History","event":[{"listen":"prerequest","script":{"id":"3f8622a9-2f44-4ea1-b051-9b0be38ae5e5","exec":["const CryptoJS = require('crypto-js');","const Header = require('postman-collection').Header;","const hmac_username = '';","const hmac_secret = '';","","const resolvedUrlString = pm.variables.replaceIn(pm.request.url.toString());","","const pathMatch = resolvedUrlString.match(/^[a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/[^/]+(\\/[^?#]*)?/);","const path = (pathMatch && pathMatch[1]) ? pathMatch[1] : '/';","","const requestLine = pm.request.method + ' ' + path + ' HTTP/1.1';","const dateString = new Date().toUTCString();","const digest = CryptoJS.HmacSHA256(['date: ' + dateString, requestLine].join('\\n'), hmac_secret);","const signature = CryptoJS.enc.Base64.stringify(digest);","const hmac_header = 'hmac username=\"' + hmac_username + '\", algorithm=\"hmac-sha256\", ' +","  'headers=\"date request-line\", signature=\"' + signature + '\"';","","pm.request.headers.add(new Header(\"Authorization: \" + hmac_header));","pm.request.headers.add(new Header(\"Date: \" + dateString));"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"766f8824-4abb-4e88-bbf6-9a01aa35296c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"{\n    \"customer_id\": \"6a0a87aca9a189ea680d088d\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.mekari.com/qontak/cdp/v1/customers/:id/loyalty/transaction/history","description":"<p><strong>Summary:</strong> Get loyalty transaction history</p>\n<p><strong>Description:</strong> Returns a paginated list of loyalty point transactions (earn/burn) for a customer.</p>\n<p><strong>Authentication:</strong> MAG<br /><strong>Permission:</strong> <code>customers_customers_view</code></p>\n<p><strong>Path Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Param</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"https://null\">id</a></td>\n<td>string</td>\n<td>yes</td>\n<td>Customer ObjectID hex</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Query Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Param</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>page</code></td>\n<td>integer</td>\n<td>no</td>\n<td>Page number (default: 1)</td>\n</tr>\n<tr>\n<td><code>per_page</code></td>\n<td>integer</td>\n<td>no</td>\n<td>Items per page (default: 5, max: 200)</td>\n</tr>\n<tr>\n<td><code>type</code></td>\n<td>string</td>\n<td>no</td>\n<td>Filter by type: <code>Earn</code> or <code>Burn</code></td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Responses:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>Transaction history returned with pagination metadata</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Invalid query parameters</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Unauthorized</td>\n</tr>\n<tr>\n<td><code>403</code></td>\n<td>Forbidden</td>\n</tr>\n<tr>\n<td><code>503</code></td>\n<td>Loyalty service unavailable</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["qontak","cdp","v1","customers",":id","loyalty","transaction","history"],"host":["api","mekari","com"],"query":[{"disabled":true,"key":"X-Sso-User-Id","value":"d4228ce5-9a3c-4226-aeb6-b2eb8e763366"},{"disabled":true,"key":"X-Mag-Api-Key","value":"9c7b1d4e6f8a203b5e7d92c4a1f3e680b4d2c5a8"}],"variable":[{"type":"any","value":"6a0a87aca9a189ea680d088d","key":"id"}]}},"response":[{"id":"a86d996a-744b-4ddc-b75e-6f4ebe392eb6","name":"Get Transaction History","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.mekari.com/qontak/cdp/v1/customers/:id/loyalty/transaction/history","protocol":"https","host":["api","mekari","com"],"path":["qontak","cdp","v1","customers",":id","loyalty","transaction","history"],"variable":[{"key":"id","value":"6a0a87aca9a189ea680d088d"}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"code\": 200,\n  \"error\": false,\n  \"message\": \"success\",\n  \"pagination\": {\n    \"page\": 1,\n    \"per_page\": 5,\n    \"is_eligible_next\": true\n  },\n  \"trace_id\": \"abc123\",\n  \"data\": [\n    {\n      \"id\": \"txn_001\",\n      \"ext_transaction_id\": \"pos_txn_12345\",\n      \"description\": \"Purchase at store\",\n      \"amount\": 100,\n      \"type\": \"Earn\",\n      \"status\": \"Success\",\n      \"created_at\": 1700000000,\n      \"rule_id\": {\n        \"id\": \"rule_001\",\n        \"name\": \"Purchase Earn Rule\"\n      },\n      \"currency_id\": {\n        \"id\": \"currency_001\",\n        \"name\": \"Points\"\n      }\n    }\n  ]\n}"}],"_postman_id":"766f8824-4abb-4e88-bbf6-9a01aa35296c"},{"name":"Redeem Reward","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["const CryptoJS = require('crypto-js');\nconst Header = require('postman-collection').Header;\nconst hmac_username = 'x8jZM4FeRw07Enuk';\nconst hmac_secret = 'Fgcuchd6bAtUt8lx8qbYpheLzZPT1jb8';\n\nconst resolvedUrlString = pm.variables.replaceIn(pm.request.url.toString());\n\nconst pathMatch = resolvedUrlString.match(/^[a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/[^/]+(\\/[^?#]*)?/);\nconst path = (pathMatch && pathMatch[1]) ? pathMatch[1] : '/';\n\nconst requestLine = pm.request.method + ' ' + path + ' HTTP/1.1';\nconst dateString = new Date().toUTCString();\nconst digest = CryptoJS.HmacSHA256(['date: ' + dateString, requestLine].join('\\n'), hmac_secret);\nconst signature = CryptoJS.enc.Base64.stringify(digest);\nconst hmac_header = 'hmac username=\"' + hmac_username + '\", algorithm=\"hmac-sha256\", ' +\n  'headers=\"date request-line\", signature=\"' + signature + '\"';\n\npm.request.headers.add(new Header(\"Authorization: \" + hmac_header));\npm.request.headers.add(new Header(\"Date: \" + dateString));"]}}],"id":"3c114683-3192-4e54-9f67-a7c52c79f840","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"reward_id\": \"qTOdy8J3L1Wp\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.mekari.io/qontak/cdp/v1/customers/:id/loyalty/reward/redeem","description":"<p><strong>Summary:</strong> Redeem a loyalty reward</p>\n<p><strong>Description:</strong> Redeems a loyalty reward for the specified customer and forwards the request to the Loyalty Service.</p>\n<p><strong>Authentication:</strong> MAG<br /><strong>Permission:</strong> <code>customers_customers_manage</code></p>\n<p><strong>Path Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Param</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"https://null\">id</a></td>\n<td>string</td>\n<td>yes</td>\n<td>Customer ObjectID hex</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Request Body (JSON):</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>reward_id</code></td>\n<td>string</td>\n<td>yes</td>\n<td>ID of the reward to redeem</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Responses:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>Reward redeemed successfully</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Missing <code>reward_id</code> or invalid body</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Unauthorized</td>\n</tr>\n<tr>\n<td><code>403</code></td>\n<td>Forbidden</td>\n</tr>\n<tr>\n<td><code>503</code></td>\n<td>Loyalty service unavailable</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["qontak","cdp","v1","customers",":id","loyalty","reward","redeem"],"host":["api","mekari","io"],"query":[],"variable":[{"type":"any","value":"6a87f89afeebc490b9cc35e7","key":"id"}]}},"response":[{"id":"08ffff80-6dd1-4d5e-baec-b535f2944bca","name":"Redeem Reward","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"reward_id\": \"reward_001\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.mekari.com/qontak/cdp/v1/customers/:id/loyalty/reward/redeem","protocol":"https","host":["api","mekari","com"],"path":["qontak","cdp","v1","customers",":id","loyalty","reward","redeem"],"variable":[{"key":"id","value":"6a0a87aca9a189ea680d088d"}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"code\": 200,\n  \"error\": false,\n  \"message\": \"success\",\n  \"pagination\": null,\n  \"trace_id\": \"abc123\",\n  \"data\": {\n    \"code_issued\": \"VOUCH-XYZ123\",\n    \"status\": \"Issued\",\n    \"description\": \"Voucher diskon senilai Rp 50.000\",\n    \"reward_id\": {\n      \"id\": \"reward_001\",\n      \"name\": \"Voucher Diskon 50rb\"\n    },\n    \"member_id\": {\n      \"id\": \"member_abc123\",\n      \"name\": \"John Doe\"\n    }\n  }\n}"}],"_postman_id":"3c114683-3192-4e54-9f67-a7c52c79f840"},{"name":"Use Reward","event":[{"listen":"prerequest","script":{"id":"3f8622a9-2f44-4ea1-b051-9b0be38ae5e5","exec":["const CryptoJS = require('crypto-js');","const Header = require('postman-collection').Header;","const hmac_username = '';","const hmac_secret = '';","","const resolvedUrlString = pm.variables.replaceIn(pm.request.url.toString());","","const pathMatch = resolvedUrlString.match(/^[a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/[^/]+(\\/[^?#]*)?/);","const path = (pathMatch && pathMatch[1]) ? pathMatch[1] : '/';","","const requestLine = pm.request.method + ' ' + path + ' HTTP/1.1';","const dateString = new Date().toUTCString();","const digest = CryptoJS.HmacSHA256(['date: ' + dateString, requestLine].join('\\n'), hmac_secret);","const signature = CryptoJS.enc.Base64.stringify(digest);","const hmac_header = 'hmac username=\"' + hmac_username + '\", algorithm=\"hmac-sha256\", ' +","  'headers=\"date request-line\", signature=\"' + signature + '\"';","","pm.request.headers.add(new Header(\"Authorization: \" + hmac_header));","pm.request.headers.add(new Header(\"Date: \" + dateString));"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"69c2a9c0-998c-42cf-928a-01a22d431204","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"code\": \"dummy_reward_code\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.mekari.com/qontak/cdp/v1/customers/:id/loyalty/reward/use","description":"<p><strong>Summary:</strong> Mark a loyalty reward as used</p>\n<p><strong>Description:</strong> Marks a loyalty reward as used for a customer by reward code. Rate-limited to prevent duplicate usage. S2S callers may provide <code>company_sso_id</code> in the body instead of relying on auth context.</p>\n<p><strong>Authentication:</strong> MAG<br /><strong>Permission:</strong> <code>customers_customers_manage</code><br /><strong>Rate Limited:</strong> yes</p>\n<p><strong>Path Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Param</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"https://null\">id</a></td>\n<td>string</td>\n<td>yes</td>\n<td>Customer ObjectID hex</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Request Body (JSON):</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"https://null\">code</a></td>\n<td>string</td>\n<td>yes</td>\n<td>Reward code to mark as used (max 256 chars)</td>\n</tr>\n<tr>\n<td><code>company_sso_id</code></td>\n<td>string</td>\n<td>no</td>\n<td>Company SSO ID (for S2S callers only, max 128 chars)</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Responses:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>Reward marked as used</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Missing/invalid <a href=\"https://null\">code</a></td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Unauthorized</td>\n</tr>\n<tr>\n<td><code>403</code></td>\n<td>Forbidden</td>\n</tr>\n<tr>\n<td><code>429</code></td>\n<td>Rate limit exceeded</td>\n</tr>\n<tr>\n<td><code>503</code></td>\n<td>Loyalty service unavailable</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["qontak","cdp","v1","customers",":id","loyalty","reward","use"],"host":["api","mekari","com"],"query":[{"disabled":true,"key":"X-Sso-User-Id","value":"d4228ce5-9a3c-4226-aeb6-b2eb8e763366"},{"disabled":true,"key":"X-Mag-Api-Key","value":"9c7b1d4e6f8a203b5e7d92c4a1f3e680b4d2c5a8"}],"variable":[{"type":"any","value":"6a0a87aca9a189ea680d088d","key":"id"}]}},"response":[{"id":"2ac6fc27-9f77-43e7-8a9c-2e3f0be6d8e3","name":"Use Reward","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"code\": \"VOUCH-XYZ123\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.mekari.com/qontak/cdp/v1/customers/:id/loyalty/reward/use","protocol":"https","host":["api","mekari","com"],"path":["qontak","cdp","v1","customers",":id","loyalty","reward","use"],"variable":[{"key":"id","value":"6a0a87aca9a189ea680d088d"}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"code\": 200,\n  \"error\": false,\n  \"message\": \"success\",\n  \"pagination\": null,\n  \"trace_id\": \"abc123\",\n  \"data\": {\n    \"status\": \"Used\",\n    \"code\": \"VOUCH-XYZ123\"\n  }\n}"}],"_postman_id":"69c2a9c0-998c-42cf-928a-01a22d431204"},{"name":"Burn Transaction","event":[{"listen":"prerequest","script":{"id":"3f8622a9-2f44-4ea1-b051-9b0be38ae5e5","exec":["const CryptoJS = require('crypto-js');","const Header = require('postman-collection').Header;","const hmac_username = '';","const hmac_secret = '';","","const resolvedUrlString = pm.variables.replaceIn(pm.request.url.toString());","","const pathMatch = resolvedUrlString.match(/^[a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/[^/]+(\\/[^?#]*)?/);","const path = (pathMatch && pathMatch[1]) ? pathMatch[1] : '/';","","const requestLine = pm.request.method + ' ' + path + ' HTTP/1.1';","const dateString = new Date().toUTCString();","const digest = CryptoJS.HmacSHA256(['date: ' + dateString, requestLine].join('\\n'), hmac_secret);","const signature = CryptoJS.enc.Base64.stringify(digest);","const hmac_header = 'hmac username=\"' + hmac_username + '\", algorithm=\"hmac-sha256\", ' +","  'headers=\"date request-line\", signature=\"' + signature + '\"';","","pm.request.headers.add(new Header(\"Authorization: \" + hmac_header));","pm.request.headers.add(new Header(\"Date: \" + dateString));"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"8ff2f7c5-f24a-43c7-8f7f-ad2c103d779f","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"ammount\": \"dummy_amount\",\n    \"currency_id\": \"dummy_currency\",\n    \"description\": \"dummy_description\",\n    \"ext_transaction_id\": \"dummy_transaction\"\n}","options":{"raw":{"language":"json"}}},"url":"https://api.mekari.com/qontak/cdp/v1/customers/:id/loyalty/transaction/burn","description":"<p><strong>Summary:</strong> Burn (deduct) loyalty points</p>\n<p><strong>Description:</strong> Deducts loyalty points from a customer's balance. Rate-limited to prevent duplicate deductions. Forwards the request to the Loyalty Service.</p>\n<p><strong>Authentication:</strong> MAG<br /><strong>Permission:</strong> <code>customers_customers_manage</code><br /><strong>Rate Limited:</strong> yes</p>\n<p><strong>Path Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Param</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"https://null\">id</a></td>\n<td>string</td>\n<td>yes</td>\n<td>Customer ObjectID hex</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Request Body (JSON):</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>amount</code></td>\n<td>integer</td>\n<td>yes</td>\n<td>Points to deduct (must be &gt; 0)</td>\n</tr>\n<tr>\n<td><code>currency_id</code></td>\n<td>string</td>\n<td>yes</td>\n<td>Loyalty currency identifier</td>\n</tr>\n<tr>\n<td><code>description</code></td>\n<td>string</td>\n<td>no</td>\n<td>Human-readable description (max 512 chars)</td>\n</tr>\n<tr>\n<td><code>ext_transaction_id</code></td>\n<td>string</td>\n<td>no</td>\n<td>External reference ID, e.g. POS transaction ID (max 256 chars)</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Responses:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>Points deducted successfully</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Invalid request body</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Unauthorized</td>\n</tr>\n<tr>\n<td><code>403</code></td>\n<td>Forbidden</td>\n</tr>\n<tr>\n<td><code>429</code></td>\n<td>Rate limit exceeded</td>\n</tr>\n<tr>\n<td><code>503</code></td>\n<td>Loyalty service unavailable</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["qontak","cdp","v1","customers",":id","loyalty","transaction","burn"],"host":["api","mekari","com"],"query":[],"variable":[{"type":"any","value":"","key":"id"}]}},"response":[{"id":"84ecef15-2178-4cc0-93dc-62ec822d93ac","name":"Burn Transaction","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"amount\": 200,\n  \"currency_id\": \"currency_001\",\n  \"description\": \"Redeem points for discount\",\n  \"ext_transaction_id\": \"pos_txn_99999\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.mekari.com/qontak/cdp/v1/customers/:id/loyalty/transaction/burn","protocol":"https","host":["api","mekari","com"],"path":["qontak","cdp","v1","customers",":id","loyalty","transaction","burn"],"variable":[{"key":"id","value":"6a0a87aca9a189ea680d088d"}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"code\": 200,\n  \"error\": false,\n  \"message\": \"success\",\n  \"pagination\": null,\n  \"trace_id\": \"abc123\",\n  \"data\": {\n    \"ledger_transaction\": {\n      \"amount\": 200,\n      \"ext_transaction_id\": \"pos_txn_99999\",\n      \"status\": \"Success\",\n      \"type\": \"Burn\",\n      \"wallet_id\": {\n        \"id\": \"wallet_abc\",\n        \"balance_available\": 1800\n      }\n    }\n  }\n}"}],"_postman_id":"8ff2f7c5-f24a-43c7-8f7f-ad2c103d779f"},{"name":"Earn Transaction","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["const CryptoJS = require('crypto-js');\nconst Header = require('postman-collection').Header;\nconst hmac_username = '';\nconst hmac_secret = '';\n\nconst resolvedUrlString = pm.variables.replaceIn(pm.request.url.toString());\n\nconst pathMatch = resolvedUrlString.match(/^[a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/[^/]+(\\/[^?#]*)?/);\nconst path = (pathMatch && pathMatch[1]) ? pathMatch[1] : '/';\n\nconst requestLine = pm.request.method + ' ' + path + ' HTTP/1.1';\nconst dateString = new Date().toUTCString();\nconst digest = CryptoJS.HmacSHA256(['date: ' + dateString, requestLine].join('\\n'), hmac_secret);\nconst signature = CryptoJS.enc.Base64.stringify(digest);\nconst hmac_header = 'hmac username=\"' + hmac_username + '\", algorithm=\"hmac-sha256\", ' +\n  'headers=\"date request-line\", signature=\"' + signature + '\"';\n\npm.request.headers.add(new Header(\"Authorization: \" + hmac_header));\npm.request.headers.add(new Header(\"Date: \" + dateString));"]}}],"id":"f6ea2bcc-86be-42e4-8654-e91c70e1f18c","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"activity\": \"string\",\n    \"amount\": 0,\n    \"ext_transaction_id\": \"string\",\n    \"metadata\": {\n        \"additionalProp1\": {}\n    }\n}","options":{"raw":{"language":"json"}}},"url":"https://api.mekari.com/qontak/cdp/v1/customers/:id/loyalty/transaction/earn","description":"<p><strong>Summary:</strong> Earn (add) loyalty points</p>\n<p><strong>Description:</strong> Submits an earn transaction (e.g. a POS purchase or unique-code claim) for a customer and returns the points earned plus their new balance. Requires the customer to be an enrolled loyalty member. Rate-limited. Forwards the request to the Loyalty Service.</p>\n<p><strong>Authentication:</strong> MAG</p>\n<p><strong>Permission:</strong> <code>customers_customers_manage</code></p>\n<p><strong>Rate Limited:</strong> yes</p>\n<p><strong>Path Parameters:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Param</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>id</td>\n<td>string</td>\n<td>yes</td>\n<td>Customer ObjectID hex</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Request Body (JSON):</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>attributes.ext_transaction_id</td>\n<td>string</td>\n<td>yes</td>\n<td>External reference ID for the transaction (e.g. POS transaction ID) — also used as the idempotency key, so a retried submission with the same value will not double-credit points</td>\n</tr>\n<tr>\n<td>attributes.activity</td>\n<td>string</td>\n<td>yes</td>\n<td>Activity that earned the points (e.g. <code>purchase</code>)</td>\n</tr>\n<tr>\n<td>attributes.amount</td>\n<td>number</td>\n<td>yes</td>\n<td>Amount tied to the activity (must be &gt; 0)</td>\n</tr>\n<tr>\n<td>attributes.metadata</td>\n<td>object</td>\n<td>yes</td>\n<td>Arbitrary metadata associated with the transaction</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Responses:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>200</td>\n<td>Points earned successfully — returns <code>earning_point</code>, <code>rules_action</code> (id/name), and the updated <code>wallet</code> (<code>balance_available</code>, <code>balance_pending</code>, <code>currency_id</code>, <code>expired_total_point</code>, <code>lifetime_earned</code>, <code>progression_earn</code>)</td>\n</tr>\n<tr>\n<td>400</td>\n<td>Invalid request body</td>\n</tr>\n<tr>\n<td>401</td>\n<td>Unauthorized</td>\n</tr>\n<tr>\n<td>404</td>\n<td>Customer not found, or feature disabled</td>\n</tr>\n<tr>\n<td>409</td>\n<td>Customer is not a loyalty member, or ext_transaction_id already processed</td>\n</tr>\n<tr>\n<td>429</td>\n<td>Rate limit exceeded</td>\n</tr>\n<tr>\n<td>503</td>\n<td>Loyalty service unavailable</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["qontak","cdp","v1","customers",":id","loyalty","transaction","earn"],"host":["api","mekari","com"],"query":[],"variable":[{"type":"any","value":"6a87f89afeebc490b9cc35e7","key":"id"}]}},"response":[{"id":"2d8dacb0-e060-4c14-91ef-44ecaae98051","name":"Earn Transaction","originalRequest":{"method":"POST","header":[{"key":"X-Authenticated-User-Id","value":"4909557d-2f87-4495-894e-d4933de01173","disabled":true}],"body":{"mode":"raw","raw":"{\n  \"attributes\": {\n    \"ext_transaction_id\": \"POS-2026-08-10-00042\",\n    \"activity\": \"purchase\",\n    \"amount\": 150000,\n    \"metadata\": {\n      \"order_id\": \"ORD-99213\",\n      \"store_id\": \"STR-014\"\n    }\n  }\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.mekari.com/qontak/cdp/v1/customers/:id/loyalty/transaction/earn","protocol":"https","host":["api","mekari","com"],"path":["qontak","cdp","v1","customers",":id","loyalty","transaction","earn"],"variable":[{"key":"id","value":""}]}},"status":"OK","code":200,"_postman_previewlanguage":"text","header":null,"cookie":[],"responseTime":null,"body":"{\n  \"resp_code\": \"200\",\n  \"resp_desc\": {\n    \"id\": \"\",\n    \"en\": \"\"\n  },\n  \"data\": {\n    \"code\": 200,\n    \"error\": false,\n    \"message\": \"\",\n    \"pagination\": null,\n    \"trace_id\": \"\",\n    \"data\": [\n      [\n        {\n          \"earning_point\": 1500,\n          \"rules_action\": {\n            \"id\": \"rule_01hx\",\n            \"name\": \"Purchase Reward\"\n          },\n          \"wallet\": {\n            \"balance_available\": 5230,\n            \"balance_pending\": 0,\n            \"currency_id\": {\n              \"id\": \"cur_01\",\n              \"name\": \"Loyalty Points\"\n            },\n            \"expired_total_point\": 0,\n            \"lifetime_earned\": 18400,\n            \"progression_earn\": 1500\n          }\n        }\n      ]\n    ]\n  },\n  \"meta\": {\n    \"version\": \"2f5903c\",\n    \"api_env\": \"staging\",\n    \"trace_id\": \"...\"\n  }\n}"}],"_postman_id":"f6ea2bcc-86be-42e4-8654-e91c70e1f18c"}],"id":"5e1f3173-3bbf-4cfc-a7a6-dfa7a885e928","_postman_id":"5e1f3173-3bbf-4cfc-a7a6-dfa7a885e928","description":""},{"name":"[GET] ALL Customer","event":[{"listen":"prerequest","script":{"type":"text/javascript","exec":["const CryptoJS = require('crypto-js');\nconst Header = require('postman-collection').Header;\nconst hmac_username = '';\nconst hmac_secret = '';\n\nconst resolvedUrlString = pm.variables.replaceIn(pm.request.url.toString());\n\nconst pathMatch = resolvedUrlString.match(/^[a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/[^/]+(\\/[^?#]*)?/);\nconst path = (pathMatch && pathMatch[1]) ? pathMatch[1] : '/';\n\nconst requestLine = pm.request.method + ' ' + path + ' HTTP/1.1';\nconst dateString = new Date().toUTCString();\nconst digest = CryptoJS.HmacSHA256(['date: ' + dateString, requestLine].join('\\n'), hmac_secret);\nconst signature = CryptoJS.enc.Base64.stringify(digest);\nconst hmac_header = 'hmac username=\"' + hmac_username + '\", algorithm=\"hmac-sha256\", ' +\n  'headers=\"date request-line\", signature=\"' + signature + '\"';\n\npm.request.headers.add(new Header(\"Authorization: \" + hmac_header));\npm.request.headers.add(new Header(\"Date: \" + dateString));"]}}],"id":"a99de1c7-345f-44b6-b336-06e32893fece","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"https://api.mekari.com/qontak/cdp/v1/customers","description":"<h2 id=\"purpose\">Purpose</h2>\n<p>Retrieves a list of <strong>Customers</strong> from Qontak CDP.</p>\n<h2 id=\"base-url--endpoint\">Base URL &amp; Endpoint</h2>\n<ul>\n<li><p>Base URL: <code>https://api.mekari.com</code></p>\n</li>\n<li><p>Endpoint: <code>GET /qontak/cdp/v1/customers</code></p>\n</li>\n</ul>\n<p>Full URL:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://api.mekari.com/qontak/cdp/v1/customers\n\n</code></pre><h2 id=\"query-parameters\">Query Parameters</h2>\n<p>None documented.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Default</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"https://null\">page</a></td>\n<td>int</td>\n<td><code>1</code></td>\n<td>Page number</td>\n</tr>\n<tr>\n<td><code>per_page</code></td>\n<td>int</td>\n<td><code>10</code></td>\n<td>Items per page</td>\n</tr>\n<tr>\n<td><code>order_by</code></td>\n<td>string</td>\n<td><code>created_at</code></td>\n<td><code>created_at</code>, <code>updated_at</code>, <a href=\"https://null\">name</a></td>\n</tr>\n<tr>\n<td><code>order_direction</code></td>\n<td>string</td>\n<td><code>desc</code></td>\n<td><code>asc</code> or <code>desc</code></td>\n</tr>\n<tr>\n<td><code>created_at_from</code></td>\n<td>string</td>\n<td>—</td>\n<td><code>YYYY-MM-DD</code></td>\n</tr>\n<tr>\n<td><code>created_at_to</code></td>\n<td>string</td>\n<td>—</td>\n<td><code>YYYY-MM-DD</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"filters\">Filters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td>string</td>\n<td>Only Prefix name is allowed.</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td>string</td>\n<td>Exact match.</td>\n</tr>\n<tr>\n<td><code>company_billing_id</code></td>\n<td>string</td>\n<td>Exact match.</td>\n</tr>\n<tr>\n<td><code>owner_id</code></td>\n<td>string</td>\n<td>Exact match. If both <code>owner_id</code> and <code>assignee_id</code> are set, they are combined with OR.</td>\n</tr>\n<tr>\n<td><code>assignee_id</code></td>\n<td>string</td>\n<td>Exact match. If both <code>owner_id</code> and <code>assignee_id</code> are set, they are combined with OR.</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td>string</td>\n<td>Exact match.</td>\n</tr>\n<tr>\n<td><code>job_title</code></td>\n<td>string</td>\n<td>Exact match.</td>\n</tr>\n<tr>\n<td><code>field_permission</code></td>\n<td>bool</td>\n<td>Toggles field-level permission handling; not used as a filter.</td>\n</tr>\n<tr>\n<td><code>phone[]</code></td>\n<td>string[]</td>\n<td>One or more phone numbers.</td>\n</tr>\n<tr>\n<td><code>tags[]</code></td>\n<td>string[]</td>\n<td>One or more tags.</td>\n</tr>\n<tr>\n<td><code>source[]</code></td>\n<td>string[]</td>\n<td>One or more sources.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-summary\">Response Summary</h2>\n<ul>\n<li><p><strong>200 OK</strong>: returns a <strong>list of customers</strong>.</p>\n</li>\n<li><p>Response commonly includes <strong>pagination / meta information</strong> when the dataset is large.</p>\n</li>\n</ul>\n<p><strong>Error Responses</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>400</code></td>\n<td>Missing or invalid query params</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Missing or invalid auth headers / company SSO ID not found</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Internal server error</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"protocol":"https","path":["qontak","cdp","v1","customers"],"host":["api","mekari","com"],"query":[],"variable":[]}},"response":[{"id":"f67bd5cf-0219-479c-8555-73c8e77f6117","name":"[GET] ALL Customer","originalRequest":{"method":"GET","header":[],"url":"https://api.mekari.com/qontak/cdp/v1/customers"},"_postman_previewlanguage":null,"header":null,"cookie":[],"responseTime":null,"body":"{\n  \"resp_code\": \"200\",\n  \"resp_desc\": {\n    \"id\": \"OK\",\n    \"en\": \"OK\"\n  },\n  \"meta\": {\n    \"version\": \"x1y2z3a\",\n    \"api_env\": \"staging\",\n    \"trace_id\": \"trace-redacted\"\n  },\n  \"data\": [\n    {\n      \"id\": \"contact-redacted-001\",\n      \"company_sso_id\": \"company-sso-redacted-001\",\n      \"company_billing_id\": \"\",\n      \"crm_data\": null,\n      \"chat_data\": null,\n      \"name\": \"Sample User\",\n      \"email\": \"sample.user@example.com\",\n      \"phone\": [\n        \"6281111111111\"\n      ],\n      \"is_deleted\": false,\n      \"accounts\": null,\n      \"avatar\": {\n        \"url\": \"https://example.com/default_user_profile.jpg\",\n        \"filename\": \"default_user_profile.jpg\",\n        \"large\": {\n          \"url\": \"https://example.com/default_user_profile.jpg\"\n        },\n        \"small\": {\n          \"url\": \"https://example.com/default_user_profile.jpg\"\n        }\n      },\n      \"custom_fields\": [\n        {\n          \"key\": \"tes_single_lain\",\n          \"value\": \"sample custom value\",\n          \"datatype\": \"\"\n        }\n      ],\n      \"owner_id\": \"owner-redacted-001\",\n      \"owner_name\": \"Sample Company\",\n      \"assignee_id\": \"\",\n      \"assignee_name\": \"\",\n      \"username\": \"\",\n      \"usernames\": [\n        {\n          \"value\": \"sampleuser\",\n          \"source\": \"\",\n          \"flag\": \"manual\",\n          \"icon_key\": \"text-editor-mention\"\n        }\n      ],\n      \"source\": \"\",\n      \"source_id\": \"\",\n      \"source_name\": \"\",\n      \"status\": \"active\",\n      \"status_id\": \"\",\n      \"status_name\": \"\",\n      \"job_title\": \"Engineer\",\n      \"tags\": null,\n      \"flag\": \"manual\",\n      \"address\": {\n        \"province\": 0,\n        \"province_name\": \"\",\n        \"address_picker_province\": \"\",\n        \"city\": 0,\n        \"city_name\": \"\",\n        \"address_picker_city\": \"\",\n        \"district\": 0,\n        \"district_name\": \"\",\n        \"address_picker_district\": \"\",\n        \"subdistrict\": 0,\n        \"subdistrict_name\": \"\",\n        \"address_picker_subdistrict\": \"\",\n        \"zip_code\": 0,\n        \"zip_code_name\": \"\",\n        \"address_picker_zipcode\": \"\"\n      },\n      \"date_of_birth\": \"\",\n      \"sex\": \"male\",\n      \"sex_id\": \"\",\n      \"sex_name\": \"\",\n      \"disabled_field\": null,\n      \"field_permission\": [],\n      \"permission\": {\n        \"read\": true,\n        \"update\": true,\n        \"delete\": true\n      },\n      \"is_enable_usernames\": true,\n      \"is_loyalty_member\": false,\n      \"created_at\": \"2026-05-19T07:36:22.901Z\",\n      \"updated_at\": \"2026-05-19T07:36:22.901Z\",\n      \"created_by\": \"Sample Company\",\n      \"updated_by\": \"Sample Company\"\n    },\n    {\n      \"id\": \"contact-redacted-002\",\n      \"company_sso_id\": \"company-sso-redacted-001\",\n      \"company_billing_id\": \"\",\n      \"crm_data\": null,\n      \"chat_data\": null,\n      \"name\": \"Test User\",\n      \"email\": \"\",\n      \"phone\": [\n        \"6282222222222\"\n      ],\n      \"is_deleted\": false,\n      \"accounts\": null,\n      \"avatar\": {\n        \"url\": \"https://example.com/default_user_profile.jpg\",\n        \"filename\": \"default_user_profile.jpg\",\n        \"large\": {\n          \"url\": \"https://example.com/default_user_profile.jpg\"\n        },\n        \"small\": {\n          \"url\": \"https://example.com/default_user_profile.jpg\"\n        }\n      },\n      \"custom_fields\": [\n        {\n          \"key\": \"tes_single_lain\",\n          \"value\": \"masked-value\",\n          \"field_type\": \"single_line_text\",\n          \"datatype\": \"string\"\n        }\n      ],\n      \"owner_id\": \"owner-redacted-001\",\n      \"owner_name\": \"Sample Company\",\n      \"assignee_id\": \"\",\n      \"assignee_name\": \"\",\n      \"username\": \"\",\n      \"usernames\": null,\n      \"source\": \"\",\n      \"source_id\": \"\",\n      \"source_name\": \"\",\n      \"status\": \"\",\n      \"status_id\": \"\",\n      \"status_name\": \"\",\n      \"job_title\": \"\",\n      \"tags\": null,\n      \"flag\": \"manual\",\n      \"address\": {\n        \"province\": 0,\n        \"province_name\": \"\",\n        \"address_picker_province\": \"\",\n        \"city\": 0,\n        \"city_name\": \"\",\n        \"address_picker_city\": \"\",\n        \"district\": 0,\n        \"district_name\": \"\",\n        \"address_picker_district\": \"\",\n        \"subdistrict\": 0,\n        \"subdistrict_name\": \"\",\n        \"address_picker_subdistrict\": \"\",\n        \"zip_code\": 0,\n        \"zip_code_name\": \"\",\n        \"address_picker_zipcode\": \"\"\n      },\n      \"date_of_birth\": \"\",\n      \"sex\": \"\",\n      \"sex_id\": \"\",\n      \"sex_name\": \"\",\n      \"disabled_field\": null,\n      \"field_permission\": [],\n      \"permission\": {\n        \"read\": true,\n        \"update\": true,\n        \"delete\": true\n      },\n      \"is_enable_usernames\": true,\n      \"is_loyalty_member\": true,\n      \"created_at\": \"2026-05-18T03:29:48.256Z\",\n      \"updated_at\": \"2026-05-18T03:32:25.596Z\",\n      \"created_by\": \"Sample Company\",\n      \"updated_by\": \"Sample Company\"\n    },\n    {\n      \"id\": \"contact-redacted-003\",\n      \"company_sso_id\": \"company-sso-redacted-001\",\n      \"company_billing_id\": \"billing-redacted-001\",\n      \"crm_data\": {\n        \"id\": \"crm-redacted-001\"\n      },\n      \"chat_data\": [\n        {\n          \"id\": \"chat-redacted-001\",\n          \"channel_id\": \"channel-redacted-001\",\n          \"account_uniq_id\": \"telegram-user-redacted\",\n          \"channel_target\": \"telegram\"\n        }\n      ],\n      \"name\": \"Telegram User\",\n      \"email\": \"\",\n      \"phone\": [],\n      \"is_deleted\": false,\n      \"accounts\": null,\n      \"avatar\": {\n        \"url\": \"https://example.com/default_user_profile.jpg\",\n        \"filename\": \"default_user_profile.jpg\",\n        \"large\": {\n          \"url\": \"https://example.com/default_user_profile.jpg\"\n        },\n        \"small\": {\n          \"url\": \"https://example.com/default_user_profile.jpg\"\n        }\n      },\n      \"custom_fields\": [\n        {\n          \"key\": \"source\",\n          \"value\": \"Telegram\",\n          \"field_type\": \"dropdown_select\",\n          \"datatype\": \"string\"\n        }\n      ],\n      \"owner_id\": \"\",\n      \"owner_name\": \"\",\n      \"assignee_id\": \"\",\n      \"assignee_name\": \"\",\n      \"username\": \"\",\n      \"usernames\": null,\n      \"source\": \"Telegram\",\n      \"source_id\": \"\",\n      \"source_name\": \"\",\n      \"status\": \"\",\n      \"status_id\": \"\",\n      \"status_name\": \"\",\n      \"job_title\": \"\",\n      \"tags\": null,\n      \"flag\": \"auto\",\n      \"address\": {\n        \"province\": 0,\n        \"province_name\": \"\",\n        \"address_picker_province\": \"\",\n        \"city\": 0,\n        \"city_name\": \"\",\n        \"address_picker_city\": \"\",\n        \"district\": 0,\n        \"district_name\": \"\",\n        \"address_picker_district\": \"\",\n        \"subdistrict\": 0,\n        \"subdistrict_name\": \"\",\n        \"address_picker_subdistrict\": \"\",\n        \"zip_code\": 0,\n        \"zip_code_name\": \"\",\n        \"address_picker_zipcode\": \"\"\n      },\n      \"date_of_birth\": \"\",\n      \"sex\": \"\",\n      \"sex_id\": \"\",\n      \"sex_name\": \"\",\n      \"disabled_field\": [\n        {\n          \"field\": \"source\",\n          \"value\": \"Telegram\",\n          \"helper_text\": \"Auto-filled from conversation\"\n        },\n        {\n          \"field\": \"username\",\n          \"value\": \"telegram-user-redacted\",\n          \"helper_text\": \"Auto-filled from conversation\"\n        }\n      ],\n      \"field_permission\": [],\n      \"permission\": {\n        \"read\": true,\n        \"update\": true,\n        \"delete\": true\n      },\n      \"is_enable_usernames\": true,\n      \"is_loyalty_member\": true,\n      \"created_at\": \"2026-05-13T06:13:05.51Z\",\n      \"updated_at\": \"2026-05-15T07:22:13.757Z\",\n      \"created_by\": \"System\",\n      \"updated_by\": \"\"\n    }\n  ],\n  \"pagination\": {\n    \"page\": 1,\n    \"per_page\": 10,\n    \"total\": 134,\n    \"total_pages\": 14\n  }\n}"}],"_postman_id":"a99de1c7-345f-44b6-b336-06e32893fece"},{"name":"[GET] ALL Default Properties","event":[{"listen":"prerequest","script":{"id":"3f8622a9-2f44-4ea1-b051-9b0be38ae5e5","exec":["const CryptoJS = require('crypto-js');","const Header = require('postman-collection').Header;","const hmac_username = '';","const hmac_secret = '';","","const resolvedUrlString = pm.variables.replaceIn(pm.request.url.toString());","","const pathMatch = resolvedUrlString.match(/^[a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/[^/]+(\\/[^?#]*)?/);","const path = (pathMatch && pathMatch[1]) ? pathMatch[1] : '/';","","const requestLine = pm.request.method + ' ' + path + ' HTTP/1.1';","const dateString = new Date().toUTCString();","const digest = CryptoJS.HmacSHA256(['date: ' + dateString, requestLine].join('\\n'), hmac_secret);","const signature = CryptoJS.enc.Base64.stringify(digest);","const hmac_header = 'hmac username=\"' + hmac_username + '\", algorithm=\"hmac-sha256\", ' +","  'headers=\"date request-line\", signature=\"' + signature + '\"';","","pm.request.headers.add(new Header(\"Authorization: \" + hmac_header));","pm.request.headers.add(new Header(\"Date: \" + dateString));"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"61a9977c-34c7-47b0-a359-d048c09f1062","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"url":"/v1/customers/template/layout/default","description":"<h2 id=\"purpose\">Purpose</h2>\n<p>Retrieves a list of <strong>Customers</strong> from Qontak CDP.</p>\n<h2 id=\"base-url--endpoint\">Base URL &amp; Endpoint</h2>\n<ul>\n<li><p>Base URL: <code>https://api.mekari.com</code></p>\n</li>\n<li><p>Endpoint: <code>GET /qontak/cdp/v1/customers</code></p>\n</li>\n</ul>\n<p>Full URL:</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>https://api.mekari.com/qontak/cdp/v1/customers\n\n</code></pre><h2 id=\"query-parameters\">Query Parameters</h2>\n<p>None documented.</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Key</th>\n<th>Type</th>\n<th>Default</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><a href=\"https://null\">page</a></td>\n<td>int</td>\n<td><code>1</code></td>\n<td>Page number</td>\n</tr>\n<tr>\n<td><code>per_page</code></td>\n<td>int</td>\n<td><code>10</code></td>\n<td>Items per page</td>\n</tr>\n<tr>\n<td><code>order_by</code></td>\n<td>string</td>\n<td><code>created_at</code></td>\n<td><code>created_at</code>, <code>updated_at</code>, <a href=\"https://null\">name</a></td>\n</tr>\n<tr>\n<td><code>order_direction</code></td>\n<td>string</td>\n<td><code>desc</code></td>\n<td><code>asc</code> or <code>desc</code></td>\n</tr>\n<tr>\n<td><code>search</code></td>\n<td>string</td>\n<td>—</td>\n<td>Search by name, email, or phone</td>\n</tr>\n<tr>\n<td><code>created_at_from</code></td>\n<td>string</td>\n<td>—</td>\n<td><code>YYYY-MM-DD</code></td>\n</tr>\n<tr>\n<td><code>created_at_to</code></td>\n<td>string</td>\n<td>—</td>\n<td><code>YYYY-MM-DD</code></td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-summary\">Response Summary</h2>\n<ul>\n<li><p><strong>200 OK</strong>: returns a <strong>list of customers</strong>.</p>\n</li>\n<li><p>Response commonly includes <strong>pagination / meta information</strong> when the dataset is large.</p>\n</li>\n</ul>\n<p><strong>Error Responses</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>400</code></td>\n<td>Missing or invalid query params</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Missing or invalid auth headers / company SSO ID not found</td>\n</tr>\n<tr>\n<td><code>500</code></td>\n<td>Internal server error</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customers","template","layout","default"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"e454b952-518f-4ece-845a-940b0f9e1d93","name":"[GET] ALL Default Properties","originalRequest":{"method":"GET","header":[],"url":"/v1/customers/template/layout/default"},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"resp_code\": \"200\",\n    \"resp_desc\": {\n        \"id\": \"OK\",\n        \"en\": \"OK\"\n    },\n    \"meta\": {\n        \"version\": \"f36da7c\",\n        \"api_env\": \"staging\",\n        \"trace_id\": \"\"\n    },\n    \"data\": [\n        {\n            \"layout\": {\n                \"id\": \"691bfdc4fa232688d644992c\",\n                \"name\": \"Default Layout\"\n            },\n            \"fields\": [\n                {\n                    \"id\": \"691bfdc4fa232688d644990c\",\n                    \"name\": \"name\",\n                    \"label\": \"Name\",\n                    \"type\": \"single_line_text\",\n                    \"required\": true,\n                    \"visible\": true,\n                    \"additional_field\": false\n                },\n                {\n                    \"id\": \"691bfdc4fa232688d6449912\",\n                    \"name\": \"username\",\n                    \"label\": \"Username\",\n                    \"type\": \"single_line_text\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": false\n                },\n                {\n                    \"id\": \"691bfdc4fa232688d6449910\",\n                    \"name\": \"phone\",\n                    \"label\": \"Phone\",\n                    \"type\": \"single_line_text\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": false\n                },\n                {\n                    \"id\": \"691bfdc4fa232688d644990e\",\n                    \"name\": \"email\",\n                    \"label\": \"Email\",\n                    \"type\": \"single_line_text\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": false\n                },\n                {\n                    \"id\": \"691bfdc4fa232688d6449928\",\n                    \"name\": \"owner_id\",\n                    \"label\": \"Owner\",\n                    \"type\": \"dropdown_select\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": false\n                },\n                {\n                    \"id\": \"691bfdc4fa232688d644992a\",\n                    \"name\": \"assignee_id\",\n                    \"label\": \"Assignee\",\n                    \"type\": \"dropdown_select\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": false\n                },\n                {\n                    \"id\": \"691bfdc4fa232688d644991c\",\n                    \"name\": \"sex\",\n                    \"label\": \"Sex\",\n                    \"type\": \"dropdown_select\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": false\n                },\n                {\n                    \"id\": \"691bfdc4fa232688d6449916\",\n                    \"name\": \"job_title\",\n                    \"label\": \"Job Title\",\n                    \"type\": \"single_line_text\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": false\n                },\n                {\n                    \"id\": \"691bfdc4fa232688d6449914\",\n                    \"name\": \"date_of_birth\",\n                    \"label\": \"Date of Birth\",\n                    \"type\": \"date\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69d70fcd52b461bd003a1599\",\n                    \"name\": \"makanan_favorit\",\n                    \"label\": \"makanan favorit\",\n                    \"type\": \"single_line_text\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"691bfdc4fa232688d644991e\",\n                    \"name\": \"address_picker_province\",\n                    \"label\": \"Address Picker (Province)\",\n                    \"type\": \"dropdown_select\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": false\n                },\n                {\n                    \"id\": \"691bfdc4fa232688d6449920\",\n                    \"name\": \"address_picker_city\",\n                    \"label\": \"Address Picker (City)\",\n                    \"type\": \"dropdown_select\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": false\n                },\n                {\n                    \"id\": \"691bfdc4fa232688d6449922\",\n                    \"name\": \"address_picker_district\",\n                    \"label\": \"Address Picker (District)\",\n                    \"type\": \"dropdown_select\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": false\n                },\n                {\n                    \"id\": \"691bfdc4fa232688d6449924\",\n                    \"name\": \"address_picker_subdistrict\",\n                    \"label\": \"Address Picker (Subdistrict)\",\n                    \"type\": \"dropdown_select\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": false\n                },\n                {\n                    \"id\": \"691bfdc4fa232688d6449926\",\n                    \"name\": \"address_picker_zipcode\",\n                    \"label\": \"Address Picker (Zip Code)\",\n                    \"type\": \"dropdown_select\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": false\n                },\n                {\n                    \"id\": \"691bfdc4fa232688d6449918\",\n                    \"name\": \"source\",\n                    \"label\": \"Source\",\n                    \"type\": \"dropdown_select\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": false\n                },\n                {\n                    \"id\": \"691bfdc4fa232688d644991a\",\n                    \"name\": \"status\",\n                    \"label\": \"Status\",\n                    \"type\": \"dropdown_select\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": false\n                },\n                {\n                    \"id\": \"69a6a6edfbfe27aef90685ec\",\n                    \"name\": \"single_line_-_masking\",\n                    \"label\": \"Single Line - Masking\",\n                    \"type\": \"single_line_text\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69a6a702fbfe27aef90685f8\",\n                    \"name\": \"multiline_text_-_masking\",\n                    \"label\": \"Multiline text - Masking edited\",\n                    \"type\": \"text_area\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69a6a73bfbfe27aef906862f\",\n                    \"name\": \"dropdown_-_masking\",\n                    \"label\": \"Dropdown - Masking\",\n                    \"type\": \"dropdown_select\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69a6a77dfbfe27aef906864a\",\n                    \"name\": \"multiple_choice\",\n                    \"label\": \"makanan favorit\",\n                    \"type\": \"multiple_select\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69a6a7d5fbfe27aef906867a\",\n                    \"name\": \"number_-_numeric_-_masking\",\n                    \"label\": \"Number - Numeric - Masking\",\n                    \"type\": \"number\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69a6a7e4fbfe27aef906868c\",\n                    \"name\": \"number_-_currency_-_masking\",\n                    \"label\": \"Number - Currency - Masking\",\n                    \"type\": \"number\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69a6a7fbfbfe27aef906869b\",\n                    \"name\": \"number_-_percentage_-_masking\",\n                    \"label\": \"Number - Percentage - Masking\",\n                    \"type\": \"number\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69a6a814fbfe27aef906869f\",\n                    \"name\": \"date_-_dd/mm/yyyy_-_masking\",\n                    \"label\": \"Date - DD/MM/YYYY - Masking\",\n                    \"type\": \"date\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69a6a829fbfe27aef90686ad\",\n                    \"name\": \"date_-_mm/dd/yyyy_-_masking\",\n                    \"label\": \"Date - MM/DD/YYYY - Masking\",\n                    \"type\": \"date\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69a6a856fbfe27aef90686b3\",\n                    \"name\": \"date_-_yyyy/mm/dd_-_masking\",\n                    \"label\": \"Date - YYYY/MM/DD - Masking\",\n                    \"type\": \"date\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69a6a868fbfe27aef90686b7\",\n                    \"name\": \"url_-_masking\",\n                    \"label\": \"URL - Masking\",\n                    \"type\": \"url\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69a6a878fbfe27aef90686bb\",\n                    \"name\": \"file_upload_-_masking\",\n                    \"label\": \"File Upload - Masking\",\n                    \"type\": \"upload\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69a6a886fbfe27aef90686bf\",\n                    \"name\": \"signature_-_masking\",\n                    \"label\": \"Signature - Masking\",\n                    \"type\": \"signature\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69a6a892fbfe27aef90686c3\",\n                    \"name\": \"gps_-_masking\",\n                    \"label\": \"GPS - Masking\",\n                    \"type\": \"gps\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69f2f067475f31f9e82fcf1a\",\n                    \"name\": \"address_google_map\",\n                    \"label\": \"Address (Google Map)\",\n                    \"type\": \"single_line_text\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69f2f067475f31f9e82fcf1c\",\n                    \"name\": \"address\",\n                    \"label\": \"Address\",\n                    \"type\": \"single_line_text\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69f2f067475f31f9e82fcf1e\",\n                    \"name\": \"country\",\n                    \"label\": \"Country\",\n                    \"type\": \"single_line_text\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69f2f067475f31f9e82fcf20\",\n                    \"name\": \"province\",\n                    \"label\": \"Province\",\n                    \"type\": \"single_line_text\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69f2f067475f31f9e82fcf22\",\n                    \"name\": \"city\",\n                    \"label\": \"City\",\n                    \"type\": \"single_line_text\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69f2f067475f31f9e82fcf24\",\n                    \"name\": \"zipcode\",\n                    \"label\": \"Zipcode\",\n                    \"type\": \"single_line_text\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69f2f067475f31f9e82fcf26\",\n                    \"name\": \"avg_annual_income\",\n                    \"label\": \"Avg. Annual Income\",\n                    \"type\": \"number\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69f2f067475f31f9e82fcf28\",\n                    \"name\": \"upload_id\",\n                    \"label\": \"Upload ID\",\n                    \"type\": \"upload\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"6920ae8d63fcdd102ed8be32\",\n                    \"name\": \"lokasi_cod\",\n                    \"label\": \"Lokasi COD\",\n                    \"type\": \"gps\",\n                    \"required\": false,\n                    \"visible\": true,\n                    \"additional_field\": true\n                },\n                {\n                    \"id\": \"69fc316ba4274837c87de2d2\",\n                    \"name\": \"tes_single_lain\",\n                    \"label\": \"tes single lain edited\",\n                    \"type\": \"single_line_text\",\n                    \"required\": true,\n                    \"visible\": true,\n                    \"additional_field\": true\n                }\n            ]\n        }\n    ]\n}"}],"_postman_id":"61a9977c-34c7-47b0-a359-d048c09f1062"},{"name":"[CREATE] Customer","event":[{"listen":"prerequest","script":{"id":"3f8622a9-2f44-4ea1-b051-9b0be38ae5e5","exec":["const CryptoJS = require('crypto-js');","const Header = require('postman-collection').Header;","const hmac_username = '';","const hmac_secret = '';","","const resolvedUrlString = pm.variables.replaceIn(pm.request.url.toString());","","const pathMatch = resolvedUrlString.match(/^[a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/[^/]+(\\/[^?#]*)?/);","const path = (pathMatch && pathMatch[1]) ? pathMatch[1] : '/';","","const requestLine = pm.request.method + ' ' + path + ' HTTP/1.1';","const dateString = new Date().toUTCString();","const digest = CryptoJS.HmacSHA256(['date: ' + dateString, requestLine].join('\\n'), hmac_secret);","const signature = CryptoJS.enc.Base64.stringify(digest);","const hmac_header = 'hmac username=\"' + hmac_username + '\", algorithm=\"hmac-sha256\", ' +","  'headers=\"date request-line\", signature=\"' + signature + '\"';","","pm.request.headers.add(new Header(\"Authorization: \" + hmac_header));","pm.request.headers.add(new Header(\"Date: \" + dateString));"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"ddaf14cf-9dcd-4f40-8317-d6f4a83734de","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"/v1/customers","description":"<h2 id=\"purpose\">Purpose</h2>\n<p>Create a new customer record for the authenticated company, with support for standard fields, custom fields, addresses, usernames (social accounts), and layout-based field validation.</p>\n<hr />\n","urlObject":{"path":["v1","customers"],"host":[""],"query":[],"variable":[]}},"response":[{"id":"70738123-fbc3-44d8-9ad0-039c63e95b24","name":"[CREATE] Customer","originalRequest":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"John Doe\",\n  \"email\": \"john.doe@example.com\",\n  \"phone\": [\n    \"6281234567890\"\n  ],\n  \"source\": \"website\",\n  \"status\": \"active\",\n  \"job_title\": \"Software Engineer\",\n  \"sex\": \"male\",\n  \"usernames\": [\"johndoe\"],\n  \"custom_fields\": [{\n    \"key\": \"tes_single_custom\",\n    \"value\": \"test single custom field\"\n  }]\n}","options":{"raw":{"language":"json"}}},"url":"https://api.mekari.com/qontak/cdp/v1/customers"},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"resp_code\": \"200\",\n    \"resp_desc\": {\n        \"id\": \"OK\",\n        \"en\": \"OK\"\n    },\n    \"meta\": {\n        \"version\": \"f36da7c\",\n        \"api_env\": \"staging\",\n        \"trace_id\": \"\"\n    },\n    \"data\": [\n        {\n            \"_id\": \"6a0c12f649778a43665411c2\",\n            \"company_sso_id\": \"bde1def6-314e-4f1c-ae33-d29be1051123\",\n            \"name\": \"John Doe\",\n            \"name_tokenized\": [\n                \"john\",\n                \"doe\"\n            ],\n            \"email\": \"john.doe@example.com\",\n            \"phone\": [\n                \"6281234567890\"\n            ],\n            \"is_deleted\": false,\n            \"custom_fields\": [\n                {\n                    \"key\": \"tes_single_custom\",\n                    \"value\": \"test single custom field\",\n                    \"datatype\": \"\"\n                }\n            ],\n            \"owner_id\": \"8b324c11-7723-4d03-a2dd-9837336fd0d4\",\n            \"usernames\": [\n                {\n                    \"value\": \"johndoe\",\n                    \"source\": \"\",\n                    \"flag\": \"manual\",\n                    \"icon_key\": \"\"\n                }\n            ],\n            \"source\": \"website\",\n            \"status\": \"active\",\n            \"job_title\": \"Software Engineer\",\n            \"job_title_tokenized\": [\n                \"software\",\n                \"engineer\"\n            ],\n            \"flag\": \"manual\",\n            \"address\": {\n                \"province\": 0,\n                \"province_name\": \"\",\n                \"address_picker_province\": \"\",\n                \"city\": 0,\n                \"city_name\": \"\",\n                \"address_picker_city\": \"\",\n                \"district\": 0,\n                \"district_name\": \"\",\n                \"address_picker_district\": \"\",\n                \"subdistrict\": 0,\n                \"subdistrict_name\": \"\",\n                \"address_picker_subdistrict\": \"\",\n                \"zip_code\": 0,\n                \"zip_code_name\": \"\",\n                \"address_picker_zipcode\": \"\"\n            },\n            \"date_of_birth\": \"0001-01-01T00:00:00Z\",\n            \"sex\": \"male\",\n            \"created_at\": \"2026-05-19T07:36:22.90178297Z\",\n            \"updated_at\": \"2026-05-19T07:36:22.90178297Z\",\n            \"created_by_user_id\": \"8b324c11-7723-4d03-a2dd-9837336fd0d4\",\n            \"updated_by_user_id\": \"8b324c11-7723-4d03-a2dd-9837336fd0d4\"\n        }\n    ]\n}"}],"_postman_id":"ddaf14cf-9dcd-4f40-8317-d6f4a83734de"},{"name":"[GET] Single Customer","event":[{"listen":"test","script":{"id":"b261ac14-9d9c-4f07-9a16-a9c138e53747","exec":[""],"type":"text/javascript","packages":{},"requests":{}}},{"listen":"prerequest","script":{"id":"e158a1bb-ecd3-4a3c-a66d-b7eb9331e9de","exec":["const CryptoJS = require('crypto-js');","const Header = require('postman-collection').Header;","const hmac_username = '';","const hmac_secret = '';","","const resolvedUrlString = pm.variables.replaceIn(pm.request.url.toString());","","const pathMatch = resolvedUrlString.match(/^[a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/[^/]+(\\/[^?#]*)?/);","const path = (pathMatch && pathMatch[1]) ? pathMatch[1] : '/';","","const requestLine = pm.request.method + ' ' + path + ' HTTP/1.1';","const dateString = new Date().toUTCString();","const digest = CryptoJS.HmacSHA256(['date: ' + dateString, requestLine].join('\\n'), hmac_secret);","const signature = CryptoJS.enc.Base64.stringify(digest);","const hmac_header = 'hmac username=\"' + hmac_username + '\", algorithm=\"hmac-sha256\", ' +","  'headers=\"date request-line\", signature=\"' + signature + '\"';","","pm.request.headers.add(new Header(\"Authorization: \" + hmac_header));","pm.request.headers.add(new Header(\"Date: \" + dateString));"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"b97904b9-5ca5-4ed6-a6df-6f35ceecbe7a","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"/v1/customers/:customer_id","description":"<h2 id=\"purpose\">Purpose</h2>\n<p>Retrieve the details of a single customer by <strong>customer_id</strong>.</p>\n<h2 id=\"endpoint\">Endpoint</h2>\n<ul>\n<li><p><strong>Method:</strong> <code>GET</code></p>\n</li>\n<li><p><strong>URL:</strong> <code>https://api.mekari.com/qontak/cdp/v1/customers/:customer_id</code></p>\n</li>\n</ul>\n<h2 id=\"response-expectations\">Response expectations</h2>\n<ul>\n<li><p><strong>200 OK</strong>: Returns the customer object for the given <code>customer_id</code>.</p>\n</li>\n<li><p><strong>4xx</strong>: Client-side errors such as:</p>\n<ul>\n<li><p><code>401/403</code> Unauthorized/Forbidden (often HMAC/signature issues)</p>\n</li>\n<li><p><code>404</code> Not Found (customer does not exist)</p>\n</li>\n<li><p><code>400</code> Bad Request (invalid parameter format)</p>\n</li>\n</ul>\n</li>\n<li><p><strong>5xx</strong>: Server-side errors.</p>\n</li>\n</ul>\n","urlObject":{"path":["v1","customers",":customer_id"],"host":[""],"query":[],"variable":[{"type":"any","value":"6a60778d30c04e8353c0514b","key":"customer_id"}]}},"response":[{"id":"21a06511-7e6b-4587-8857-e5cf2bac2ca6","name":"[GET] Single Customer","originalRequest":{"method":"GET","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"/v1/customers/:customer_id","host":[""],"path":["v1","customers",":customer_id"],"variable":[{"key":"customer_id","value":""}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n    \"resp_code\": \"200\",\n    \"resp_desc\": {\n        \"id\": \"OK\",\n        \"en\": \"OK\"\n    },\n    \"meta\": {\n        \"version\": \"f36da7c\",\n        \"api_env\": \"staging\",\n        \"trace_id\": \"\"\n    },\n    \"data\": [\n        {\n            \"id\": \"6a0c12f649778a4366541fd8\",\n            \"company_sso_id\": \"bde1def6-314e-4f1c-ae33-d29be105e059\",\n            \"company_billing_id\": \"\",\n            \"crm_data\": null,\n            \"chat_data\": null,\n            \"name\": \"John Doe\",\n            \"email\": \"john.doe@example.com\",\n            \"phone\": [\n                \"6281234567890\"\n            ],\n            \"is_deleted\": false,\n            \"accounts\": null,\n            \"avatar\": {\n                \"url\": \"https://contact-service-staging.oss-ap-southeast-5.aliyuncs.com/default_user_profile.jpg\",\n                \"filename\": \"default_user_profile.jpg\",\n                \"large\": {\n                    \"url\": \"https://contact-service-staging.oss-ap-southeast-5.aliyuncs.com/default_user_profile.jpg\"\n                },\n                \"small\": {\n                    \"url\": \"https://contact-service-staging.oss-ap-southeast-5.aliyuncs.com/default_user_profile.jpg\"\n                }\n            },\n            \"custom_fields\": [\n                {\n                    \"key\": \"tes_single_lain\",\n                    \"value\": \"test single custom field\",\n                    \"datatype\": \"\"\n                }\n            ],\n            \"owner_id\": \"8b324c11-7723-4d03-a2dd-9837336fd0d4\",\n            \"owner_name\": \"Qontak One Staging - Qontak 360 Test\",\n            \"assignee_id\": \"\",\n            \"assignee_name\": \"\",\n            \"username\": \"\",\n            \"usernames\": [\n                {\n                    \"value\": \"johndoe\",\n                    \"source\": \"\",\n                    \"flag\": \"manual\",\n                    \"icon_key\": \"text-editor-mention\"\n                }\n            ],\n            \"source\": \"\",\n            \"source_id\": \"\",\n            \"source_name\": \"\",\n            \"status\": \"active\",\n            \"status_id\": \"\",\n            \"status_name\": \"\",\n            \"job_title\": \"Software Engineer\",\n            \"tags\": null,\n            \"flag\": \"manual\",\n            \"address\": {\n                \"province\": 0,\n                \"province_name\": \"\",\n                \"address_picker_province\": \"\",\n                \"city\": 0,\n                \"city_name\": \"\",\n                \"address_picker_city\": \"\",\n                \"district\": 0,\n                \"district_name\": \"\",\n                \"address_picker_district\": \"\",\n                \"subdistrict\": 0,\n                \"subdistrict_name\": \"\",\n                \"address_picker_subdistrict\": \"\",\n                \"zip_code\": 0,\n                \"zip_code_name\": \"\",\n                \"address_picker_zipcode\": \"\"\n            },\n            \"date_of_birth\": \"\",\n            \"sex\": \"male\",\n            \"sex_id\": \"\",\n            \"sex_name\": \"\",\n            \"disabled_field\": null,\n            \"field_permission\": [],\n            \"permission\": {\n                \"read\": true,\n                \"update\": true,\n                \"delete\": true\n            },\n            \"is_enable_usernames\": true,\n            \"is_loyalty_member\": false,\n            \"created_at\": \"2026-05-19T07:36:22.901Z\",\n            \"updated_at\": \"2026-05-19T07:36:22.901Z\",\n            \"created_by\": \"Qontak One Staging - Qontak 360 Test\",\n            \"updated_by\": \"Qontak One Staging - Qontak 360 Test\"\n        }\n    ]\n}"}],"_postman_id":"b97904b9-5ca5-4ed6-a6df-6f35ceecbe7a"},{"name":"[UPDATE] Customer","event":[{"listen":"prerequest","script":{"id":"3f8622a9-2f44-4ea1-b051-9b0be38ae5e5","exec":["const CryptoJS = require('crypto-js');","const Header = require('postman-collection').Header;","const hmac_username = '';","const hmac_secret = '';","","const resolvedUrlString = pm.variables.replaceIn(pm.request.url.toString());","","const pathMatch = resolvedUrlString.match(/^[a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/[^/]+(\\/[^?#]*)?/);","const path = (pathMatch && pathMatch[1]) ? pathMatch[1] : '/';","","const requestLine = pm.request.method + ' ' + path + ' HTTP/1.1';","const dateString = new Date().toUTCString();","const digest = CryptoJS.HmacSHA256(['date: ' + dateString, requestLine].join('\\n'), hmac_secret);","const signature = CryptoJS.enc.Base64.stringify(digest);","const hmac_header = 'hmac username=\"' + hmac_username + '\", algorithm=\"hmac-sha256\", ' +","  'headers=\"date request-line\", signature=\"' + signature + '\"';","","pm.request.headers.add(new Header(\"Authorization: \" + hmac_header));","pm.request.headers.add(new Header(\"Date: \" + dateString));"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"3a7e10e5-2802-4a36-9c37-b18e55ef9c70","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.mekari.com/qontak/cdp/v1/customers/:customer_id","description":"<h1 id=\"update-customer\">Update Customer</h1>\n<h2 id=\"purpose\">Purpose</h2>\n<p>This endpoint updates an existing customer's information in the Qontak Customer Data Platform (CDP). Use this endpoint to modify customer details such as name, email, and phone numbers.</p>\n<h2 id=\"endpoint\">Endpoint</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>PUT https://api.mekari.com/qontak/cdp/v1/customers/:customer_id\n\n</code></pre><h2 id=\"path-variables\">Path Variables</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>customer_id</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>The unique identifier of the customer to update</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"headers\">Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>X-Authenticated-User-Id</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>The authenticated user's unique identifier (UUID format)</td>\n</tr>\n<tr>\n<td><code>Authorization</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>HMAC signature for request authentication (auto-generated by pre-request script)</td>\n</tr>\n<tr>\n<td><code>Date</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>UTC timestamp for the request (auto-generated by pre-request script)</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"authentication\">Authentication</h2>\n<p>This endpoint uses <strong>HMAC-SHA256 authentication</strong>. The authentication headers should be injected on the pre-request script.</p>\n<p>Ensure the <code>hmac_username</code> and <code>hmac_secret</code> variables are properly configured in the pre-request script.</p>\n<h2 id=\"request-body\">Request Body</h2>\n<p>The request body should be in JSON format with the following parameters:</p>\n<h3 id=\"top-level-fields\">Top-level Fields</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Allows Empty String</th>\n<th>Allows <code>null</code> / Omit</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>name</code></td>\n<td><code>string</code></td>\n<td><strong>Yes</strong></td>\n<td>No — validated as text-only, must be non-empty</td>\n<td>No</td>\n<td>Fails with \"Name is required\"</td>\n</tr>\n<tr>\n<td><code>email</code></td>\n<td><code>string</code></td>\n<td>No</td>\n<td>Yes — skips email validation when empty</td>\n<td>Yes — omit entirely</td>\n<td>Must be valid email format if provided</td>\n</tr>\n<tr>\n<td><code>phone</code></td>\n<td><code>[]string</code></td>\n<td>No</td>\n<td>—</td>\n<td>Yes — omit or <code>[]</code></td>\n<td>Each entry is normalized/validated as a phone number</td>\n</tr>\n<tr>\n<td><code>accounts</code></td>\n<td><code>[]object</code></td>\n<td>No</td>\n<td>—</td>\n<td>Yes — <code>null</code> or omit</td>\n<td>Array of <code>{username, unique_id, channel}</code> objects</td>\n</tr>\n<tr>\n<td><code>profile_url</code></td>\n<td><code>string</code></td>\n<td>No</td>\n<td>Yes</td>\n<td>Yes</td>\n<td>No format validation</td>\n</tr>\n<tr>\n<td><code>owner_id</code></td>\n<td><code>string</code></td>\n<td>No</td>\n<td>Yes — skips owner lookup</td>\n<td>Yes</td>\n<td>Must be valid active user SSO ID if provided</td>\n</tr>\n<tr>\n<td><code>assignee_id</code></td>\n<td><code>string</code></td>\n<td>No</td>\n<td>Yes — skips assignee lookup</td>\n<td>Yes</td>\n<td>Must be valid active user SSO ID if provided</td>\n</tr>\n<tr>\n<td><code>assignee</code></td>\n<td><code>string</code></td>\n<td>No</td>\n<td>Yes</td>\n<td>Yes</td>\n<td><strong>Deprecated</strong> — use <code>assignee_id</code></td>\n</tr>\n<tr>\n<td><code>source</code></td>\n<td><code>string</code></td>\n<td>No</td>\n<td>Yes</td>\n<td>Yes</td>\n<td>No validation</td>\n</tr>\n<tr>\n<td><code>status</code></td>\n<td><code>string</code></td>\n<td>No</td>\n<td>Yes</td>\n<td>Yes</td>\n<td>No validation</td>\n</tr>\n<tr>\n<td><code>job_title</code></td>\n<td><code>string</code></td>\n<td>No</td>\n<td>Yes — skips validation</td>\n<td>Yes</td>\n<td>Validated as text-only if non-empty</td>\n</tr>\n<tr>\n<td><code>tags</code></td>\n<td><code>[]string</code></td>\n<td>No</td>\n<td>—</td>\n<td>Yes — omit or <code>[]</code></td>\n<td>No format validation</td>\n</tr>\n<tr>\n<td><code>custom_fields</code></td>\n<td><code>[]object</code></td>\n<td>No</td>\n<td>—</td>\n<td>Yes — <code>null</code> or omit</td>\n<td>See structure below</td>\n</tr>\n<tr>\n<td><code>layout_id</code></td>\n<td><code>string</code></td>\n<td>No</td>\n<td>Yes</td>\n<td>Yes</td>\n<td>Used for <code>ValidateDefaultFields</code>; defaults to company default if empty</td>\n</tr>\n<tr>\n<td><code>username</code></td>\n<td><code>string</code></td>\n<td>No</td>\n<td>Yes — skips validation</td>\n<td>Yes</td>\n<td>Validated as username format if non-empty</td>\n</tr>\n<tr>\n<td><code>usernames</code></td>\n<td><code>[]object</code> or <code>string</code></td>\n<td>No</td>\n<td>Yes — <code>\"\"</code> is normalized to <code>[]</code></td>\n<td>Yes</td>\n<td>Polymorphic: accepts <code>\"\"</code>, <code>\"val\"</code>, or <code>[{...}]</code>; max 2 per source</td>\n</tr>\n<tr>\n<td><code>address</code></td>\n<td><code>object</code></td>\n<td>No</td>\n<td>—</td>\n<td>Yes — <code>null</code> or omit</td>\n<td>See structure below</td>\n</tr>\n<tr>\n<td><code>date_of_birth</code></td>\n<td><code>string</code></td>\n<td>No</td>\n<td>Yes</td>\n<td>Yes</td>\n<td>No format validation at handler level</td>\n</tr>\n<tr>\n<td><code>sex</code></td>\n<td><code>string</code></td>\n<td>No</td>\n<td>Yes</td>\n<td>Yes</td>\n<td>No validation</td>\n</tr>\n</tbody>\n</table>\n</div><blockquote>\n<p><strong>Note:</strong> <code>company_sso_id</code>, <code>company_billing_id</code>, <code>created_by</code>, <code>updated_by</code>, and <code>bypass_validation</code> are <strong>server-set</strong> — do not send them; they are ignored or overwritten by middleware. </p>\n</blockquote>\n<hr />\n<h3 id=\"custom_fields-object\"><code>custom_fields[]</code> Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Allows Empty</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>key</code></td>\n<td><code>string</code></td>\n<td><strong>Yes</strong> (logical)</td>\n<td>No</td>\n<td>Must match an existing field property key</td>\n</tr>\n<tr>\n<td><code>value</code></td>\n<td><code>any</code></td>\n<td>No</td>\n<td>Yes — <code>null</code>, <code>\"\"</code>, <code>0</code>, <code>[]</code></td>\n<td>Type depends on <code>datatype</code>; validated by <code>ValidateDefaultFields</code> service</td>\n</tr>\n<tr>\n<td><code>datatype</code></td>\n<td><code>string</code></td>\n<td>No</td>\n<td>Yes</td>\n<td>e.g., <code>text</code>, <code>number</code>, <code>dropdown</code>, <code>date</code>, <code>currency</code></td>\n</tr>\n<tr>\n<td><code>field_type</code></td>\n<td><code>string</code></td>\n<td>No</td>\n<td>Yes</td>\n<td>e.g., <code>default</code>, <code>custom</code></td>\n</tr>\n<tr>\n<td><code>currency_code</code></td>\n<td><code>string</code></td>\n<td>No</td>\n<td>Yes</td>\n<td>Only relevant when <code>datatype</code> is <code>currency</code></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"accounts-object\"><code>accounts[]</code> Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Allows Empty</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>username</code></td>\n<td><code>string</code></td>\n<td>Yes</td>\n<td>Stored encrypted</td>\n</tr>\n<tr>\n<td><code>unique_id</code></td>\n<td><code>string</code></td>\n<td>Yes</td>\n<td>Stored encrypted</td>\n</tr>\n<tr>\n<td><code>channel</code></td>\n<td><code>string</code></td>\n<td>Yes</td>\n<td>Plaintext; used for filtering</td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"address-object\"><code>address</code> Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Allows Empty</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>province</code></td>\n<td><code>string</code> (ID reference)</td>\n<td>Yes</td>\n<td>Region ID</td>\n</tr>\n<tr>\n<td><code>city</code></td>\n<td><code>string</code></td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>district</code></td>\n<td><code>string</code></td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>subdistrict</code></td>\n<td><code>string</code></td>\n<td>Yes</td>\n<td></td>\n</tr>\n<tr>\n<td><code>zip_code</code></td>\n<td><code>string</code></td>\n<td>Yes</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"usernames-object\"><code>usernames[]</code> Object</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Allows Empty</th>\n<th>Notes</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>value</code></td>\n<td><code>string</code></td>\n<td>Yes — skipped in validation</td>\n<td>Required logically for meaningful entry; must be valid username format</td>\n</tr>\n<tr>\n<td><code>source</code></td>\n<td><code>string</code></td>\n<td>Yes</td>\n<td>e.g., <code>whatsapp</code>, <code>instagram</code></td>\n</tr>\n<tr>\n<td><code>flag</code></td>\n<td><code>string</code></td>\n<td>Yes</td>\n<td>e.g., <code>manual</code></td>\n</tr>\n<tr>\n<td><code>icon_key</code></td>\n<td><code>string</code></td>\n<td>Yes</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><hr />\n<h3 id=\"minimal-valid-example\">Minimal valid example</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"name\": \"John Doe\"\n}\n\n</code></pre>\n<h3 id=\"full-example\">Full example</h3>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"name\": \"John Doe\",\n  \"email\": \"john@example.com\",\n  \"phone\": [\"+6281234567890\"],\n  \"profile_url\": \"https://example.com/photo.jpg\",\n  \"owner_id\": \"sso-user-id-123\",\n  \"assignee_id\": \"sso-user-id-456\",\n  \"source\": \"web\",\n  \"status\": \"active\",\n  \"job_title\": \"Engineer\",\n  \"tags\": [\"vip\", \"premium\"],\n  \"layout_id\": \"layout-object-id\",\n  \"username\": \"johndoe\",\n  \"usernames\": [\n    { \"value\": \"johndoe_wa\", \"source\": \"whatsapp\", \"flag\": \"manual\", \"icon_key\": \"whatsapp\" }\n  ],\n  \"date_of_birth\": \"1990-01-15\",\n  \"sex\": \"male\",\n  \"address\": {\n    \"province\": \"11\",\n    \"city\": \"1101\",\n    \"district\": \"110101\",\n    \"subdistrict\": \"1101010001\",\n    \"zip_code\": \"23911\"\n  },\n  \"accounts\": [\n    { \"username\": \"johnd\", \"unique_id\": \"uid-001\", \"channel\": \"instagram\" }\n  ],\n  \"custom_fields\": [\n    { \"key\": \"cf_company_name\", \"value\": \"Acme Corp\", \"datatype\": \"text\" },\n    { \"key\": \"cf_revenue\",      \"value\": 5000000,    \"datatype\": \"number\" }\n  ]\n}\n\n</code></pre>\n<h2 id=\"response\">Response</h2>\n<h3 id=\"success-response\">Success Response</h3>\n<p>A successful update will return the updated customer object with the modified fields.</p>\n<p><strong>Status Code:</strong> <code>200 OK</code></p>\n<h3 id=\"error-responses\">Error Responses</h3>\n<ul>\n<li><p><code>400 Bad Request</code> - Invalid request body or parameters</p>\n</li>\n<li><p><code>401 Unauthorized</code> - Invalid or missing authentication credentials</p>\n</li>\n<li><p><code>404 Not Found</code> - Customer with the specified ID does not exist</p>\n</li>\n<li><p><code>422 Unprocessable Entity</code> - Validation errors in the request data</p>\n</li>\n</ul>\n<h2 id=\"notes\">Notes</h2>\n<ul>\n<li><p>All request body parameters are optional; only include the fields you want to update</p>\n</li>\n<li><p>Phone numbers should be provided in international format without spaces or special characters</p>\n</li>\n<li><p>The customer_id must be a valid existing customer identifier</p>\n</li>\n<li><p>HMAC authentication credentials must be configured before sending the request</p>\n</li>\n</ul>\n","urlObject":{"protocol":"https","path":["qontak","cdp","v1","customers",":customer_id"],"host":["api","mekari","com"],"query":[],"variable":[{"type":"any","value":"","key":"customer_id"}]}},"response":[{"id":"9fc1aba5-bb2b-4216-8c24-9d67eac54170","name":"[UPDATE] Customer","originalRequest":{"method":"PUT","header":[],"body":{"mode":"raw","raw":"{\n  \"name\": \"Jane Smith Updated\",\n  \"email\": \"jane.updated@example.com\",\n  \"phone\": [\"+628198765432\"],\n  \"job_title\": \"Senior Product Manager\",\n  \"status\": \"active\",\n  \"tags\": [\"vip\", \"prospect\"],\n  \"owner_id\": \"usr_sso_003\",\n  \"assignee_id\": \"usr_sso_004\",\n  \"custom_fields\": [\n    { \"key\": \"loyalty_tier\", \"value\": \"gold\" }\n  ],\n  \"date_of_birth\": \"1992-07-15\",\n  \"sex\": \"female\"\n}","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.mekari.com/qontak/cdp/v1/customers/:customer_id","protocol":"https","host":["api","mekari","com"],"path":["qontak","cdp","v1","customers",":customer_id"],"variable":[{"key":"customer_id","value":""}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"data\": {\n    \"_id\": \"6643f1a2c3d4e5f6a7b8c9d1\",\n    \"name\": \"Jane Smith Updated\",\n    \"email\": \"jane.updated@example.com\",\n    \"phone\": [\"+628198765432\"],\n    \"job_title\": \"Senior Product Manager\",\n    \"status\": \"active\",\n    \"tags\": [\"vip\", \"prospect\"],\n    \"owner_id\": \"usr_sso_003\",\n    \"assignee_id\": \"usr_sso_004\",\n    \"custom_fields\": [\n      { \"key\": \"loyalty_tier\", \"value\": \"gold\" }\n    ],\n    \"updated_at\": \"2026-05-19T11:00:00Z\"\n  }\n}"}],"_postman_id":"3a7e10e5-2802-4a36-9c37-b18e55ef9c70"},{"name":"[DELETE] Customer","event":[{"listen":"prerequest","script":{"id":"3f8622a9-2f44-4ea1-b051-9b0be38ae5e5","exec":["const CryptoJS = require('crypto-js');","const Header = require('postman-collection').Header;","const hmac_username = '';","const hmac_secret = '';","","const resolvedUrlString = pm.variables.replaceIn(pm.request.url.toString());","","const pathMatch = resolvedUrlString.match(/^[a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/[^/]+(\\/[^?#]*)?/);","const path = (pathMatch && pathMatch[1]) ? pathMatch[1] : '/';","","const requestLine = pm.request.method + ' ' + path + ' HTTP/1.1';","const dateString = new Date().toUTCString();","const digest = CryptoJS.HmacSHA256(['date: ' + dateString, requestLine].join('\\n'), hmac_secret);","const signature = CryptoJS.enc.Base64.stringify(digest);","const hmac_header = 'hmac username=\"' + hmac_username + '\", algorithm=\"hmac-sha256\", ' +","  'headers=\"date request-line\", signature=\"' + signature + '\"';","","pm.request.headers.add(new Header(\"Authorization: \" + hmac_header));","pm.request.headers.add(new Header(\"Date: \" + dateString));"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"03b78301-a145-4ecb-a939-951a036c9c88","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":"https://api.mekari.com/qontak/cdp/v1/customers/:customer_id","description":"<h1 id=\"delete-customer\">Delete Customer</h1>\n<h2 id=\"purpose\">Purpose</h2>\n<p>This endpoint permanently deletes a customer record from the Qontak Customer Data Platform (CDP). Once deleted, the customer's data will be removed from the system and cannot be recovered.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>This endpoint requires <strong>HMAC authentication</strong> with the following components:</p>\n<ul>\n<li><p><strong>HMAC Signature</strong>: Generated automatically via the pre-request script using HMAC-SHA256 algorithm</p>\n<ul>\n<li><p>The signature is computed using the <code>hmac_username</code> and <code>hmac_secret</code> credentials</p>\n</li>\n<li><p>Includes the request date and request line in the signature calculation</p>\n</li>\n<li><p>Added to the <code>Authorization</code> header in the format: <code>hmac username=\"...\", algorithm=\"hmac-sha256\", headers=\"date request-line\", signature=\"...\"</code></p>\n</li>\n</ul>\n</li>\n<li><p><strong>Required Headers</strong>:</p>\n<ul>\n<li><p><code>Authorization</code>: HMAC signature (auto-generated by pre-request script)</p>\n</li>\n<li><p><code>Date</code>: UTC timestamp (auto-generated by pre-request script)</p>\n</li>\n<li><p><code>X-Authenticated-User-Id</code>: The UUID of the authenticated user performing the deletion</p>\n</li>\n</ul>\n</li>\n</ul>\n<blockquote>\n<p><strong>Note</strong>: The HMAC credentials (<code>hmac_username</code> and <code>hmac_secret</code>) must be configured in the pre-request script before sending this request. </p>\n</blockquote>\n<h2 id=\"path-parameters\">Path Parameters</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>customer_id</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>The unique identifier of the customer to be deleted. This should be the customer's UUID or ID as stored in the CDP system.</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"request-headers\">Request Headers</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Header</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>Authorization</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>HMAC authentication signature (auto-generated)</td>\n</tr>\n<tr>\n<td><code>Date</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>UTC timestamp for request validation (auto-generated)</td>\n</tr>\n<tr>\n<td><code>X-Authenticated-User-Id</code></td>\n<td>string</td>\n<td>Yes</td>\n<td>UUID of the user performing the deletion operation</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"response-codes\">Response Codes</h2>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Status Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200 OK</code></td>\n<td>Customer successfully deleted</td>\n</tr>\n<tr>\n<td><code>204 No Content</code></td>\n<td>Customer successfully deleted (no response body)</td>\n</tr>\n<tr>\n<td><code>400 Bad Request</code></td>\n<td>Invalid customer_id format or missing required parameters</td>\n</tr>\n<tr>\n<td><code>401 Unauthorized</code></td>\n<td>Invalid or missing HMAC authentication credentials</td>\n</tr>\n<tr>\n<td><code>403 Forbidden</code></td>\n<td>User does not have permission to delete customers</td>\n</tr>\n<tr>\n<td><code>404 Not Found</code></td>\n<td>Customer with the specified customer_id does not exist</td>\n</tr>\n<tr>\n<td><code>500 Internal Server Error</code></td>\n<td>Server error occurred while processing the deletion</td>\n</tr>\n</tbody>\n</table>\n</div><h2 id=\"important-notes\">Important Notes</h2>\n<p>⚠️ <strong>Deletion is Permanent</strong>: This operation permanently removes the customer record. Ensure you have proper authorization and confirmation before executing this request.</p>\n<p>🔒 <strong>Security</strong>: The HMAC authentication ensures that only authorized systems can delete customer data. Keep your <code>hmac_secret</code> secure and never expose it in client-side code.</p>\n<p>📋 <strong>Audit Trail</strong>: Make sure to log the <code>X-Authenticated-User-Id</code> for audit purposes to track who performed the deletion.</p>\n<p>🔗 <strong>Related Operations</strong>: Before deleting a customer, you may want to:</p>\n<ul>\n<li><p>Retrieve the customer details using the GET endpoint to verify the correct customer</p>\n</li>\n<li><p>Check for any associated records (deals, companies, tasks, tickets) that may need to be handled</p>\n</li>\n<li><p>Export or backup customer data if required for compliance</p>\n</li>\n</ul>\n<h2 id=\"example-usage\">Example Usage</h2>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code>DELETE https://api.mekari.com/qontak/cdp/v1/customers/abc123-def456-ghi789\nX-Authenticated-User-Id: d4228ce5-9a3c-4226-aeb6-b2eb8e763366\n\n</code></pre>","urlObject":{"protocol":"https","path":["qontak","cdp","v1","customers",":customer_id"],"host":["api","mekari","com"],"query":[],"variable":[{"type":"any","value":"","key":"customer_id"}]}},"response":[{"id":"992a2f01-88dd-4d10-b9c2-82e2bc4488f0","name":"[DELETE] Customer","originalRequest":{"method":"DELETE","header":[],"body":{"mode":"raw","raw":"","options":{"raw":{"language":"json"}}},"url":{"raw":"https://api.mekari.com/qontak/cdp/v1/customers/:customer_id","protocol":"https","host":["api","mekari","com"],"path":["qontak","cdp","v1","customers",":customer_id"],"variable":[{"key":"customer_id","value":""}]}},"_postman_previewlanguage":"","header":[],"cookie":[{"expires":"Invalid Date","domain":"","path":""}],"responseTime":null,"body":"{\n  \"data\": {\n    \"success\": true\n  }\n}"}],"_postman_id":"03b78301-a145-4ecb-a939-951a036c9c88"},{"name":"[CREATE] Activity Log Customer","event":[{"listen":"prerequest","script":{"id":"480ff5b5-681f-48ed-b4d6-e703a4e2246b","exec":["const CryptoJS = require('crypto-js');","const Header = require('postman-collection').Header;","const hmac_username = '';","const hmac_secret = '';","","const resolvedUrlString = pm.variables.replaceIn(pm.request.url.toString());","","const pathMatch = resolvedUrlString.match(/^[a-zA-Z][a-zA-Z\\d+\\-.]*:\\/\\/[^/]+(\\/[^?#]*)?/);","const path = (pathMatch && pathMatch[1]) ? pathMatch[1] : '/';","","const requestLine = pm.request.method + ' ' + path + ' HTTP/1.1';","const dateString = new Date().toUTCString();","const digest = CryptoJS.HmacSHA256(['date: ' + dateString, requestLine].join('\\n'), hmac_secret);","const signature = CryptoJS.enc.Base64.stringify(digest);","const hmac_header = 'hmac username=\"' + hmac_username + '\", algorithm=\"hmac-sha256\", ' +","  'headers=\"date request-line\", signature=\"' + signature + '\"';","","pm.request.headers.add(new Header(\"Authorization: \" + hmac_header));","pm.request.headers.add(new Header(\"Date: \" + dateString));"],"type":"text/javascript","packages":{},"requests":{}}}],"id":"7dfd9fb7-3f94-4526-956b-42d2a20db535","protocolProfileBehavior":{"disableBodyPruning":true},"request":{"method":"POST","header":[],"body":{"mode":"raw","raw":"{\n    \"source\": \"external\",\n    \"category\": \"transaction\",\n    \"activity\": \"TESTABC\",\n    \"action\": \"order_confirmed\",\n    \"attributes\": {\n        \"order\": {\n            \"amount\": 10000,\n            \"currency\": \"IDR\"\n        }\n    },\n    \"activity_log_code\": \"pos-001\"\n}","options":{"raw":{"language":"json"}}},"url":"/v1/customers/:customer_id/activity_logs","description":"<p><strong>Summary:</strong> Create Activitly Log for Customer Activity</p>\n<p><strong>Description:</strong> Looks up a contact by <code>customer_id</code>, saved history activity from customer and extend to loyalty service earning point/balance</p>\n<p><strong>Authentication:</strong> MAG<br /><strong>Permission:</strong> <code>customers_customers_view</code></p>\n<p><strong>Request Body (JSON):</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>source</td>\n<td>string</td>\n<td>yes</td>\n<td>enum: qontak, external</td>\n</tr>\n<tr>\n<td>category</td>\n<td>string</td>\n<td>yes</td>\n<td>enum: transaction</td>\n</tr>\n<tr>\n<td>activity</td>\n<td>string</td>\n<td>yes</td>\n<td></td>\n</tr>\n<tr>\n<td>action</td>\n<td>string</td>\n<td>yes</td>\n<td>enum: order_confirmed, payment_confirmed, order_delivered</td>\n</tr>\n<tr>\n<td>attributes</td>\n<td>object</td>\n<td>yes</td>\n<td>if action = order_confirmed  <br />  <br />  <br />if action = payment_confirmed  <br />  <br />if action = order_delivered</td>\n</tr>\n<tr>\n<td>activity_log_code</td>\n<td>string</td>\n<td>yes</td>\n<td></td>\n</tr>\n</tbody>\n</table>\n</div><p>Body Attributes</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Field</th>\n<th>Type</th>\n<th>Required</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>order</td>\n<td>object</td>\n<td>yes if action order_confirmed</td>\n<td>{  <br />\"order\": {  <br />\"amount\": 100000,  <br />\"currency\": \"IDR\"  <br />}  <br />}</td>\n</tr>\n<tr>\n<td>payment</td>\n<td>object</td>\n<td>yes if action payment_confirmed</td>\n<td>{  <br />\"payment\": {  <br />\"paid_amount\": 100000,  <br />\"currency\": \"IDR\"  <br />}  <br />}</td>\n</tr>\n<tr>\n<td>delivery</td>\n<td>object</td>\n<td>yes if action order_delivered</td>\n<td>{  <br />\"delivery\": {}  <br />}</td>\n</tr>\n</tbody>\n</table>\n</div><p><strong>Responses:</strong></p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Code</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td><code>200</code></td>\n<td>Create activity successfully</td>\n</tr>\n<tr>\n<td><code>400</code></td>\n<td>Invalid request body</td>\n</tr>\n<tr>\n<td><code>401</code></td>\n<td>Unauthorized — missing/invalid MAG credentials</td>\n</tr>\n<tr>\n<td><code>403</code></td>\n<td>Forbidden — missing <code>customers_customers_manage</code> permission</td>\n</tr>\n<tr>\n<td><code>503</code></td>\n<td>Loyalty service unavailable</td>\n</tr>\n</tbody>\n</table>\n</div>","urlObject":{"path":["v1","customers",":customer_id","activity_logs"],"host":[""],"query":[],"variable":[{"type":"any","value":"6a0c14b643bba5a3308e8bd1","key":"customer_id"}]}},"response":[],"_postman_id":"7dfd9fb7-3f94-4526-956b-42d2a20db535"}],"id":"08715fd5-97f1-4451-8fd4-f8a2316369f5","description":"<p><strong>OpenAPI — Customers (CDP) CRUD Requests</strong></p>\n<p>This folder contains the core Customer endpoints for the Qontak CDP API (<code>/qontak/cdp/v1/customers</code>). It provides a complete CRUD workflow for managing customers, including:</p>\n<ul>\n<li><p><strong>List customers</strong> (<code>GET /customers</code>)</p>\n</li>\n<li><p><strong>Create a customer</strong> (<code>POST /customers</code>)</p>\n</li>\n<li><p><strong>Retrieve a single customer</strong> (<code>GET /customers/{customerId}</code>)</p>\n</li>\n<li><p><strong>Update a customer</strong> (<code>PUT /customers/{customerId}</code>)</p>\n</li>\n<li><p><strong>Delete a customer</strong> (<code>DELETE /customers/{customerId}</code>)</p>\n</li>\n</ul>\n<p>Use these requests for quick manual checks, development validation, and end-to-end testing of the customer lifecycle in the staging environment.</p>\n<h2 id=\"authentication\">Authentication</h2>\n<p>This request uses <strong>HMAC authentication</strong> injected via the <strong>Pre-request Script</strong>. You can get the HMAC authentication on <a href=\"https://developers.mekari.com/\">https://developers.mekari.com/</a></p>\n<p>Requirements:</p>\n<ul>\n<li><strong>Authorization</strong> and <strong>Date</strong> headers are added by the pre-request script at send time.</li>\n</ul>\n","_postman_id":"08715fd5-97f1-4451-8fd4-f8a2316369f5"},{"name":"Webhooks","item":[{"name":"Events","item":[{"name":"qontak.customer.create","item":[],"id":"595a9be2-61ff-4563-97cd-c28ca4b35b0c","description":"<p>Triggered when user create a contact</p>\n<p>Some parameter can be excluded according to customer layout configuration</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>_id</td>\n<td>string</td>\n<td>Unique identifier of the record.</td>\n</tr>\n<tr>\n<td>address</td>\n<td>object</td>\n<td>Address information object.</td>\n</tr>\n<tr>\n<td>address.province</td>\n<td>integer</td>\n<td>Province ID/code.</td>\n</tr>\n<tr>\n<td>address.province_name</td>\n<td>string</td>\n<td>Province display name.</td>\n</tr>\n<tr>\n<td>address.address_picker_province</td>\n<td>string</td>\n<td>Province label/value selected from address picker.</td>\n</tr>\n<tr>\n<td>address.city</td>\n<td>integer</td>\n<td>City ID/code.</td>\n</tr>\n<tr>\n<td>address.city_name</td>\n<td>string</td>\n<td>City display name.</td>\n</tr>\n<tr>\n<td>address.address_picker_city</td>\n<td>string</td>\n<td>City label/value selected from address picker.</td>\n</tr>\n<tr>\n<td>address.district</td>\n<td>integer</td>\n<td>District ID/code.</td>\n</tr>\n<tr>\n<td>address.district_name</td>\n<td>string</td>\n<td>District display name.</td>\n</tr>\n<tr>\n<td>address.address_picker_district</td>\n<td>string</td>\n<td>District label/value selected from address picker.</td>\n</tr>\n<tr>\n<td>address.subdistrict</td>\n<td>integer</td>\n<td>Subdistrict ID/code.</td>\n</tr>\n<tr>\n<td>address.subdistrict_name</td>\n<td>string</td>\n<td>Subdistrict display name.</td>\n</tr>\n<tr>\n<td>address.address_picker_subdistrict</td>\n<td>string</td>\n<td>Subdistrict label/value selected from address picker.</td>\n</tr>\n<tr>\n<td>address.zip_code</td>\n<td>integer</td>\n<td>Postal/ZIP code as numeric value.</td>\n</tr>\n<tr>\n<td>address.zip_code_name</td>\n<td>string</td>\n<td>Postal/ZIP code as display text.</td>\n</tr>\n<tr>\n<td>address.address_picker_zipcode</td>\n<td>string</td>\n<td>ZIP code label/value selected from address picker.</td>\n</tr>\n<tr>\n<td>assignee_id</td>\n<td>string</td>\n<td>User ID assigned to this record.</td>\n</tr>\n<tr>\n<td>company_sso_id</td>\n<td>string</td>\n<td>Company SSO identifier associated with the record.</td>\n</tr>\n<tr>\n<td>created_at</td>\n<td>string (date-time)</td>\n<td>Timestamp when the record was created.</td>\n</tr>\n<tr>\n<td>created_by_user_id</td>\n<td>string</td>\n<td>User ID that created the record.</td>\n</tr>\n<tr>\n<td>custom_fields</td>\n<td>array</td>\n<td>List of dynamic/custom field entries.</td>\n</tr>\n<tr>\n<td>custom_fields[].key</td>\n<td>string</td>\n<td>Custom field key/name.</td>\n</tr>\n<tr>\n<td>custom_fields[].value</td>\n<td>any</td>\n<td>Custom field value (type is not constrained in schema).</td>\n</tr>\n<tr>\n<td>custom_fields[].field_type</td>\n<td>string</td>\n<td>UI/business field type of the custom field.</td>\n</tr>\n<tr>\n<td>custom_fields[].datatype</td>\n<td>string</td>\n<td>Data type metadata for the custom field value.</td>\n</tr>\n<tr>\n<td>date_of_birth</td>\n<td>string (date-time)</td>\n<td>Date of birth timestamp/value.</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string (email)</td>\n<td>Email address.</td>\n</tr>\n<tr>\n<td>is_deleted</td>\n<td>boolean</td>\n<td>Soft-delete flag indicating whether record is deleted.</td>\n</tr>\n<tr>\n<td>job_title</td>\n<td>string</td>\n<td>Job title/position.</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Full name of the person/contact.</td>\n</tr>\n<tr>\n<td>owner_id</td>\n<td>string</td>\n<td>Owner user ID of the record.</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>array</td>\n<td>List of phone numbers.</td>\n</tr>\n<tr>\n<td>phone[]</td>\n<td>string</td>\n<td>Single phone number entry.</td>\n</tr>\n<tr>\n<td>sex</td>\n<td>string</td>\n<td>Sex/gender value.</td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td>Source channel/system where the record originated.</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Current status of the record.</td>\n</tr>\n<tr>\n<td>updated_at</td>\n<td>string (date-time)</td>\n<td>Timestamp when the record was last updated.</td>\n</tr>\n<tr>\n<td>updated_by_user_id</td>\n<td>string</td>\n<td>User ID that last updated the record.</td>\n</tr>\n<tr>\n<td>usernames</td>\n<td>array</td>\n<td>List of username/account identities from channels/platforms.</td>\n</tr>\n<tr>\n<td>usernames[].value</td>\n<td>string</td>\n<td>Username/account value.</td>\n</tr>\n<tr>\n<td>usernames[].source</td>\n<td>string</td>\n<td>Source platform/channel of the username.</td>\n</tr>\n<tr>\n<td>usernames[].flag</td>\n<td>string</td>\n<td>Additional marker/flag for username metadata.</td>\n</tr>\n<tr>\n<td>usernames[].icon_key</td>\n<td>string</td>\n<td>Icon identifier associated with the username source.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Example</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"companyId\": \"a1b2c3d4-0000-4000-8000-000000000001\",\n  \"eventType\": \"qontak.customer.create\",\n  \"payload\": {\n    \"_id\": \"6710a3c1e4b0a1b2c3d4e5f6\",\n    \"address\": {\n      \"province\": 31,\n      \"province_name\": \"DKI Jakarta\",\n      \"address_picker_province\": \"DKI Jakarta\",\n      \"city\": 3171,\n      \"city_name\": \"Jakarta Pusat\",\n      \"address_picker_city\": \"Jakarta Pusat\",\n      \"district\": 317101,\n      \"district_name\": \"Gambir\",\n      \"address_picker_district\": \"Gambir\",\n      \"subdistrict\": 3171011001,\n      \"subdistrict_name\": \"Gambir\",\n      \"address_picker_subdistrict\": \"Gambir\",\n      \"zip_code\": 10110,\n      \"zip_code_name\": \"10110\",\n      \"address_picker_zipcode\": \"10110\"\n    },\n    \"assignee_id\": \"b2c3d4e5-0000-4000-8000-000000000002\",\n    \"company_billing_id\": \"100234\",\n    \"company_sso_id\": \"a1b2c3d4-0000-4000-8000-000000000001\",\n    \"created_at\": \"2026-10-16T03:12:45.123456789Z\",\n    \"created_by_user_id\": \"b2c3d4e5-0000-4000-8000-000000000002\",\n    \"custom_fields\": [\n      {\n        \"key\": \"member_tier\",\n        \"value\": \"Gold\",\n        \"field_type\": \"dropdown_select\",\n        \"datatype\": \"string\",\n        \"value_id\": \"c3d4e5f6-0000-4000-8000-000000000010\"\n      }\n    ],\n    \"date_of_birth\": \"1990-05-17T00:00:00Z\",\n    \"email\": \"budi.santoso@example.com\",\n    \"is_deleted\": false,\n    \"job_title\": \"Purchasing Manager\",\n    \"name\": \"Budi Santoso\",\n    \"owner_id\": \"b2c3d4e5-0000-4000-8000-000000000002\",\n    \"phone\": [\"6281200000001\"],\n    \"sex\": \"d4e5f6a7-0000-4000-8000-000000000020\",\n    \"source\": \"e5f6a7b8-0000-4000-8000-000000000030\",\n    \"status\": \"f6a7b8c9-0000-4000-8000-000000000040\",\n    \"team_owners\": [\"0a1b2c3d-0000-4000-8000-000000000050\"],\n    \"updated_at\": \"2026-10-16T03:12:45.123456789Z\",\n    \"updated_by_user_id\": \"b2c3d4e5-0000-4000-8000-000000000002\",\n    \"usernames\": []\n  }\n}\n\n\n</code></pre>\n","_postman_id":"595a9be2-61ff-4563-97cd-c28ca4b35b0c"},{"name":"qontak.customer.update","item":[],"id":"cef3dabf-4cf6-4766-92e5-821242aedc18","description":"<p>Triggered when user update a contact</p>\n<p>Some parameter can be excluded according to customer layout configuration</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>_id</td>\n<td>string</td>\n<td>Unique identifier of the record.</td>\n</tr>\n<tr>\n<td>address</td>\n<td>object</td>\n<td>Address information object.</td>\n</tr>\n<tr>\n<td>address.province</td>\n<td>integer</td>\n<td>Province ID/code.</td>\n</tr>\n<tr>\n<td>address.province_name</td>\n<td>string</td>\n<td>Province display name.</td>\n</tr>\n<tr>\n<td>address.address_picker_province</td>\n<td>string</td>\n<td>Province label/value selected from address picker.</td>\n</tr>\n<tr>\n<td>address.city</td>\n<td>integer</td>\n<td>City ID/code.</td>\n</tr>\n<tr>\n<td>address.city_name</td>\n<td>string</td>\n<td>City display name.</td>\n</tr>\n<tr>\n<td>address.address_picker_city</td>\n<td>string</td>\n<td>City label/value selected from address picker.</td>\n</tr>\n<tr>\n<td>address.district</td>\n<td>integer</td>\n<td>District ID/code.</td>\n</tr>\n<tr>\n<td>address.district_name</td>\n<td>string</td>\n<td>District display name.</td>\n</tr>\n<tr>\n<td>address.address_picker_district</td>\n<td>string</td>\n<td>District label/value selected from address picker.</td>\n</tr>\n<tr>\n<td>address.subdistrict</td>\n<td>integer</td>\n<td>Subdistrict ID/code.</td>\n</tr>\n<tr>\n<td>address.subdistrict_name</td>\n<td>string</td>\n<td>Subdistrict display name.</td>\n</tr>\n<tr>\n<td>address.address_picker_subdistrict</td>\n<td>string</td>\n<td>Subdistrict label/value selected from address picker.</td>\n</tr>\n<tr>\n<td>address.zip_code</td>\n<td>integer</td>\n<td>Postal/ZIP code as numeric value.</td>\n</tr>\n<tr>\n<td>address.zip_code_name</td>\n<td>string</td>\n<td>Postal/ZIP code as display text.</td>\n</tr>\n<tr>\n<td>address.address_picker_zipcode</td>\n<td>string</td>\n<td>ZIP code label/value selected from address picker.</td>\n</tr>\n<tr>\n<td>assignee_id</td>\n<td>string</td>\n<td>User ID assigned to this record.</td>\n</tr>\n<tr>\n<td>company_sso_id</td>\n<td>string</td>\n<td>Company SSO identifier associated with the record.</td>\n</tr>\n<tr>\n<td>created_at</td>\n<td>string (date-time)</td>\n<td>Timestamp when the record was created.</td>\n</tr>\n<tr>\n<td>created_by_user_id</td>\n<td>string</td>\n<td>User ID that created the record.</td>\n</tr>\n<tr>\n<td>custom_fields</td>\n<td>array</td>\n<td>List of dynamic/custom field entries.</td>\n</tr>\n<tr>\n<td>custom_fields[].key</td>\n<td>string</td>\n<td>Custom field key/name.</td>\n</tr>\n<tr>\n<td>custom_fields[].value</td>\n<td>any</td>\n<td>Custom field value (type is not constrained in schema).</td>\n</tr>\n<tr>\n<td>custom_fields[].field_type</td>\n<td>string</td>\n<td>UI/business field type of the custom field.</td>\n</tr>\n<tr>\n<td>custom_fields[].datatype</td>\n<td>string</td>\n<td>Data type metadata for the custom field value.</td>\n</tr>\n<tr>\n<td>date_of_birth</td>\n<td>string (date-time)</td>\n<td>Date of birth timestamp/value.</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string (email)</td>\n<td>Email address.</td>\n</tr>\n<tr>\n<td>is_deleted</td>\n<td>boolean</td>\n<td>Soft-delete flag indicating whether record is deleted.</td>\n</tr>\n<tr>\n<td>job_title</td>\n<td>string</td>\n<td>Job title/position.</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Full name of the person/contact.</td>\n</tr>\n<tr>\n<td>owner_id</td>\n<td>string</td>\n<td>Owner user ID of the record.</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>array</td>\n<td>List of phone numbers.</td>\n</tr>\n<tr>\n<td>phone[]</td>\n<td>string</td>\n<td>Single phone number entry.</td>\n</tr>\n<tr>\n<td>sex</td>\n<td>string</td>\n<td>Sex/gender value.</td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td>Source channel/system where the record originated.</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Current status of the record.</td>\n</tr>\n<tr>\n<td>updated_at</td>\n<td>string (date-time)</td>\n<td>Timestamp when the record was last updated.</td>\n</tr>\n<tr>\n<td>updated_by_user_id</td>\n<td>string</td>\n<td>User ID that last updated the record.</td>\n</tr>\n<tr>\n<td>usernames</td>\n<td>array</td>\n<td>List of username/account identities from channels/platforms.</td>\n</tr>\n<tr>\n<td>usernames[].value</td>\n<td>string</td>\n<td>Username/account value.</td>\n</tr>\n<tr>\n<td>usernames[].source</td>\n<td>string</td>\n<td>Source platform/channel of the username.</td>\n</tr>\n<tr>\n<td>usernames[].flag</td>\n<td>string</td>\n<td>Additional marker/flag for username metadata.</td>\n</tr>\n<tr>\n<td>usernames[].icon_key</td>\n<td>string</td>\n<td>Icon identifier associated with the username source.</td>\n</tr>\n</tbody>\n</table>\n</div><p>Example</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"companyId\": \"a1b2c3d4-0000-4000-8000-000000000001\",\n  \"eventType\": \"qontak.customer.update\",\n  \"payload\": {\n    \"_id\": \"6710a3c1e4b0a1b2c3d4e5f6\",\n    \"address\": { \"...\": \"same shape as create\" },\n    \"assignee_id\": \"b2c3d4e5-0000-4000-8000-000000000002\",\n    \"company_billing_id\": \"100234\",\n    \"company_sso_id\": \"a1b2c3d4-0000-4000-8000-000000000001\",\n    \"created_at\": \"2026-10-16T03:12:45.123Z\",\n    \"created_by_user_id\": \"b2c3d4e5-0000-4000-8000-000000000002\",\n    \"custom_fields\": [\n      { \"key\": \"member_tier\", \"value\": \"Gold\", \"field_type\": \"dropdown_select\", \"datatype\": \"string\", \"value_id\": \"c3d4e5f6-0000-4000-8000-000000000010\" }\n    ],\n    \"date_of_birth\": \"1990-05-17T00:00:00Z\",\n    \"email\": \"budi.santoso@example.com\",\n    \"is_deleted\": false,\n    \"job_title\": \"Head of Procurement\",\n    \"name\": \"Budi Santoso\",\n    \"owner_id\": \"b2c3d4e5-0000-4000-8000-000000000002\",\n    \"phone\": [\"6281200000001\"],\n    \"sex\": \"d4e5f6a7-0000-4000-8000-000000000020\",\n    \"source\": \"e5f6a7b8-0000-4000-8000-000000000030\",\n    \"status\": \"f6a7b8c9-0000-4000-8000-000000000041\",\n    \"team_owners\": [\"0a1b2c3d-0000-4000-8000-000000000050\"],\n    \"updated_at\": \"2026-10-16T04:05:10.482Z\",\n    \"updated_by_user_id\": \"1b2c3d4e-0000-4000-8000-000000000003\",\n    \"usernames\": []\n  }\n}\n\n\n</code></pre>\n","_postman_id":"cef3dabf-4cf6-4766-92e5-821242aedc18"},{"name":"qontak.customer.delete","item":[],"id":"dce116c1-1984-4470-ad1c-1d20ae2e2d8a","description":"<p>Triggered when user delete a contact</p>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Parameter</th>\n<th>Data Type</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>_id</td>\n<td>string</td>\n<td>Unique identifier of the record.</td>\n</tr>\n<tr>\n<td>assignee_id</td>\n<td>string</td>\n<td>User ID assigned to this record.</td>\n</tr>\n<tr>\n<td>company_sso_id</td>\n<td>string</td>\n<td>Company SSO identifier associated with the record.</td>\n</tr>\n<tr>\n<td>date_of_birth</td>\n<td>null</td>\n<td>Date of birth value is always null in this schema.</td>\n</tr>\n<tr>\n<td>email</td>\n<td>string</td>\n<td>Email address.</td>\n</tr>\n<tr>\n<td>job_title</td>\n<td>string</td>\n<td>Job title or position.</td>\n</tr>\n<tr>\n<td>name</td>\n<td>string</td>\n<td>Full name of the person/contact.</td>\n</tr>\n<tr>\n<td>owner_id</td>\n<td>string</td>\n<td>Owner user ID of the record.</td>\n</tr>\n<tr>\n<td>phone</td>\n<td>null</td>\n<td>Phone value is always null in this schema.</td>\n</tr>\n<tr>\n<td>sex</td>\n<td>string</td>\n<td>Sex/gender value.</td>\n</tr>\n<tr>\n<td>source</td>\n<td>string</td>\n<td>Source channel/system where the record originated.</td>\n</tr>\n<tr>\n<td>status</td>\n<td>string</td>\n<td>Current status of the record.</td>\n</tr>\n<tr>\n<td>usernames</td>\n<td>array</td>\n<td>List of usernames/account identities (item structure not specified in this schema).</td>\n</tr>\n</tbody>\n</table>\n</div><p>Example</p>\n<pre class=\"click-to-expand-wrapper is-snippet-wrapper\"><code class=\"language-json\">{\n  \"companyId\": \"a1b2c3d4-0000-4000-8000-000000000001\",\n  \"eventType\": \"qontak.customer.delete\",\n  \"payload\": {\n    \"_id\": \"6710a3c1e4b0a1b2c3d4e5f6\",\n    \"assignee_id\": \"\",\n    \"company_sso_id\": \"a1b2c3d4-0000-4000-8000-000000000001\",\n    \"date_of_birth\": null,\n    \"email\": \"\",\n    \"job_title\": \"\",\n    \"name\": \"\",\n    \"owner_id\": \"\",\n    \"phone\": null,\n    \"sex\": \"\",\n    \"source\": \"\",\n    \"status\": \"\",\n    \"team_owners\": null,\n    \"usernames\": []\n  }\n}\n\n\n</code></pre>\n","_postman_id":"dce116c1-1984-4470-ad1c-1d20ae2e2d8a"}],"id":"fdfce107-016d-4608-b450-12371fefd91d","description":"<h3 id=\"supported-events\">Supported Events</h3>\n<div class=\"click-to-expand-wrapper is-table-wrapper\"><table>\n<thead>\n<tr>\n<th>Event</th>\n<th>Description</th>\n</tr>\n</thead>\n<tbody>\n<tr>\n<td>qontak.customer.create</td>\n<td>Triggered when user create a contact</td>\n</tr>\n<tr>\n<td>qontak.customer.update</td>\n<td>Triggered when user update a contact</td>\n</tr>\n<tr>\n<td>qontak.customer.delete</td>\n<td>Triggered when user delete a contact</td>\n</tr>\n</tbody>\n</table>\n</div>","_postman_id":"fdfce107-016d-4608-b450-12371fefd91d"}],"id":"685829a1-78fc-4c11-8215-d3baba8c6e68","_postman_id":"685829a1-78fc-4c11-8215-d3baba8c6e68","description":""}],"event":[{"listen":"prerequest","script":{"id":"31e7f68c-81df-4888-9fb6-63d0c5c590ab","type":"text/javascript","packages":{},"requests":{},"exec":[""]}},{"listen":"test","script":{"id":"dafddcf5-eaca-4c4d-918c-6f42df97b94b","type":"text/javascript","packages":{},"requests":{},"exec":[""]}}],"variable":[{"key":"BASE_URL","value":""}]}