Skip to content

Credit card expiration is missing #183

Open

Description

@stanislaw89

Scenario & Reproduction Steps

I can successfully retrieve a credit card item like this:

item = await client.items.get("...", "...")

All the data is returned as expected, but the expiry date field is empty, and its field_type is reported as ItemFieldType.UNSUPPORTED:

id='expiry' title='expiry date' section_id=None field_type=<ItemFieldType.UNSUPPORTED: 'Unsupported'> value='' details=None

It seems that this field is marked as “unsupported,” possibly originating either from the server or from the native Rust layer:

Image

Tested on version 0.3.1.
This issue might be related to 1Password/onepassword-sdk-python#140.

Actual Behavior

The credit card 'expiry date' is empty string instead of the actual value.

Expected Behavior

The 'expiry date' to be the actual value

SDK version

0.3.1

Additional information

No response

Activity

  1. added
    bug
    on Oct 16, 2025
  2. hculea commented on Nov 5, 2025

    @hculea
    Member

    Hey @stanislaw89, can you let us know if your item's expiry date field has an alert set to it?

    That is something we're still not fully supporting in the SDK.

  3. stanislaw89 commented on Nov 5, 2025

    @stanislaw89
    Author

    Hey @stanislaw89, can you let us know if your item's expiry date field has an alert set to it?

    That is something we're still not fully supporting in the SDK.

    Hi. Thanks for looking into this. It looks like it has

    Image

    I think it was set by default (I don't remember enabling it consciously), and I don't see how I can disable it

    Image
  4. robertobernabe commented on Nov 17, 2026

    @robertobernabe

    We're hitting the same issue, and it is not limited to credit cards. It affects any Date field with an expiry alert, and it still reproduces on onepassword-sdk 0.4.2, the latest version (also on 0.3.2).

    Reproduction (Document item, service account auth):

    1. Add a custom field expires, type Date, without an alert → client.items.get() returns
      field_type=ItemFieldType.DATE, value='2026-11-17', section_id='add more'
    2. Enable the expiry alert on that same field → client.items.get() returns
      field_type=ItemFieldType.UNSUPPORTED, value='', section_id=None

    The 1Password CLI reads the field correctly with the same service account token:

    $ op --version
    2.42.0
    $ op item get <item> --vault <vault> --format json | jq '.fields[] | select(.label=="expires")'
    { "label": "expires", "type": "DATE", "value": "1794916860", "section": { "id": "add more" } }
    

    So the data is available to the service account. Only the SDK mapping is missing.

    Impact: We use the SDK to export item expiry dates to Prometheus for alerting. Turning on 1Password's own expiry alert makes the item invisible to our monitoring, so the two alerting mechanisms cancel each other out.

    Is there an ETA for supporting Date / MonthYear fields that have an alert set? Even returning the value with field_type=DATE and ignoring the alert metadata would solve it for read-only use cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions