Skip to content

[CAL-3977] Zod Errors in any /payments and /payments/[id] API Endpoints #15513

@fabriziospadaro

Description

@fabriziospadaro

Issue Summary

The /payments API and /payments/[id] endpoints are returning zod errors, making it impossible to retrieve the payment UID necessary for constructing abandoned cart recovery links.

Steps to Reproduce

  1. Make a request to the /payments API.
  2. Observe the response, which returns zod errors.
  3. Make a request to the /payments/[id] endpoint.
  4. Observe the response, which also returns zod errors.

This issue is considered a bug because the API should return valid data without errors, enabling the retrieval of the payment UID.

Actual Results

  • The /payments API and /payments/[id] endpoints return zod errors, preventing the retrieval of payment UIDs.

Expected Results

  • The /payments API and /payments/[id] endpoints should return valid responses, including the payment UID, without any zod errors.

Technical details

Evidence

  • This bug was tested by making API requests to /payments and /payments/[id]. Both endpoints returned zod errors.

By following the steps above, you can replicate the issue and observe the unexpected zod errors. The expected outcome is that the API should return the required payment UID without any errors

CAL-3977

Metadata

Metadata

Assignees

No one assigned

    Labels

    Medium priorityCreated by Linear-GitHub Syncapiarea: API, enterprise API, access token, OAuthplatformAnything related to our platform plan🐛 bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions