Commerce & Payments

Commerce Layer

Commerce Layer provides transactional commerce and analytics APIs for managing orders, inventory, pricing, customers, fulfillment, and related ecommerce operations.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Create Customer

    Create one Commerce Layer customer from an email and optional external-reference metadata. Use a unique email or reference for automation. This mutation is cleanly undoable with DELETE_CUSTOMER using the returned customer ID.

  • Delete Customer

    Permanently delete one Commerce Layer customer by exact ID. This irreversible operation requires explicit confirmation and is intended only for confirmed cleanup or erasure, never bulk deletion. Never infer or enumerate customer IDs; call GET_CUSTOMER first unless deleting a fixture created in the same workflow.

  • Get Customer

    Retrieve one customer by its Commerce Layer resource ID.

  • Get Order

    Retrieve one Commerce Layer order by ID, optionally including customer, line-item, shipment, or return context.

  • Get Order Metric

    Compute one common order KPI over optional date, market, currency, and status filters using the Commerce Layer Metrics API.

  • List Customers

    Return one page of customers, optionally filtered by an exact email address.

  • List Orders

    Return one page of orders, newest first by default, for operational review and follow-up by order ID.

  • List SKUs

    Return one page of catalog SKUs for product discovery and ID lookup.

  • List Stock Items

    Return one page of stock items with inventory quantities and SKU codes when available.

  • Update Customer

    Update selected attributes of one Commerce Layer customer. Supply at least one of email, reference, or metadata; explicit null values are rejected.