cURL
curl --request POST \ --url https://grosh.muathye.com/api/obligations \ --header 'Authorization: Bearer <token>' \ --header 'Content-Type: application/json' \ --data ' { "name": "<string>", "opened_date": "2023-12-25", "original_amount": 123, "outstanding_amount": 1, "contact_id": "<string>", "account_id": "<string>", "currency_id": "<string>", "reference": "<string>", "notes": "<string>", "due_date": "2023-12-25" } '
{ "id": "<string>", "name": "<string>", "reference": "<string>", "notes": "<string>", "opened_date": "2023-12-25", "due_date": "2023-12-25", "original_amount": 123, "outstanding_amount": 123, "status": "open", "settled_at": "2023-11-07T05:31:56Z", "contact": { "id": "<string>", "name": "<string>" }, "account": { "id": "<string>", "name": "<string>", "code": "<string>" }, "currency": { "id": "<string>", "name": "<string>", "code": "<string>" }, "created_at": "2023-11-07T05:31:56Z", "updated_at": "2023-11-07T05:31:56Z", "deleted_at": "2023-11-07T05:31:56Z" }
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Bearer <token>
<token>
150
x >= 0
100
Successful response
open
settled
Show child attributes
Was this page helpful?