curl --request POST \
--url http://api.endclose.com/records \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"date": "2023-12-25",
"type_key": "<string>",
"id": "<string>",
"amount": 123,
"direction": "credit",
"description": "<string>",
"metadata": {},
"status": "reconciled",
"external_id": "<string>"
}
'