AlphaAlpha Docs

Invoice

API calls concerning invoices

Create a new invoice

POST
/invoices
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/invoices" \  -H "Content-Type: application/json" \  -d '{    "currency": "string",    "invoiceDate": "2019-08-24T14:15:22Z",    "paymentTermDays": 0,    "rows": [      {        "id": "string",        "quantity": 0.1,        "quantityType": "AMOUNT",        "taxAmount": 0.1,        "total": 0.1,        "totalWithTax": 0.1,        "type": "ITEM",        "unitPrice": 0.1      }    ]  }'
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Get invoices by opportunity

GET
/invoices/by-opportunity/{opportunityId}
AuthorizationBearer <token>

In: header

Path Parameters

opportunityId*string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/invoices/by-opportunity/string"
[
  {
    "attachments": [
      {
        "blobId": "string",
        "created": "2019-08-24T14:15:22Z",
        "extension": "string",
        "fileSize": 0,
        "name": "string",
        "type": "IMAGE"
      }
    ],
    "clientId": "string",
    "contactEmail": "string",
    "created": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "currency": "string",
    "datePaid": "2019-08-24T14:15:22Z",
    "dueDate": "2019-08-24T14:15:22Z",
    "events": [
      {
        "authorId": "string",
        "date": "2019-08-24T14:15:22Z",
        "description": "string",
        "id": "string",
        "type": "CREATE"
      }
    ],
    "id": "string",
    "invoiceDate": "2019-08-24T14:15:22Z",
    "invoiceNumber": "string",
    "mailBody": "string",
    "milestoneId": "string",
    "note": "string",
    "opportunityId": "string",
    "overdueNotifiedAt": "2019-08-24T14:15:22Z",
    "paid": 0.1,
    "paidExcludingTax": 0.1,
    "paymentReference": "string",
    "paymentTermDays": 0,
    "pdf": {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    },
    "recurringAgreement": {
      "autoSend": true,
      "endDate": "2019-08-24T14:15:22Z",
      "intervalDays": 0,
      "intervalMonths": 0,
      "nextInvoiceDate": "2019-08-24T14:15:22Z"
    },
    "reminderBody": "string",
    "reminders": [
      {
        "createdBy": "string",
        "sentOn": "2019-08-24T14:15:22Z"
      }
    ],
    "rows": [
      {
        "description": "string",
        "id": "string",
        "productId": "string",
        "quantity": 0.1,
        "quantityType": "AMOUNT",
        "taxAmount": 0.1,
        "taxRate": 0.1,
        "total": 0.1,
        "totalWithTax": 0.1,
        "type": "ITEM",
        "unitPrice": 0.1
      }
    ],
    "salesOrderId": "string",
    "sentMails": [
      "string"
    ],
    "status": "DRAFT",
    "subsidiaryId": "string",
    "tenantId": "string",
    "total": 0.1,
    "totalExcludingTax": 0.1,
    "totalTax": 0.1,
    "totalWithTax": 0.1,
    "transactions": [
      {
        "accountId": "string",
        "amount": 0.1,
        "created": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "date": "2019-08-24T14:15:22Z",
        "description": "string",
        "id": "string",
        "paymentMethod": "CREDIT_CARD",
        "tenantId": "string",
        "updated": "2019-08-24T14:15:22Z",
        "updatedBy": "string"
      }
    ],
    "type": "MANUAL",
    "updated": "2019-08-24T14:15:22Z",
    "updatedBy": "string"
  }
]
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Count invoices by status

