/voucher

Voucher related actions.

/voucher/get

Returns information about a voucher.

Request

POST nameValueRequired?
voucher_codenyaYes
api_keykeyYes
secretsecretYes
languagefiNo

Response

Response is following object, or in case of error an Error string.

{
  "comment":"Value of a voucher, in euros.",
  "amount":99.1,

  "comment":"Type of a voucher.",
  "type":"discount"
}

Expectable errors

See error conventions section for explanation how error system works.

Label Additional data Description
INVALID_VOUCHER_CODENoneReturned if the given voucher code is malformed.
VOUCHER_ALREADY_USEDNoneSome vouchers have usage limit after which they can’t be used any more.