Skip to main content

Reject Auto-Transfer Transaction

POST /v1/wallets/{wallet_id}/auto-transfer-transactions/{auto_transfer_transaction_id}/reject

Rejects an auto-transfer transaction. Once rejected, the transaction is cancelled and cannot be approved.

Headers

HeaderRequiredValue
AuthorizationYesBearer <token>
Content-TypeYesapplication/json
X-Target-ServerYeswallets

Path Parameters

ParameterTypeRequiredDescription
wallet_idstring (UUID)YesWallet ID
auto_transfer_transaction_idstring (UUID)YesAuto-transfer transaction ID

Request Body

FieldTypeRequiredValidationDescription
reasonstringYesmax: 255 charactersReason for rejection
{
"reason": "Amount exceeds approved budget for this period"
}

Response

200 OK

Rejection recorded successfully. The transaction is cancelled.

400 Bad Request

Transaction is not in the correct state for rejection, or reason is missing.

401 Unauthorized

403 Forbidden

User is not authorized to reject this transaction.

404 Not Found

Transaction not found.

409 Conflict

User has already approved or rejected this transaction.

500 Internal Server Error