Orders
Vouchers
Adds a voucher to an in progress order base
Changed onThis endpoint is not available for in progress tab order entities.
This endpoint validates the provided voucher credentials and stores a successfully validated voucher against the order for later use.
Licenses Required
- Vista.Ocapi
post/ocapi/v1/orders/{orderId}/vouchers
Request
- Base URLhttps://developer.vista.co (the document declares no server; this is the origin it was published from)
- Authnone declared
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Path parameters
orderIdstring required
The unique identifier of the in progress order base being modified
Headers
Connect-Region-Codestring
Region Code
Request body
Response
Success
Example response
{
"voucher": {
"maskedBarcode": "12.......6789",
"voucherTypeDescription": {
"translations": [
{
"languageTag": "en-US"
}
]
}
}
}Changes
- info
api tag
Ordersadded
- info