Bilanc Public Rest API Documentation
Item Public Rest API
Title | Show All Items |
---|---|
URL | /public/items |
Method | GET |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | NONE |
Data Params | NONE |
Success Response | Example:
Code: 200 Content: [ { "id": 22433, "code": "SHP03095", "code2": "SHP03095", "code3": "", "description": "01 AUREA VERE E BARDHE", "longDescription": "", "minimumBalance": 0, "itemType": 1, "createDate": "31/12/2013", "lastUpdateDate": "13/03/2018", "deleted": false, "purchasePrice": 130, "purchaseDiscount": 0, "salesDiscount": 0, "active": true, "unit2Coeficient": 0, "activeForPurchase": true, "depreciationMethod": -1, "depreciationCoeficient": 0, "netWeight": 0, "grossWeight": 0, "customsCountryOfOrigin": "", "customsCode": "", "volume": 0, "excludedFromSalesDiscount": false, "customsTaxPercentage": 0, "userID": 70, "groupID": 343, "subGroupID": 344, "defaultSupplierID": 3083, "itemClassifier1ID": 207, "itemClassifier2ID": 713, "itemClassifier3ID": 202, "itemClassifier4ID": 652, "itemClassifier5ID": 773, "VATTypeID": 1, "unitID": 20, "unit2ID": -1, "accountingSchemeID": 1 } ] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Item Group Public Rest API
Title | Show All Item Groups |
---|---|
URL | /public/items/groups |
Method | GET |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | NONE |
Data Params | NONE |
Success Response | Example:
Code: 200 Content: [ { "id": 343, "code": "MAPO", "description": "MAPO", "VAT": 0, "parentID": -1, "deleted": false, "createDate": "07/08/2013", "lastUpdateDate": "07/08/2013" } ] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Item SubGroup Public Rest API
Title | Show All Item SubGroups By ItemGroupID |
---|---|
URL | /public/items/groups/subgroups |
Method | GET |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | Required:
parentID=[integer] |
Data Params | NONE |
Success Response | Example:
Request: /public/items/groups/subgroups?parentID=394 Code: 200 Content: [ { "id": 460, "code": "ALCOHOLIC", "description": "ALCOHOLIC", "VAT": 0, "parentID": 394, "deleted": false, "createDate": "31/12/2013", "lastUpdateDate": "31/12/2013" }, { "id": 542, "code": "BEER", "description": "BEER", "VAT": 0, "parentID": 394, "deleted": false, "createDate": "04/09/2015", "lastUpdateDate": "04/09/2015" } ] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Item Classifier Public Rest API
Title | Show All Item Classifiers |
---|---|
URL | /public/items/classifiers |
Method | GET |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | NONE |
Data Params | NONE |
Success Response | Example:
Code: 200 Content: [ { "id": 342, "code": "BRANCA", "description": "BRANCA", "classifierType": 2, "userID": 70, "createDate": "31/12/2013", "lastUpdateDate": "31/12/2013", "deleted": false } ] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Item Unit Public Rest API
Title | Show All Item Units |
---|---|
URL | /public/items/units |
Method | GET |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | NONE |
Data Params | NONE |
Success Response | Example:
Code: 200 Content: [ { "id": 15, "code": "KG", "description": "KG", "userID": 70, "createDate": "29/11/2004", "lastUpdateDate": "29/11/2004", "deleted": false } ] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Unpaid Sales Document Headers Public Rest API
Title | Show All Unpaid Sales Document Headers |
---|---|
URL | /public/documents/sales/headers/unpaid/ |
Method | GET |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | NONE |
Data Params | NONE |
Success Response | Example:
Code: 200 Content: [ { "id": 53637, "documentNumber": "72296", "description": "FATURE PER RRUMBULLAKOSJE ARKA ", "total": 8333.3333, "documentDate": "03/01/2016", "declarationDate": "03/01/2016", "dueDate": "08/07/2016", "generateInventoryDoc": true, "withVAT": true, "downPayment": false, "serialNumber": "", "amountPaid": 5.688028000000581, "totalWithVAT": 9999.99996, "totalDiscount": 0, "rate": 1, "paymentStatus": "Faturë e Paguar Pjesërisht", "generatedSourceID": -1, "officialClassificationID": -1, "createDate": "08/07/2016", "lastUpdateDate": "16/09/2016", "deleted": false, "userID": 1028, "hasChildren": false, "docTypeID": 4, "fiscalRegisterMode": 3, "exportSerialNumber": "", "transportType": 0, "transportNotes": "", "transportTime": "", "notes": "", "salesOfferID": -1, "salesOrderID": -1, "salesAgentID": -1, "agentCommission": 0, "currencyID": 7, "clientID": 25958, "serviceUnitID": 129, "transporterID": -1 } ] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Service Units Public Rest API
Title | Show All Service Units |
---|---|
URL | /public/serviceunits/ |
Method | GET |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | NONE |
Data Params | NONE |
Success Response | Example:
Code: 200 Content: [ { "id": 136, "code": "MAG TIRANA 2016", "description": "MAG TIRANA 2016", "active": true, "address": "", "contact": "", "mobile": "", "phone": "", "email": "", "niptSekondar": "", "notes": "", "createDate": "28/03/2016", "lastUpdateDate": "28/03/2016", "deleted": false, "customsDepot": false, "typeID": 0, "userID": 921, "cityID": -1, "defaultCostCenter1ID": -1, "defaultCostCenter2ID": -1 } ] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Sales Agents Public Rest API
Title | Show All Sales Agents |
---|---|
URL | /public/salesagents/ |
Method | GET |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | NONE |
Data Params | NONE |
Success Response | Example:
Code: 200 Content: [ { "id": 1182, "description": "SARDIAN MEZANI", "address": "ARTUR BIBO", "phone": "", "mobile": "", "email": "", "commission": 0, "active": false, "hasSpecificItems": false, "hasSpecificClients": false, "createDate": "02/02/2017", "lastUpdateDate": "21/03/2017", "deleted": false, "userID": 2084, "salesAgentUserID": 2109 } ] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Cash Units Public Rest API
Title | Show All Cash Units |
---|---|
URL | /public/cashunits/ |
Method | GET |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | NONE |
Data Params | NONE |
Success Response | Example:
Code: 200 Content: [ { "id": 80, "code": "ARKA 1", "description": "", "contact": "", "active": true, "createDate": "17/10/2017", "lastUpdateDate": "17/10/2017", "deleted": false, "userID": 2134, "cityID": -1, "accountID": 42713, "currencyID": 7, "DefaultCostCenter1ID": -1, "DefaultCostCenter2ID": -1 } ] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Sales Types Public Rest API
Title | Show All Sales Type |
---|---|
URL | /public/salestypes/ |
Method | GET |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | NONE |
Data Params | NONE |
Success Response | Example:
Code: 200 Content: [ { "id": 69, "salesType": "SHUMICE", "createDate": "24/06/2013", "lastUpdateDate": "24/06/2013", "deleted": false, "userID": 947, "currencyID": 7 } ] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Items Sales Price Public Rest API
Title | Show All Items Sales Price By Sales Type ID |
---|---|
URL | /public/items/prices |
Method | GET |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | Required:
salesTypeID=[integer] |
Data Params | NONE |
Success Response | Example:
Request: /public/items/prices?salesTypeID=70 Code: 200 Content: [ { "itemID": 32949, "price": 65.04 }, { "itemID": 32950, "price": 335.39 }, { "itemID": 32951, "price": 0 } ] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Save Sales Document Public Rest API
Title | Save Sales Document |
---|---|
URL | /public/documents/sales |
Method | PUT |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | NONE |
Data Params |
{ "header":{ "id":-1, "documentNumber":"24", "description":"test", "documentDate":"16/03/2018", "declarationDate":"16/03/2018", "dueDate":"16/03/2018", "withVAT":true, "serialNumber":"", "rate":1, "currencyID":7, "serviceUnitID":140, "salesAgentID":140, "agentCommission":0, "transporterID":140, "clientID":30998 }, "body":[ {"id":1113195, "price":350.8666666666667, "quantity":1, "VATCoeficient":0.19999999999999998, "discountPercentage":0, "itemID":22433, "vatTypeClassifierID":1 } ] } |
Success Response | Example:
Request: /public/documents/sales Code: 200 Content: [ { "header": { "id": 216328, "documentNumber": "24", "description": "test", "total": 350.8666666666667, "documentDate": "16/03/2018", "declarationDate": "16/03/2018", "dueDate": "16/03/2018", "generateInventoryDoc": true, "withVAT": true, "downPayment": false, "serialNumber": "", "amountPaid": 0, "totalWithVAT": 421.04, "totalDiscount": 0, "rate": 1, "paymentStatus": "Faturë e Papaguar", "generatedSourceID": -1, "officialClassificationID": -1, "createDate": "16/03/2018", "lastUpdateDate": "16/03/2018", "deleted": false, "userID": 70, "hasChildren": false, "docTypeID": 4, "fiscalRegisterMode": 3, "exportSerialNumber": "", "transportType": 0, "transportNotes": "", "transportTime": "", "notes": "", "salesOfferID": -1, "salesOrderID": -1, "agentCommission": 0, "currencyID": 7, "clientID": 30998, "serviceUnitID": 140, "transporterID": -1, "salesAgentID": 140 }, "body": [ { "id": 1113196, "price": 350.8666666666667, "quantity": 1, "VATCoeficient": 0.19999999999999998, "discountPercentage": 0, "itemID": 22433, "vatTypeClassifierID": 1 } ] } ] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ Code:501 [ { "date": "16/03/2018", "item": { "id": 22433, "code": "SHP03095", "code2": "SHP03095", "code3": "", "description": "01 AUREA VERE E BARDHE", "longDescription": "", "minimumBalance": 0, "itemType": 1, "createDate": "31/12/2013", "lastUpdateDate": "13/03/2018", "deleted": false, "purchasePrice": 130, "purchaseDiscount": 0, "salesDiscount": 0, "active": true, "unit2Coeficient": 0, "activeForPurchase": true, "depreciationMethod": -1, "depreciationCoeficient": 0, "netWeight": 0, "grossWeight": 0, "customsCountryOfOrigin": "", "customsCode": "", "volume": 0, "excludedFromSalesDiscount": false, "customsTaxPercentage": 0, "userID": 70, "groupID": 343, "subGroupID": 344, "defaultSupplierID": 3083, "itemClassifier1ID": 207, "itemClassifier2ID": 713, "itemClassifier3ID": 202, "itemClassifier4ID": 652, "itemClassifier5ID": 773, "VATTypeID": 1, "unitID": 20, "unit2ID": -1, "accountingSchemeID": 1 }, "quantity": -99821 } ] OR Code:409 Content: ‘Exception message’ |
Notes |
Items Inventory Public Rest API
Title | Show All Items Inventory By Service Unit |
---|---|
URL | /public/items/inventories |
Method | GET |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | Required:
serviceUnitID=[integer] |
Data Params | NONE |
Success Response | Example:
Request: /public/items/inventories?serviceUnitID=139 Code: 200 Content: [ { "itemID": 28619, "inventory": 1 }, { "itemID": 34063, "inventory": 2 } ] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Receive Payment Document Public Rest API
Title | Save Receive Payment Document |
---|---|
URL | /public/documents/receivepayment |
Method | PUT |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | NONE |
Data Params |
{ "clientID":26117, "header": { "id":-1, "description":"test Rest", "amount":120, "exchangeRate":1, "documentDate":"19/03/2018", "cashUnitID":65 }, "body": [ { "amountPaid":120, "exchangeRate":1, "invoiceID":216334, "invoiceType":4, "docID":-1, "partnerAccountID":31137, "currencyID":7 } ] } |
Success Response | Example:
Request: /public/documents/receivepayment Code: 200 Content: 1 |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Get Clients Public Rest API
Title | Show All Clients |
---|---|
URL | /public/clients |
Method | GET |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | NONE |
Data Params | NONE |
Success Response | Example:
Code: 200 Content: [ { "id": 7259, "code": "", "nipt": "3213123123", "debtLimit": 0, "discountPercentage": 0, "salesTypeID": 35, "phone": "", "mobile": "345345345", "contactPerson": "", "notes": "Pocket-PC : ", "fiscalVATNo": "", "fiscalBusinessNo": "", "bankAccount1": "", "bankAccount2": "", "bankAccount3": "", "paymentPeriodInDays": 0, "isBlockSalesOnMaturityPeriodActive": false, "accountID": 13070, "cityID": 2, "address": "", "deleted": false, "isActive": true, "name": "Aasdasdasdad", "email": "", "sex": -1, "education": -1, "latitude": 0, "longitude": 0, "zoneID": -1, "subZoneID": -1, "salesAgentID": 3, "transporterID": 5, "isBirthdaySet": false, "preferredPaymentType": -1, "salesDiscountTypeID": 0, "birthDay": "", "clientClassifier1ID": -1, "clientClassifier2ID": -1, "clientClassifier3ID": -1, "clientClassifier4ID": -1, "clientClassifier5ID": -1, "clientClassifier6ID": -1, "userID": 70, "createDate": "05/03/2018", "lastUpdateDate": "05/03/2018" } ] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Save Client Public Rest API
Title | Save Client |
---|---|
URL | /public/clients |
Method | PUT |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | NONE |
Data Params |
{ "id": -1, "code": "", "nipt": "", "debtLimit": 0, "discountPercentage": 0, "salesTypeID": 35, "phone": "", "mobile": "", "contactPerson": "", "notes": "", "fiscalVATNo": "", "fiscalBusinessNo": "", "bankAccount1": "", "bankAccount2": "", "bankAccount3": "", "paymentPeriodInDays": 0, "isBlockSalesOnMaturityPeriodActive": false, "cityID": 2, "address": "", "deleted": false, "isActive": true, "name": "111111222222222", "email": "", "sex": -1, "education": -1, "latitude": 0, "longitude": 0, "zoneID": -1, "subZoneID": -1, "salesAgentID": -1, "transporterID": -1, "isBirthdaySet": false, "preferredPaymentType": -1, "salesDiscountTypeID": 0, "birthDay": "", "clientClassifier1ID": -1, "clientClassifier2ID": -1, "clientClassifier3ID": -1, "clientClassifier4ID": -1, "clientClassifier5ID": -1, "clientClassifier6ID": -1, "userID": 70, "createDate": "20/03/2018", "lastUpdateDate": "20/03/2018" } |
Success Response | Example:
Code: 200 Content: [ClientID Created] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Update Client Public Rest API
Title | Update Client |
---|---|
URL | /public/clients |
Method | POST |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | NONE |
Data Params |
{ "id": 8263, "code": "", "nipt": "", "debtLimit": 0, "discountPercentage": 0, "salesTypeID": 35, "phone": "", "mobile": "", "contactPerson": "", "notes": "", "fiscalVATNo": "", "fiscalBusinessNo": "", "bankAccount1": "", "bankAccount2": "", "bankAccount3": "", "paymentPeriodInDays": 0, "isBlockSalesOnMaturityPeriodActive": false, "cityID": 2, "address": "", "deleted": false, "isActive": true, "name": "1111112222222223333333333", "email": "", "sex": -1, "education": -1, "latitude": 0, "longitude": 0, "zoneID": -1, "subZoneID": -1, "salesAgentID": -1, "transporterID": -1, "isBirthdaySet": false, "preferredPaymentType": -1, "salesDiscountTypeID": 0, "birthDay": "", "clientClassifier1ID": -1, "clientClassifier2ID": -1, "clientClassifier3ID": -1, "clientClassifier4ID": -1, "clientClassifier5ID": -1, "clientClassifier6ID": -1, "userID": 70, "createDate": "20/03/2018", "lastUpdateDate": "20/03/2018" } |
Success Response | Example:
Code: 200 Content: [Updated OK] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Delete Client Public Rest API
Title | Delete Client |
---|---|
URL | /public/clients/8263 |
Method | Delete |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | Required:
clientID=[integer] |
Data Params | NONE |
Success Response | Example:
Code: 200 Content: [Delete OK] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Get ClientRecords Public Rest API
Title | Get ClientRecords |
---|---|
URL | /public/clients/getClientRecords?clientID=119&startDate=01/01/2018&endDate=01/02/2018 |
Method | GET |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | Required:
clientID=[integer] startDate=[string] format(dd/MM/yyyy) endDate=[string] format(dd/MM/yyyy) |
Data Params | NONE |
Success Response | Example:
Code: 200 Content: [ { "situationBefore": 24338, "situationAfter": 79512.41, "clientRecords": [ { "docTypeCode": "FS", "docNumber": "5/318*POS*", "docDate": "04/01/2018", "serviceUnitGeneric": "Mag", "debtOnDefaultCurrency": 110, "creditOnDefaultCurrency": 0 }, { "docTypeCode": "FS", "docNumber": "5/319*POS*", "docDate": "04/01/2018", "serviceUnitGeneric": "Mag", "debtOnDefaultCurrency": 110, "creditOnDefaultCurrency": 0 } } ] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Save Sales Order Document Public Rest API
Title | Save Sales Order Document |
---|---|
URL | /public/documents/salesorder |
Method | PUT |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | NONE |
Data Params |
{ "header":{ "id":-1, "documentNumber":"24", "description":"test", "documentDate":"18/03/2018", "deliveryDate":"18/03/2018", "deliveryTime":"00:00", "orderStatus" : 1, "withVAT":true, "rate":1, "currencyID":7, "serviceUnitID":15, "salesAgentID":140, "agentCommission":0, "transporterID":140, "clientID":4 }, "body":[ {"id":1113195, "price":350.8666666666667, "quantity":1, "VATCoeficient":0.19999999999999998, "discountPercentage":0, "itemID":4, "vatTypeClassifierID":1 } ] } |
Success Response | Example:
Request: /public/documents/sales Code: 200 Content: [ { "header": { "id": 1125, "documentNumber": "24", "description": "test", "total": 350.8666666666667, "documentDate": "18/03/2018", "deliveryDate": "27/03/2019", "deliveryTime": "00:00", "withVAT": true, "totalWithVAT": 0, "rate": 1, "orderStatus": 1, "createDate": "27/03/2019", "lastUpdateDate": "27/03/2019", "deleted": false, "userID": 70, "hasChildren": false, "docTypeID": 74, "transportType": 0, "transportNotes": "", "notes": "", "offerID": -1, "agentCommission": 0, "currencyID": 7, "clientID": 4, "serviceUnitID": 15, "transporterID": -1, "salesAgentID": -1 }, "body": [ { "id": 1847, "price": 350.8666666666667, "quantity": 1, "VATCoeficient": 0.19999999999999998, "discountPercentage": 0, "itemID": 4, "vatTypeClassifierID": 1 } ] } ] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Items Inventory By Service Unit Public Rest API
Title | Show Items Inventory Situation By Service Unit |
---|---|
URL | /public/items/inventories/{} |
Method | GET |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | NONE |
Data Params |
{ "id" = "21", "code" = "BRUSHE DHEMBESH COLGATE", "serviceUnitID" = "3" } |
Success Response | Example:
Request: /public/items/inventories/{id=21, serviceUnitID=3} Code: 200 Content:[ { "itemID": 21, "itemCode": "BRUSHE DHEMBESH COLGATE", "serviceUnitID": 3, "serviceUnitCode": "MAGAZINA", "situation": 219 } ] |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |
Save Purchase Order Document Public Rest API
Title | Save Purchase Order Document |
---|---|
URL | /public/documents/purchaseorder |
Method | PUT |
Required Authorization | Yes |
Header Params | Authorization
Example: Authorization = ‘y8AgQDAFFqo=’ |
URL Params | NONE |
Data Params |
{ "header":{ "id":4000, "documentNumber":"342", "notes":"From Purchase Order Public REST API", "description":"Test Rest API", "documentDate":"01/07/2019", "withVAT":true, "serialNumber":"", "rate":1, "currencyID":9, "serviceUnitID":3, "supplierID":1, "orderStatus":0 }, "body":[ {"id":1113195, "price":350.8666666666667, "quantity":1, "VATCoeficient":0.19999999999999998, "discountPercentage":0, "itemID":4, "vatTypeClassifierID":1, "notes":"" } ] } |
Success Response | Example:
Request: /public/documents/purchaseorder Code: 200 Content: { "header": { "id": 1026, "documentNumber": "342", "description": "Test Rest API", "total": 350.8666666666667, "documentDate": "01/07/2019", "withVAT": true, "totalWithVAT": 421.04, "rate": 1, "orderStatus": 0, "createDate": "01/07/2019", "lastUpdateDate": "01/07/2019", "deleted": false, "userID": 70, "hasChildren": false, "docTypeID": 66, "notes": "From Purchase Order Public REST API", "currencyID": 9, "supplierID": 1, "serviceUnitID": 3 }, "body": [ { "id": 1113195, "price": 350.8666666666667, "quantity": 1, "VATCoeficient": 0.19999999999999998, "discountPercentage": 0, "notes": "", "itemID": 4, "vatTypeClassifierID": 1 } ] } |
Error Response | Example:
Code:401 Content: ‘UNAUTHORIZED’ OR Code:409 Content: ‘Exception message’ |
Notes |