LogicTrade API
  1. Customer
LogicTrade API
  • Authentication
  • Pagination
  • Rate limits
  • Error codes
  • Changelog
  • Configuration Service
  • Endpoints
    • Authentication
      • Introspection
    • Customer
      • List all customers
        GET
      • Retrieve a customer by id
        GET
      • Create a customer
        POST
      • Update a customer
        PUT
      • Remove the customer
        DELETE
    • 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
      • Retrieve a purchase orders by id
      • Create a purchase order
      • Update a purchase order
  1. Customer

Create a customer

POST
/rest/v1/customers
Create a new customer in LogicTrade.
When the company name is filled, the customer will be added as a business client. If the company name is not filled, the customer will be added as an indivual. In that case the first and last name are required.
The address object is used for both postal and visiting addresses. The country must be added based on the ISO 3166-1 alfa-2 code.
After successful creation the customer object will be returned.

Request

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

Example
{
  "gender": "male",
  "title": "Dhr.",
  "initials": "J.",
  "firstName": "Jan",
  "lastName": "Jansen",
  "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"
  }
}

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/customers' \
--header 'Content-Type: application/json' \
--header 'api-key;' \
--data-raw '{
  "gender": "male",
  "title": "Dhr.",
  "initials": "J.",
  "firstName": "Jan",
  "lastName": "Jansen",
  "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"
  }
}'

Responses

🟢200Success
application/json
Body

Example
{
    "id": 14,
    "number": "R0000016",
    "gender": "male",
    "title": "Dhr.",
    "initials": "J.",
    "firstName": "Jan",
    "lastName": "Jansen",
    "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"
    }
}
🟠403Forbidden
🟠400Bad Request
Modified at 2025-08-01 11:34:19
Previous
Retrieve a customer by id
Next
Update a customer