Skip to content
On this page

Clients

In Bcpro all items that you can add to an order or invoice are saved in clients. This can be a product, the cost of a specific work(M.O.I), text(REM.),...

REST API

GET /client
GET /clients

GraphQL

query {
  client {
    COD
  }
}
query {
  clients {
    COD
  }
}

Return

/client

{
  "data": {
      {
        "COD": "00001"
      },
  }
}

/clients

{
  "data": {
    "clients": [
      {
        "COD": "00001"
      },
      {
        "COD": "00002"
      },
		...
    ]
  }
}

Important fields

COD string(10)
Primary key of the client.

NOM string(40)
Full name

ADR string(40)
Address

CDP string(6)
Postal code

VIL string(35)
City

PY string(3)
Country code

LGUE string(1)
Language(D, F, E, N,)

E_MAIL string(60)
Email address

The Client Object

{
  "ADR": "Musteradresse 1",
  "CDP": "12345",
  "COD": "00001",
  "E_MAIL": "max@mustermann.de",
  "ENTE": "MR",
  "LGUE": "D",
  "NOM": "Max Mustermann",
  "NOM2": " ",
  "PY": "DE",
  "TEL1": "0478/123.456",
  "TEL2": " ",
  "TYP_INTERV": " ",
  "VIL": "Musterstadt"
}