Skip to content

https://api.kustom.co/ipp/v1/enrollments

Returns a paginated list of enrollments for the merchant. Soft-deleted (CANCELLED) enrollments are always excluded. Results can be filtered by location, by metadata key-value pairs, and by whether consumed enrollments are included.

Parameters5 fields
  • location_idstring · uuidoptionalin query

    Filter by location ID.

  • metadataarray<string>optionalin query

    Filter by metadata key-value pair. Format: key:value. Repeat the parameter to apply multiple filters — all must match (AND semantics). Maximum 5 entries. Duplicate keys are not allowed.

  • include_consumedbooleanoptionalin query

    Whether to include CONSUMED enrollments. Defaults to true.

  • page_numberinteger · int32optionalin query

    Zero-based page number. Defaults to 0.

  • page_sizeinteger · int32optionalin query

    Page size. Defaults to 20.

200
Response14 fields

Paginated list of enrollments.

  • content[]array<object>optional
    7 fields in content
    • enrollment_idstring · uuidoptional

      Unique enrollment identifier.

    • enrollment_codestringoptional

      The enrollment code to enter on the device.

    • expires_atstring · date-timeoptional

      Timestamp when the enrollment code expires.

    • statusstringoptional

      Current status of the enrollment.

      • PENDING
      • CONSUMED
      • EXPIRED
      • CANCELLED
    • metadataobjectoptional

      Custom metadata key-value pairs for the enrollment.

      1 field in metadata
      • keystringoptional

        Any additional property. The key is free-form; the value has this shape.

    • device_namestringoptional

      Name to assign the device once it registers with this enrollment.

  • total_elementsinteger · int64optional
  • total_pagesinteger · int32optional
  • page_numberinteger · int32optional
  • page_sizeinteger · int32optional
  • firstbooleanoptional
  • lastbooleanoptional
400
Response0 fields

Invalid request parameters.

No response body — this status returns headers only.

401
Response0 fields

Missing or invalid credentials.

No response body — this status returns headers only.

This page is also available as Markdown — append .md to its URL — and is indexed in llms.txt.