---
title: "Create Payment Order"
method: POST
path: "/account/payment-orders"
tags: ["account"]
---

# Create Payment Order

`POST /account/payment-orders`

## Request

- Base URL: `https://api.beatra.ai` (the document declares no server; this is the origin it was published from)
- URL: `https://api.beatra.ai/account/payment-orders`
- Auth: none declared

## Headers

- `authorization` string, nullable

## Request body

- PaymentOrderCreateRequest
  - `offer_id` string, required
  - `idempotency_key` string, required
  - `checkout_channel` 'wechat_jsapi' | 'wechat_h5', nullable
  - `require_payer` boolean
  - `payer_refresh` boolean

## Response `201`

Successful Response

- PaymentOrderCreateResponse
  - `mode` 'manual_dev' | 'mock_provider' | 'provider_checkout', required
  - `message` string, required
  - `payment_order` PaymentOrderItem, required
    - `payment_order_id` string, required
    - `provider` string, required
    - `payment_method_id` string, nullable
    - `status` string, required
    - `order_kind` string, nullable
    - `purchase_mode` string, nullable
    - `billing_interval` string, nullable
    - `fiat_currency` string, required
    - `fiat_amount` string, required
    - `credits_quoted` string, required
    - `country_code` string, nullable
    - `country_policy_key` string, nullable
    - `country_policy_version` integer, nullable
    - `commercial_catalog_key` string, nullable
    - `commercial_catalog_version` integer, nullable
    - `commercial_catalog_item_id` string, nullable
    - `product_id` string, nullable
    - `term_id` string, nullable
    - `offer_id` string, nullable
    - `credits_granted` string, nullable
    - `credits_expires_at` string, date-time, nullable
    - `request_idempotency_key` string, nullable
    - `checkout_mode` string, nullable
    - `fallback_register_id` string, nullable
    - `settlement_status` string, nullable
    - `subscription_id` string, nullable
    - `ledger_id` string, nullable
    - `checkout_url` string, nullable
    - `checkout_params` object, nullable
    - `payer_authorize_url` string, nullable
    - `paid_at` string, date-time, nullable
    - `failed_at` string, date-time, nullable
    - `canceled_at` string, date-time, nullable
    - `expires_at` string, date-time, nullable
    - `created_at` string, date-time, required
    - `updated_at` string, date-time, required

## Other responses

- `422`: Validation Error

---

[API](https://skmtc.dev/beatra/apis/agent-service-api.md) · [All operations](https://skmtc.dev/beatra/apis/agent-service-api/llms.txt) · [OpenAPI document](https://skmtc.dev/beatra/apis/agent-service-api/revisions/58e440556498?raw)
