Skip to content

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

List Vouchers

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

Use this call to get a list of vouchers for a user in your community.

FieldTypeRequirementDescription
UsernameStringRequiredA unique username of the recipient.
IDNumberStringOptionalThe ID number of the user. If supplied, it must be unique in your community.
MetadataStringOptionalAny other detail that the merchant wishes to store on this transaction.
{
"Username": "27648302057",
"IDNumber": "0108256028085",
"Metadata": "{\"ActorUserIDs\": \"547828938941114\"}"
}
Terminal window
curl -X POST '{api-url}/listVouchers?ns={community}' \
-H 'Authorization: bearer YOUR_TOKEN' \
-H 'Content-Type: application/json' \
-d '{"Username":"27648302057","IDNumber":"0108256028085","Metadata":"{\"ActorUserIDs\": \"547828938941114\"}"}'