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

# Create Order

> Create a biller reseller order and charge the merchant wallet



## OpenAPI

````yaml api-reference/vaas-services-openapi.json POST /vaas/api/v1/biller-reseller/orders
openapi: 3.1.0
info:
  title: PayVessel Value-Added Services API
  description: >-
    API reference for PayVessel biller reseller, eSIM, gift card, and flight
    services.
  version: 1.0.0
servers:
  - url: https://api.payvessel.com
  - url: https://sandbox.payvessel.com
security:
  - apiKey: []
    apiSecret: []
paths:
  /vaas/api/v1/biller-reseller/orders:
    post:
      tags:
        - Biller Reseller
        - Biller Reseller
      summary: Create Biller Reseller Order
      description: Create a biller reseller order and charge the merchant wallet
      operationId: create_order_vaas_api_v1_biller_reseller_orders_post
      parameters:
        - name: api-key
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Api-Key
        - name: api-secret
          in: header
          required: false
          schema:
            anyOf:
              - type: string
              - type: 'null'
            title: Api-Secret
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: >-
                #/components/schemas/api__biller_reseller__schema__order__CreateOrderRequestSchema
      responses:
        '201':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: >-
                  #/components/schemas/api__biller_reseller__schema__order__CreateOrderResponseSchema
        '400':
          description: >-
            Bad request — duplicate reference, invalid biller/item, invalid
            amount, insufficient balance, or wallet charge failed
          content:
            application/json:
              schema:
                properties:
                  status:
                    type: boolean
                    example: false
                  message:
                    type: string
                  data:
                    type: 'null'
                  timestamp:
                    type: string
                    format: date-time
                type: object
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '424':
          description: Unable to reach upstream service or purchase failed
          content:
            application/json:
              schema:
                properties:
                  status:
                    type: boolean
                    example: false
                  message:
                    type: string
                  data:
                    type: 'null'
                  timestamp:
                    type: string
                    format: date-time
                type: object
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                properties:
                  status:
                    type: boolean
                    example: false
                  message:
                    type: string
                  data:
                    type: 'null'
                  timestamp:
                    type: string
                    format: date-time
                type: object
components:
  schemas:
    api__biller_reseller__schema__order__CreateOrderRequestSchema:
      properties:
        biller_id:
          type: string
          maxLength: 64
          pattern: ^[a-zA-Z0-9_\-]+$
          title: Biller Id
        item_id:
          type: string
          maxLength: 64
          pattern: ^[a-zA-Z0-9_\-]+$
          title: Item Id
        recharge_account:
          type: string
          maxLength: 15
          title: Recharge Account
        amount:
          type: integer
          exclusiveMinimum: 0
          title: Amount
          description: Amount in naira
        reference:
          type: string
          maxLength: 32
          title: Reference
          description: Unique merchant order reference
        webhook_url:
          anyOf:
            - type: string
              maxLength: 512
            - type: 'null'
          title: Webhook Url
          description: Webhook URL for order status notifications
      additionalProperties: false
      type: object
      required:
        - biller_id
        - item_id
        - recharge_account
        - amount
        - reference
      title: CreateOrderRequestSchema
    api__biller_reseller__schema__order__CreateOrderResponseSchema:
      properties:
        status:
          type: boolean
          title: Status
        message:
          type: string
          title: Message
        data:
          $ref: >-
            #/components/schemas/api__biller_reseller__schema__order__OrderSchema
      type: object
      required:
        - status
        - message
        - data
      title: CreateOrderResponseSchema
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    api__biller_reseller__schema__order__OrderSchema:
      properties:
        id:
          type: string
          format: uuid
          title: Id
        business_id:
          type: string
          title: Business Id
        merchant_reference:
          type: string
          title: Merchant Reference
        order_reference:
          type: string
          title: Order Reference
        category:
          type: string
          title: Category
        biller_id:
          type: string
          title: Biller Id
        item_id:
          type: string
          title: Item Id
        recharge_account:
          type: string
          title: Recharge Account
        amount:
          type: number
          title: Amount
        status:
          $ref: '#/components/schemas/BillerResellerStatus'
        error_message:
          anyOf:
            - type: string
            - type: 'null'
          title: Error Message
        wallet_transaction_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Wallet Transaction Id
        created_datetime:
          type: string
          format: date-time
          title: Created Datetime
        updated_datetime:
          type: string
          format: date-time
          title: Updated Datetime
        completed_datetime:
          anyOf:
            - type: string
              format: date-time
            - type: 'null'
          title: Completed Datetime
      type: object
      required:
        - id
        - business_id
        - merchant_reference
        - order_reference
        - category
        - biller_id
        - item_id
        - recharge_account
        - amount
        - status
        - error_message
        - wallet_transaction_id
        - created_datetime
        - updated_datetime
        - completed_datetime
      title: OrderSchema
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    BillerResellerStatus:
      type: string
      enum:
        - pending
        - processing
        - success
        - failed
        - cancelled
      title: BillerResellerStatus
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: api-key
      description: Your PayVessel business API key.
    apiSecret:
      type: apiKey
      in: header
      name: api-secret
      description: Your PayVessel business API secret.

````