GET
/invoices/count-by-status
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/invoices/count-by-status"
{
  "property1": 0,
  "property2": 0
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Download Csv_ Invoice

GET
/invoices/csv-export
AuthorizationBearer <token>

In: header

Query Parameters

search?array<>
filters?array<>
page?integer
Default0
Formatint32
size?integer
Default20
Formatint32
sort?string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/invoices/csv-export"
"string"
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Get min and max invoice dates

GET
/invoices/date-range
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/invoices/date-range"
{
  "property1": "2019-08-24T14:15:22Z",
  "property2": "2019-08-24T14:15:22Z"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Delete a list of invoices by their IDs

DELETE
/invoices/delete-list
AuthorizationBearer <token>

In: header

Query Parameters

ids?array<>

Response Body

application/json

application/json

application/json

curl -X DELETE "http://localhost:18080/api/v1/invoices/delete-list"
Empty
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Dynamic Search_ Invoice

GET
/invoices/dynamic-search
AuthorizationBearer <token>

In: header

Query Parameters

search?array<>
filters?array<>
page?integer
Default0
Formatint32
size?integer
Default20
Formatint32
sort?string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/invoices/dynamic-search"
{
  "content": [
    {
      "attachments": [
        {
          "blobId": "string",
          "created": "2019-08-24T14:15:22Z",
          "extension": "string",
          "fileSize": 0,
          "name": "string",
          "type": "IMAGE"
        }
      ],
      "clientId": "string",
      "contactEmail": "string",
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "currency": "string",
      "datePaid": "2019-08-24T14:15:22Z",
      "dueDate": "2019-08-24T14:15:22Z",
      "events": [
        {
          "authorId": "string",
          "date": "2019-08-24T14:15:22Z",
          "description": "string",
          "id": "string",
          "type": "CREATE"
        }
      ],
      "id": "string",
      "invoiceDate": "2019-08-24T14:15:22Z",
      "invoiceNumber": "string",
      "mailBody": "string",
      "milestoneId": "string",
      "note": "string",
      "opportunityId": "string",
      "overdueNotifiedAt": "2019-08-24T14:15:22Z",
      "paid": 0.1,
      "paidExcludingTax": 0.1,
      "paymentReference": "string",
      "paymentTermDays": 0,
      "pdf": {
        "blobId": "string",
        "created": "2019-08-24T14:15:22Z",
        "extension": "string",
        "fileSize": 0,
        "name": "string",
        "type": "IMAGE"
      },
      "recurringAgreement": {
        "autoSend": true,
        "endDate": "2019-08-24T14:15:22Z",
        "intervalDays": 0,
        "intervalMonths": 0,
        "nextInvoiceDate": "2019-08-24T14:15:22Z"
      },
      "reminderBody": "string",
      "reminders": [
        {
          "createdBy": "string",
          "sentOn": "2019-08-24T14:15:22Z"
        }
      ],
      "rows": [
        {
          "description": "string",
          "id": "string",
          "productId": "string",
          "quantity": 0.1,
          "quantityType": "AMOUNT",
          "taxAmount": 0.1,
          "taxRate": 0.1,
          "total": 0.1,
          "totalWithTax": 0.1,
          "type": "ITEM",
          "unitPrice": 0.1
        }
      ],
      "salesOrderId": "string",
      "sentMails": [
        "string"
      ],
      "status": "DRAFT",
      "subsidiaryId": "string",
      "tenantId": "string",
      "total": 0.1,
      "totalExcludingTax": 0.1,
      "totalTax": 0.1,
      "totalWithTax": 0.1,
      "transactions": [
        {
          "accountId": "string",
          "amount": 0.1,
          "created": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "date": "2019-08-24T14:15:22Z",
          "description": "string",
          "id": "string",
          "paymentMethod": "CREDIT_CARD",
          "tenantId": "string",
          "updated": "2019-08-24T14:15:22Z",
          "updatedBy": "string"
        }
      ],
      "type": "MANUAL",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "empty": true,
  "first": true,
  "last": true,
  "number": 0,
  "numberOfElements": 0,
  "pageable": {
    "offset": 0,
    "pageNumber": 0,
    "pageSize": 0,
    "paged": true,
    "sort": {
      "empty": true,
      "sorted": true,
      "unsorted": true
    },
    "unpaged": true
  },
  "size": 0,
  "sort": {
    "empty": true,
    "sorted": true,
    "unsorted": true
  },
  "totalElements": 0,
  "totalPages": 0
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Dynamic Search Post_ Invoice

POST
/invoices/dynamic-search
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/invoices/dynamic-search" \  -H "Content-Type: application/json" \  -d '{    "filters": {      "property1": null,      "property2": null    },    "page": 0,    "search": [      "string"    ],    "size": 0,    "sort": [      {        "ascending": true,        "field": "string"      }    ]  }'
{
  "content": [
    {
      "attachments": [
        {
          "blobId": "string",
          "created": "2019-08-24T14:15:22Z",
          "extension": "string",
          "fileSize": 0,
          "name": "string",
          "type": "IMAGE"
        }
      ],
      "clientId": "string",
      "contactEmail": "string",
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "currency": "string",
      "datePaid": "2019-08-24T14:15:22Z",
      "dueDate": "2019-08-24T14:15:22Z",
      "events": [
        {
          "authorId": "string",
          "date": "2019-08-24T14:15:22Z",
          "description": "string",
          "id": "string",
          "type": "CREATE"
        }
      ],
      "id": "string",
      "invoiceDate": "2019-08-24T14:15:22Z",
      "invoiceNumber": "string",
      "mailBody": "string",
      "milestoneId": "string",
      "note": "string",
      "opportunityId": "string",
      "overdueNotifiedAt": "2019-08-24T14:15:22Z",
      "paid": 0.1,
      "paidExcludingTax": 0.1,
      "paymentReference": "string",
      "paymentTermDays": 0,
      "pdf": {
        "blobId": "string",
        "created": "2019-08-24T14:15:22Z",
        "extension": "string",
        "fileSize": 0,
        "name": "string",
        "type": "IMAGE"
      },
      "recurringAgreement": {
        "autoSend": true,
        "endDate": "2019-08-24T14:15:22Z",
        "intervalDays": 0,
        "intervalMonths": 0,
        "nextInvoiceDate": "2019-08-24T14:15:22Z"
      },
      "reminderBody": "string",
      "reminders": [
        {
          "createdBy": "string",
          "sentOn": "2019-08-24T14:15:22Z"
        }
      ],
      "rows": [
        {
          "description": "string",
          "id": "string",
          "productId": "string",
          "quantity": 0.1,
          "quantityType": "AMOUNT",
          "taxAmount": 0.1,
          "taxRate": 0.1,
          "total": 0.1,
          "totalWithTax": 0.1,
          "type": "ITEM",
          "unitPrice": 0.1
        }
      ],
      "salesOrderId": "string",
      "sentMails": [
        "string"
      ],
      "status": "DRAFT",
      "subsidiaryId": "string",
      "tenantId": "string",
      "total": 0.1,
      "totalExcludingTax": 0.1,
      "totalTax": 0.1,
      "totalWithTax": 0.1,
      "transactions": [
        {
          "accountId": "string",
          "amount": 0.1,
          "created": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "date": "2019-08-24T14:15:22Z",
          "description": "string",
          "id": "string",
          "paymentMethod": "CREDIT_CARD",
          "tenantId": "string",
          "updated": "2019-08-24T14:15:22Z",
          "updatedBy": "string"
        }
      ],
      "type": "MANUAL",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "empty": true,
  "first": true,
  "last": true,
  "number": 0,
  "numberOfElements": 0,
  "pageable": {
    "offset": 0,
    "pageNumber": 0,
    "pageSize": 0,
    "paged": true,
    "sort": {
      "empty": true,
      "sorted": true,
      "unsorted": true
    },
    "unpaged": true
  },
  "size": 0,
  "sort": {
    "empty": true,
    "sorted": true,
    "unsorted": true
  },
  "totalElements": 0,
  "totalPages": 0
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Create a draft invoice

POST
/invoices/empty
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/invoices/empty"
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Find by list of ids in current tenant

GET
/invoices/find
AuthorizationBearer <token>

In: header

Query Parameters

ids*array<>

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/invoices/find?ids=string"
[
  {
    "attachments": [
      {
        "blobId": "string",
        "created": "2019-08-24T14:15:22Z",
        "extension": "string",
        "fileSize": 0,
        "name": "string",
        "type": "IMAGE"
      }
    ],
    "clientId": "string",
    "contactEmail": "string",
    "created": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "currency": "string",
    "datePaid": "2019-08-24T14:15:22Z",
    "dueDate": "2019-08-24T14:15:22Z",
    "events": [
      {
        "authorId": "string",
        "date": "2019-08-24T14:15:22Z",
        "description": "string",
        "id": "string",
        "type": "CREATE"
      }
    ],
    "id": "string",
    "invoiceDate": "2019-08-24T14:15:22Z",
    "invoiceNumber": "string",
    "mailBody": "string",
    "milestoneId": "string",
    "note": "string",
    "opportunityId": "string",
    "overdueNotifiedAt": "2019-08-24T14:15:22Z",
    "paid": 0.1,
    "paidExcludingTax": 0.1,
    "paymentReference": "string",
    "paymentTermDays": 0,
    "pdf": {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    },
    "recurringAgreement": {
      "autoSend": true,
      "endDate": "2019-08-24T14:15:22Z",
      "intervalDays": 0,
      "intervalMonths": 0,
      "nextInvoiceDate": "2019-08-24T14:15:22Z"
    },
    "reminderBody": "string",
    "reminders": [
      {
        "createdBy": "string",
        "sentOn": "2019-08-24T14:15:22Z"
      }
    ],
    "rows": [
      {
        "description": "string",
        "id": "string",
        "productId": "string",
        "quantity": 0.1,
        "quantityType": "AMOUNT",
        "taxAmount": 0.1,
        "taxRate": 0.1,
        "total": 0.1,
        "totalWithTax": 0.1,
        "type": "ITEM",
        "unitPrice": 0.1
      }
    ],
    "salesOrderId": "string",
    "sentMails": [
      "string"
    ],
    "status": "DRAFT",
    "subsidiaryId": "string",
    "tenantId": "string",
    "total": 0.1,
    "totalExcludingTax": 0.1,
    "totalTax": 0.1,
    "totalWithTax": 0.1,
    "transactions": [
      {
        "accountId": "string",
        "amount": 0.1,
        "created": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "date": "2019-08-24T14:15:22Z",
        "description": "string",
        "id": "string",
        "paymentMethod": "CREDIT_CARD",
        "tenantId": "string",
        "updated": "2019-08-24T14:15:22Z",
        "updatedBy": "string"
      }
    ],
    "type": "MANUAL",
    "updated": "2019-08-24T14:15:22Z",
    "updatedBy": "string"
  }
]
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Find all for current tenant

GET
/invoices/find-all
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/invoices/find-all"
[
  {
    "attachments": [
      {
        "blobId": "string",
        "created": "2019-08-24T14:15:22Z",
        "extension": "string",
        "fileSize": 0,
        "name": "string",
        "type": "IMAGE"
      }
    ],
    "clientId": "string",
    "contactEmail": "string",
    "created": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "currency": "string",
    "datePaid": "2019-08-24T14:15:22Z",
    "dueDate": "2019-08-24T14:15:22Z",
    "events": [
      {
        "authorId": "string",
        "date": "2019-08-24T14:15:22Z",
        "description": "string",
        "id": "string",
        "type": "CREATE"
      }
    ],
    "id": "string",
    "invoiceDate": "2019-08-24T14:15:22Z",
    "invoiceNumber": "string",
    "mailBody": "string",
    "milestoneId": "string",
    "note": "string",
    "opportunityId": "string",
    "overdueNotifiedAt": "2019-08-24T14:15:22Z",
    "paid": 0.1,
    "paidExcludingTax": 0.1,
    "paymentReference": "string",
    "paymentTermDays": 0,
    "pdf": {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    },
    "recurringAgreement": {
      "autoSend": true,
      "endDate": "2019-08-24T14:15:22Z",
      "intervalDays": 0,
      "intervalMonths": 0,
      "nextInvoiceDate": "2019-08-24T14:15:22Z"
    },
    "reminderBody": "string",
    "reminders": [
      {
        "createdBy": "string",
        "sentOn": "2019-08-24T14:15:22Z"
      }
    ],
    "rows": [
      {
        "description": "string",
        "id": "string",
        "productId": "string",
        "quantity": 0.1,
        "quantityType": "AMOUNT",
        "taxAmount": 0.1,
        "taxRate": 0.1,
        "total": 0.1,
        "totalWithTax": 0.1,
        "type": "ITEM",
        "unitPrice": 0.1
      }
    ],
    "salesOrderId": "string",
    "sentMails": [
      "string"
    ],
    "status": "DRAFT",
    "subsidiaryId": "string",
    "tenantId": "string",
    "total": 0.1,
    "totalExcludingTax": 0.1,
    "totalTax": 0.1,
    "totalWithTax": 0.1,
    "transactions": [
      {
        "accountId": "string",
        "amount": 0.1,
        "created": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "date": "2019-08-24T14:15:22Z",
        "description": "string",
        "id": "string",
        "paymentMethod": "CREDIT_CARD",
        "tenantId": "string",
        "updated": "2019-08-24T14:15:22Z",
        "updatedBy": "string"
      }
    ],
    "type": "MANUAL",
    "updated": "2019-08-24T14:15:22Z",
    "updatedBy": "string"
  }
]
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Find a list of entities by their IDs

GET
/invoices/find-list
AuthorizationBearer <token>

In: header

Query Parameters

ids?array<>

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/invoices/find-list"
[
  {
    "attachments": [
      {
        "blobId": "string",
        "created": "2019-08-24T14:15:22Z",
        "extension": "string",
        "fileSize": 0,
        "name": "string",
        "type": "IMAGE"
      }
    ],
    "clientId": "string",
    "contactEmail": "string",
    "created": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "currency": "string",
    "datePaid": "2019-08-24T14:15:22Z",
    "dueDate": "2019-08-24T14:15:22Z",
    "events": [
      {
        "authorId": "string",
        "date": "2019-08-24T14:15:22Z",
        "description": "string",
        "id": "string",
        "type": "CREATE"
      }
    ],
    "id": "string",
    "invoiceDate": "2019-08-24T14:15:22Z",
    "invoiceNumber": "string",
    "mailBody": "string",
    "milestoneId": "string",
    "note": "string",
    "opportunityId": "string",
    "overdueNotifiedAt": "2019-08-24T14:15:22Z",
    "paid": 0.1,
    "paidExcludingTax": 0.1,
    "paymentReference": "string",
    "paymentTermDays": 0,
    "pdf": {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    },
    "recurringAgreement": {
      "autoSend": true,
      "endDate": "2019-08-24T14:15:22Z",
      "intervalDays": 0,
      "intervalMonths": 0,
      "nextInvoiceDate": "2019-08-24T14:15:22Z"
    },
    "reminderBody": "string",
    "reminders": [
      {
        "createdBy": "string",
        "sentOn": "2019-08-24T14:15:22Z"
      }
    ],
    "rows": [
      {
        "description": "string",
        "id": "string",
        "productId": "string",
        "quantity": 0.1,
        "quantityType": "AMOUNT",
        "taxAmount": 0.1,
        "taxRate": 0.1,
        "total": 0.1,
        "totalWithTax": 0.1,
        "type": "ITEM",
        "unitPrice": 0.1
      }
    ],
    "salesOrderId": "string",
    "sentMails": [
      "string"
    ],
    "status": "DRAFT",
    "subsidiaryId": "string",
    "tenantId": "string",
    "total": 0.1,
    "totalExcludingTax": 0.1,
    "totalTax": 0.1,
    "totalWithTax": 0.1,
    "transactions": [
      {
        "accountId": "string",
        "amount": 0.1,
        "created": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "date": "2019-08-24T14:15:22Z",
        "description": "string",
        "id": "string",
        "paymentMethod": "CREDIT_CARD",
        "tenantId": "string",
        "updated": "2019-08-24T14:15:22Z",
        "updatedBy": "string"
      }
    ],
    "type": "MANUAL",
    "updated": "2019-08-24T14:15:22Z",
    "updatedBy": "string"
  }
]
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Find by id in current tenant

GET
/invoices/find/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/invoices/find/string"
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Get page by page number and size with optional sorting based on field to sortBy and direction

GET
/invoices/page
AuthorizationBearer <token>

In: header

Query Parameters

pageNumber?integer
Formatint32
pageSize?integer
Formatint32
sortBy?string
direction?string
Value in"ASC" | "DESC"
search?string

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/invoices/page"
{
  "content": [
    {
      "attachments": [
        {
          "blobId": "string",
          "created": "2019-08-24T14:15:22Z",
          "extension": "string",
          "fileSize": 0,
          "name": "string",
          "type": "IMAGE"
        }
      ],
      "clientId": "string",
      "contactEmail": "string",
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "currency": "string",
      "datePaid": "2019-08-24T14:15:22Z",
      "dueDate": "2019-08-24T14:15:22Z",
      "events": [
        {
          "authorId": "string",
          "date": "2019-08-24T14:15:22Z",
          "description": "string",
          "id": "string",
          "type": "CREATE"
        }
      ],
      "id": "string",
      "invoiceDate": "2019-08-24T14:15:22Z",
      "invoiceNumber": "string",
      "mailBody": "string",
      "milestoneId": "string",
      "note": "string",
      "opportunityId": "string",
      "overdueNotifiedAt": "2019-08-24T14:15:22Z",
      "paid": 0.1,
      "paidExcludingTax": 0.1,
      "paymentReference": "string",
      "paymentTermDays": 0,
      "pdf": {
        "blobId": "string",
        "created": "2019-08-24T14:15:22Z",
        "extension": "string",
        "fileSize": 0,
        "name": "string",
        "type": "IMAGE"
      },
      "recurringAgreement": {
        "autoSend": true,
        "endDate": "2019-08-24T14:15:22Z",
        "intervalDays": 0,
        "intervalMonths": 0,
        "nextInvoiceDate": "2019-08-24T14:15:22Z"
      },
      "reminderBody": "string",
      "reminders": [
        {
          "createdBy": "string",
          "sentOn": "2019-08-24T14:15:22Z"
        }
      ],
      "rows": [
        {
          "description": "string",
          "id": "string",
          "productId": "string",
          "quantity": 0.1,
          "quantityType": "AMOUNT",
          "taxAmount": 0.1,
          "taxRate": 0.1,
          "total": 0.1,
          "totalWithTax": 0.1,
          "type": "ITEM",
          "unitPrice": 0.1
        }
      ],
      "salesOrderId": "string",
      "sentMails": [
        "string"
      ],
      "status": "DRAFT",
      "subsidiaryId": "string",
      "tenantId": "string",
      "total": 0.1,
      "totalExcludingTax": 0.1,
      "totalTax": 0.1,
      "totalWithTax": 0.1,
      "transactions": [
        {
          "accountId": "string",
          "amount": 0.1,
          "created": "2019-08-24T14:15:22Z",
          "createdBy": "string",
          "date": "2019-08-24T14:15:22Z",
          "description": "string",
          "id": "string",
          "paymentMethod": "CREDIT_CARD",
          "tenantId": "string",
          "updated": "2019-08-24T14:15:22Z",
          "updatedBy": "string"
        }
      ],
      "type": "MANUAL",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "empty": true,
  "first": true,
  "last": true,
  "number": 0,
  "numberOfElements": 0,
  "pageable": {
    "offset": 0,
    "pageNumber": 0,
    "pageSize": 0,
    "paged": true,
    "sort": {
      "empty": true,
      "sorted": true,
      "unsorted": true
    },
    "unpaged": true
  },
  "size": 0,
  "sort": {
    "empty": true,
    "sorted": true,
    "unsorted": true
  },
  "totalElements": 0,
  "totalPages": 0
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Get invoice statistics

GET
/invoices/stats
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/invoices/stats"
{
  "countByStatus": {
    "property1": 0,
    "property2": 0
  },
  "totalInvoiced": 0.1,
  "totalOutstanding": 0.1,
  "totalOverdue": 0.1,
  "totalPaid": 0.1
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

List invoices that have a recurring agreement configured

GET
/invoices/with-recurring-drafts
AuthorizationBearer <token>

In: header

Response Body

application/json

application/json

application/json

application/json

curl -X GET "http://localhost:18080/api/v1/invoices/with-recurring-drafts"
[
  {
    "attachments": [
      {
        "blobId": "string",
        "created": "2019-08-24T14:15:22Z",
        "extension": "string",
        "fileSize": 0,
        "name": "string",
        "type": "IMAGE"
      }
    ],
    "clientId": "string",
    "contactEmail": "string",
    "created": "2019-08-24T14:15:22Z",
    "createdBy": "string",
    "currency": "string",
    "datePaid": "2019-08-24T14:15:22Z",
    "dueDate": "2019-08-24T14:15:22Z",
    "events": [
      {
        "authorId": "string",
        "date": "2019-08-24T14:15:22Z",
        "description": "string",
        "id": "string",
        "type": "CREATE"
      }
    ],
    "id": "string",
    "invoiceDate": "2019-08-24T14:15:22Z",
    "invoiceNumber": "string",
    "mailBody": "string",
    "milestoneId": "string",
    "note": "string",
    "opportunityId": "string",
    "overdueNotifiedAt": "2019-08-24T14:15:22Z",
    "paid": 0.1,
    "paidExcludingTax": 0.1,
    "paymentReference": "string",
    "paymentTermDays": 0,
    "pdf": {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    },
    "recurringAgreement": {
      "autoSend": true,
      "endDate": "2019-08-24T14:15:22Z",
      "intervalDays": 0,
      "intervalMonths": 0,
      "nextInvoiceDate": "2019-08-24T14:15:22Z"
    },
    "reminderBody": "string",
    "reminders": [
      {
        "createdBy": "string",
        "sentOn": "2019-08-24T14:15:22Z"
      }
    ],
    "rows": [
      {
        "description": "string",
        "id": "string",
        "productId": "string",
        "quantity": 0.1,
        "quantityType": "AMOUNT",
        "taxAmount": 0.1,
        "taxRate": 0.1,
        "total": 0.1,
        "totalWithTax": 0.1,
        "type": "ITEM",
        "unitPrice": 0.1
      }
    ],
    "salesOrderId": "string",
    "sentMails": [
      "string"
    ],
    "status": "DRAFT",
    "subsidiaryId": "string",
    "tenantId": "string",
    "total": 0.1,
    "totalExcludingTax": 0.1,
    "totalTax": 0.1,
    "totalWithTax": 0.1,
    "transactions": [
      {
        "accountId": "string",
        "amount": 0.1,
        "created": "2019-08-24T14:15:22Z",
        "createdBy": "string",
        "date": "2019-08-24T14:15:22Z",
        "description": "string",
        "id": "string",
        "paymentMethod": "CREDIT_CARD",
        "tenantId": "string",
        "updated": "2019-08-24T14:15:22Z",
        "updatedBy": "string"
      }
    ],
    "type": "MANUAL",
    "updated": "2019-08-24T14:15:22Z",
    "updatedBy": "string"
  }
]
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Delete by id in current tenant

DELETE
/invoices/{id}
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Response Body

application/json

application/json

application/json

curl -X DELETE "http://localhost:18080/api/v1/invoices/string"
Empty
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Add a comment to an entity

POST
/invoices/{id}/comment
AuthorizationBearer <token>

In: header

Path Parameters

id*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

body*string

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/invoices/string/comment" \  -H "Content-Type: application/json" \  -d 'string'
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Adds a payment to an invoice

PATCH
/invoices/{invoiceId}/add-payment
AuthorizationBearer <token>

In: header

Path Parameters

invoiceId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "http://localhost:18080/api/v1/invoices/string/add-payment" \  -H "Content-Type: application/json" \  -d '{    "amount": 0.1,    "date": "2019-08-24T14:15:22Z",    "paymentMethod": "CREDIT_CARD"  }'
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Delete an attachment from an invoice

DELETE
/invoices/{invoiceId}/attachments/{blobId}
AuthorizationBearer <token>

In: header

Path Parameters

invoiceId*string
blobId*string

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "http://localhost:18080/api/v1/invoices/string/attachments/string"
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Cancel an invoice

PATCH
/invoices/{invoiceId}/cancel
AuthorizationBearer <token>

In: header

Path Parameters

invoiceId*string

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "http://localhost:18080/api/v1/invoices/string/cancel"
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Generate a PDF for an invoice (server-side)

POST
/invoices/{invoiceId}/generate-pdf
AuthorizationBearer <token>

In: header

Path Parameters

invoiceId*string

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/invoices/string/generate-pdf"
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
PATCH
/invoices/{invoiceId}/link-opportunity/{opportunityId}
AuthorizationBearer <token>

In: header

Path Parameters

invoiceId*string
opportunityId*string

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "http://localhost:18080/api/v1/invoices/string/link-opportunity/string"
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Mark an invoice as paid

PATCH
/invoices/{invoiceId}/mark-as-paid
AuthorizationBearer <token>

In: header

Path Parameters

invoiceId*string

Query Parameters

date?string
Formatdate-time

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "http://localhost:18080/api/v1/invoices/string/mark-as-paid"
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Mark an invoice as sent

PATCH
/invoices/{invoiceId}/mark-as-sent
AuthorizationBearer <token>

In: header

Path Parameters

invoiceId*string

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "http://localhost:18080/api/v1/invoices/string/mark-as-sent"
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Add a new invoice row

POST
/invoices/{invoiceId}/rows
AuthorizationBearer <token>

In: header

Path Parameters

invoiceId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/invoices/string/rows" \  -H "Content-Type: application/json" \  -d '{    "quantity": 0.1,    "type": "ITEM",    "unitPrice": 0.1  }'
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Remove an invoice row

DELETE
/invoices/{invoiceId}/rows/{rowId}
AuthorizationBearer <token>

In: header

Path Parameters

invoiceId*string
rowId*string

Response Body

application/json

application/json

application/json

application/json

curl -X DELETE "http://localhost:18080/api/v1/invoices/string/rows/string"
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Schedule an invoice for future sending

POST
/invoices/{invoiceId}/schedule
AuthorizationBearer <token>

In: header

Path Parameters

invoiceId*string

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/invoices/string/schedule" \  -F pdf="string"
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Send an invoice via email

POST
/invoices/{invoiceId}/send
AuthorizationBearer <token>

In: header

Path Parameters

invoiceId*string

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/invoices/string/send" \  -F pdf="string"
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Send an invoice reminder email

POST
/invoices/{invoiceId}/send-reminder
AuthorizationBearer <token>

In: header

Path Parameters

invoiceId*string

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/invoices/string/send-reminder"
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Unmark an invoice as paid

PATCH
/invoices/{invoiceId}/unmark-as-paid
AuthorizationBearer <token>

In: header

Path Parameters

invoiceId*string

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "http://localhost:18080/api/v1/invoices/string/unmark-as-paid"
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Unschedule a scheduled invoice back to draft

PATCH
/invoices/{invoiceId}/unschedule
AuthorizationBearer <token>

In: header

Path Parameters

invoiceId*string

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "http://localhost:18080/api/v1/invoices/string/unschedule"
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Update an existing invoice

PATCH
/invoices/{invoiceId}/update
AuthorizationBearer <token>

In: header

Path Parameters

invoiceId*string

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X PATCH "http://localhost:18080/api/v1/invoices/string/update" \  -H "Content-Type: application/json" \  -d '{    "currency": "string",    "invoiceDate": "2019-08-24T14:15:22Z",    "paymentTermDays": 0,    "rows": [      {        "id": "string",        "quantity": 0.1,        "quantityType": "AMOUNT",        "taxAmount": 0.1,        "total": 0.1,        "totalWithTax": 0.1,        "type": "ITEM",        "unitPrice": 0.1      }    ]  }'
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Upload attachments to an invoice

POST
/invoices/{invoiceId}/upload-attachments
AuthorizationBearer <token>

In: header

Path Parameters

invoiceId*string

Request Body

multipart/form-data

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

curl -X POST "http://localhost:18080/api/v1/invoices/string/upload-attachments" \  -F files="[\n  \"string\"\n]"
{
  "attachments": [
    {
      "blobId": "string",
      "created": "2019-08-24T14:15:22Z",
      "extension": "string",
      "fileSize": 0,
      "name": "string",
      "type": "IMAGE"
    }
  ],
  "clientId": "string",
  "contactEmail": "string",
  "created": "2019-08-24T14:15:22Z",
  "createdBy": "string",
  "currency": "string",
  "datePaid": "2019-08-24T14:15:22Z",
  "dueDate": "2019-08-24T14:15:22Z",
  "events": [
    {
      "authorId": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "type": "CREATE"
    }
  ],
  "id": "string",
  "invoiceDate": "2019-08-24T14:15:22Z",
  "invoiceNumber": "string",
  "mailBody": "string",
  "milestoneId": "string",
  "note": "string",
  "opportunityId": "string",
  "overdueNotifiedAt": "2019-08-24T14:15:22Z",
  "paid": 0.1,
  "paidExcludingTax": 0.1,
  "paymentReference": "string",
  "paymentTermDays": 0,
  "pdf": {
    "blobId": "string",
    "created": "2019-08-24T14:15:22Z",
    "extension": "string",
    "fileSize": 0,
    "name": "string",
    "type": "IMAGE"
  },
  "recurringAgreement": {
    "autoSend": true,
    "endDate": "2019-08-24T14:15:22Z",
    "intervalDays": 0,
    "intervalMonths": 0,
    "nextInvoiceDate": "2019-08-24T14:15:22Z"
  },
  "reminderBody": "string",
  "reminders": [
    {
      "createdBy": "string",
      "sentOn": "2019-08-24T14:15:22Z"
    }
  ],
  "rows": [
    {
      "description": "string",
      "id": "string",
      "productId": "string",
      "quantity": 0.1,
      "quantityType": "AMOUNT",
      "taxAmount": 0.1,
      "taxRate": 0.1,
      "total": 0.1,
      "totalWithTax": 0.1,
      "type": "ITEM",
      "unitPrice": 0.1
    }
  ],
  "salesOrderId": "string",
  "sentMails": [
    "string"
  ],
  "status": "DRAFT",
  "subsidiaryId": "string",
  "tenantId": "string",
  "total": 0.1,
  "totalExcludingTax": 0.1,
  "totalTax": 0.1,
  "totalWithTax": 0.1,
  "transactions": [
    {
      "accountId": "string",
      "amount": 0.1,
      "created": "2019-08-24T14:15:22Z",
      "createdBy": "string",
      "date": "2019-08-24T14:15:22Z",
      "description": "string",
      "id": "string",
      "paymentMethod": "CREDIT_CARD",
      "tenantId": "string",
      "updated": "2019-08-24T14:15:22Z",
      "updatedBy": "string"
    }
  ],
  "type": "MANUAL",
  "updated": "2019-08-24T14:15:22Z",
  "updatedBy": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}

Adds a payment to an invoice

DELETE
/invoices/{invoiceId}/{transactionId}/remove-payment
AuthorizationBearer <token>

In: header

Path Parameters

invoiceId*string
transactionId*string

Response Body

application/json

application/json

application/json

curl -X DELETE "http://localhost:18080/api/v1/invoices/string/string/remove-payment"
Empty
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}
{
  "detail": "string",
  "time": "2019-08-24T14:15:22Z",
  "title": "string"
}