Last updated 8 months ago
Obter Todas as Categorias de Despesa
Obter Categorias de Despesa por Id
"2"
Sucesso
const response = await fetch('{{base_url}}/api/expense_categories', { method: 'GET', headers: {}, }); const data = await response.json();
const response = await fetch('{{base_url}}/api/expense_categories/{id}', { method: 'GET', headers: {}, }); const data = await response.json();
{ "data": { "attributes": { "accounting_number": "241", "accounting_suffix": "241", "categories_count": 0, "company_id": 800000046, "created_at": "2023-04-27 11:26:41", "enumerations_expense_category_grouping_id": null, "enumerations_profit_and_losses_category_id": null, "help": null, "is_deletable": false, "is_editable": false, "is_main": true, "is_ready": null, "name": "Impostos Sobre o Rendimento", "parent_expense_category_id": null, "tax_code": "NOR", "tax_deductibility": 100, "updated_at": "2023-04-27 11:26:41" }, "id": "2", "relationships": { "company": { "data": { "id": "800000046", "type": "current_company" } }, "parent_expense_category": { "data": null } }, "type": "expense_categories" } }