Home > @vsf-enterprise/sap-commerce-webservices-sdk > VouchersApi > getVoucher

VouchersApi.getVoucher() method

Returns details of a single voucher that is specified by its voucher identification code. Get a voucher based on code.

Signature:

getVoucher(baseSiteId: string, code: string, fields?: string, options?: any): Promise<import("axios").AxiosResponse<Voucher>>;

Parameters

Parameter Type Description
baseSiteId string Base site identifier
code string Voucher identifier (code)
fields string Response configuration. This is the list of fields that should be returned in the response body. Examples: BASIC, DEFAULT, FULL
options any Override http request option.

Returns:

Promise<import("axios").AxiosResponse<Voucher>>

Exceptions

{RequiredError} VouchersApi