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

<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

* [Brazil Payment Interface](/docs/en/api/version2/Brazil)
* [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/brl/brl.openapi.json POST /brl/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:
  /brl/pay/apply:
    post:
      tags: []
      summary: BRL Disbursement Application
      description: 创建代付订单
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                appId:
                  type: integer
                  description: >-
                    Business ID (obtained from the backend, needs to be passed
                    according to the currency in the URL)
                orderId:
                  type: string
                  description: Merchant order number
                  maxLength: 48
                amount:
                  type: string
                  description: >-
                    Transaction amount (unit: Brazilian Real, accurate to two
                    decimal places; do not include punctuation such as commas)
                    Range: 1-99999
                  pattern: ^(?:[1-9]\d{0,4}|99999)(?:\.\d{2})?$
                accountType:
                  type: string
                  description: 'Account type: EWALLET (electronic wallet)'
                bankCode:
                  type: string
                  description: Wallet code
                identifyType:
                  type: string
                  description: Account type (CPF/PHONE/EMAIL)
                accountNo:
                  type: string
                  description: User's receiving account numbe
                name:
                  type: string
                  description: >-
                    Recipient's name (Format: uppercase English letters, may
                    include spaces, 1-30 characters, "firstName middleName
                    lastName" (middleName is optional, special characters like
                    '.- are supported))
                  minLength: 1
                  maxLength: 30
                  pattern: ^[A-Za-z\s'\.\-]+$
                phone:
                  type: string
                  description: >-
                    Real phone number (refer to the [phone
                    format](/docs/en/guide/frequently_asked_question#en_faq_phone-number-format))
                email:
                  type: string
                  description: Real email address
                  format: email
                notifyUrl:
                  type: string
                  description: Callback URL
                  format: uri
                subject:
                  type: string
                  description: >-
                    Payment remark (transaction title, product name, payment
                    reason)
                body:
                  type: string
                  description: Detailed remarks
                partnerUserId:
                  type: string
                  description: >-
                    Unique user identifier (e.g., userID), used for risk
                    control, must be valid; otherwise, it will affect the
                    transaction. Format: digits, uppercase and lowercase
                    letters, or common symbols such as -~!@#$%&*()_.
                  pattern: ^[A-Za-z0-9\-~!@#$%&*()_]+$
                sign:
                  type: string
                  description: Signature
              required:
                - appId
                - orderId
                - amount
                - accountType
                - bankCode
                - identifyType
                - accountNo
                - name
                - phone
                - email
                - partnerUserId
                - sign
              additionalProperties: false
            example:
              appId: 1054
              orderId: M100000450012
              amount: '500'
              accountType: EWALLET
              bankCode: PIX
              identifyType: CPF
              accountNo: '09876543210'
              name: john doe
              phone: '09876543210'
              email: johndoe@cashfree.com
              subject: iphone13
              body: ProMotion technology with adaptive refresh rates up to 120Hz
              partnerUserId: '149597870'
              sign: >-
                I1PeK3eJOVsFFNowxVRqMXpeWm1lr/BcRpBi8WsW4wVo1+5CC3JsrFq/m/L2O69NzKHvtDWi4zia3DL3dPut0yMyUyqL91LNCSaeISbGsQPlhEsQpyTOryS/RKOfsrn2Xo37SCF/phAvndOk2jwwGwqM5xLz1ms9Ukl85wv27QFNrXIMxK2p18oe7MpMYrgf+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
      deprecated: false
      security: []

````