---
updatedAt: 2025-09-11T20:49:44.000Z
agentTools:
  projectIndex: https://docs.pley.com/llms.txt
---

# Get entitlements

List entitlements for a given Pley user.

# OpenAPI definition

```json
{
  "openapi": "3.0.2",
  "info": {
    "title": "API v3",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://api.pley.com/v3"
    }
  ],
  "paths": {
    "/payments-kit/get-entitlements": {
      "post": {
        "summary": "Get entitlements",
        "operationId": "payments-kit-get-entitlements",
        "description": "List entitlements for a given Pley user.",
        "tags": [
          "PaymentsKit"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "game_user_id": {
                    "type": "string",
                    "description": "ID of the user you want to retrive entitlements for"
                  },
                  "include_sandbox": {
                    "type": "boolean",
                    "description": "Whether to include sandbox payments",
                    "default": false
                  },
                  "include_consumed": {
                    "type": "boolean",
                    "description": "Whether to include consumed entitlements",
                    "default": false
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "List of entitlements",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "data": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "entitlement_id": {
                            "type": "string"
                          },
                          "products": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "product_id": {
                                  "type": "string"
                                },
                                "quantity": {
                                  "type": "number"
                                }
                              }
                            }
                          },
                          "in_sandbox": {
                            "type": "boolean"
                          },
                          "consumed_at": {
                            "type": "string",
                            "description": "The date the entitlement was consumed. It is returned as a string with the date in ISO 8601 format, .e.g 2012-04-23T18:25:43.511Z. If the entitlement has not been consumed, this field will be omitted."
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "403": {
            "description": "Missing or invalid API token, or the resource does not belong to your organization"
          },
          "500": {
            "description": "Internal server error"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "x-readme": {
    "explorer-enabled": false,
    "proxy-enabled": false,
    "samples-languages": [
      "shell"
    ]
  }
}
```