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

# 加纳塞地代付申请

<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">密钥私钥(生成签名)</h4>
    </div>

    <div />
  </div>

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

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

## 相关主题

* [加纳支付接口](/docs/zh/api/version2/Ghana)
* [HaiPay API 文档简介](/docs/zh/api-reference/overview)
* [HaiPay 配置与签名指南](/docs/zh/guide/config_settings_and_signature_rules_guide)


## OpenAPI

````yaml docs/zh/api-reference/ghs/ghs.openapi.json POST /ghs/pay/apply
openapi: 3.0.1
info:
  title: 加纳塞地 API
  description: ''
  version: 1.0.0
servers:
  - url: https://uat-interface.haipay.asia
    description: 测试环境
security: []
paths:
  /ghs/pay/apply:
    post:
      summary: 加纳塞地代付申请
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                appId:
                  type: integer
                  format: int64
                  description: 业务ID（后台获取，需与URL币种一致）
                orderId:
                  type: string
                  maxLength: 48
                  description: 商户订单号，必须唯一，最长48个字符
                amount:
                  type: string
                  pattern: ^((([1-9]\d*)(\.\d{1,4})?)|(0\.(?!0+$)\d{1,4}))$
                  description: 交易金额（GHS），最多2位小数；范围以商户后台业务配置范围为准
                accountType:
                  type: string
                  enum:
                    - EWALLET
                  description: 账户类型，仅支持电子钱包 EWALLET
                bankCode:
                  type: string
                  description: 移动钱包运营商支付编码；须为商户后台支付编码配置支持的值
                accountNo:
                  type: string
                  pattern: ^233\d{9}$
                  description: 收款移动钱包账号，12位数字，以233开头且不带+号
                name:
                  type: string
                  description: 收款人姓名
                phone:
                  type: string
                  description: 收款人手机号
                email:
                  type: string
                  format: email
                  description: 收款人邮箱
                notifyUrl:
                  type: string
                  format: uri
                  description: 异步通知地址
                subject:
                  type: string
                  description: 交易标题、商品名称或支付原因
                body:
                  type: string
                  description: 备注详情
                partnerUserId:
                  type: string
                  maxLength: 64
                  pattern: ^[a-zA-Z0-9\-~!@#$%&*()_]+$
                  description: 用户唯一标识
                sign:
                  type: string
                  description: 签名
              required:
                - appId
                - orderId
                - amount
                - accountType
                - bankCode
                - accountNo
                - name
                - phone
                - sign
              additionalProperties: false
            example:
              appId: 1054
              orderId: GHSPAY001
              amount: '100.00'
              accountType: EWALLET
              bankCode: operator-code
              accountNo: '233241234567'
              name: John Doe
              phone: '233241234567'
              notifyUrl: https://merchant.example.com/notify
              sign: signature
      responses:
        '200':
          $ref: '#/components/responses/PayApplyResponse'
components:
  responses:
    PayApplyResponse:
      description: 成功
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/PayApplyEnvelope'
  schemas:
    PayApplyEnvelope:
      allOf:
        - $ref: '#/components/schemas/EnvelopeBase'
        - type: object
          properties:
            data:
              $ref: '#/components/schemas/PayApplyData'
    EnvelopeBase:
      type: object
      properties:
        status:
          type: string
          description: 接口状态：1正常，0异常
        error:
          type: string
          description: 错误码
        msg:
          type: string
          description: 提示信息
    PayApplyData:
      type: object
      properties:
        orderId:
          type: string
        orderNo:
          type: string
        payUrl:
          type: string
          description: 付款地址（如适用）
        sign:
          type: string

````