[optional] Branch
Please use branches to segregate employees, customers and digital entity
Working with branches you have the following features:
Get the branches list and total branch entities
Get branches list and total branches count
Path parameters
counterparty_guidstringRequired
Counterparty GUID
Query parameters
namesstring[]Optional
branches names filter (string)
guidsstring[]Optional
branches guids filter (uuid)
limitintegerOptional
limit (int)
offsetintegerOptional
offset (int)
orderstring · enumOptionalPossible values:
list order (string)
Responses
200
OK
application/json
400
json with error msg
application/json
get
GET /api/v1/counterparty/{counterparty_guid}/branches HTTP/1.1
Host: your_host
Accept: */*
{
"list": [
{
"counterparty_guid": "text",
"created_at": "text",
"guid": "text",
"is_deleted": true,
"name": "text",
"updated_at": "text"
}
],
"total": 1
}
Create branch
Create branch
Path parameters
counterparty_guidstringRequired
Counterparty GUID
Body
namestringOptional
branch name
Responses
200
OK
application/json
400
json with error msg
application/json
post
POST /api/v1/counterparty/{counterparty_guid}/branches HTTP/1.1
Host: your_host
Content-Type: application/json
Accept: */*
Content-Length: 15
{
"name": "text"
}
{
"guid": "text"
}
Get Branch
Get branch
Path parameters
counterparty_guidstringRequired
Counterparty GUID
branch_guidstringRequired
branch guid (uuid)
Responses
200
OK
application/json
400
json with error msg
application/json
get
GET /api/v1/counterparty/{counterparty_guid}/branches/{branch_guid} HTTP/1.1
Host: your_host
Accept: */*
{
"counterparty_guid": "text",
"created_at": "text",
"guid": "text",
"is_deleted": true,
"name": "text",
"updated_at": "text"
}
Update Branch
Update branch
Path parameters
counterparty_guidstringRequired
Counterparty GUID
branch_guidstringRequired
branch guid (uuid)
Body
is_deletedbooleanOptional
namestringOptional
Responses
200
OK
application/json
Responseobject
400
json with error msg
application/json
put
PUT /api/v1/counterparty/{counterparty_guid}/branches/{branch_guid} HTTP/1.1
Host: your_host
Content-Type: application/json
Accept: */*
Content-Length: 33
{
"is_deleted": true,
"name": "text"
}
{}
Last updated