Commerce Layer
commerce_layerCommerce Layer provides transactional commerce and analytics APIs for managing orders, inventory, pricing, customers, fulfillment, and related ecommerce operations.
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ónCreate 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.
COMMERCE_LAYER_CREATE_CUSTOMERAcciónCreate 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
emailstringObligatorioCustomer email address.
metadataobjectOptional JSON metadata to store on the customer.
referencestringExternal system reference for the customer.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Delete CustomerCOMMERCE_LAYER_DELETE_CUSTOMERAcciónPermanently 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.
COMMERCE_LAYER_DELETE_CUSTOMERAcciónPermanently 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_idstringObligatorioExact Commerce Layer customer resource ID to permanently delete. Call GET_CUSTOMER first unless deleting a fixture created in the same workflow.
confirm_deletebooleanObligatorioMust be true to confirm this irreversible deletion. This confirmation is validated locally and is not sent to Commerce Layer.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get CustomerCOMMERCE_LAYER_GET_CUSTOMERAcciónRetrieve one customer by its Commerce Layer resource ID.
COMMERCE_LAYER_GET_CUSTOMERAcciónRetrieve one customer by its Commerce Layer resource ID.
Parámetros de entrada
customer_idstringObligatorioCommerce Layer customer resource ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get OrderCOMMERCE_LAYER_GET_ORDERAcciónRetrieve one Commerce Layer order by ID, optionally including customer, line-item, shipment, or return context.
COMMERCE_LAYER_GET_ORDERAcciónRetrieve 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_idstringObligatorioCommerce Layer order resource ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Get Order MetricCOMMERCE_LAYER_GET_ORDER_METRICAcciónCompute one common order KPI over optional date, market, currency, and status filters using the Commerce Layer Metrics API.
COMMERCE_LAYER_GET_ORDER_METRICAcciónCompute one common order KPI over optional date, market, currency, and status filters using the Commerce Layer Metrics API.
Parámetros de entrada
metricstringObligatorioenumKPI to compute: order_count, unique_customers, gross_revenue, net_revenue, or average_order_value.
order_countunique_customersgross_revenuenet_revenueaverage_order_valuedate_tostringOptional inclusive UTC end timestamp in YYYY-MM-DDTHH:MM:SSZ format.
statusesstring[]Optional non-empty list of order statuses: placed, approved, or cancelled.
date_fromstringOptional inclusive UTC start timestamp in YYYY-MM-DDTHH:MM:SSZ format.
date_fieldstringenumOrder timestamp used by date_from and date_to: created_at, updated_at, approved_at, or placed_at.
created_atupdated_atapproved_atplaced_atmarket_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
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List CustomersCOMMERCE_LAYER_LIST_CUSTOMERSAcciónReturn one page of customers, optionally filtered by an exact email address.
COMMERCE_LAYER_LIST_CUSTOMERSAcciónReturn one page of customers, optionally filtered by an exact email address.
Parámetros de entrada
emailstringemailExact customer email to match; omit to list customers.
sort_bystringenumOptional customer field to sort by: email, status, total_orders_count, created_at, updated_at, or reference.
emailstatustotal_orders_countcreated_atupdated_atreferencepage_sizeintegerCustomers to return per page (1-25).
next_cursorstringOpaque continuation cursor returned by a previous call; omit for the first page.
sort_directionstringenumSort direction when sort_by is set: ascending or descending.
ascendingdescending
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List OrdersCOMMERCE_LAYER_LIST_ORDERSAcciónReturn one page of orders, newest first by default, for operational review and follow-up by order ID.
COMMERCE_LAYER_LIST_ORDERSAcciónReturn one page of orders, newest first by default, for operational review and follow-up by order ID.
Parámetros de entrada
sort_bystringenumOrder 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_atpage_sizeintegerOrders to return per page (1-25).
next_cursorstringOpaque continuation cursor returned by a previous call; omit for the first page.
sort_directionstringenumSort direction: ascending or descending.
ascendingdescending
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List SKUsCOMMERCE_LAYER_LIST_SKUSAcciónReturn one page of catalog SKUs for product discovery and ID lookup.
COMMERCE_LAYER_LIST_SKUSAcciónReturn one page of catalog SKUs for product discovery and ID lookup.
Parámetros de entrada
sort_bystringenumOptional 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_atreferencepage_sizeintegerSKUs to return per page (1-25).
next_cursorstringOpaque continuation cursor returned by a previous call; omit for the first page.
sort_directionstringenumSort direction when sort_by is set: ascending or descending.
ascendingdescending
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
List Stock ItemsCOMMERCE_LAYER_LIST_STOCK_ITEMSAcciónReturn one page of stock items with inventory quantities and SKU codes.
COMMERCE_LAYER_LIST_STOCK_ITEMSAcciónReturn one page of stock items with inventory quantities and SKU codes.
Parámetros de entrada
sort_bystringenumOptional stock item field to sort by: quantity, created_at, updated_at, reference, or reference_origin.
quantitycreated_atupdated_atreferencereference_originpage_sizeintegerStock items to return per page (1-25).
next_cursorstringOpaque continuation cursor returned by a previous call; omit for the first page.
sort_directionstringenumSort direction when sort_by is set: ascending or descending.
ascendingdescending
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not
Update CustomerCOMMERCE_LAYER_UPDATE_CUSTOMERAcciónUpdate 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.
COMMERCE_LAYER_UPDATE_CUSTOMERAcciónUpdate 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
emailstringReplacement email; omit to preserve the current email.
metadataobjectReplacement metadata object; omit to preserve it.
referencestringReplacement external reference; omit to preserve it.
customer_idstringObligatorioCommerce Layer customer resource ID.
Parámetros de salida
dataanyObligatorioData from the action execution
errorstringError if any occurred during the execution of the action
successfulbooleanObligatorioWhether or not the action execution was successful or not