> ## Documentation Index
> Fetch the complete documentation index at: https://doc.haipay.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Collection Application

> Create collection order

<div class="flex flex-col gap-4">
  <div class="api-section-heading flex flex-col gap-y-4 w-full">
    <div class="flex items-baseline border-b pb-2.5 border-gray-100 dark:border-gray-800 w-full">
      <h4 class="api-section-heading-title flex-1 mb-0">Secret Key & Private Key (Generate Signature)</h4>
    </div>

    <div />
  </div>

  <input id="secret-key" placeholder="Secret Key" class="px-3 py-2 border rounded-md" />

  <input id="private-key" placeholder="Private Key" class="px-3 py-2 border rounded-md" />
</div>

## Related Topics

* [Global Cashier Payment API](/docs/en/api/version2/GlobalCashier)
* [HaiPay API Reference Overview](/docs/en/api-reference/overview)
* [HaiPay Configuration and Signature Guide](/docs/en/guide/config_settings_and_signature_rules_guide)


## OpenAPI

````yaml docs/en/V20260701/api-reference/cashier/cashier.openapi.json POST /global/cashier/collect/apply
openapi: 3.0.1
info:
  title: 全球收银台
  description: ''
  version: 1.0.0
servers:
  - url: https://uat-interface.haipay.asia
    description: 测试-interface
security: []
tags: []
paths:
  /global/cashier/collect/apply:
    post:
      tags: []
      summary: Cashier Collection Application
      description: |-
        创建代收订单

        appId需使用收银台对应的，用户支付成功后增加[currency]对应的余额
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                appId:
                  type: integer
                  description: >-
                    Business ID (retrieved from the backend; must use the
                    Cashier-specific APPID, currency is CASHIER)
                orderId:
                  type: string
                  description: Merchant order ID
                  maxLength: 48
                name:
                  type: string
                  description: >-
                    User full name (recommended to use real name). Format:
                    firstName + lastName, separated by a space, e.g., John Doe
                email:
                  type: string
                  description: Valid email address
                  format: email
                amount:
                  type: string
                  description: >-
                    Transaction amount (accurate to two decimals; do not use
                    punctuation symbols such as “,”)
                  pattern: ^\d+\.\d{2}$
                currency:
                  type: string
                  description: >-
                    Transaction currency. Supported: USD (minimum 0.99 USD). For
                    other currencies, see [Region Codes](#region-code).
                  minLength: 3
                  maxLength: 3
                callBackUrl:
                  type: string
                  description: Redirect URL after successful payment
                  format: uri
                callBackFailUrl:
                  type: string
                  description: Redirect URL after failed payment
                  format: uri
                cancelUrl:
                  type: string
                  description: >-
                    Cancel payment redirect URL. If provided, users can click
                    back on the payment page and be redirected to this URL
                  format: uri
                notifyUrl:
                  type: string
                  description: Callback URL
                  format: uri
                subject:
                  type: string
                  description: >-
                    Payment note (transaction title, product name, reason for
                    payment, etc.)
                body:
                  type: string
                  description: Detailed remarks
                region:
                  type: string
                  description: use 2-letter code
                  minLength: 2
                  maxLength: 2
                partnerUserId:
                  type: string
                  description: >-
                    Unique user identifier (e.g., userId), used for risk
                    control. Must be real/valid, otherwise it may affect
                    transactions. Allowed format: numbers, letters, or symbols
                    -~!@#$%&*()_.
                  pattern: ^[A-Za-z0-9\-~!@#$%&*()_]+$
                sign:
                  type: string
                  description: Signature
              required:
                - appId
                - orderId
                - name
                - email
                - amount
                - currency
                - callBackUrl
                - callBackFailUrl
                - subject
                - region
                - partnerUserId
                - sign
              additionalProperties: false
            examples: {}
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: '1: Normal, 0: Exception'
                    default: '1'
                  error:
                    type: string
                    description: Error code
                    default: '00000000'
                  msg:
                    type: string
                    description: Error description
                    default: ''
                  data:
                    type: object
                    description: ''
                    properties:
                      orderId:
                        type: string
                        description: Merchant order ID
                      orderNo:
                        type: string
                        description: Platform order ID
                      payUrl:
                        type: string
                        description: Payment URL
                      sign:
                        type: string
                        description: Signature
                    default: {}
                additionalProperties: false
          headers: {}
      deprecated: false
      security: []

````