patchTransaction

suspend fun patchTransaction(request: Sep06PatchTransactionRequest): HttpResponse

Updates a transaction with additional information requested by the anchor.

This endpoint allows clients to provide additional information that the anchor has requested after a transaction was initiated. The transaction must be in the "pending_transaction_info_update" status for this request to succeed.

Note: The PATCH endpoint uses /transaction/:id (singular), not /transactions/:id.

Return

HttpResponse indicating success or failure

Parameters

request

Patch transaction request with transaction ID and fields to update

Throws

If JWT is invalid or expired

On validation error

If transaction not found

On anchor server error

Example:

val response = sep06.patchTransaction(Sep06PatchTransactionRequest(
id = transactionId,
fields = mapOf(
"dest" to "DE89370400440532013000",
"dest_extra" to "COBADEFFXXX"
),
jwt = jwtToken
))

if (response.status.value == 200) {
println("Transaction updated successfully")
}