Update a transaction
Use the Patch transaction API to update the amount or currency for an already initialized transaction.
Call the Patch transaction API endpoint after calling secureFields.init() and before calling secureFields.submit().
patch
https://api.sandbox.datatrans.com
/v1/transactions/secureFields/{transactionId}
Transaction

Example

Request
Response
1
curl -L -X PATCH 'https://api.sandbox.datatrans.com/v1/transactions/secureFields/201110094904976728' \
2
-H 'merchantId:password' \
3
-H 'Content-Type: application/json; charset=UTF-8' \
4
--data-raw '{
5
"amount": 5000,
6
"currency": "GBP"
7
}'
Copied!
1
204 No content
Copied!
Last modified 4d ago
Copy link