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
| Header | Required | Value |
|---|---|---|
Authorization | Yes | Bearer <token> |
Content-Type | Yes | application/json |
X-Target-Server | Yes | wallets |
Path Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
wallet_id | string (UUID) | Yes | Wallet ID |
auto_transfer_transaction_id | string (UUID) | Yes | Auto-transfer transaction ID |
Request Body
| Field | Type | Required | Validation | Description |
|---|---|---|---|---|
reason | string | Yes | max: 255 characters | Reason 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.