---
title: "Update a PayMongo Wallet transaction status"
method: PATCH
path: "/v1/paymongo_wallet/transactions/{id}"
tags: ["PayMongo Wallet"]
---

# Update a PayMongo Wallet transaction status

`PATCH /v1/paymongo_wallet/transactions/{id}`

## Request

- Base URL: `https://ewallets-api.paymongo.com`
- URL: `https://ewallets-api.paymongo.com/v1/paymongo_wallet/transactions/{id}`
- Auth: HTTP basic

Moves a transaction to a new status. Called by core-api after the Transfers callback lands there. Idempotent: requesting the status the transaction already has returns it unchanged.

## Path parameters

- `id` string, required

## Request body

- UpdateTransactionRequestDTO: Request payload for moving a transaction to a new status, sent by core-api after the Transfers callback
  - `failed_code` 'insufficient_funds' | 'closed_loop_violation' | 'wallet_limit_exceeded' | 'wallet_inactive'
  - `transaction_status` 'succeeded' | 'failed' | 'expired' | 'reversed', required

## Response `200`

Successfully updated transaction

- object: Standard response containing data and its metadata if any
  - `data` TransactionResponseDTO: One PayMongo Wallet debit attempt. One row exists per attach attempt.
    - `amount` integer
    - `attach_attempt_id` string
    - `created_at` string
    - `currency` string
    - `destination_account_number` string
    - `failed_code` 'insufficient_funds' | 'closed_loop_violation' | 'wallet_limit_exceeded' | 'wallet_inactive'
    - `id` string
    - `link_id` string
    - `livemode` boolean
    - `organization_id` string
    - `payer_account_number` string
    - `reversal_transfer_id` string
    - `reversed_at` string
    - `succeeded_at` string
    - `transaction_status` 'pending' | 'succeeded' | 'failed' | 'reversed' | 'expired'
    - `transfer_id` string
    - `updated_at` string
  - `has_more` boolean

## Other responses

- `400`: Invalid URI or JSON parameters or validation errors
- `401`: Missing or invalid credentials
- `404`: Transaction not found
- `422`: Status transition not allowed
- `500`: Internal server error

---

[API](https://skmtc.dev/paymongo/apis/ewallets.md) - [All operations](https://skmtc.dev/paymongo/apis/ewallets/llms.txt) - [OpenAPI document](https://skmtc.dev/paymongo/apis/ewallets/revisions/a445ca65c132?raw)
