LogicTrade API
  1. Quote
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
        GET
      • Retrieve a quote by id
        GET
      • Create a quote
        POST
      • Update a quote
        PUT
    • 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
      • Retrieve a purchase orders by id
      • Create a purchase order
      • Update a purchase order
  1. Quote

Create a quote

POST
/v1/quotes
Create a new quote in LogicTrade.

Request

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

Body Params application/json

Example
{
  "reference": "Nieuwe barkrukken voor de keuken",
  "date": "2024-04-08T02:50:37.189Z",
  "salesManUserName": "LogicTrade",
  "origin": {
    "code": "DOR"
  },
  "customer": {
    "gender": "Man",
    "title": "Dhr.",
    "initials": "J.",
    "firstName": "Jan",
    "lastName": "Jansen3343",
    "mobileNumber": "06-12345678",
    "email": "jan@jansen.com",
    "remark": "Niet beschikbaar op maandag en dinsdag!",
    "address": {
      "street": "Wethouder Buitenhuisstraat",
      "houseNumber": "2B",
      "zipCode": "7951 SM",
      "city": "Staphorst",
      "country": "NL"
    }
  },
  "delivery": {
    "type": "BM",
    "expectedDate": "2024-04-07T15:29:41.727Z",
    "address": {
      "street": "Wethouder Buitenhuisstraat",
      "houseNumber": "2B",
      "zipCode": "7951 SM",
      "city": "Staphorst",
      "country": "NL"
    }
  },
  "comment": {
    "intern": "Korting ivm voorjaar's actie",
    "extern": "Graag vooraf even bellen"
  },
  "lines": [
    {
      "lineNumber": 10,
      "code": "LT00000047",
      "description": "Barkruk 't Westert",
      "quantity": 6,
      "partPrice": 175.90,
      "discount": 0.10,
      "comment": {
        "intern": "Bij vervoeren de pootjes verwijderdern.",
        "extern": "Bij afleveren de pootjes weer bevestigigen."
      }
    }
  ]
}

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/v1/quotes?allowUnknownProducts=false&allowUnknownCustomer=false' \
--header 'Content-Type: application/json' \
--header 'api-key;' \
--data-raw '{
  "reference": "Nieuwe barkrukken voor de keuken",
  "date": "2024-04-08T02:50:37.189Z",
  "salesManUserName": "LogicTrade",
  "origin": {
    "code": "DOR"
  },
  "customer": {
    "gender": "Man",
    "title": "Dhr.",
    "initials": "J.",
    "firstName": "Jan",
    "lastName": "Jansen3343",
    "mobileNumber": "06-12345678",
    "email": "jan@jansen.com",
    "remark": "Niet beschikbaar op maandag en dinsdag!",
    "address": {
      "street": "Wethouder Buitenhuisstraat",
      "houseNumber": "2B",
      "zipCode": "7951 SM",
      "city": "Staphorst",
      "country": "NL"
    }
  },
  "delivery": {
    "type": "BM",
    "expectedDate": "2024-04-07T15:29:41.727Z",
    "address": {
      "street": "Wethouder Buitenhuisstraat",
      "houseNumber": "2B",
      "zipCode": "7951 SM",
      "city": "Staphorst",
      "country": "NL"
    }
  },
  "comment": {
    "intern": "Korting ivm voorjaar'\''s actie",
    "extern": "Graag vooraf even bellen"
  },
  "lines": [
    {
      "lineNumber": 10,
      "code": "LT00000047",
      "description": "Barkruk '\''t Westert",
      "quantity": 6,
      "partPrice": 175.90,
      "discount": 0.10,
      "comment": {
        "intern": "Bij vervoeren de pootjes verwijderdern.",
        "extern": "Bij afleveren de pootjes weer bevestigigen."
      }
    }
  ]
}'

Responses

🟢200Success
application/json
Body

Example
{
    "id": 6,
    "number": "O24000001",
    "reference": "",
    "salesMan": "LogicTrade",
    "date": "2024-04-12T14:12:47.33",
    "status": "Niet definitief",
    "totalAmount": 123,
    "customer": {
        "id": 14,
        "number": "R000000009",
        "gender": "Man",
        "title": "Dhr.",
        "initials": "J.",
        "firstName": "Jan",
        "infix": "",
        "lastName": "Jansen",
        "companyName": "",
        "phoneNumber": "",
        "mobileNumber": "06-12345678",
        "email": "jan@jansen.com",
        "remark": "",
        "address": {
            "street": "Weth. Buitenhuisstraat",
            "houseNumber": "2b",
            "zipCode": "7951 SM",
            "city": "Staphorst",
            "country": "NL"
        }
    },
    "delivery": {
        "type": "Bezorgen+montage",
        "expectedDate": "2024-05-05T00:00:00",
        "address": {
            "street": "Weth. Buitenhuisstraat",
            "houseNumber": "2b",
            "zipCode": "7951 SM",
            "city": "Staphorst",
            "country": "NL"
        }
    },
    "origin": {
        "code": "STA",
        "description": "Staphorst"
    },
    "comment": {
        "intern": "",
        "extern": ""
    },
    "lines": [
        {
            "id": 4,
            "lineNumber": 10,
            "code": "LT00000047",
            "description": "Verlichting",
            "quantity": 1,
            "partPrice": 123,
            "discount": 0,
            "linePrice": 123,
            "vat": 21,
            "comment": {
                "intern": "",
                "extern": ""
            }
        }
    ]
}
🟠403Forbidden
🟠400Bad Request
Modified at 2025-05-21 13:25:28
Previous
Retrieve a quote by id
Next
Update a quote