> ## Documentation Index
> Fetch the complete documentation index at: https://developers.mioesim.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GET /api_esim/verifyResourceByApiCode — Check inventory

> Check whether sufficient card inventory exists for a package by its apiCode. Returns 1 if resources are available, 0 if insufficient. Use before bulk orders.

Same as [Verify Resources](/api-reference/verify-resources) but uses the package's `apiCode` instead of separate `skuid` + `priceid` values. The `apiCode` is returned by the package listing endpoints (e.g. `"40-0-3-1-G"`).

```
GET https://bpm.mioesim.com/api_esim/verifyResourceByApiCode
```

## Request parameters

<ParamField query="token" type="string" required>Session token.</ParamField>
<ParamField query="apiCode" type="string" required>Package unique identifier (e.g. `"99162-0-3-1-G"`).</ParamField>
<ParamField query="count" type="string" required>Number of cards you intend to order.</ParamField>
<ParamField query="sign" type="string" required>Request signature.</ParamField>

## Response

<ResponseField name="data" type="integer">
  `1` = sufficient resources. `0` = insufficient.
</ResponseField>

## Example

<CodeGroup>
  ```bash cURL theme={null}
  curl "https://bpm.mioesim.com/api_esim/verifyResourceByApiCode?token=YOUR_TOKEN&apiCode=40-0-3-1-G&count=5&sign=YOUR_SIGN"
  ```

  ```json Sufficient theme={null}
  { "code": "0", "message": "success", "data": 1 }
  ```

  ```json Insufficient theme={null}
  { "code": "0", "message": "success", "data": 0 }
  ```
</CodeGroup>
