Skip to main content

Archive Transaction

Archive a transaction to remove it from the active transaction list while preserving it for compliance and audit purposes.

Endpoint

PUT /transactions/{id}/archive

Headers

HeaderTypeRequiredDescription
x-api-keystringYesYour API key for authentication
x-secret-keystringYesYour secret key for authentication

Path Parameters

ParameterTypeRequiredDescription
idstringYesUnique transaction identifier

Example Request

curl -X PUT "{{baseUrl}}/transactions/7833195a-3a55-4d14-9bd1-713af24ef89f/archive" \
-H "x-api-key: {your-api-key}" \
-H "x-secret-key: {your-secret-key}"

Response

Success (200 OK)

{
"success": true,
"message": "Transaction archived successfully",
"data": {
"id": "7833195a-3a55-4d14-9bd1-713af24ef89f",
"archived": true,
"archivedAt": "2024-08-08T15:30:00Z"
}
}