Skip to main content
POST
cURL
Send mobile data bundles to recipients through the active data channels configured for a campaign.
Refer to Authentication for information on how to obtain a bearer token. This endpoint requires the reward.mobile-data.disburse API client authorization scope to disburse mobile data. You can set up scopes on the API Clients page.

Rate Limit

This endpoint is rate limited to 400 disbursements per second.

Request modes

The type field determines how recipients are handled: Both request types support up to 100 recipients. Optional SMS messages must not exceed 960 characters. Request fields and request schemas are unchanged by this update.

Example requests

Use this mode when every recipient should receive the same denomination.

Successful response

A successful request returns 200 OK. The units and addresses fields summarize the disbursements by channel.

Response fields

skipped is always included. When every recipient is processed, it is an empty array ([]).

Skipped recipients

A recipient can be skipped without failing the entire request. The endpoint returns 200 OK when some or all recipients are skipped, as long as the request itself passes validation. A recipient is skipped when:
  • No matching active data channel: The recipient’s network or phone-number pattern does not match an active channel configured for mobile data.
  • Zero units consumed by a channel: A matching active data channel returns zero consumed units for the requested denomination (for example, because that channel has insufficient channel-level balance or inventory). The recipient is not included in addresses and is added to skipped. This is a recipient/channel-level outcome, not a team account-balance failure.
Only active channels with product type DATA_BUNDLE are used for routing. Inactive channels and non-data channels, such as SMS-only mappings, are ignored. Phone numbers in skipped retain the original value supplied in the request; they are not returned in a normalized format. Invalid phone numbers are not included in skipped and still cause 400 Bad Request.

Partial success

When some recipients can be routed and others cannot, the routable recipients are processed. The remaining phone numbers are returned in skipped.
In this example, two disbursements were queued through Safaricom and one recipient was skipped.

All recipients skipped

If no recipient matches an active data channel, the request still returns 200 OK. No units are reserved and no disbursements are queued.

Zero units available

If a matching active data channel has no units available for the requested denomination and therefore consumes zero units, the affected recipients are skipped and the request returns 200 OK. The channel may appear with a unit count of 0, while addresses excludes that channel. This follows the same per-channel zero-consumption behaviour documented for SMS.
The response does not include a reason for each skipped phone number. A zero in units indicates that the matched channel consumed no units for the denomination. Check the active data-channel configuration and available channel inventory when investigating these recipients.

Errors

The following cases return 400 Bad Request: Important: channel-level zero consumption is not the same as a team account-balance failure.
  • If an individual matching data channel returns zero consumed units for the requested denomination, that recipient is skipped. The request returns 200 OK, and the recipient is included in result.skipped. The channel may appear in result.units with a value of 0, while being omitted from result.addresses.
  • If consumption fails for the entire routable recipient set because the team’s account-level balance is insufficient, the request returns 400 Bad Request. It does not return the normal successful response envelope.
Errors return a desc message and do not include the normal successful response envelope containing result.

Integration Guidance

  • Always read result.skipped on successful responses.
  • Do not assume 200 OK means every recipient received a disbursement. If skipped is non-empty, show the skipped phone numbers to the user or operator.
  • Treat an all-skipped response, including a response where a matching channel consumed zero units, as a valid API response rather than an error.
  • Use units and addresses to summarize disbursements by channel. These fields contain counts, not individual phone numbers; use skipped to identify recipients that were not disbursed.
  • Treat a 400 Bad Request caused by team-level balance failure as a request-level failure, distinct from recipients skipped because a channel consumed zero units.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

campaignId
string
required

Unique identifier that references the rules for the disbursement.

Body

application/json

Disbursement request payload

Send a custom denomination to each recipient

type
enum<string>
required

Indicates per-recipient bundle disbursement mode

Available options:
SendToEach
disbursements
object[]
required

List of recipients with individual denominations

Required array length: 1 - 100 elements
messaging
object
conditionally required

Messaging configuration used when sending optional SMS notifications.

receiptRequest
object

Receipt callback configuration

Response

Request successfully queued for processing

requestId
string<uuid>

Unique identifier assigned to the request

units
object

Number of credit units consumed by the request, grouped by channel and denomination

addresses
object

Number of recipient addresses processed