latestOpenAPI 3.0.32026-08-083681145.6 KB

19558399745c

Products
Prepacks

GET /products/{product_id}/prepacks

This endpoint gets all active prepacks of the product specified in the URL path.

get/products/{product_id}/prepacks

Path parameters

product_idstring required

Response

Successful response

Example response

{
  "prepacks": [
    {
      "id": "pc_xyz789",
      "idempotence_token": "prepack_abc123",
      "created_at": "2019-03-14T00:09:15.000Z",
      "updated_at": "2019-03-15T00:09:15.000Z",
      "name": "Assorted Sizes Pack",
      "description": "Pack includes 2 Small, 3 Medium, 2 Large",
      "items": [
        {
          "id": "pci_abc456",
          "created_at": "2019-03-14T00:09:15.000Z",
          "updated_at": "2019-03-15T00:09:15.000Z",
          "variant_id": "po_3745tjzrpc",
          "quantity": 3
        }
      ]
    }
  ]
}