Volver al catálogo

Commerce Layer

commerce_layer

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

Acciones
10
Triggers
0
Autenticación
—
OAuth gestionado
No
Información técnica: el detalle de parámetros, schemas y triggers de esta página está pensado para equipos de integración. Si solo necesitas saber si tu herramienta favorita está disponible, basta con ver la lista de acciones.

Acciones disponibles (10)

Cada acción es una operación que el agente puede ejecutar contra este conector. Haz clic en una acción para ver sus parámetros.

Create CustomerCOMMERCE_LAYER_CREATE_CUSTOMERAcción

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.

Parámetros de entrada

  • emailstringObligatorio

    Customer email address.

  • metadataobject

    Optional JSON metadata to store on the customer.

  • referencestring

    External system reference for the customer.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Delete CustomerCOMMERCE_LAYER_DELETE_CUSTOMERAcción

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.

Parámetros de entrada

  • customer_idstringObligatorio

    Exact Commerce Layer customer resource ID to permanently delete. Call GET_CUSTOMER first unless deleting a fixture created in the same workflow.

  • confirm_deletebooleanObligatorio

    Must be true to confirm this irreversible deletion. This confirmation is validated locally and is not sent to Commerce Layer.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get CustomerCOMMERCE_LAYER_GET_CUSTOMERAcción

Retrieve one customer by its Commerce Layer resource ID.

Parámetros de entrada

  • customer_idstringObligatorio

    Commerce Layer customer resource ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get OrderCOMMERCE_LAYER_GET_ORDERAcción

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

Parámetros de entrada

  • includestring[]

    Optional non-empty list of related resources to include: customer, line_items, shipments, or returns. Use only what the task needs.

  • order_idstringObligatorio

    Commerce Layer order resource ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Get Order MetricCOMMERCE_LAYER_GET_ORDER_METRICAcción

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

Parámetros de entrada

  • metricstringObligatorioenum

    KPI to compute: order_count, unique_customers, gross_revenue, net_revenue, or average_order_value.

    order_countunique_customersgross_revenuenet_revenueaverage_order_value
  • date_tostring

    Optional inclusive UTC end timestamp in YYYY-MM-DDTHH:MM:SSZ format.

  • statusesstring[]

    Optional non-empty list of order statuses: placed, approved, or cancelled.

  • date_fromstring

    Optional inclusive UTC start timestamp in YYYY-MM-DDTHH:MM:SSZ format.

  • date_fieldstringenum

    Order timestamp used by date_from and date_to: created_at, updated_at, approved_at, or placed_at.

    created_atupdated_atapproved_atplaced_at
  • market_idsstring[]

    Optional non-empty list of Commerce Layer market IDs to include.

  • currency_codesstring[]

    Optional non-empty list of three-letter ISO 4217 currency codes to include. Values are normalized to uppercase.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List CustomersCOMMERCE_LAYER_LIST_CUSTOMERSAcción

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

Parámetros de entrada

  • emailstringemail

    Exact customer email to match; omit to list customers.

  • sort_bystringenum

    Optional customer field to sort by: email, status, total_orders_count, created_at, updated_at, or reference.

    emailstatustotal_orders_countcreated_atupdated_atreference
  • page_sizeinteger

    Customers to return per page (1-25).

  • next_cursorstring

    Opaque continuation cursor returned by a previous call; omit for the first page.

  • sort_directionstringenum

    Sort direction when sort_by is set: ascending or descending.

    ascendingdescending

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List OrdersCOMMERCE_LAYER_LIST_ORDERSAcción

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

Parámetros de entrada

  • sort_bystringenum

    Order field to sort by. Choose number, status, payment_status, fulfillment_status, currency_code, total_amount_cents, placed_at, approved_at, cancelled_at, created_at, or updated_at.

    numberstatuspayment_statusfulfillment_statuscurrency_codetotal_amount_centsplaced_atapproved_atcancelled_atcreated_atupdated_at
  • page_sizeinteger

    Orders to return per page (1-25).

  • next_cursorstring

    Opaque continuation cursor returned by a previous call; omit for the first page.

  • sort_directionstringenum

    Sort direction: ascending or descending.

    ascendingdescending

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List SKUsCOMMERCE_LAYER_LIST_SKUSAcción

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

Parámetros de entrada

  • sort_bystringenum

    Optional SKU field to sort by: code, name, do_not_ship, do_not_track, created_at, updated_at, or reference.

    codenamedo_not_shipdo_not_trackcreated_atupdated_atreference
  • page_sizeinteger

    SKUs to return per page (1-25).

  • next_cursorstring

    Opaque continuation cursor returned by a previous call; omit for the first page.

  • sort_directionstringenum

    Sort direction when sort_by is set: ascending or descending.

    ascendingdescending

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

List Stock ItemsCOMMERCE_LAYER_LIST_STOCK_ITEMSAcción

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

Parámetros de entrada

  • sort_bystringenum

    Optional stock item field to sort by: quantity, created_at, updated_at, reference, or reference_origin.

    quantitycreated_atupdated_atreferencereference_origin
  • page_sizeinteger

    Stock items to return per page (1-25).

  • next_cursorstring

    Opaque continuation cursor returned by a previous call; omit for the first page.

  • sort_directionstringenum

    Sort direction when sort_by is set: ascending or descending.

    ascendingdescending

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not

Update CustomerCOMMERCE_LAYER_UPDATE_CUSTOMERAcción

Update selected attributes of one Commerce Layer customer. Only non-null fields supplied by the caller are changed. Inspect the customer first when rollback matters; restoring the captured values reverses this update.

Parámetros de entrada

  • emailstring

    Replacement email; omit to preserve the current email.

  • metadataobject

    Replacement metadata object; omit to preserve it.

  • referencestring

    Replacement external reference; omit to preserve it.

  • customer_idstringObligatorio

    Commerce Layer customer resource ID.

Parámetros de salida

  • dataanyObligatorio

    Data from the action execution

  • errorstring

    Error if any occurred during the execution of the action

  • successfulbooleanObligatorio

    Whether or not the action execution was successful or not