LogicTrade API
  1. Lines
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
      • Lines
        • Create an order line
          POST
        • Retrieve an order line by id
          GET
        • Update an order line
          PUT
        • Delete an order line
          DELETE
      • List all orders
        GET
      • Retrieve an orders by id
        GET
      • Create an order
        POST
      • Update an order
        PUT
    • 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
      • Retrieve a purchase orders by id
      • Create a purchase order
      • Update a purchase order
  1. Lines

Update an order line

PUT
/rest/v1/orders/{orderId}/lines/{lineId}
Update an existing order line.

Request

Authorization
Add parameter in header
api-key
Example:
api-key: ********************
Path Params

Body Params application/json

Example
{
    "lineNumber": 0,
    "code": "string",
    "stockStatus": "string",
    "deliveryStatus": "string",
    "invoiceStatus": "string",
    "description": "string",
    "quantity": 0,
    "partPrice": 0,
    "discount": 0,
    "comment": {
        "intern": "string",
        "extern": "string"
    },
    "configuration": {},
    "vat": {
        "id": 0,
        "code": "string",
        "percentage": 0
    }
}

Request Code 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/orders/123/lines/123' \
--header 'api-key: <api-key>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "lineNumber": 0,
    "code": "string",
    "stockStatus": "string",
    "deliveryStatus": "string",
    "invoiceStatus": "string",
    "description": "string",
    "quantity": 0,
    "partPrice": 0,
    "discount": 0,
    "comment": {
        "intern": "string",
        "extern": "string"
    },
    "configuration": {},
    "vat": {
        "id": 0,
        "code": "string",
        "percentage": 0
    }
}'

Responses

🟢200Success
application/json
Body

Example
{
    "id": 0,
    "lineNumber": 0,
    "code": "string",
    "stockStatus": "string",
    "deliveryStatus": "string",
    "invoiceStatus": "string",
    "description": "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"
            }
        ]
    },
    "vat": {
        "id": 0,
        "code": "string",
        "percentage": 0
    }
}
Modified at 2025-08-12 09:55:44
Previous
Retrieve an order line by id
Next
Delete an order line