---
agentTools:
  projectIndex: https://imx.readme.io/llms.txt
---

# Get purchased pack from pack factory

Returns the pack with index from purchase id from the pack factory with address.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Gods Unchained API",
    "version": "1.0",
    "description": "Gods Unchained API",
    "contact": {
      "name": "Immutable",
      "url": "https://godsunchained.com"
    },
    "termsOfService": "https://github.com/immutable/gods-unchained-api"
  },
  "servers": [
    {
      "url": "https://api.godsunchained.com"
    }
  ],
  "paths": {
    "/v0/factory/{address}/purchase/{id}/pack/{index}": {
      "parameters": [
        {
          "schema": {
            "type": "string"
          },
          "name": "address",
          "in": "path",
          "required": true,
          "description": "address of the pack factory"
        },
        {
          "schema": {
            "type": "string"
          },
          "name": "id",
          "in": "path",
          "required": true,
          "description": "id of the purchase"
        },
        {
          "schema": {
            "type": "string"
          },
          "name": "index",
          "in": "path",
          "required": true,
          "description": "index of the pack within the purchase"
        }
      ],
      "get": {
        "summary": "Get purchased pack from pack factory",
        "tags": [
          "pack",
          "purchase"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PurchasedPack"
                }
              }
            }
          }
        },
        "operationId": "getPurchasedPack",
        "description": "Returns the pack with index from purchase id from the pack factory with address."
      }
    }
  },
  "components": {
    "schemas": {
      "PurchasedPack": {
        "description": "",
        "type": "object",
        "x-examples": {
          "example-1": {
            "purchaseid": 11665,
            "purchaseindex": 0,
            "purchaseindices": [
              0,
              1,
              2,
              3,
              4
            ],
            "user": "0x62ed0960478Cd1aAA29e9e94928107D7b1E2Cef8",
            "factory": "0x0777F76D195795268388789343068e4fCd286919",
            "opened": true,
            "cards": [
              {
                "proto": 264,
                "purity": 600
              },
              {
                "proto": 38,
                "purity": 990
              },
              {
                "proto": 299,
                "purity": 549
              },
              {
                "proto": 347,
                "purity": 275
              },
              {
                "proto": 291,
                "purity": 850
              }
            ],
            "type": "rare"
          }
        },
        "properties": {
          "purchaseid": {
            "type": "number"
          },
          "purchaseindex": {
            "type": "number"
          },
          "purchaseindices": {
            "type": "array",
            "items": {
              "type": "number"
            }
          },
          "user": {
            "type": "string",
            "minLength": 1
          },
          "factory": {
            "type": "string",
            "minLength": 1
          },
          "opened": {
            "type": "boolean"
          },
          "cards": {
            "type": "array",
            "uniqueItems": true,
            "minItems": 1,
            "items": {
              "type": "object",
              "properties": {
                "proto": {
                  "type": "number"
                },
                "purity": {
                  "type": "number"
                }
              },
              "required": [
                "proto",
                "purity"
              ]
            }
          },
          "type": {
            "type": "string",
            "minLength": 1
          }
        },
        "required": [
          "purchaseid",
          "purchaseindex",
          "purchaseindices",
          "user",
          "factory",
          "opened",
          "cards",
          "type"
        ]
      }
    }
  },
  "tags": [
    {
      "name": "pack"
    },
    {
      "name": "purchase"
    }
  ],
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 97,
      "1": 222,
      "2": 72,
      "3": 136,
      "4": 234,
      "5": 204,
      "6": 69,
      "7": 0,
      "8": 66,
      "9": 174,
      "10": 18,
      "11": 91
    }
  }
}
```