Authorization: Bearer ********************
curl --location --request PATCH 'https://api.upbooks.io/api/v1/debit-note//cancel' \
--header 'ORGANIZATION-ID: 00000'
{
"data": {
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"__v": 0,
"_id": "string",
"organizationId": "string",
"debitNoteNumber": "string",
"expenses": [
{
"id": "string",
"date": "2019-08-24T14:15:22Z",
"expenseNumber": "string",
"purchaseOrderNumber": "string",
"amount": 0,
"type": "string",
"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
}
]
}
],
"vendor": {
"id": "string",
"name": "string",
"address": {
"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"
}
],
"tax": {
"taxTreatment": "GST",
"taxNumber": "string",
"taxes": [
{
"id": "string",
"name": "string",
"percentage": 0
}
]
}
},
"referenceNumber": "string",
"date": "2019-08-24T14:15:22Z",
"dateTime": "2019-08-24T14:15:22Z",
"debitNoteFile": "string",
"debitNoteStaticFile": "string",
"status": "draft",
"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
},
"finalAmount": 0,
"totalAmount": 0,
"taxAmount": 0,
"terms": "string",
"notes": "string",
"notification": [
{
"type": "string",
"mode": "string",
"sentOn": "2019-08-24T14:15:22Z",
"to": "string",
"cc": [
"string"
],
"bcc": [
"string"
],
"subject": "string"
}
],
"taxes": [
{
"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"
]
}
],
"taxPerItem": true,
"discountPerItem": true,
"taxSummary": true,
"error": [
{
"code": "string",
"title": "string",
"dateTime": "2019-08-24T14:15:22Z"
}
]
},
"message": "string"
}