Skip to content

Expose WooPayments transaction id (txn_xxxxx) via current refund API end #7857

Closed
@geektzu

Description

Description

The current WooComemrce REST API only returns an internal id after a refund is created.
https://woocommerce.github.io/woocommerce-rest-api-docs/#create-a-refund

It posts a challenge for reconciliation for refunds created by NetSuite via the REST API.
The internal id in the “Create a refund" API point cannot be reconciled with the WooPayments transaction report (Payments -> Transactions).

Acceptance criteria

The response of the current refund API should include a new field if the payment gateway is WooPayments. https://woocommerce.github.io/woocommerce-rest-api-docs/#create-a-refund

For example, a new field should be woopayments_transaction_id: "txn_xxxxxxx" should be returned by the API endpoint.

Testing instructions

  1. Create a refund via https://woocommerce.github.io/woocommerce-rest-api-docs/#create-a-refund
  2. Look for the WooPayment transactions id in the API response.
  3. Reconcile with the report in "Payments -> Transactions"

Dev notes

Additional context

P2: https://woocustomersuccess.wordpress.com/2023/12/06/journey-to-launch-woopayments-for-joola-usa/

Activity

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

Metadata

Metadata

Assignees

Labels

category: coreWC Payments core related issues, where it’s obvious.component: transactionsIssues related to Transactionspriority: mediumThe issue/PR is medium priority—non-critical functionality loss, minimal effect on usabilitytype: enhancementThe issue is a request for an enhancement.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions