Retrieves the gift vouchers flagged on a cart.
GET/api/v1/cart/:cartId/giftVouchers
SOAP Equivalent: ACP_GetAllocGiftVouchers
SOAP to REST Field Mapping
| REST Field | SOAP Field | Notes |
|---|---|---|
| cartId | ID_FlagGroup | InterfaceFlag.ID_FlagGroup |
| vouchers | Vouchers | WEB_KDO vouchers flagged on the cart |
| vouchers[].articleId | ID_Article | Voucher article id |
| vouchers[].amount | Amount | Article.Amount - Article.Amount10 |
Scoped by the x-tenant header; the session context (institution) is validated first.
A cart with no voucher is returned as HTTP 200 with an empty array (SOAP parity).
Request
Responses
- 200
- 401
- 404
- 422
- 500
OK
Unauthorized
Not Found
Unprocessable Content
Internal Server Error