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
- Create a refund via https://woocommerce.github.io/woocommerce-rest-api-docs/#create-a-refund
- Look for the WooPayment transactions id in the API response.
- 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