Geeft de gegevens van een verkoopfactuur aan de hand van het factuurnummer.
http[s]://<url>:<poort>/odapi/rest/TMethods/salesInvoice/[key]/M18347/json
Geen
{
"data": {
"sales invoice": {
"number": "M18347",
"date": "20200302",
"dateString": "Vandaag",
"totalExcludingVat": 329.1,
"totalIncludingVat": 398.21,
"vat": {
"apply": false
},
"includeInContracts": false,
"showAsSales": false,
"printPrices": false,
"printSalesInfo": false,
"printImages": false,
"groupOnCodes": false,
"turnover": {
"payments": {}
},
"department": {
"index": 1,
"code": "O",
"name": "Order-Direct"
},
"employee": {
"id": 2,
"name": "Johan van de Broek"
},
"branch": {
"id": 0,
"code": "ALM",
"name": "Magazijn"
},
"relation": {
"number": "25156",
"shortName": "energy",
"homepage": "www.energyonlocation.us",
"relationship": {
"types": [
"customer"
],
"customerDepartments": [
{
"department": {
"index": 1,
"code": "O",
"name": "Order-Direct"
}
}
]
},
"currency": {
"id": 1,
"name": "EUR"
},
"language": {
"id": 1,
"code": "nl",
"name": "Nederlands"
},
"region": {
"id": 0,
"name": "geen"
},
"email": {
"html": true,
"synchronize": true,
"store": true
},
"customerPayments": {
"period": 30
},
"collectionOrders": {
"period": 14,
"type": 1,
"typeName": "Algemeen",
"signed": "20091101",
"signedString": "Zondag 1 november 2009",
"first": true
},
"priceAgreements": {
"apply": true
},
"active": true,
"columnPricesOrders": true,
"reminders": {
"sendByEmail": true,
"sendToAccountsPayable": true
},
"employee": {
"name": "Reinoud Berg"
},
"created": "20050120",
"modified": "20190108",
"addresses": [
{
"address": {
"owner": "relation",
"number": "25156",
"id": 1,
"index": 1,
"description": "Standaard adres",
"type": "office",
"name": "Energy on Location BV",
"street": "PO Box 142",
"postalCode": "4630 AA",
"city": "Zwijndrecht",
"countryCode": "NL",
"countryName": "Nederland",
"telephone": "(0592) 29 50 03",
"speedDial": "072",
"fax": "(0592) 29 50 13",
"mobile": "(06) 23 50 23 50",
"kix": "4630AA13",
"latitude": 52.0750852,
"longitude": 5.1192919
}
},
{
"address": {
"owner": "relation",
"number": "25156",
"id": 2,
"index": 2,
"description": "Factuuradres",
"type": "office",
"name": "Energy on Location BV",
"street": "PO Box 142",
"postalCode": "4630 AA",
"city": "Zwijndrecht",
"countryCode": "NL",
"countryName": "Nederland",
"telephone": "(0592) 29 50 03",
"speedDial": "072",
"fax": "(0592) 29 50 13",
"mobile": "(06) 23 50 23 50",
"kix": "4630AA13",
"latitude": 52.0750852,
"longitude": 5.1192919
}
}
]
},
"address": {
"owner": "relation",
"number": "25156",
"id": 2,
"index": 2,
"description": "Factuuradres",
"type": "office",
"name": "Energy on Location BV",
"street": "PO Box 142",
"postalCode": "4630 AA",
"city": "Zwijndrecht",
"countryCode": "NL",
"countryName": "Nederland",
"telephone": "(0592) 29 50 03",
"speedDial": "072",
"fax": "(0592) 29 50 13",
"mobile": "(06) 23 50 23 50",
"kix": "4630AA13",
"latitude": 52.0750852,
"longitude": 5.1192919
},
"attn": {
"name": "Afdeling Financiƫle Zaken"
},
"lines": [
{
"line": {
"remark": "Servicecontract: 106576"
}
},
{
"line": {
"remark": "Periode: 01-03-20 t/m 28-02-21"
}
},
{
"line": {
"id": 1,
"quantity": 1,
"product": {
"code": "100-000",
"description": "Order-Direct - Standaarduitvoering Single-user"
}
}
},
{
"line": {
"id": 2,
"quantity": 1,
"product": {
"code": "150-020",
"description": "Order-Direct - Module Machines en onderhoud"
}
}
}
]
}
}
}