> ## 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

* [International Credit Card (VISA/MASTER) Payment API](/docs/en/api/version2/creditcard)
* [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/card/card.openapi.json POST /usd/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:
  /usd/collect/apply:
    post:
      tags: []
      summary: Credit Card Collection Application
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                appId:
                  type: integer
                  description: >-
                    Business ID (obtained from backend, must pass corresponding
                    business ID based on currency in URL)
                orderId:
                  type: string
                  description: Merchant refund application order number
                name:
                  type: string
                  description: >-
                    User name, recommended to use real name, format: firstName
                    and lastName separated by space, example: John Doe
                phone:
                  type: string
                  description: Real phone number
                email:
                  type: string
                  description: Real email address
                amount:
                  type: string
                  description: >-
                    Transaction amount (accurate to two decimal places; do not
                    add punctuation, e.g., ",")
                payType:
                  type: string
                  description: ''
                inBankCode:
                  type: string
                  description: ''
                clientIp:
                  type: string
                  description: Client IP address
                callBackUrl:
                  type: string
                  description: URL to redirect after successful payment
                callBackFailUrl:
                  type: string
                  description: URL to redirect after failed payment
                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
                subject:
                  type: string
                  description: Payment remark
                body:
                  type: string
                  description: Remark details
                partnerUserId:
                  type: string
                  description: >-
                    Unique user identifier (e.g., userId), used for risk
                    control, must be real and valid, otherwise it will affect
                    transactions. Format requirements: digits, uppercase and
                    lowercase letters or common symbols -~!@#$%&*()_.
                sign:
                  type: string
                  description: Signature
              required:
                - appId
                - orderId
                - phone
                - amount
                - payType
                - inBankCode
                - callBackUrl
                - callBackFailUrl
                - subject
                - partnerUserId
                - sign
            examples: {}
        required: true
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    description: '1: Normal, 0: Exception'
                  error:
                    type: string
                    description: Error code
                  msg:
                    type: string
                    description: Error description
                  data:
                    type: object
                    properties:
                      orderId:
                        type: string
                        description: Merchant application order number
                      orderNo:
                        type: string
                        description: >-
                          Platform order number (original collection platform
                          order number)
                      payUrl:
                        type: string
                        description: Payment link
                      bankCode:
                        type: string
                        description: Payment Method Code
                      clientToken:
                        type: string
                        description: >-
                          Client token used in JavaScript Web SDK (see
                          [HaiPaySDK.js](#haipaysdk))
                      sign:
                        type: string
                        description: Signature
                    additionalProperties: false
                additionalProperties: false
          headers: {}
      deprecated: false
      security: []

````