Skip to content

Endpoint Inventory

This document will track WooPayments/WooCommerce REST endpoints reviewed for CLI use.

Classification

ClassificationMeaning
allowlisted-readSafe for curated read commands.
allowlisted-test-writeSafe for curated write commands, but only in test/dev mode.
raw-api-onlyAccessible through wcpay api, not wrapped as a curated command.
blockedShould not be exposed by curated commands.
unknownNeeds review.

REST-only command surface

Curated commands use WooPayments/WooCommerce REST endpoints directly. The CLI authenticates with WooCommerce REST API consumer keys, which are scoped to WooCommerce REST routes and do not authenticate reliably against the WordPress Abilities API namespace.

Initial candidates

MethodPathPurposeClassificationNotes
GET/wc/v3/payments/settingsSettings and mode flagsallowlisted-readUsed for mode guard.
GET/wc/v3/payments/accountsAccount statusallowlisted-readUsed by account status.
GET/wc/v3/payments/transactionsList transactionsallowlisted-readImplemented; uses page, pagesize, date filters.
GET/wc/v3/payments/depositsList depositsallowlisted-readImplemented.
GET/wc/v3/payments/deposits/{deposit_id}Get depositallowlisted-readImplemented.
GET/wc/v3/payments/disputesList disputesallowlisted-readImplemented.
GET/wc/v3/payments/disputes/{dispute_id}Get disputeallowlisted-readImplemented.
GET/wc/v3/payments/charges/{charge_id}Get chargeallowlisted-readImplemented.
GET/wc/v3/payments/timeline/{intention_id}Payment event timelineallowlisted-readImplemented as wcpay timeline get.
GET/wc/v3/payments/authorizationsList authorizationsallowlisted-readImplemented as wcpay authorizations list.
GET/wc/v3/payments/authorizations/{payment_intent_id}Get authorizationallowlisted-readImplemented as wcpay authorizations get.
GET/wc/v3/payments/authorizations/summaryAuthorizations summaryallowlisted-readImplemented as wcpay authorizations summary.
GET/wc/v3/payments/transactions/summaryTransaction totalsallowlisted-readImplemented as wcpay transactions summary.
GET/wc/v3/payments/deposits/overview-allDeposits overviewallowlisted-readImplemented as wcpay deposits overview.
GET/wc/v3/payments/disputes/summaryDispute status countsallowlisted-readImplemented as wcpay disputes summary.
GET/wc/v3/payments/payment_intents/{payment_intent_id}Get payment intentallowlisted-readImplemented as wcpay payment-intents get.
GET/wc/v3/orders/{order_id}Get order w/ wcpay metaallowlisted-readImplemented as wcpay orders get.
POST/wc/v3/payments/refundCreate refundallowlisted-test-writeImplemented with mode guard and --yes/--dry-run.
POST/wc/v3/payments/orders/{order_id}/capture_authorizationCapture authorizationallowlisted-test-writeImplemented with mode guard and --yes/--dry-run.
POST/wc/v3/payments/orders/{order_id}/cancel_authorizationCancel authorizationallowlisted-test-writeImplemented with mode guard and --yes/--dry-run.
POST/wc/v3/ordersCreate test orderallowlisted-test-writeImplemented; requires existing product and test/dev mode.
POST/wc/v3/payments/disputes/{dispute_id}/closeClose (concede) disputeallowlisted-test-writeImplemented with mode guard and --yes/--dry-run.

Review checklist

  • [ ] Confirm route exists in current WooPayments.
  • [ ] Confirm required capability/auth behavior.
  • [ ] Confirm request args and validation.
  • [ ] Confirm response shape.
  • [ ] Confirm live-mode write guard applies where needed.
  • [ ] Add docs and examples before wrapping in curated command.

Released under the GPL-3.0-or-later license.