Appearance
Budgets API
The Budgets API provides endpoints to get budgets.
Get Budgets (JSON)
Endpoint:
GET /{companyId}/budgets/jsonQuery Parameters:
start_date(optional) - Filter receipts from this date.end_date(optional) - Filter receipts up to this date.order_by(optional, default:created_at) - Sorting field.order_direction(optional, default:desc) - Sorting order.
Example Request:
sh
curl -X GET "https://app.masrapp.net/integration/v1/{companyId}/budgets/json" \
-H "X-API-KEY: your_api_key"Example Response:
json
{
"data": [
{
"id": "9e35eca6-d9be-4dac-9b07-8da42c6cbb1b",
"code": "PAZARLAMA",
"name": "Pazarlama",
"description": "",
"status": 1,
"created_at": "2025-02-14T14:46:48.000000Z"
}
],
"links": {
"first": "https://app.masrapp.net/integration/v1/9e35e991-b733-4a65-9e2f-152adf94a013/budgets/json?page=1",
"last": "https://app.masrapp.net/integration/v1/9e35e991-b733-4a65-9e2f-152adf94a013/budgets/json?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "\" Öncesi",
"active": false
},
{
"url": "https://app.masrapp.net/integration/v1/9e35e991-b733-4a65-9e2f-152adf94a013/budgets/json?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Sonraki \"",
"active": false
}
],
"path": "https://app.masrapp.net/integration/v1/9e35e991-b733-4a65-9e2f-152adf94a013/budgets/json",
"per_page": 50,
"to": 1,
"total": 1
}
}Get Budgets (XML)
Endpoint:
GET /{companyId}/budgets/xmlExample Request:
sh
curl -X GET "https://app.masrapp.net/integration/v1/{companyId}/budgets/xml" \
-H "X-API-KEY: your_api_key"Example Response:
xml
<?xml version="1.0" encoding="utf-8"?>
<root>
<data>
<item>
<id>9e35eca6-d9be-4dac-9b07-8da42c6cbb1b</id>
<code>PAZARLAMA</code>
<name>Pazarlama</name>
<description></description>
<status>1</status>
<created_at>2025-02-14T14:46:48.000000Z</created_at>
</item>
</data>
<links>
<first>https://app.masrapp.net/integration/v1/9e35e991-b733-4a65-9e2f-152adf94a013/budgets/xml?page=1</first>
<last>https://app.masrapp.net/integration/v1/9e35e991-b733-4a65-9e2f-152adf94a013/budgets/xml?page=1</last>
<prev></prev>
<next></next>
</links>
<meta>
<current_page>1</current_page>
<from>1</from>
<last_page>1</last_page>
<per_page>50</per_page>
<to>1</to>
<total>1</total>
</meta>
</root>