Authorization: Bearer ********************
{
"orders": [
{
"orderNumber": "string",
"orderId": "string"
}
],
"orderNumber": "string",
"clientId": "string",
"referenceNumber": "string",
"invoiceDate": "2019-08-24T14:15:22Z",
"dueDate": "2019-08-24T14:15:22Z",
"status": "draft",
"terms": "string",
"notes": "string",
"reminders": [
{
"reminderId": "string",
"sentOn": "2019-08-24T14:15:22Z",
"type": "first"
}
],
"recurring": {
"id": "string",
"frequency": "string",
"enabled": true
},
"sendEmail": {
"enabled": true,
"to": "string",
"cc": [
"string"
],
"bcc": [
"string"
],
"subject": "string",
"body": "string",
"sendOrderDocuments": true
},
"bankAccount": {
"title": "string",
"currency": {
"name": "string",
"symbol": "string"
},
"accountDetails": {
"sortCode": "string",
"IBANNumber": "string",
"swiftCode": "string",
"ifscCode": "string",
"branch": "string",
"bankName": "string",
"accountNumber": "string",
"name": "string"
}
},
"invoiceFile": "string",
"finalAmount": 0,
"currency": {
"name": "string",
"symbol": "string"
},
"items": [
{
"name": "string",
"amount": 0,
"currency": {
"name": "string",
"symbol": "string"
},
"quantity": 0,
"totalAmount": 0,
"taxAmount": 0,
"discountAmount": 0,
"finalAmount": 0,
"hsnCode": "string",
"product": {
"id": "string",
"name": "string",
"amount": 0,
"hsnCode": "string",
"unit": "mm",
"currency": {
"name": "string",
"symbol": "string"
},
"thumbnail": "string",
"productCategories": [
{
"id": "string",
"title": "string",
"thumbnail": "string",
"description": "string"
}
]
},
"service": {
"id": "string",
"title": "string",
"thumbnail": "string",
"paymentType": "one-time",
"paymentFrequency": 0,
"amount": 0,
"hsnCode": "string",
"currency": {
"name": "string",
"symbol": "string"
}
},
"tax": [
{
"id": "string",
"name": "string",
"percentage": 0,
"sysgenerated": true,
"amount": 0,
"currency": {
"name": "string",
"symbol": "string"
},
"identifier": "string",
"slab": 0,
"type": "igst",
"taxableAmount": 0,
"regions": [
"string"
]
}
],
"discount": [
{
"id": "string",
"type": "percentage",
"value": 0,
"name": "string",
"discountCode": "string",
"currency": {
"name": "string",
"symbol": "string"
},
"sysgenerated": true,
"amount": 0
}
],
"orderId": "string"
}
]
}
curl --location --request PUT 'https://api.upbooks.io/api/v1/invoice/' \
--header 'ORGANIZATION-ID: 000000' \
--header 'Content-Type: application/json' \
--data-raw '{
"orders": [
{
"orderNumber": "string",
"orderId": "string"
}
],
"orderNumber": "string",
"clientId": "string",
"referenceNumber": "string",
"invoiceDate": "2019-08-24T14:15:22Z",
"dueDate": "2019-08-24T14:15:22Z",
"status": "draft",
"terms": "string",
"notes": "string",
"reminders": [
{
"reminderId": "string",
"sentOn": "2019-08-24T14:15:22Z",
"type": "first"
}
],
"recurring": {
"id": "string",
"frequency": "string",
"enabled": true
},
"sendEmail": {
"enabled": true,
"to": "string",
"cc": [
"string"
],
"bcc": [
"string"
],
"subject": "string",
"body": "string",
"sendOrderDocuments": true
},
"bankAccount": {
"title": "string",
"currency": {
"name": "string",
"symbol": "string"
},
"accountDetails": {
"sortCode": "string",
"IBANNumber": "string",
"swiftCode": "string",
"ifscCode": "string",
"branch": "string",
"bankName": "string",
"accountNumber": "string",
"name": "string"
}
},
"invoiceFile": "string",
"finalAmount": 0,
"currency": {
"name": "string",
"symbol": "string"
},
"items": [
{
"name": "string",
"amount": 0,
"currency": {
"name": "string",
"symbol": "string"
},
"quantity": 0,
"totalAmount": 0,
"taxAmount": 0,
"discountAmount": 0,
"finalAmount": 0,
"hsnCode": "string",
"product": {
"id": "string",
"name": "string",
"amount": 0,
"hsnCode": "string",
"unit": "mm",
"currency": {
"name": "string",
"symbol": "string"
},
"thumbnail": "string",
"productCategories": [
{
"id": "string",
"title": "string",
"thumbnail": "string",
"description": "string"
}
]
},
"service": {
"id": "string",
"title": "string",
"thumbnail": "string",
"paymentType": "one-time",
"paymentFrequency": 0,
"amount": 0,
"hsnCode": "string",
"currency": {
"name": "string",
"symbol": "string"
}
},
"tax": [
{
"id": "string",
"name": "string",
"percentage": 0,
"sysgenerated": true,
"amount": 0,
"currency": {
"name": "string",
"symbol": "string"
},
"identifier": "string",
"slab": 0,
"type": "igst",
"taxableAmount": 0,
"regions": [
"string"
]
}
],
"discount": [
{
"id": "string",
"type": "percentage",
"value": 0,
"name": "string",
"discountCode": "string",
"currency": {
"name": "string",
"symbol": "string"
},
"sysgenerated": true,
"amount": 0
}
],
"orderId": "string"
}
]
}'