Authorization: Bearer ********************
curl --location --request GET 'https://api.upbooks.io/api/v1/purchase-order/' \
--header 'ORGANIZATION-ID: 00000'
{
"data": {
"createdAt": "2019-08-24T14:15:22Z",
"updatedAt": "2019-08-24T14:15:22Z",
"__v": 0,
"_id": "string",
"organizationId": "string",
"poNumber": "string",
"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
}
]
}
},
"poDate": "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
}
],
"expenseId": "string",
"status": "draft",
"poFile": "string",
"isDeleted": true,
"taxPerItem": true,
"discountPerItem": true
},
"message": "string"
}