---
title: "Upsert Billing Profile"
method: POST
path: "/stripe/profile"
tags: ["stripe"]
---

# Upsert Billing Profile

`POST /stripe/profile`

## Request

- Base URL: `https://studio-api.meganova.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://studio-api.meganova.ai/stripe/profile`
- Auth: OAuth 2
  - Password
  - Token URL: `auth/token`

Create or update billing profile and attach a payment method.

## Request body

- BillingProfileUpsertRequest: Request to create or update a billing profile.
  - `payment_method_id` string, nullable: Stripe payment method ID to attach as default.

## Response `200`

Successful Response

- BillingProfileResponse: User billing profile.
  - `id` string, uuid, required
  - `user_id` string, uuid, required
  - `stripe_customer_id` string, required
  - `billing_email` string, nullable, required
  - `billing_name` string, nullable, required
  - `default_payment_method_id` string, nullable, required
  - `created_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

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