Last updated 1 year ago
De modo a obter informações sobre um dado descritor, poderá realizar o seguinte pedido
{ "data": [ { "type": "cash_accounts", "id": "2", "attributes": { "name": "Caixa Teste 1" }, "relationships": { "company": { "data": { "type": "current_company", "id": "800000046" } } } } ] }
GET /api/bank_accounts/2
{ "data": { "type": "bank_accounts", "id": "2", "attributes": { "entity_type": "User", "description": null, "name": "BANCO BPI, SA", "nib": "001049282327079673218", "swift": "BBPIPTPL", "iban": "PT50001049282327079673218", "initial_balance": null, "sub_type": "ticket_account", "card_number": "", "account_type": "DO", "only_one_payment": null, "is_connected": false, "consent_until": null }, "relationships": { "supplier": { "data": null }, "user": { "data": { "type": "current_company_users", "id": "800000863" } } } } }
Obter Todas as Contas de Caixa
GET /api/cash_accounts HTTP/1.1 Host: {{base_url}} Accept: */*
No content
Obter Contas de Caixa por ID
TODO
2
GET /api/cash_accounts/{id} HTTP/1.1 Host: {{base_url}} Accept: */*
{ "data": { "attributes": { "name": "Caixa Teste 1" }, "id": "2", "relationships": { "company": { "data": { "id": "800000046", "type": "current_company" } } }, "type": "cash_accounts" } }
Remover Contas Bancárias
Id da conta bancária
5
DELETE /api/bank_accounts/{bankAccountId} HTTP/1.1 Host: {{base_url}} Accept: */*
Sucesso
{ "meta": {} }
Criar Contas de Caixa
POST /api/cash_accounts HTTP/1.1 Host: {{base_url}} Content-Type: application/json Accept: */* Content-Length: 71 { "data": { "attributes": { "name": "Caixa Teste 2" }, "type": "cash_accounts" } }
{ "data": { "attributes": { "name": "Caixa Teste 2" }, "id": "3", "relationships": { "company": { "data": { "id": "800000046", "type": "current_company" } } }, "type": "cash_accounts" } }