LogicTrade API
  1. Purchase order
LogicTrade API
  • Authentication
  • Pagination
  • Rate limits
  • Error codes
  • Changelog
  • Configuration Service
  • Endpoints
    • Authentication
      • Introspection
    • Customer
      • List all customers
      • Retrieve a customer by id
      • Create a customer
      • Update a customer
      • Remove the customer
    • Supplier
      • List all suppliers
      • Retrieve a supplier by id
      • Create a supplier
      • Update a supplier
      • Remove the supplier
    • Product
      • Product
        • List all products
        • Retrieve a product by id
        • Create a product
        • Remove the products
        • Update a product
        • Search products
      • Groups
        • List all product groups
      • Discount
        • List all discounts for products
        • Get all discounts for product by id
        • List all discounts for customers
        • Get all discounts for a customer by id
      • Stock
        • Get stock for products
        • Search stock for products
      • Prices
        • Get product prices
      • Descriptions
        • Get the descriptions for a product
      • References
        • Get the product references
      • Compositions
        • Get product compositions
    • Quote
      • List all quotes
      • Retrieve a quote by id
      • Create a quote
      • Update a quote
    • Sales order
      • List all orders
      • Retrieve an orders by id
      • Create an order
      • Update an order
    • Invoice
      • List all invoices
      • Retrieve a invoice by id
      • Create a invoice
      • Update a invoice
    • Delivery
      • Get list of orders that can be delivered
      • Update the order with delivery information
    • Purchase order
      • List all purchase orders
        GET
      • Retrieve a purchase orders by id
        GET
      • Create a purchase order
        POST
      • Update a purchase order
        PUT
  1. Purchase order

Update a purchase order

PUT
/rest/v1/purchaseorders/{id}
Change an existing purchase order.

Request

Authorization
Add parameter in header
api-key
Example:
api-key: ********************
Path Params
id
string 
required
Body Params application/json
reference
string 
optional
The reference of the purchase order.
date
string <date>
The date of the order
optional
The date when the order was created.
origin
object 
optional
The origin of the purchase order.
code
string 
optional
supplier
object 
required
The supplier for whom the order is made.
companyName
string 
optional
The supplier's company name.
phoneNumber
string 
optional
The first phone number of the supplier.
mobileNumber
string 
optional
The mobile phone number of the supplier.
email
string 
optional
The e-mail adress of the supplier
remark
string 
optional
Any customer supplier.
address
object 
optional
The address of the supplier.
ibanNumber
string 
optional
The IBAN number of the supplier
bicCode
string 
optional
The BIC/SWIFT code of the supplier
cocNumber
string 
optional
Chain of Custody Number (KvK number).
comment
object 
optional
Comments related to the order.
intern
string 
optional
The comments intended for internal use only.
extern
string 
optional
The comments intended for the supplier.
lines
array [object {10}] 
optional
lineNumber
integer 
optional
The line number of the order (this also determines the order of the order lines).
code
string 
optional
The product code for this order line.
description
string 
optional
The description of the order line.
quantity
number <double>
optional
The quantity orderd by the customer.
partPrice
number <double>
optional
The unit price of the product.
discount
number <double>
optional
The percentage discount.
comment
object 
optional
Comments related to the order line.
configuration
object 
optional
The configuration of the product chosen for the order line.
confirmation
object 
optional
The confirmation details of the purchase order line.
delivery
object 
optional
Delivery information relevant to the order.
Example
{
    "reference": "Spoed bestelling",
    "date": "2024-04-12T09:17:38.757",
    "status": "Niet verzonden",
    "comment": {
        "intern": "Bij binnenkomst de kleur goed controleren.",
        "extern": "Let op; er is een afwijkede kleur besteld."
    },
    "lines": [
        {
            "lineNumber": 10,
            "code": "LT00000001",
            "description": "Barkruk 't Westert",
            "quantity": 6.00,
            "partPrice": 95.30,
            "discount": 0.00,
            "comment": {
                "intern": "Graag in de hoek van het magazijn zetten als dit binnenkomt."
            },
            "confirmation": {
                "confirmed": true,
                "date": "2024-05-07T05:18:07.127",
                "number": "V223884212"
            },
            "delivery": {
                "expectedDate": "2024 Week - 23",
                "confirmedDeliveryDate":  "2024-08-07T05:18:07.127"
            }
        }
    ]
}

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 PUT 'https://api.logictrade.cloud/rest/v1/purchaseorders/' \
--header 'Content-Type: application/json' \
--header 'api-key;' \
--data-raw '{
    "reference": "Spoed bestelling",
    "date": "2024-04-12T09:17:38.757",
    "status": "Niet verzonden",
    "comment": {
        "intern": "Bij binnenkomst de kleur goed controleren.",
        "extern": "Let op; er is een afwijkede kleur besteld."
    },
    "lines": [
        {
            "lineNumber": 10,
            "code": "LT00000001",
            "description": "Barkruk '\''t Westert",
            "quantity": 6.00,
            "partPrice": 95.30,
            "discount": 0.00,
            "comment": {
                "intern": "Graag in de hoek van het magazijn zetten als dit binnenkomt."
            },
            "confirmation": {
                "confirmed": true,
                "date": "2024-05-07T05:18:07.127",
                "number": "V223884212"
            },
            "delivery": {
                "expectedDate": "2024 Week - 23",
                "confirmedDeliveryDate":  "2024-08-07T05:18:07.127"
            }
        }
    ]
}'

