Skip to main content
POST
/
api
/
rest
/
invoices
/
{invoiceId}
/
documents
Create Invoice Document
curl --request POST \
  --url https://api.upwell.com/api/rest/invoices/{invoiceId}/documents \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": {
    "base64": "<string>",
    "filename": "<string>",
    "mimeType": "<string>",
    "sourceSystem": "<string>",
    "sourceSystemId": "<string>",
    "type": "<string>",
    "visibleToCarrier": true,
    "visibleToCustomer": true
  },
  "invoiceId": "<string>"
}
'
{
  "createInvoiceDocument": {
    "documentId": "<string>",
    "id": "<string>"
  }
}

Headers

authorization
string

Your API key will be used for authentication of the request. Authorization: YOUR_API_KEY

Path Parameters

invoiceId
string
required

"invoiceId" is required (enter it either in parameters or request body)

Body

application/json

Query parameters can also be provided in the request body as a JSON object

input
CreateInvoiceDocumentInput Ā· object
invoiceId
string

Response

200 - application/json

Responses for POST /api/rest/invoices/{invoiceId}/documents

createInvoiceDocument
InvoiceDocument Ā· object