---
title: "Ensure Customer"
method: POST
path: "/api/v1/payments/customer"
tags: ["Payment"]
---

# Ensure Customer

`POST /api/v1/payments/customer`

Ensure a Stripe customer exists for the current user or org

## Query parameters

- `org` string, nullable

## Headers

- `authorization` string, nullable

## Cookies

- `modaic_session` string, nullable

## Response `200`

Successful Response

- CustomerResponse — Response for customer creation/retrieval.
  - `stripe_customer_id` string, required

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/modaic-ai/apis/modaic-api.md) · [All operations](https://skmtc.net/modaic-ai/apis/modaic-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/modaic-ai/modaic-api/revisions/43a90513ac59/schema)
