# List credential offers.


Returns a paginated list of credential offers for the calling service user's organization (X-Org-Id) and environment (X-Environment).

Endpoint: GET /b2b/v1/credential-offers
Version: 1.0.0
Security: BearerAuth

## Query parameters:

  - `limit` (integer)
    Maximum number of results to return (1-100, default 20).

  - `offset` (integer)
    Number of results to skip for pagination.

  - `status` (string)
    Filter by offer status: pending, issued, accepted, expired, failed.

  - `credential_definition_id` (string)
    Filter by credential definition ID (UUID).

## Header parameters:

  - `X-Org-Id` (string, required)
    Organization the call is acting on. The authenticated service user must be a member of this organization in DeepAdmin; otherwise the request returns 404.

  - `X-Environment` (string, required)
    Environment the call is scoped to. Resources are isolated per environment.

## Response 200 fields (application/json):

  - `offers` (array, required)
    Page of offers matching the list filters.

  - `offers.claims` (object, required)
    Claim values for the credential.

  - `offers.completed_at` (string)
    Set when the offer leaves pending (issued, failed, or expired).

  - `offers.created_at` (string, required)
    When the offer was created (RFC3339).

  - `offers.credential_definition` (object, required)
    Credential definition reference.

  - `offers.credential_definition.has_logo` (boolean, required)
    Whether the credential definition currently has an uploaded logo.

  - `offers.credential_definition.id` (string, required)
    Credential definition UUID. UUID v4 identifier.
    Example: 550e8400-e29b-41d4-a716-446655440000

  - `offers.credential_definition.name` (string, required)
    Human-readable credential definition name.

  - `offers.credential_definition.vct` (string, required)
    Verifiable credential type (e.g. "urn:ietf:params:oauth:vct:PersonId").

  - `offers.credential_validity_seconds` (integer)
    Credential lifetime to apply at issuance (SD-JWT exp = iat + N). Absent means the credential will be issued without an exp claim.

  - `offers.deeplink` (string)
    Only when status is pending: OID4VCI wallet deep link.

  - `offers.environment` (string, required)
    Swiyu environment: "beta" or "production".

  - `offers.error_code` (string)
    Machine-readable failure reason when status is failed or expired.

  - `offers.error_description` (string)
    Human-readable error detail when status is failed or expired.

  - `offers.expires_at` (string, required)
    When a pending offer expires if not completed (RFC3339).

  - `offers.id` (string, required)
    Offer id (matches the value returned at creation time). UUID v4 identifier.
    Example: 550e8400-e29b-41d4-a716-446655440000

  - `offers.invitation_id` (string)
    InvitationID / SelfServiceRequestID expose the upstream lineage anchors when this offer was created from one. nil for plain portal or B2B offers.
    Example: 550e8400-e29b-41d4-a716-446655440000

  - `offers.issued_credential_id` (string)
    Only when status is issued: ID of the issued credential. UUID v4 identifier.
    Example: 550e8400-e29b-41d4-a716-446655440000

  - `offers.qr_content_base64` (string)
    Only when status is pending: Base64-encoded PNG QR code (240×240 px).

  - `offers.reference_id` (string)
    Your reference_id from the create request, if any.

  - `offers.self_service_request_id` (string)
    UUID v4 identifier.
    Example: 550e8400-e29b-41d4-a716-446655440000

  - `offers.source` (string, required)
    Source records where this offer originated: "portal" (admin UI), "b2b" (API caller), "invitation" (redeemed email invitation), or "self_service" (admin approval of a public request). Stable at row level — captured at create and never mutated.

  - `offers.status` (string, required)
    Current lifecycle state of the offer.
    Enum: "pending", "issued", "accepted", "expired", "failed"

  - `total` (integer, required)
    Total count matching filters (for pagination UI).

## Response 400 fields (application/json):

  - `code` (string, required)
    Machine-readable error code.

  - `message` (string, required)
    Human-readable error description.

  - `details` (object)
    Optional structured data with additional context.

## Response 401 fields (application/json):

  - `code` (string, required)
    Machine-readable error code.

  - `message` (string, required)
    Human-readable error description.

  - `details` (object)
    Optional structured data with additional context.

## Response 403 fields (application/json):

  - `code` (string, required)
    Machine-readable error code.

  - `message` (string, required)
    Human-readable error description.

  - `details` (object)
    Optional structured data with additional context.

## Response 429 fields (application/json):

  - `code` (string, required)
    Machine-readable error code.

  - `message` (string, required)
    Human-readable error description.

  - `details` (object)
    Optional structured data with additional context.

## Response 500 fields (application/json):

  - `code` (string, required)
    Machine-readable error code.

  - `message` (string, required)
    Human-readable error description.

  - `details` (object)
    Optional structured data with additional context.

