---
title: "Create a customer credits account"
method: POST
path: "/v1/customer-credits/accounts"
tags: ["Customer Credits - Accounts"]
---

# Create a customer credits account

`POST /v1/customer-credits/accounts`

## Request

- Base URL: `https://api.creem.io`
- URL: `https://api.creem.io/v1/customer-credits/accounts`
- Auth: API key in header `x-api-key`
- TypeScript: <https://skmtc.dev/creem/apis/creem-api/docs/v1/customer-credits/accounts/post.ts> (a function with typed inputs; its response is checked against the schema)

Create a new credits account for a customer. Optionally seed it with an initial balance.

## Request body

- CreateAccountDto
  - `name` string: Human-readable name for the account (bucket). Unique per customer, compared case-insensitively: `Tokens` and `tokens` are the same account. Surrounding whitespace is trimmed; the spelling you send is preserved on read. Max 100 characters.
  - `customer_id` string, required: The owner ID this account belongs to (e.g. customer ID)
  - `unit_label` string: Label for the unit of currency/credits
  - `initial_balance` string: Seed the account with this many credits on creation

## Response `201`

Account created

- AccountResponseDto
  - `id` string, required: Account ID
  - `store_id` string, required: Store ID
  - `customer_id` string, required: Owner ID
  - `name` string, required: Account name
  - `unit_label` string, required: Unit label
  - `status` 'active' | 'frozen' | 'closed', required: Account status
  - `created_at` string, required: Creation timestamp
  - `updated_at` string, required: Last update timestamp

## Other responses

- `400`: Bad Request - Invalid input parameters
- `401`: Unauthorized - Invalid or missing API key
- `404`: Not Found - Resource does not exist
- `409`: An account with this name (compared case-insensitively) already exists for the customer

## Changes

- **2026-09-16** `ab9722a7eb0c`: 1 warning, 1 info
  - the `name` request property's maxLength was set to `100`
  - added the non-success response with the status `409`
- **2026-09-15** `071301350724`: 2 info
  - api tag `Customer Credits - Accounts` added
  - api tag `Customer Credits - Accounts (Experimental)` removed

[Operation history](https://skmtc.dev/creem/apis/creem-api/changes/v1/customer-credits/accounts/post.md)

---

[API](https://skmtc.dev/creem/apis/creem-api.md) - [All operations](https://skmtc.dev/creem/apis/creem-api/llms.txt) - [OpenAPI document](https://skmtc.dev/creem/apis/creem-api/revisions/3f39a8f266c3?raw)
