1 const formData = ;
2 const response = await fetch('https://invo.dev/api/new', {
3 method: "post",
4 body: formData,
5 headers: {
6 'Content-Type': 'application/x-www-form-urlencoded',
7 'Authorization': 'Bearer token'
8 }})
A successful request will result in these response these headers along with a pdf blob.
1 {
2 "Content-Type": "application/pdf",
3 "Content-Disposition": "attachment; filename='INVOICENUMBER.pdf'"
4 }