Retrieve a purchase orders by id
GET
/rest/v1/purchaseorders/{id}
Request
Authorization
Add parameter in header
api-key
Example:
api-key: ********************
Path Params
id
string
required
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://api.logictrade.cloud/rest/v1/purchaseorders/' \
--header 'api-key;'
Responses
🟢200OK
application/json
Body
id
integer
read-onlyrequired
number
string
optional
reference
string
optional
date
string <date>
The date of the order
status
string
read-onlyoptional
supplier
object
optional
id
integer
read-onlyrequired
number
string
read-onlyoptional
companyName
string
required
phoneNumber
string
optional
mobileNumber
string
optional
email
string
optional
remark
string
optional
leadTimeInWeeks
integer
optional
address
object
optional
ibanNumber
string
optional
bicCode
string
optional
cocNumber
string
optional
modifiedDate
string <date-time>
optional
createdDate
string <date-time>
optional
origin
object
optional
id
integer
optional
code
string
optional
description
string
optional
comment
object
optional
intern
string
optional
extern
string
optional
lines
array [object {13}]
required
id
integer
read-onlyrequired
lineNumber
integer
optional
code
string
optional
description
string
optional
customerReference
string
optional
quantity
number <double>
optional
partPrice
number <double>
optional
discount
number <double>
optional
linePrice
number <double>
read-onlyoptional
comment
object
optional
configuration
object
optional
confirmation
object
optional
delivery
object
optional
totalPrice
number <double>
read-onlyoptional
modifiedDate
string <date-time>
optional
createdDate
string <date-time>
optional
Example
{
"id": 0,
"number": "string",
"reference": "string",
"date": "2019-08-24",
"status": "string",
"supplier": {
"id": 0,
"number": "string",
"companyName": "string",
"phoneNumber": "string",
"mobileNumber": "string",
"email": "string",
"remark": "string",
"leadTimeInWeeks": 0,
"address": {
"name": "string",
"street": "string",
"houseNumber": "string",
"zipCode": "string",
"city": "string",
"country": "string",
"phoneNumber": "string"
},
"ibanNumber": "string",
"bicCode": "string",
"cocNumber": "string",
"modifiedDate": "2019-08-24T14:15:22Z",
"createdDate": "2019-08-24T14:15:22Z"
},
"origin": {
"id": 0,
"code": "string",
"description": "string"
},
"comment": {
"intern": "string",
"extern": "string"
},
"lines": [
{
"id": 0,
"lineNumber": 0,
"code": "string",
"description": "string",
"customerReference": "string",
"quantity": 0,
"partPrice": 0,
"discount": 0,
"linePrice": 0,
"comment": {
"intern": "string",
"extern": "string"
},
"configuration": {
"id": 0,
"items": [
{
"option": "string",
"optionBarcode": "string",
"optionCode": "string",
"value": "string",
"valueBarcode": "string",
"valueCode": "string"
}
]
},
"confirmation": {
"confirmed": true,
"date": "2019-08-24",
"number": "string"
},
"delivery": {
"expectedDate": "string",
"confirmedDeliveryDate": "2019-08-24T14:15:22Z"
}
}
],
"totalPrice": 0,
"modifiedDate": "2019-08-24T14:15:22Z",
"createdDate": "2019-08-24T14:15:22Z"
}
🟠403Forbidden
🟠404Record Not Found
Modified at 2024-07-30 06:28:16