---
title: "Create a custom field"
method: POST
path: "/data/fields"
tags: ["Fields"]
---

# Create a custom field

`POST /data/fields`

Create a custom field.

## Request body

- object
  - `scope` 'contacts' | 'stores' | 'products' | 'order_products' | 'orders' | 'rewards' | 'loyalty', required
  - `name` string, required
  - `type` 'date' | 'text' | 'int' | 'double', required

## Response `201`

Custom field creation is successful.

## Other responses

- `400` — The request validation failed.
- `401` — Authentication failed.
- `403` — Forbidden.

---

[API](https://skmtc.net/splio/apis/splio-customer-platform.md) · [All operations](https://skmtc.net/splio/apis/splio-customer-platform/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/splio/splio-customer-platform/versions/2ff4735f665c/schema)
