Create Voucher

Use this endpoint to create a new voucher. If Reference No is blank, a new Reference No will be generated.

Path parameters

tenantstringRequired

Your Entra Tenant ID. More details.

environmentstringRequired

Your Business Central Environment. More details.

companystringRequired

Your Business Central Company. More details.

Headers

AuthorizationstringRequired

Bearer authentication of the form Bearer <token>, where token is your auth token.

x-api-versiondateOptional

Used for API versioning. More details.

Request

This endpoint expects an object.
documentNostringRequired
DocumentNo for which voucher is issued.
referenceNostringRequired
A unique reference number for the voucher
voucherTypestringRequired
The type of the voucher
namestringRequired
The name of the customer who purchased the voucher
name2stringRequired
Other name of the buying customer
addressstringRequired
The address of the buying customer
address2stringRequired
The address of the buying customer
postCodestringRequired
The postal code of the buying customer
citystringRequired
The city of the buying customer
countystringRequired
The county of the buying customer
countryCodestringRequired
The country where the buying customer resides.
emailstringRequired
the email address of the buying customer
phoneNostringRequired
The phone number of the buying customer.
voucherMessagestringRequired
indicates message on voucher

Response

This endpoint returns an object.
documentNostring
DocumentNo for which voucher is issued.
referenceNostring
A unique reference number for the voucher
voucherTypestring
The type of the voucher
namestring
The name of the customer who purchased the voucher
name2string
Other name of the buying customer
addressstring
The address of the buying customer
address2string
The address of the buying customer
postCodestring
The postal code of the buying customer
citystring
The city of the buying customer
countystring
The county of the buying customer
countryCodestring
The country where the buying customer resides.
emailstring
the email address of the buying customer
phoneNostring
The phone number of the buying customer.
voucherMessagestring
indicates message on voucher