put https://apiprod.fattlabs.com/transaction//
Update specific fields of a manually created transaction.
The Update a Transaction endpoint allows you to modify certain details of a manually created transaction. This is useful for correcting or adding additional information to a transaction record.
Key Features
- Modify custom fields or descriptors.
- Correct errors in manually created transactions.
Usage Notes
Immutable Fields: Certain fields, such as amount, currency, status, and type cannot be modified.
Validation: Ensure that the data in the request body adheres to the expected formats and types.
Response Structure
| Code | Response | Reason |
|---|---|---|
| 200 | Success | Returns the updated transaction object with the new metadata or changes applied. |
| 400 | Bad Request | Invalid request parameters or attempting to modify immutable fields. |
| 401 | Unauthorized | Authentication failed. |
| 404 | Not Found | Transaction ID does not exist or cannot be updated. |
| 500 | Internal Server Error | An unexpected error occurred on the server. |
Important Considerations
Audit Trails: Keep records of transaction changes for auditing purposes.
Data Integrity: Avoid altering transaction data in a way that misrepresents the original transaction.
Customer Communication: If changes impact the customer (e.g., receipt information), consider notifying them accordingly.
