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

# Disbursement Application

> Create payout order (MXN)

<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

* [Mexico Payment API](/docs/en/api/version2/Mexico)
* [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/api-reference/mxn/mxn.openapi.json POST /mxn/pay/apply
openapi: 3.0.1
info:
  title: 默认模块
  description: ''
  version: 1.0.0
servers:
  - url: https://uat-interface.haipay.asia
    description: 测试-interface
security: []
tags: []
paths:
  /mxn/pay/apply:
    post:
      tags: []
      summary: MXN Disbursement Application
      description: |-
        创建代付订单

        说明：appId 墨西哥比索， amount 墨西哥比索，实收结算墨西哥比索
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                appId:
                  type: integer
                  description: >-
                    Business ID (obtained from the backend, must correspond to
                    the currency in the URL)
                orderId:
                  type: string
                  description: Merchant Order Number
                  maxLength: 48
                amount:
                  type: string
                  description: >-
                    Transaction Amount (unit: Mex$, precise to two decimal
                    places; do not use punctuation such as ",")
                  pattern: ^\d+\.\d{2}$
                accountType:
                  type: string
                  description: >-
                    Account Type: BANK_CARD (Debit Card (16 digits)),
                    BANK_ACCOUNT (CLABE (18 digits))
                  enum:
                    - BANK_CARD
                    - BANK_ACCOUNT
                bankCode:
                  type: string
                  description: >-
                    Bank Code. For specific values, see [Complete Bank Code
                    List](/docs/en/api/version2/Mexico_BankCodes)
                accountNo:
                  type: string
                  description: User Bank Account Number
                name:
                  type: string
                  description: >-
                    Recipient Name (format: English letters, spaces allowed,
                    1-30 characters, "firstName middleName lastName" (middleName
                    optional, special characters '.- supported))
                  minLength: 1
                  maxLength: 30
                  pattern: ^[A-Za-z\s'\.-]+$
                phone:
                  type: string
                  description: Valid phone number
                email:
                  type: string
                  description: Valid email address
                  format: email
                notifyUrl:
                  type: string
                  description: Callback URL
                  format: uri
                subject:
                  type: string
                  description: >-
                    Payment Note (transaction title, product name, payment
                    reason)
                body:
                  type: string
                  description: Additional Details
                partnerUserId:
                  type: string
                  description: >-
                    Unique User Identifier (e.g., userId), used for risk
                    control. Must be valid; otherwise, the transaction may be
                    affected. Allowed format: numbers, letters, or common
                    symbols -~!@#$%&*()_.
                  pattern: ^[A-Za-z0-9\-~!@#$%&*()_]+$
                sign:
                  type: string
                  description: Signature
              required:
                - appId
                - orderId
                - amount
                - accountType
                - bankCode
                - accountNo
                - name
                - email
                - partnerUserId
                - sign
              additionalProperties: false
            example:
              appId: 1054
              orderId: M100000450012
              amount: '55.00'
              accountType: BANK_ACCOUNT
              bankCode: STP
              accountNo: 99418029201a844099
              name: John Doe
              email: johndoe@example.com
              subject: Payment for services
              body: Payment description
              partnerUserId: 73744645@f233
              sign: >-
                I1PeK3eJEVsFFNowxVRqMXpeWa1lr/BcRpBi8SsW4wVo1+5AC1JsrFq/m/L3214NzKHvtDWi4zia3DL3dPut0yMyUyqL91LNCSaeISbGsQPlhEsQpyTOryS/RKOfsrn2Xo37SCF/phAvndOk2jwwGwqM5xLz1ms9Ukl85wv27QFNrXIMxK2p181e7MpMYrgf+xvEBE/VqCtKMtN9pO449wWwXzHWNPbZ76s4pAvKwRE9yXQDr7Iw14Dktcnl1FoLM4gWM/obkO+mz6SyAGDuXhVh/+OD/IGNiCyTCNq6ciQY28UnCFV6ZIP40gxsFhfBJKbK+Raw7y1Bh912ifYfug==
        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 Order Number (must be unique)
                      orderNo:
                        type: string
                        description: Platform Order Number
                      sign:
                        type: string
                        description: Signature
              example:
                status: '1'
                error: '00000000'
                msg: ''
                data:
                  orderId: M1000245001F4
                  orderNo: '3023022014149638'
                  sign: >-
                    LmhUnkw5j0pMiimsG6rKwdNNZGvX6GMpSmD1mdHZwq112wuK5BohmdEoqKB/jkMk28o3da4Cxh6Q+tW97+yTCemRrF+dMaHA73rpOeUuujKQl/UcFvJuMhfLBa2tp09L71NzoBqpPD6aXf37mYAz8E1HmERwFPpac5FVxIYanHG8cqmMLJYsVmHTSxWavgWU03ys9UczBePkBiR8sl2FSOhFABB0wAP28lswrV/ABS68IsLKtyd1fyI3GBfSbIK5nDEEnlE+EdElFdLs9taAxJImeVF1x4eT47+bkPJ2qS8z3K8QGzKLF3W+8SiRZGfSwDTsLKH+2Vycvy5auRl+ag==
      deprecated: false
      security: []

````