Last updated 1 year ago
Segments define the account types available for customers within a counterparty.
A user is capable to change the name of the segment.
Get account types by segment
Counterparty GUID
segment names (string)
GET /api/v1/counterparty/{counterparty_guid}/segments HTTP/1.1 Host: your_host Accept: */*
OK
[ { "counterparty": { "guid": "text", "name": "text" }, "segments": { "ANY_ADDITIONAL_PROPERTY": [ { "account_type_guid": "text", "asset_code": "text", "asset_issuer": "text", "counterparty_guid": "text", "kind": "processing", "segment_name": "text" } ] } } ]
Update account types segment
PATCH /api/v1/counterparty/{counterparty_guid}/segments HTTP/1.1 Host: your_host Content-Type: application/json Accept: */* Content-Length: 50 { "account_type_guid": "text", "segment_name": "text" }
{}