---
title: "Create Wallet"
method: POST
path: "/api/v1/wallets"
tags: ["Wallets"]
---

# Create Wallet

`POST /api/v1/wallets`

## Request

- Base URL: `https://merchant-api.accruesavings.com`
- URL: `https://merchant-api.accruesavings.com/api/v1/wallets`
- Auth: none declared. Required headers: `Client-ID`, `Authorization`
- TypeScript: <https://skmtc.dev/byaccrue/apis/accrue-merchant-api/docs/api/v1/wallets/post.ts> (a function with typed inputs; its response is checked against the schema)

## Headers

- `Client-ID` string, uuid, required: The unique identifier of the client making the request. This header is required to retrieve the client-specific configuration and ensure that the response is tailored to the client's settings and permissions.
- `Authorization` string, uuid, required: Secure secret to access privileged endpoints.

## Request body

- object
  - `data` object, required
    - `type` 'Wallet', required
    - `attributes` object, required
      - `userId` string, uuid, required: The ID of the user to associate with this wallet.

## Response `201`

201 Created

- CreateWalletResponse
  - `data` object, required
    - `id` string, uuid, required: Unique identifier for the object.
    - `type` 'Wallet', required
    - `attributes` object, required
      - `status` 'Active' | 'ClosingWithClosedLoop' | 'ManualReview' | 'Closed': The current status of the wallet.
      - `closedAt` string, date-time, nullable: The date and time when the wallet was closed.
      - `updatedAt` string, date-time, required
      - `createdAt` string, date-time, required

## Other responses

- `400`: Bad Request
- `409`: Conflict
- `500`: Internal Server Error

---

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