Skip to content

Search is only available in production builds. Try building and previewing the site to test it out locally.

Start Disbursement

POST {api-url}/disburse/start?ns={community}

Starts a disbursement asynchronously. This endpoint validates the CSV file, verifies sufficient funds from the funding source, and begins the process of creating vouchers in the background. It returns immediately with a disbursement route object, which contains the UIDx and DisbursementID needed to track the progress or to perform any other disbursement API call.

FieldTypeRequirementDescription
DisbursementIDStringRequiredThe unique ID returned from the /disburse/initiate call.
NameStringRequiredA descriptive name for this disbursement batch. Does not have to be unique.
ExpectedTotalIntegerRequiredThe total amount in cents that you expect to be disbursed. Must match the sum of valid amounts in the CSV.
CheckIDCellMatchBooleanRequiredIf true, enforces that the MSISDN and ID Number in the CSV must match an existing user record.
VoucherNoStringConditionalA valid Celbux cash voucher to fund the disbursement. Required if OAuthToken is not provided.
OAuthTokenStringConditionalA valid OAuth token representing a user’s wallet to fund. Required if VoucherNo is not provided.
ExpectedFeesTotalIntegerOptionalThe total fees in cents that you expect to be charged. Must match calculated fees.
IsSingleUseBooleanOptionalDetermines if the created voucher numbers change on a successful transaction.
ShowVouchersBooleanOptionalIf true, fees are calculated based on CostPerManualVoucher, and MSISDNs are not validated on viral user creation. If false, fees are calculated based on CostPerUserVoucher.
MetadataStringOptionalAny other detail that the merchant wishes to store on this transaction.
{
"Name": "Disbursement Test #1",
"DisbursementID": "7bcddfd9-5b87-4d61-adb7-16f2c0cb32c1",
"OAuthToken": "7d833123ee3cad96afce2c9ea449daaf1e7185e9fe26f814f3c7a1061a0d1b87",
"VoucherNo": "",
"ExpectedTotal": 208006280,
"ExpectedFeesTotal": 99960,
"IsSingleUse": true,
"ShowVouchers": false,
"CheckIDCellMatch": false,
"Metadata": "{\"ActorUserIDs\": \"547828938941114\"}"
}
Terminal window
curl -X POST '{api-url}/disburse/start?ns={community}' \
-H 'Authorization: bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"Name":"Disbursement Test #1","DisbursementID":"7bcddfd9-5b87-4d61-adb7-16f2c0cb32c1","OAuthToken":"7d833123ee3cad96afce2c9ea449daaf1e7185e9fe26f814f3c7a1061a0d1b87","VoucherNo":"","ExpectedTotal":208006280,"ExpectedFeesTotal":99960,"IsSingleUse":true,"ShowVouchers":false,"CheckIDCellMatch":false,"Metadata":"{\"ActorUserIDs\": \"547828938941114\"}"}'