update_order_status
Update the status of an existing order. Valid statuses: pending, processing, completed, cancelled.
get_order
Get full details of a single order including line items.
list_shipping_methods
List all available shipping methods. Call this before checkout to retrieve valid method IDs required for the checkout call.
list_billing_methods
List all available payment / billing methods. Call this before checkout to retrieve valid method IDs required for the checkout call.
preview_checkout
Preview checkout for a cart: returns calculated totals, shipping, and tax without completing the order. Use before calling checkout to show the customer the final amounts.
upsert_cart
Create or update a shopping cart. Pass a stable session_uuid to update an existing cart. Returns the cart with its ID for use in checkout. Optionally pass 'price' per line item to override the catalogue price (e.g. for customer-specific pricing or discounts).
get_cart
Retrieve the current cart contents for a session by session_uuid. Uses API filter when supported; otherwise may require multiple list calls when many carts exist.
list_carts
List all carts, optionally filtered by customer ID.
remove_cart_item
Remove a single item from a cart by cart-item ID.
checkout
Execute checkout on an existing cart and create an order. Requires a cart_id, shipping and billing address IDs, and method IDs. IMPORTANT: Before calling checkout, always fetch available shipping methods via list_shipping_methods and billing methods via list_billing_methods if the IDs are not already known. Both shipping_method_id AND billing_method_id are required for a successful checkout. Use list_customer_addresses to fetch existing addresses for a customer.
calculate_tax
Calculate tax for line items given customer context (country, region, customer_group, vat_number). Uses TaxHub rule engine. Returns tax amounts per line and total. Useful before checkout or for quotes.
list_customers
List all B2Bware customers with pagination, sorting and filtering. Valid sort fields: id, -id, _created_at, -_created_at, email, first_name.
search_customers
Search customers by name, email or customer number (partial match). Searches across email, first_name, last_name and customer_number simultaneously. For listing all customers use list_customers.
get_customer
Get full details of a single customer by ID, including their shipping and billing addresses.
create_customer
Create a new customer account in B2Bware.
update_customer
Update an existing customer account (name, phone, status, etc.).
list_customer_addresses
List all shipping and billing addresses for a customer.
create_shipping_address
Create a shipping address for a customer. Country accepts ISO-2 (e.g. "AT") or full name (e.g. "Austria") — both are normalised automatically.
create_billing_address
Create a billing address for a customer. Country accepts ISO-2 (e.g. "DE") or full name (e.g. "Germany") — both are normalised automatically.
login
Authenticate a customer with email and password. Returns a bearer token that can be used for subsequent requests.
register
Register a new customer account.