Skip to content

Account Group

Account Groups will be used for Suppliers to group their Customers.

A Supplier at this moment owns one Account Group. An Account Group has a name. Each Customer of a Supplier should belong to one Account Group.

erDiagram SUPPLIER }|..|{ ACCOUNT-GROUP-1 : "owns" SUPPLIER }|..|{ ACCOUNT-GROUP-2 : "owns" ACCOUNT-GROUP-1 ||--o{ CUSTOMER-1 : "is assigned to" ACCOUNT-GROUP-1 ||--o{ CUSTOMER-2 : "is assigned to" ACCOUNT-GROUP-2 ||--o{ CUSTOMER-3 : "is assigned to"

Available features

  • List all account groups owned by a Supplier

Examples

List account groups owned by account
sequenceDiagram Actor->>Administration API: GET account groups owned by account Note right of Administration API: See request/response below Administration API-->>Actor: OK!

Request:

GET v1/accounts/cd14708b-cecf-4b2e-a207-1721ff46f8c1/account-groups

Request Headers:
authorization:"Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c"
host:"api.host.url"
Response Body:
[
  {
    "id": "245c73c8-9a11-499a-ae7d-f82b4c38ed7d",
    "name": "name of account group"
  }
]