---
title: "Update Payment Attempt"
method: PUT
path: "/payment_attempt/{id}"
---

# Update Payment Attempt

`PUT /payment_attempt/{id}`

## Request body

- object
  - `metadata` string, json — Set of key-value pairs that can be attached to the object (JSON string format)

## Response `200`

200

- object
  - `status` string
  - `message` string
  - `data` object
    - `amount` integer
    - `charge_currency` string
    - `created_at` string
    - `fx_transaction` FxTransaction — Details of an FX conversion transaction
      - `exchange_rate` number — FX exchange rate applied
      - `final` object — Final amount and currency after FX conversion
        - `amount` number — Final amount after FX conversion
        - `currency` string — Currency of the final amount
      - `id` string — FX transaction ID
      - `initial` object — Initial amount and currency before FX conversion
        - `amount` number — Initial amount before FX conversion
        - `currency` string — Currency of the initial amount
      - `object` string — Object type (fx_transaction)
    - `id` string
    - `metadata` Metadata, nullable — Custom metadata key-value pairs attached to the object
    - `object` string
    - `payin` string
    - `payment_method_details` object
      - `card` object
        - `amount` integer
        - `checks` object
        - `currency` string
        - `expiry` object
        - `issuing_country` string
        - `payer_name` string
        - `three_d_secure` object
      - `type` string
    - `refunded` string
    - `status` string
    - `status_description` string
    - `balance_transaction` string — Balance transaction linked to the payment attempt
    - `customer` string — Customer linked to the payment attempt
    - `customer_details` string — Details of the Customer linked to the payment attempt
    - `reference_id` string — Reference if of the attempt

## Other responses

- `400` — Bad Request

---

[API](https://skmtc.net/tazapay/apis/sandbox.md) · [All operations](https://skmtc.net/tazapay/apis/sandbox/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tazapay/sandbox/versions/bf5f4b8f6f5d/schema)
