Shop API icon

Shop API

Call Shop API

Customers → Attach Documents

AI-generated

Summary

Attach document asset IDs to a customer’s Documents list by sending them to the Shop API. The operation requires the customer ID and at least one asset ID; it is described as idempotent.

Inputs

  • Id (required) — ID of the customer to update.
  • Documents (required) — Asset IDs to attach, entered as a JSON array or a comma-separated list. Defaults to [], but an empty list causes an error.

Output shape

A single API response item

Sends a POST request to the internal customer documents endpoint with the IDs in a documents array. The returned item contains the API response, or an empty object if the response is nullish.

Links

Discussion