Skip to content

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

Read Route

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

Retrieves the complete master record (VoucherRoute) for a single disbursement using one of its unique identifiers. An error will occur if all attempts fail.

The order of priority is:

  1. VoucherNo is attempted.
  2. If failed, UIDx is attempted.
  3. If failed, DisbursementID is attempted.
FieldTypeRequirementDescription
VoucherNoStringConditionalA voucher number belonging to any recipient within the disbursement.
UIDxIntegerConditionalThe unique internal identifier for the disbursement.
DisbursementIDStringConditionalThe unique ID returned from the /disburse/initiate call.
MetadataStringOptionalAny other detail that you wish to store with this event.
{
"VoucherNo": "419-33768-13062",
"UIDx": 637,
"DisbursementID": "7bcddfd9-5b87-4d61-adb7-16f2c0cb32c1",
"Metadata": "{\"ActorUserIDs\": \"547828938941114\"}"
}
Terminal window
curl -X POST '{api-url}/readRoute?ns={community}' \
-H 'Authorization: bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"VoucherNo":"419-33768-13062","UIDx":637,"DisbursementID":"7bcddfd9-5b87-4d61-adb7-16f2c0cb32c1","Metadata":"{\"ActorUserIDs\": \"547828938941114\"}"}'