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

Create a purchase order

POST
/rest/v1/purchaseorders
Create a new purchase orders in LogicTrade.

Request

Authorization
Add parameter in header
api-key
Example:
api-key: ********************
Body Params application/json

Example
{
    "reference": "Spoed bestelling",
    "date": "2024-04-12T09:17:38.757",
    "status": "Niet verzonden",
    "supplier": {
        "companyName": "ModernDesign Meubels",
        "phoneNumber": "030-1234567",
        "email": "info@moderndesignmeubels.nl",
        "remark": "Voor 16 uur bestellen!",
        "ibanNumber": "NL91ABNA0417164300",
        "bicCode": "",
        "cocNumber": "12345678",
        "address": {
            "street": "Meubelstraat",
            "houseNumber": "12",
            "zipCode": "1234 EK",
            "city": "Utrecht",
            "country": "NL"
        }
    },
    "origin": {
        "code": "WIN",
        "description": "Winkel"
    },
    "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"
            }
        }
    ]
}

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 POST '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",
    "supplier": {
        "companyName": "ModernDesign Meubels",
        "phoneNumber": "030-1234567",
        "email": "info@moderndesignmeubels.nl",
        "remark": "Voor 16 uur bestellen!",
        "ibanNumber": "NL91ABNA0417164300",
        "bicCode": "",
        "cocNumber": "12345678",
        "address": {
            "street": "Meubelstraat",
            "houseNumber": "12",
            "zipCode": "1234 EK",
            "city": "Utrecht",
            "country": "NL"
        }
    },
    "origin": {
        "code": "WIN",
        "description": "Winkel"
    },
    "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"
            }
        }
    ]
}'

Responses

🟢200Success
application/json
Body

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,
        "orderQuantityMultiple": 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
🟠400Bad Request
Modified at 2024-07-30 06:28:21
Previous
Retrieve a purchase orders by id
Next
Update a purchase order