Skip to main content
GET
/
card-products
/
inventory
Get card products inventory
curl --request GET \
  --url https://access.utgl.io/v1/card-products/inventory \
  --header 'Authorization: Basic <encoded-value>'
[
  {
    "productId": 2,
    "inventory": {
      "active": 150,
      "pending-issue": 20,
      "expired": 5
    }
  }
]

Authorizations

Authorization
string
header
required

Basic authentication header of the form Basic <encoded-value>, where <encoded-value> is the base64-encoded string username:password.

Query Parameters

productIds
integer[]

Optional array of product IDs to filter the inventory.

Response

200 - application/json

A list of card product inventories.

productId
integer

ID of the card product.

Example:

2

inventory
object

An object where the keys are card statuses from the CardStatus enum and the values are the count of cards in that status.

Example:
{
"active": 150,
"pending-issue": 20,
"expired": 5
}