---
title: "Complete Payment Order Payer"
method: POST
path: "/account/payment-orders/{payment_order_id}/payer"
tags: ["account"]
---

# Complete Payment Order Payer

`POST /account/payment-orders/{payment_order_id}/payer`

## 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/{payment_order_id}/payer`
- Auth: none declared

Finish a parked jsapi order with WeChat's silent-authorize code+state (older H5 pages).

## Path parameters

- `payment_order_id` string, required

## Headers

- `authorization` string, nullable

## Request body

- PaymentOrderPayerRequest
  - `wechat_code` string, required
  - `wechat_state` string, required

## Response `200`

Successful Response

- PaymentOrderPayerResponse: The parked JSAPI order after authorize, including transient checkout_params.
  - `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)
