Skip to content

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

Validate

POST {api-url}/validate?ns={community}

Validates a previously uploaded CSV file for a given disbursement. It checks for data formatting errors, verifies recipients and voucher types, and returns a summary of valid and invalid records along with the calculated costs, without processing any payments.

FieldTypeRequirementDescription
DisbursementIDStringRequiredThe unique ID returned from the /disburse/initiate call.
ShowVouchersBooleanOptionalIf true, calculate fees based on the manual voucher cost. Additionally, MSISDNs are not validated on viral user creation.
CheckIDCellMatchBooleanOptionalIf true, enforces that the MSISDN and ID Number in the CSV must match an existing user record.
MetadataStringOptionalAny other detail that the merchant wishes to store on this transaction.
{
"DisbursementID": "7bcddfd9-5b87-4d61-adb7-16f2c0cb32c1",
"ShowVouchers": false,
"CheckIDCellMatch": false,
"Metadata": "{\"ActorUserIDs\": \"547828938941114\"}"
}
Terminal window
curl -X POST '{api-url}/validate?ns={community}' \
-H 'Authorization: bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"DisbursementID":"7bcddfd9-5b87-4d61-adb7-16f2c0cb32c1","ShowVouchers":false,"CheckIDCellMatch":false,"Metadata":"{\"ActorUserIDs\": \"547828938941114\"}"}'