Skip to content

Transaction

blacklizardcode edited this page May 2, 2026 · 1 revision

Transaction Endpoints

All transaction endpoints will be documented here.

Transfer

Endpoint: /transaction/transfer
Method: POST

Authentication

  • JWT token in cookies (required)

Request

{
		"to_account": "username",
		"amount": 100
}

Responses

Status Description
200 OK
400 Bad Request
401 Unauthorized
500 Internal Server Error

Response Body

{
	"transfer_id": 1
}

Transaction Info

Endpoint: /transaction/transactioninfo
Method: GET

Authentication

  • JWT token in cookies (required)

Query Parameters

Name Type Required Default Description
transaction_id integer Yes - ID of the transaction to look up

Responses

Status Description
200 OK
400 Bad Request
401 Unauthorized
404 Not Found

Response Body

{
	"transaction_id": 1,
	"from_account": 10,
	"to_account": 12,
	"amount": 100,
	"timestamp": "2026-05-02T12:34:56Z"
}

Transaction History

Endpoint: /transaction/transactionhistory
Method: GET

Authentication

  • JWT token in cookies (required)

Query Parameters

Name Type Required Default Description
limit integer No 10 Maximum number of transactions to return
offset integer No 0 Number of transactions to skip

Responses

Status Description
200 OK
400 Bad Request
401 Unauthorized
500 Internal Server Error

Response Body

{
	"transactions": [
		{
			"transaction_id": 1,
			"from_account": 10,
			"to_account": 12,
			"amount": 100,
			"timestamp": "2026-05-02T12:34:56Z"
		}
	]
}

Clone this wiki locally