Removes a voucher from an in progress order base

If the voucher is not a deal voucher, all usages of the voucher on the order must be cancelled before the voucher can be removed.

Licenses Required

  • Vista.Ocapi
Request
path Parameters
orderId
required
string

The unique identifier of the in progress order base being modified

voucherId
required
string

The unique identifier of the order voucher being removed

header Parameters
Connect-Region-Code
string

Region Code

Responses
204

Voucher removed.

400

Voucher cannot be removed.

delete/ocapi/v1/orders/{orderId}/vouchers/{voucherId}
Request samples