Authorization: Bearer ********************
{
"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
}
]
}
],
"taxCalculationMode": "before-discount",
"clientId": "string",
"status": "draft",
"orderDate": "2019-08-24T14:15:22Z",
"taxIds": [
"string"
],
"discountIds": [
"string"
],
"discountAmount": 0,
"poNumber": "string",
"salesPerson": [
"string"
],
"proposalId": "string",
"generateInvoice": true,
"recurring": {
"frequency": "string",
"enabled": true
},
"sendEmail": {
"enabled": true,
"to": "string",
"cc": [
"string"
],
"bcc": [
"string"
],
"subject": "string",
"body": "string",
"sendOrderDocuments": true
},
"miscFiles": [
"string"
],
"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"
}
},
"invoiceNumber": "string",
"customInvoiceNumber": true,
"currency": {
"name": "string",
"symbol": "string"
},
"orderNumber": "string",
"fileImportData": {
"fileImportId": "string",
"rowId": "string"
}
}
curl --location --request POST 'https://api.upbooks.io/api/v1/order' \
--header 'ORGANIZATION-ID: 00000' \
--header 'Content-Type: application/json' \
--data-raw '{
"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
}
]
}
],
"taxCalculationMode": "before-discount",
"clientId": "string",
"status": "draft",
"orderDate": "2019-08-24T14:15:22Z",
"taxIds": [
"string"
],
"discountIds": [
"string"
],
"discountAmount": 0,
"poNumber": "string",
"salesPerson": [
"string"
],
"proposalId": "string",
"generateInvoice": true,
"recurring": {
"frequency": "string",
"enabled": true
},
"sendEmail": {
"enabled": true,
"to": "string",
"cc": [
"string"
],
"bcc": [
"string"
],
"subject": "string",
"body": "string",
"sendOrderDocuments": true
},
"miscFiles": [
"string"
],
"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"
}
},
"invoiceNumber": "string",
"customInvoiceNumber": true,
"currency": {
"name": "string",
"symbol": "string"
},
"orderNumber": "string",
"fileImportData": {
"fileImportId": "string",
"rowId": "string"
}
}'
{
"data": {
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"__v": 0,
"_id": "string",
"organizationId": "string",
"orderNumber": "string",
"orderDate": "2019-08-24T14:15:22Z",
"dateTime": "2019-08-24T14:15:22Z",
"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
}
]
}
],
"totalAmount": 0,
"taxAmount": 0,
"discountAmount": 0,
"finalAmount": 0,
"taxCalculationMode": "before-discount",
"currency": {
"name": "string",
"symbol": "string"
},
"currencyConversionRate": {
"USD": 0,
"EUR": 0,
"GBP": 0,
"INR": 0,
"AUD": 0,
"SGD": 0,
"CAD": 0,
"JPY": 0,
"CNY": 0,
"SAR": 0,
"AED": 0
},
"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
}
],
"invoices": [
{
"invoiceNumber": "string",
"invoiceId": "string",
"invoicedAmount": 0,
"invoiceDate": "2019-08-24T14:15:22Z",
"paidAmount": 0
}
],
"status": "draft",
"isDeleted": true,
"client": {
"id": "string",
"name": "string",
"clientType": "business",
"billingAddress": {
"locationName": "string",
"street1": "string",
"street2": "string",
"pincode": "string",
"city": "string",
"state": "string",
"country": "string"
},
"contacts": [
{
"isPrimary": true,
"salutation": "Mr.",
"firstName": "string",
"lastName": "string",
"email": "string",
"workPhone": "string",
"mobilePhone": "string",
"designation": "string",
"department": "string"
}
],
"shippingAddress": {
"locationName": "string",
"street1": "string",
"street2": "string",
"pincode": "string",
"city": "string",
"state": "string",
"country": "string"
},
"tax": {
"taxTreatment": "GST",
"taxNumber": "string",
"taxes": [
{
"id": "string",
"name": "string",
"percentage": 0
}
]
}
},
"poNumber": "string",
"salesPerson": [
{
"id": "string",
"name": "string",
"employeeNumber": "string",
"email": "string",
"phone": "string",
"type": "full-time",
"employment": [
{
"id": "string",
"isCurrent": true,
"dateOfJoining": "2019-08-24T14:15:22Z",
"dateOfLeaving": "2019-08-24T14:15:22Z",
"specialSchemes": [
{
"enabled": true,
"name": "ESI"
}
],
"salary": {
"componentGroup": {
"id": "string",
"groupName": "string",
"salaryCalculationMode": "month-days",
"sandwichLeaves": true
},
"type": "hourly",
"ctc": 0,
"gross": 0,
"net": 0,
"currency": {
"name": "string",
"symbol": "string"
},
"components": [
{
"name": "string",
"code": "BASIC",
"type": "EARNINGS",
"isTaxable": true,
"isAttendanceBased": true,
"isIncludedInCTC": true,
"isActive": true,
"_id": "string",
"value": {
"amount": 0,
"currency": {
"name": "string",
"symbol": "string"
}
},
"formula": "string",
"custom": true,
"salaryComponentId": "string",
"amount": 0
}
]
},
"designation": "string",
"role": "string",
"supervisor": {},
"leavePolicies": [
{
"id": "string",
"name": "string",
"leaves": [
{
"type": "string",
"probationPeriod": 0,
"noOfLeaves": 0,
"monthlyLimit": 0
}
]
}
],
"spendPolicies": [
{
"id": "string",
"title": "string"
}
]
}
]
}
],
"miscFiles": [
"string"
],
"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"
}
},
"paidDate": "2019-08-24T14:15:22Z",
"taxPerItem": true,
"discountPerItem": true,
"error": [
{
"code": "string",
"title": "string",
"dateTime": "2019-08-24T14:15:22Z"
}
]
},
"message": "string"
}