library · inferred from evidence
datetime
Python's built-in datetime module, used for handling date and time objects, including timezone-aware and naive datetimes.
- Plaid INVALID_BODY 'body could not be parsed as JSON' when passing datetime to phone_number_verified_time
Pass a timezone-aware datetime, not a naive one. `datetime.fromtimestamp(0)` has no tzinfo, so the SDK serializes it without the 'Z' suffix and Plaid rejects the body. Use `datetime.datetime.now(datetime.timezone.utc)` or `datetime.datetime