Responses

🟢200Success
application/json
Body
id
integer 
read-onlyrequired
The unique identifier of the purchase order.
number
string 
optional
The unique number with which the purchase order can be found.
reference
string 
optional
The customer reference of the purchase order.
date
string <date>
The date of the order
optional
The date when the order was created.
status
string 
read-onlyoptional
The status of the purchase order.
supplier
object 
optional
The supplier of the purchase order
id
integer 
required
The unique identifier of the supplier.
number
string 
read-onlyoptional
A unique number with which the supplier can be found.
companyName
string 
required
The supplier's company name.
phoneNumber
string 
optional
The first phone number of the supplier.
mobileNumber
string 
optional
The mobile phone number of the supplier.
email
string 
optional
The e-mail adress of the supplier
remark
string 
optional
Any customer supplier.
leadTimeInWeeks
integer 
optional
The default lead time in weeks of the supplier.
address
object 
optional
The address of the supplier.
ibanNumber
string 
optional
The IBAN number of the supplier
bicCode
string 
optional
The BIC/SWIFT code of the supplier
cocNumber
string 
optional
Chain of Custody Number (KvK number).
modifiedDate
string <date-time>
optional
The date on which the entity was last modified.
createdDate
string <date-time>
optional
The date on which the entity was created.
origin
object 
optional
The origin of the purchase order.
id
integer 
optional
The unique identifier of the origin.
code
string 
optional
description
string 
optional
comment
object 
optional
Comments related to the order.
intern
string 
optional
The comments intended for internal use only.
extern
string 
optional
The comments intended for the customer.
lines
array [object {13}] 
required
The purchase order lines.
id
integer 
read-onlyrequired
The unique identifier of the order line.
lineNumber
integer 
optional
The line number of the order (this also determines the order of the order lines).
code
string 
optional
The product code for this order line.
description
string 
optional
The description of the order line.
customerReference
string 
optional
The reference to the customer placing the order for the product.
quantity
number <double>
optional
The quantity orderd by the customer.
partPrice
number <double>
optional
The unit price of the product.
discount
number <double>
optional
The percentage discount.
linePrice
number <double>
read-onlyoptional
The linePrice of the order
comment
object 
optional
Comments related to the order line.
configuration
object 
optional
The configuration of the product chosen for the order line.
confirmation
object 
optional
The confirmation details of the purchase order line.
delivery
object 
optional
Delivery information relevant to the order.
totalPrice
number <double>
read-onlyoptional
The total amount of the purchase order (calculated field).
modifiedDate
string <date-time>
optional
The date on which the entity was last modified.
createdDate
string <date-time>
optional
The date on which the entity was created.
Example
{
    "id": 1
}
🟠403Forbidden
🟠400Bad Request
🟠404Record Not Found
Modified at 2024-07-30 06:28:26
Previous
Create a purchase order