> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sendpadi.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Fund betting wallet

> Fund betting wallet via merchant VAS API. Scope: `vas:write`. Requires `Idempotency-Key`.

> [!NOTE]
>
> Pick `provider` from **List billers** (`category=betting`). Sign the exact compact JSON body you send.


## OpenAPI

````yaml POST /api/v1/merchant/vas/betting
openapi: 3.1.0
info:
  title: SendPadi Merchant API
  version: 1.0.0
  description: >-
    Merchant REST API. Authenticate with HMAC headers (`X-Api-Key`,
    `X-Timestamp`, `X-Signature`). Generate playground headers with [Sign
    requests (playground)](/guides/sign-requests).
servers:
  - url: https://api.sendpadi.com
    description: Production (test + live keys)
security: []
paths:
  /api/v1/merchant/vas/betting:
    post:
      tags:
        - vas
      summary: Fund betting wallet
      description: >-
        Fund betting wallet via merchant VAS API. **Scope:** `vas:write`.
        Requires `Idempotency-Key` on this write.
      operationId: api-reference_vas_betting
      parameters:
        - name: X-Timestamp
          in: header
          required: true
          description: Unix time in seconds
          schema:
            type: string
        - name: X-Signature
          in: header
          required: true
          description: HMAC-SHA256 signature
          schema:
            type: string
        - name: Idempotency-Key
          in: header
          required: true
          description: UUID. Required on money-moving writes.
          schema:
            type: string
            format: uuid
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              properties:
                provider:
                  type: string
                  enum:
                    - SportyBet
                    - BET9JA
                    - BETWAY
                    - LIVESCOREBET
                    - BETKING
                    - Nairabet
                  description: >-
                    Provider name from GET /vas/billers?category=betting (use
                    `name` / displayName).
                amount:
                  type: integer
                accountNumber:
                  type: string
              required:
                - provider
                - amount
                - accountNumber
            example:
              provider: SportyBet
              amount: 100
              accountNumber: 080*******8
      responses:
        '201':
          description: OK
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              example:
                success: true
                data:
                  transactionId: vas_betting_001
                  reference: BET-001
                  status: completed
                  message: >-
                    Great! Your betting account has been funded successfully.
                    ₦100.00 has been credited to your account.
                  details:
                    accountNumber: 080*******8
                    amount: 100
                    chargeFee: 0
                    totalAmount: 100
                    currency: NGN
                    provider: SPORTYBET
                    orderStatus: completed
              examples:
                success:
                  summary: Success
                  value:
                    success: true
                    data:
                      transactionId: vas_betting_001
                      reference: BET-001
                      status: completed
                      message: >-
                        Great! Your betting account has been funded
                        successfully. ₦100.00 has been credited to your account.
                      details:
                        accountNumber: 080*******8
                        amount: 100
                        chargeFee: 0
                        totalAmount: 100
                        currency: NGN
                        provider: SPORTYBET
                        orderStatus: completed
        '400':
          description: Provider not configured
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              examples:
                provider_not_configured:
                  summary: Provider not configured
                  value:
                    success: false
                    data:
                      transactionId: 65fa7da9-898f-4962-8d34-bd472f3992dc
                      status: failed
                      message: >-
                        The betting provider "SportyBet" is not available.
                        Please select a different provider or contact support.
                      details:
                        orderStatus: failed
                    error: PROVIDER_NOT_CONFIGURED
              example:
                success: false
                data:
                  transactionId: 65fa7da9-898f-4962-8d34-bd472f3992dc
                  status: failed
                  message: >-
                    The betting provider "SportyBet" is not available. Please
                    select a different provider or contact support.
                  details:
                    orderStatus: failed
                error: PROVIDER_NOT_CONFIGURED
        '401':
          description: HMAC mismatch (signed wrong body/path)
          content:
            application/json:
              schema:
                type: object
                additionalProperties: true
              examples:
                hmac_mismatch_signed_wrong_body_path_:
                  summary: HMAC mismatch (signed wrong body/path)
                  value:
                    success: false
                    message: Invalid request signature
                    error: true
                    errorCode: MERCHANT_AUTH_SIGNATURE_INVALID
              example:
                success: false
                message: Invalid request signature
                error: true
                errorCode: MERCHANT_AUTH_SIGNATURE_INVALID
      security:
        - ApiKeyAuth: []
components:
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
      description: API key id (sp_test_… / sp_live_…)

````

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