Skip to content

Attach assets to order

POST/orders/{id}/attach_assets

Costs 2 rate-limit points · Rate limits

Attach one or more existing assets to an order as custom files. Creates an order-level collection and links the assets to it. Assets attached this way appear on the customer's download page alongside product-level assets.

Beta: this endpoint is in active development. The request and response shapes are stable for production use, but we may add new fields or capabilities without notice.

Path parameters

  • idstringRequired

    The order ID

Headers

  • X-Auth-TokenstringRequired

    API key for authentication

Request body

  • asset_idsarray of stringsRequired

    Array of asset UUIDs to attach to the order

Returns

  • orderobject
    Show 10 child attributesHide child attributes
    • idstring

      Unique order identifier

    • namestring

      Order name/number (e.g. "#1001")

    • emailstring

      Customer email address

    • phonestring, nullable

      Customer phone number

    • financial_statusstring, nullable

      Financial status of the order

      One of paidpendingpartially_paidpartially_refundedrefundedvoidedauthorized
    • fulfillment_statusstring, nullable

      Fulfillment status of the order

    • total_pricestring, nullable

      Total price of the order

    • currencystring, nullable

      Currency code (ISO 4217)

    • created_atstring

      When the order was created in Shopify

    • download_countinteger

      Total number of downloads for this order

  • attached_assetsarray of objects
    Show 8 child attributesHide child attributes
    • idstring

      Asset identifier

    • typestring

      The asset type.

      One of internalexternallicence
    • namestring, nullable

      Display name of the asset.

    • filenamestring, nullable

      Filename of the asset.

    • external_urlstring, nullable

      External URL for external type assets.

    • content_typestring, nullable

      MIME type of the asset.

    • byte_sizeinteger

      File size in bytes.

    • created_atstring

      When the asset was created.

Errors

404

Resource not found

422

Validation failed

POST/orders/{id}/attach_assets
curl -X POST "https://app.filemonk.io/api/v1/external/orders/{id}/attach_assets" \
  -H "X-Auth-Token: $FILEMONK_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "asset_ids": [
      "f1e2d3c4-b5a6-7890-fedc-ba0987654321"
    ]
  }'
Response
{
  "order": {
    "id": "3e84eb8d-e1d9-4e92-a4b2-a419c7f1122f",
    "name": "#1001",
    "email": "customer@example.com",
    "phone": "+1234567890",
    "financial_status": "paid",
    "fulfillment_status": "fulfilled",
    "total_price": "29.99",
    "currency": "USD",
    "created_at": "2026-01-15T09:30:00Z",
    "download_count": 5
  },
  "attached_assets": [
    {
      "id": "3e84eb8d-e1d9-4e92-a4b2-a419c7f1122f",
      "type": "internal",
      "name": "string",
      "filename": "string",
      "external_url": "https://example.com",
      "content_type": "string",
      "byte_size": 1,
      "created_at": "2026-01-15T09:30:00Z"
    }
  ]
}