> ## 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 a US Dollar (USD) payout order supporting PayPal, Venmo e-wallets, and ACH bank transfer

> [!NOTE]
>
> All example requests on this page are based on the **sandbox (test) environment**. Please be careful to distinguish it from the production environment.

#### Secret Key & Private Key (Generate Signature)

## Related Topics

* [United States Payment API](https://doc.haipay.net/en/payments/united-states.md)
* [Payment Methods Overview](https://doc.haipay.net/en/payments/payment-methods.md)
* [HaiPay API Reference Overview](https://doc.haipay.net/en/api-reference/overview.md)
* [HaiPay Configuration and Signature Guide](https://doc.haipay.net/en/guide/signature-and-config.md)


## OpenAPI

````yaml en/api-reference/usd/usd.openapi.json POST /usd/pay/apply
openapi: 3.0.1
info:
  title: USD Payment API
  description: ''
  version: 1.0.0
servers:
  - url: https://uat-interface.haipay.asia
    description: Test environment
security: []
tags: []
paths:
  /usd/pay/apply:
    post:
      tags: []
      summary: USD Disbursement Application
      description: >-
        Create a US Dollar (USD) payout order supporting PayPal, Venmo
        e-wallets, and ACH bank transfer
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              type: object
              properties:
                appId:
                  type: integer
                  description: >-
                    Business ID (obtained from the backend; must use the
                    corresponding business ID for the currency in the URL).
                orderId:
                  type: string
                  description: Merchant order number (must be unique, max length 48).
                  maxLength: 48
                name:
                  type: string
                  description: >-
                    Recipient's full name, recommended to use the real name in
                    English, no special characters, separated by spaces, must
                    include at least firstName and lastName. Example: John Doe
                phone:
                  type: string
                  description: >-
                    Real phone number (digits only, without + and without
                    country code 1 for now, e.g., 2025551234; see [Phone Number
                    Format](/en/guide/faq)).
                email:
                  type: string
                  description: Real email address.
                  format: email
                notifyUrl:
                  type: string
                  description: Callback URL.
                  format: uri
                amount:
                  type: string
                  description: >-
                    Transaction amount (unit: USD, accurate to two decimals; no
                    punctuation marks allowed, e.g., ","; 1 - 800 USD for PayPal
                    / Venmo, 10 - 200000 USD for ACH).
                  pattern: ^\d+\.\d{2}$
                accountType:
                  type: string
                  description: Account type (EWALLET or BANK_ACCOUNT).
                  enum:
                    - EWALLET
                    - BANK_ACCOUNT
                bankCode:
                  type: string
                  description: >-
                    Payment method code (PayPal, VENMO, or ACH). See [Payment
                    Methods (Payout)](/en/payments/united-states#bankCode).
                  enum:
                    - PayPal
                    - VENMO
                    - ACH
                subject:
                  type: string
                  description: Payment remark.
                accountNo:
                  type: string
                  description: >-
                    Recipient account number: pass the recipient email address
                    for PayPal, recipient account for VENMO, or bank account
                    number for ACH.
                identifyType:
                  type: string
                  description: Bank routing code, required for ACH.
                body:
                  type: string
                  description: Remark details.
                country:
                  type: string
                  description: 'Recipient''s country, required for ACH, for example: US.'
                address1:
                  type: string
                  description: Recipient's address - street details, required for ACH.
                address2:
                  type: string
                  description: Recipient's address - city, required for ACH.
                address3:
                  type: string
                  description: Recipient's address - state/province, required for ACH.
                postalCode:
                  type: string
                  description: Recipient's postal code, required for ACH.
                bankName:
                  type: string
                  description: Recipient's bank name, required for ACH.
                swiftCode:
                  type: string
                  description: swiftCode, required for ACH.
                partnerUserId:
                  type: string
                  description: >-
                    User unique identifier (e.g., userId). Used for risk
                    control. Must be real and valid, otherwise it will affect
                    the transaction. Allowed characters: digits,
                    uppercase/lowercase letters, or common symbols
                    `-~!@#$%&*()_`.
                  pattern: ^[A-Za-z0-9\-~!@#$%&*()_]+$
                sign:
                  type: string
                  description: Signature.
              required:
                - appId
                - orderId
                - name
                - phone
                - email
                - amount
                - accountType
                - bankCode
                - subject
                - accountNo
                - partnerUserId
                - sign
            examples:
              paypal_payout:
                summary: PayPal Wallet Payout
                value:
                  appId: 1054
                  orderId: M233323000059
                  amount: '200.00'
                  phone: '2025551234'
                  email: james.anderson@gmail.com
                  name: James Anderson
                  accountType: EWALLET
                  bankCode: PayPal
                  accountNo: james.anderson@gmail.com
                  subject: PayPal Payout M233323000059
                  partnerUserId: '149597870'
                  sign: af0gAHkUOyYH***
              venmo_payout:
                summary: Venmo Wallet Payout
                value:
                  appId: 1054
                  orderId: M233323000060
                  amount: '150.00'
                  phone: '2025551234'
                  email: james.anderson@gmail.com
                  name: James Anderson
                  accountType: EWALLET
                  bankCode: VENMO
                  accountNo: james-anderson
                  subject: Venmo Payout M233323000060
                  partnerUserId: '149597870'
                  sign: af0gAHkUOyYH***
              ach_payout:
                summary: ACH Bank Transfer Payout
                value:
                  appId: 1054
                  orderId: M233323000061
                  amount: '500.00'
                  phone: '2025551234'
                  email: james.anderson@gmail.com
                  name: James Anderson
                  accountType: BANK_ACCOUNT
                  bankCode: ACH
                  accountNo: '123456789012'
                  identifyType: '021000021'
                  country: US
                  address1: 350 Fifth Avenue
                  address2: New York
                  address3: NY
                  postalCode: '10118'
                  bankName: JPMorgan Chase Bank
                  swiftCode: CHASUS33
                  subject: ACH Payout M233323000061
                  partnerUserId: '149597870'
                  sign: af0gAHkUOyYH***
        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.
                      payUrl:
                        type: string
                        description: Payment link.
                      sign:
                        type: string
                        description: Signature.
              examples:
                success:
                  summary: Success
                  value:
                    status: '1'
                    error: '00000000'
                    msg: success
                    data:
                      orderId: M233323000059
                      orderNo: '6023071013539074'
                      payUrl: ''
                      sign: >-
                        af0gAHkUOyYHu9owQp8NJ4mPEeUW4vuJcjdxqLIzrVw8AvpLSjD1DXupReSG/CyuSkFRyiIvCp5u703AuGGmfgD2gKDH3Ywau41bAbG2jnHJ8mtjiSJ5iWUzanyd4Kr7d1+rETbzUl7/BkW3t0X8UUFdqpxwG8DPUjAwUKfplWDHV7koG51Ozexd80DCsmW6eWdouAZ1uNXGLYmV3ftE3BmfNRtuv1C5bfTJWrTEIOxbF6g2uYOFZTlIgrQgd7/2PsAYwQQXNz8Q8CYl4OxqCv4pXJxaLWPbR5tqZu9og5kn32C9aHW/NlU1y39vzz+4ef81yPAqUV9oHlSMSPrMmw==
                param_error:
                  summary: Parameter validation failed
                  value:
                    status: '0'
                    error: '1001'
                    msg: orderId can not blank
                    data: null
                sign_error:
                  summary: Signature error
                  value:
                    status: '0'
                    error: '1002'
                    msg: Invalid request signature
                    data: null
          headers: {}
      deprecated: false
      security: []

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.