Skip to content

Look up a voucher

POST
/estore/voucher/_lookup
Required scope: viskan:voucher:read

Looks up a voucher at the third party service provider without reserving anything on it and without adding it to a shopcart.

When the voucher cannot be used the response is a 400 carrying one of the following error codes:

  • voucher.lookup.no-voucher-found: no voucher exists with the given number
  • voucher.lookup.expired: the voucher has passed its valid to date
  • voucher.lookup.no-funds-left: the voucher has no amount left on it
  • voucher.lookup.not-started: the period of the voucher has not yet started
  • voucher.lookup.verification-code-required: the provider requires a verification code, but none was given
  • voucher.lookup.verification-code-incorrect: the given verification code was incorrect
  • voucher.lookup.verification-code-not-required: a verification code was given, but the provider does not use one
  • voucher.lookup.no-payment-method-found: no payment method exists with the given id for the store and country
  • voucher.lookup.payment-method-does-not-handle-vouchers: the payment method is not connected to a voucher provider
  • voucher.lookup.unknown-error: the provider rejected the voucher for a reason it did not specify

Request body

Response

The voucher was found.