---
updatedAt: 2025-11-11T01:48:41.000Z
agentTools:
  projectIndex: https://docs.pci-proxy.com/llms.txt
---

# Updating transaction details

You can update the transaction details of a Secure Fields transaction before submitting.

The following `PATCH` method can be called after `secureFields.init()` but before `secureFields.submit()` to modify transaction details such as `amount`, `currency` or properties within the `3D` object.

Please refer to the [API Reference](https://docs.pci-proxy.com/reference/secure-fields-update) to get a detailed view of all required and optional fields.

### Example

```curl Update transaction details
curl --request PATCH \
  --url 'https://api.sandbox.datatrans.com/v1/transactions/secureFields/{{transactionId}}' \
  --header 'Authorization: Basic {{basicAuth}}' \
  --header 'Content-Type: application/json' \
  --data '{
    "amount": 5000,
    "currency": "GBP",
    "3D": { 
            "cardholder": {      
                "email": "test@test.com",
                "cardholderName": "John Doe",
                "mobilePhone": {
                    "cc": "41",
                    "subscriber": "123456789"
                },
                "workPhone": {
                    "cc": "41",
                    "subscriber": "123456789"
                },
                "homePhone": {
                    "cc": "41",
                    "subscriber": "123456789"
                }
           }
     }           
}'
```