> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.pay4power.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.pay4power.com/_mcp/server.

# Vend

POST https://p4p-core-bill-payments-service.dev.payinvert.com/api/v2.1/b2b/b2b/airtime/vend
Content-Type: application/json

Purchases airtime for a specified phone number and returns the transaction result.

Reference: https://docs.pay4power.com/airtime/vend

## OpenAPI Specification

```yaml
openapi: 3.1.0
info:
  title: collection
  version: 1.0.0
paths:
  /b2b/airtime/vend:
    post:
      operationId: vend
      summary: Vend
      description: >-
        Purchases airtime for a specified phone number and returns the
        transaction result.
      tags:
        - subpackage_airtime
      parameters:
        - name: Authorization
          in: header
          description: Bearer authentication
          required: true
          schema:
            type: string
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  description: Any type
        '202':
          description: Response with status 202
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  description: Any type
        '400':
          description: Validation Error
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  description: Any type
        '417':
          description: Failure
          content:
            application/json:
              schema:
                type: object
                additionalProperties:
                  description: Any type
      requestBody:
        content:
          application/json:
            schema:
              type: object
              additionalProperties:
                description: Any type
servers:
  - url: https://p4p-core-bill-payments-service.dev.payinvert.com/api/v2.1/b2b
    description: Default
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer

```

## Examples

### Processing

**Request**

```json
{
  "amount": 100,
  "receiver": "8888888888888",
  "provider": "MTNs",
  "clientTransactionReference": "75F6CD621EB911F1A35EF6C3EF632280"
}
```

**Response**

```json
{
  "success": true,
  "message": "Transaction in progress",
  "errors": null,
  "statusCode": 202,
  "correlationId": "ccc7f861-7722-4ab5-b9f4-3bbeb63f2374",
  "data": {
    "status": "PROCESSING",
    "amount": 100,
    "receiver": "8888888888888",
    "transactionId": "ELE-0000000000000351",
    "clientTransactionReference": "ELE-0000000000000351",
    "transactionDate": "2026-05-19T15:07:10.072051",
    "provider": "MTN",
    "commission": {
      "commissionAmount": 1.5,
      "commissionPercentage": "1.50",
      "commissionCap": 1500,
      "isCustomRate": false
    }
  }
}
```

### Example 2

**Request**

```json
{
  "string": {}
}
```

**Response**

```json
{
  "string": {}
}
```