Create Voucher
Use this endpoint to create a new voucher. If Reference No is blank, a new Reference No will be generated.
Path parameters
tenant
Your Entra Tenant ID. More details.
environment
Your Business Central Environment. More details.
company
Your Business Central Company. More details.
Headers
Authorization
Bearer authentication of the form Bearer <token>, where token is your auth token.
x-api-version
Used for API versioning. More details.
Request
This endpoint expects an object.
documentNo
DocumentNo for which voucher is issued.
referenceNo
A unique reference number for the voucher
voucherType
The type of the voucher
name
The name of the customer who purchased the voucher
name2
Other name of the buying customer
address
The address of the buying customer
address2
The address of the buying customer
postCode
The postal code of the buying customer
city
The city of the buying customer
county
The county of the buying customer
countryCode
The country where the buying customer resides.
email
the email address of the buying customer
phoneNo
The phone number of the buying customer.
voucherMessage
indicates message on voucher
Response
This endpoint returns an object.
documentNo
DocumentNo for which voucher is issued.
referenceNo
A unique reference number for the voucher
voucherType
The type of the voucher
name
The name of the customer who purchased the voucher
name2
Other name of the buying customer
address
The address of the buying customer
address2
The address of the buying customer
postCode
The postal code of the buying customer
city
The city of the buying customer
county
The county of the buying customer
countryCode
The country where the buying customer resides.
email
the email address of the buying customer
phoneNo
The phone number of the buying customer.
voucherMessage
indicates message on voucher