cURL
curl --request POST \ --url https://api.example.com/v1/ledgers/{id}/entries \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "amount": 2, "type": "credit", "description": "<string>", "metadata": {} } '
{ "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "ledger_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "transaction_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "amount": 123, "type": "credit", "description": "<string>", "balance": 123, "timestamp": "2023-11-07T05:31:56Z", "metadata": {}, "created_at": "2023-11-07T05:31:56Z", "created_by": "3c90c3cc-0d44-4b50-8888-8dd25736052a" }
Create a new entry in the ledger
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
Ledger UUID
Unique transaction identifier
Entry amount in cents
x >= 1
Type of entry
credit
debit
Entry description
Additional entry metadata
Entry created successfully
Amount in cents
Running balance in cents