Skip to content

feat: Add List payments (GET /v1/payments) to the API reference - #181

Closed
rtomas wants to merge 1 commit into
mainfrom
rtomas/merchant-payments-list
Closed

rtomas wants to merge 1 commit into
mainfrom
rtomas/merchant-payments-list

Conversation

@rtomas

@rtomas rtomas commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

Problem

  • The API reference had no page for listing payments, so developers couldn't find GET /v1/payments.
  • The Core OpenAPI spec doesn't describe that endpoint yet, so pnpm generate couldn't produce the page.

Solution

  • Add a List payments page for both 2026-02-18 and 2026-02-19.preview.
  • Add both pages to the Payments group in content/navigation.json.
  • Add scripts/payments-list-operation.json with the endpoint and its schemas, one entry per API version.
  • Merge that file into the generated specs in scripts/generate-specs.mjs, after the Core spec.
  • Fail generation if a new API version has no entry in the file.
  • Skip an operation, and warn, once the Core spec describes it.
  • Fail generation if a schema name clashes with a different Core schema.
  • Regenerate openapi/2026-02-18.json and openapi/2026-02-19.preview.json with the new operation and schemas.
  • The cancelled status is only in the 2026-02-19.preview version.
  • The regeneration also changed example paymentId values in other operations.

- Document the list payments endpoint for 2026-02-18 and 2026-02-19.preview,
  with generated pages and sidebar entries under Payments.
- Keep the operation definition in scripts/payments-list-operation.json,
  since the Core spec doesn't describe it yet, so pnpm generate keeps it.
- Merge it after the Core spec in generate-specs.mjs. The script fails if a
  version has no entry, warns once Core includes the operation, and errors
  on schema conflicts.
- The preview version adds the `cancelled` status.
- Regenerated specs also refresh the example payment IDs.
@github-actions

Copy link
Copy Markdown
Contributor

@rtomas rtomas closed this Nov 20, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants