Caixa Associada
Obter Todas as Caixas Associadas
De modo a obter informações sobre um dado descritor, poderá realizar o seguinte pedido
Obter Todas as Contas de Caixa
Required scopes
This endpoint requires the following scopes:
- : commercial
Authorizations
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Responses
200Success
No content
get
/api/cash_accountsGET /api/cash_accounts HTTP/1.1
Host: {{base_url}}
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
200Success
No content
Obter Caixas Associadas por ID
Obter Contas de Caixa por ID
Required scopes
This endpoint requires the following scopes:
- : commercial
Authorizations
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Path parameters
idstringRequiredExample:
TODO
2Responses
200
Obter Contas de Caixa por ID
application/json
get
/api/cash_accounts/{id}GET /api/cash_accounts/{id} HTTP/1.1
Host: {{base_url}}
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
200
Obter Contas de Caixa por ID
{
"data": {
"attributes": {
"name": "Caixa Teste 1"
},
"id": "2",
"relationships": {
"company": {
"data": {
"id": "800000046",
"type": "current_company"
}
}
},
"type": "cash_accounts"
}
}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"
}
}
}
}
}Criar Caixas Associadas
Criar Contas de Caixa
Required scopes
This endpoint requires the following scopes:
- : commercial
Authorizations
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Body
Responses
200
Sucesso
application/json
post
/api/cash_accountsPOST /api/cash_accounts HTTP/1.1
Host: {{base_url}}
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 71
{
"data": {
"attributes": {
"name": "Caixa Teste 2"
},
"type": "cash_accounts"
}
}200
Sucesso
{
"data": {
"attributes": {
"name": "Caixa Teste 2"
},
"id": "3",
"relationships": {
"company": {
"data": {
"id": "800000046",
"type": "current_company"
}
}
},
"type": "cash_accounts"
}
}Remover Caixas Associadas
Remover Contas Bancárias
Required scopes
This endpoint requires the following scopes:
- : commercial
Authorizations
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Path parameters
bankAccountIdstringRequiredExample:
Id da conta bancária
5Responses
200
Sucesso
application/json
delete
/api/bank_accounts/{bankAccountId}DELETE /api/bank_accounts/{bankAccountId} HTTP/1.1
Host: {{base_url}}
Authorization: Bearer YOUR_OAUTH2_TOKEN
Accept: */*
200
Sucesso
{
"meta": {}
}Last updated