Endpoints

A full reference of all available BrickHatch API endpoints for catalog lookups, inventory, orders, and more.


Overview

Explore all available API endpoints for accessing BrickHatch data. These endpoints are designed for use in your applications and integrations.

Before using any endpoint, make sure you understand how requests and responses work:

Orders

Get orders

Retrieve a list of orders that your store has received.


Request

MethodPath
GET/store/orders

Parameters

Parameter NameTypeRequiredDescription
searchQuerystringNoSearch orders by keywords such as order ID, buyer details, or other relevant text
statusstring[]NoFilter orders by one or more statuses
startDatestring (date)NoReturn orders created on or after this date
endDatestring (date)NoReturn orders created on or before this date
minimumAmountnumberNoFilter orders with a total greater than or equal to this value
maximumAmountnumberNoFilter orders with a total less than or equal to this value
sortBystringNoField to sort results by
sortOrderstringNoSort direction, typically ascending or descending
offsetnumberNoPagination offset for retrieving additional results

Response

JSON

{
  "data": {
    "count": 1,
    "limit": 60,
    "orders": [
      {
        "orderId": "123456789",
        "userId": 1,
        "storeId": 1,
        "status": "pending-payment" | "processing" | "shipped" | "delivered" | "cancelled",
        "paymentIntentId": "pi_123456789",
        "total": 10000,
        "currency": "USD",
        "confirmedAt": "YYYY-MM-DD HH:MM:SS" | null,
        "processingAt": "YYYY-MM-DD HH:MM:SS" | null,
        "shippedAt": "YYYY-MM-DD HH:MM:SS" | null,
        "completedAt": "YYYY-MM-DD HH:MM:SS" | null,
        "cancelledAt": "YYYY-MM-DD HH:MM:SS" | null,
        "createdAt": "YYYY-MM-DD HH:MM:SS",
        "details": {
          "itemCount": 2,
          "feePercent": 25,
          "paymentMethod": "**** 4242",
          "couponCode": "SUMMER21" | null,
          "refundId": "re_123456789" | null,
          "cancelledBy": userId | null,
          "cancellationReason": "reason text" | null,
          "trackingNumber": "tracking number" | null,
          "shippingMethodName": "shipping method name" | null,
          "pricing": {
            "subtotal": 8000,
            "discount": 2000,
            "shipping": 4000,
          },
          "address": {
            "firstName": "John",
            "lastName": "Doe",
            "line1": "123 Main St",
            "line2": "Apt 4B",
            "city": "New York",
            "state": "NY",
            "postalCode": "10001",
            "country": "US"
          }
        }
      }
    ]
  }
}

Response

JSON

{}

Update orders

Update the details of multiple orders in a single request.


Request

MethodPath
PUT/store/orders

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Get order

Retrieve a single order by its unique identifier.


Request

MethodPath
GET/store/orders/:orderId

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Update order

Update details of an existing order.


Request

MethodPath
PUT/store/orders/:orderId

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Inventory

Get your inventory

Retrieve all items currently in your inventory.


Request

MethodPath
GET/inventory

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Create an item in the inventory

Create a new item in your inventory.


Request

MethodPath
POST/inventory

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Bulk create an item in inventory

Create multiple inventory items in a single request.


Request

MethodPath
POST/inventory/bulk

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Update an item in the inventory

Update a specific item in your inventory.


Request

MethodPath
PUT/inventory/:itemId

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Bulk update an item in the inventory

Update multiple inventory items at once.


Request

MethodPath
PUT/inventory/bulk

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Delete an item

Remove a single item from your inventory.


Request

MethodPath
DELETE/inventory/:itemId

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Bulk delete an item

Remove multiple items from your inventory in a single request.


Request

MethodPath
DELETE/inventory/bulk

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Coupons

Get coupons

Retrieve all coupons associated with your store.


Request

MethodPath
GET/coupons

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Get coupon

Retrieve a single coupon by its identifier.


Request

MethodPath
GET/coupons/:couponId

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Create coupon

Create a new coupon for your store.


Request

MethodPath
POST/coupons

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Delete coupon

Delete a coupon by its identifier.


Request

MethodPath
DELETE/coupons/:couponId

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Bulk create coupon

Create multiple coupons in a single request.


Request

MethodPath
POST/coupons/bulk

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Bulk update coupon

Update multiple coupons at once.


Request

MethodPath
PUT/coupons/bulk

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Bulk delete coupon

Delete multiple coupons in a single request.


Request

MethodPath
DELETE/coupons/bulk

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Shipping Methods

Get shipping methods

Retrieve all shipping methods configured for your store.


Request

MethodPath
GET/shipping-methods

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Get shipping method

Retrieve a specific shipping method by its identifier.


Request

MethodPath
GET/shipping-methods/:shippingMethodId

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Create shipping method

Create a new shipping method for your store.


Request

MethodPath
POST/shipping-methods

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Update shipping method

Update an existing shipping method.


Request

MethodPath
PUT/shipping-methods/:shippingMethodId

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Delete shipping method

Delete a shipping method from your store.


Request

MethodPath
DELETE/shipping-methods/:shippingMethodId

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Bulk create shipping

Create multiple shipping methods in one request.


Request

MethodPath
POST/shipping-methods/bulk

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Bulk update shipping

Update multiple shipping methods at once.


Request

MethodPath
PUT/shipping-methods/bulk

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Bulk delete shipping

Delete multiple shipping methods in a single request.


Request

MethodPath
DELETE/shipping-methods/bulk

Parameters

Parameter NameTypeRequiredDescription

Response

JSON

{}

Still need help?

Reach out to our support team, we'd love to help you.

Start selling on BrickHatch

Open your store, list your inventory, and start reaching buyers.

LEGO®, the LEGO® logo are trademarks of The LEGO Group which is not associated with BrickHatch.
BrickHatch is owned and operated by Sencorp LLC