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

# Bulk top-up (up to 100 numbers)

> Checks the whole list, then processes it in the background, line by line. Each line is a normal Flexy order with its own refund. Poll `GET /flexy/bulk/{id}` until `final` is true. Use `dry_run` to price a list without charging.



## OpenAPI

````yaml /openapi.json post /flexy/bulk
openapi: 3.0.3
info:
  title: Wasmou API
  version: 1.0.0
  description: >-
    Sell digital goods: catalog, purchase, delivery, game top-ups and per-client
    stock. All amounts are in DZD.
servers:
  - url: https://api.wasmou.net/api
    description: Production
security: []
paths:
  /flexy/bulk:
    post:
      tags:
        - Flexy
      summary: Bulk top-up (up to 100 numbers)
      description: >-
        Checks the whole list, then processes it in the background, line by
        line. Each line is a normal Flexy order with its own refund. Poll `GET
        /flexy/bulk/{id}` until `final` is true. Use `dry_run` to price a list
        without charging.
      operationId: flexyBulk
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
                - items
              properties:
                items:
                  type: array
                  maxItems: 100
                  items:
                    type: object
                    required:
                      - target_number
                      - amount
                    properties:
                      target_number:
                        type: string
                        example: '0699123456'
                      amount:
                        type: number
                        example: 500
                      topup_type:
                        type: string
                        enum:
                          - prepaid
                          - international
                idempotency_key:
                  type: string
                  maxLength: 64
                dry_run:
                  type: boolean
      responses:
        '202':
          description: Accepted
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                  message:
                    type: string
                  data:
                    type: object
                    properties:
                      id:
                        type: integer
                      status:
                        type: string
                      client_ref:
                        type: string
                        nullable: true
                      total:
                        type: integer
                      done:
                        type: integer
                      success:
                        type: integer
                      failed:
                        type: integer
                      final:
                        type: boolean
                      lines:
                        type: array
                        items:
                          type: object
                          properties:
                            number:
                              type: string
                            amount:
                              type: number
                            type:
                              type: string
                            status:
                              type: string
                              enum:
                                - queued
                                - processing
                                - success
                                - failed
                            price:
                              type: number
                              nullable: true
                            error:
                              type: string
                              nullable: true
                            order_id:
                              type: integer
                              nullable: true
        '402':
          description: Insufficient balance
        '422':
          description: No valid line, or validation error
      security:
        - ApiKey: []
components:
  securitySchemes:
    ApiKey:
      type: apiKey
      in: header
      name: X-Api-Key
      description: Your API key from the Wasmou app (API access).

````

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