API

Organization

An organization: list, create, get, update or delete one.

Operations

Every route this entity exposes. Each route links to its own reference on this page.

Method Route SDK operation Returns
POST /organization/organizations/{org_id}/action create Created
POST /organization/organizations create Created
GET /organization/organizations list OK
GET /organization/organizations/{org_id} load OK
DELETE /organization/organizations/{org_id} remove No Content
PATCH /organization/organizations/{org_id} update Accepted

Examples

One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.

Golang

Construct client as shown in the Golang setup, then call the operations:

organizations, err := client.Organization(nil).List(nil, nil)
if err != nil {
    panic(err)
}
fmt.Println(organizations)
organization, err := client.Organization(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(organization)
created, err := client.Organization(nil).Create(map[string]any{"city": "example", "email": "example", "firstname": "example", "lastname": "example", "name": "example", "orgname": "example", "phone": "example", "streetaddr": "example", "type": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(created)
updated, err := client.Organization(nil).Update(map[string]any{"id": "example_id", "city": "example", "country": "example"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(updated)
removed, err := client.Organization(nil).Remove(map[string]any{"id": "example_id"}, nil)
if err != nil {
    panic(err)
}
fmt.Println(removed)

Lua

Construct client as shown in the Lua setup, then call the operations:

local organizations, err = client:Organization():list()
local organization, err = client:Organization():load({ id = "example_id" })
local created, err = client:Organization():create({ city = "example", email = "example", firstname = "example", lastname = "example", name = "example", orgname = "example", phone = "example", streetaddr = "example", type = "example" })
local updated, err = client:Organization():update({ id = "example_id", city = "example", country = "example" })
local removed, err = client:Organization():remove({ id = "example_id" })

PHP

Construct client as shown in the PHP setup, then call the operations:

$organizations = $client->Organization()->list();
$organization = $client->Organization()->load(["id" => "example_id"]);
$created = $client->Organization()->create(["city" => "example", "email" => "example", "firstname" => "example", "lastname" => "example", "name" => "example", "orgname" => "example", "phone" => "example", "streetaddr" => "example", "type" => "example"]);
$updated = $client->Organization()->update(["id" => "example_id", "city" => "example", "country" => "example"]);
$client->Organization()->remove(["id" => "example_id"]);

Python

Construct client as shown in the Python setup, then call the operations:

organizations = client.Organization().list()
organization = client.Organization().load({"id": "example_id"})
created = client.Organization().create({ "city": "example", "email": "example", "firstname": "example", "lastname": "example", "name": "example", "orgname": "example", "phone": "example", "streetaddr": "example", "type": "example" })
updated = client.Organization().update({"id": "example_id", "city": "example", "country": "example"})
client.Organization().remove({"id": "example_id"})

Ruby

Construct client as shown in the Ruby setup, then call the operations:

organizations = client.Organization.list()
organization = client.Organization.load({ "id" => "example_id" })
created = client.Organization.create({ "city" => "example", "email" => "example", "firstname" => "example", "lastname" => "example", "name" => "example", "orgname" => "example", "phone" => "example", "streetaddr" => "example", "type" => "example" })
updated = client.Organization.update({ "id" => "example_id", "city" => "example", "country" => "example" })
client.Organization.remove({ "id" => "example_id" })

TypeScript

Construct client as shown in the TypeScript setup, then call the operations:

const organizations = await client.Organization().list()
const organization = await client.Organization().load({ id: "example_id" })
const created = await client.Organization().create({ city: "example", email: "example", firstname: "example", lastname: "example", name: "example", orgname: "example", phone: "example", streetaddr: "example", type: "example" })
const updated = await client.Organization().update({ id: "example_id", city: "example", country: "example" })
await client.Organization().remove({ id: "example_id" })

Fields

Field Type Required Description
city string Yes City
corporate boolean Yes Corporate
country string Yes Country
email string Yes Email
fax string No Fax
firstname string Yes Firstname
id string Yes Id
lang string No Lang
lastname string Yes Lastname
message string Yes Message
name string Yes Name
orgname string No Orgname
phone string No Phone
reference string No Reference
reseller boolean Yes Reseller
siren string No Siren
state string No State
streetaddr string Yes Streetaddr
streetaddr2 string No Streetaddr2
type string Yes Type
vat_number string No Vat Number
zip string Yes Zip

create

POST /organization/organizations/{org_id}/action

Operation ID: postOrganizationOrganizationsOrgIdAction.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_id path string Yes

Request body

application/json

Property Type Required Description
action enum: release_resellee Yes
params object Yes
params.id string Yes

Responses

201: Created

application/json

Property Type Required Description
message string Yes
202: Accepted

application/json

Property Type Required Description
message string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

POST /organization/organizations

Operation ID: postOrganizationOrganizations.

Authentication: bearer token (bearerAuth).

Request body

application/json

Property Type Required Description
city string Yes
country string No
email string Yes
fax string No
firstname string Yes
lang string No
lastname string Yes
name string Yes
orgname string Yes
phone string Yes
reference string No
reseller boolean No
siren string No
state string No
streetaddr string Yes
streetaddr2 string No
type enum: company, association, publicbody Yes
vat_number string No
zip string No

Responses

201: Created

application/json

Property Type Required Description
id string Yes
message string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

list

GET /organization/organizations

Operation ID: getOrganizationOrganizations.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
~name query string No
name query string No
permission query string No
sort_by query enum: name, type, id No
type query enum: individual, company, association, publicbody No

Responses

200: OK

application/json

Property Type Required Description
[].corporate boolean No
[].email string No
[].firstname string No
[].id string Yes
[].lastname string No
[].name string Yes
[].orgname string No
[].reseller boolean No
[].siren string No
[].type string No
[].vat_number string No
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

load

GET /organization/organizations/{org_id}

Operation ID: getOrganizationOrganizationsOrgId.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_id path string Yes

Responses

200: OK

application/json

Property Type Required Description
city string Yes
corporate boolean Yes
country string Yes
email string Yes
fax string No
firstname string Yes
id string Yes
lang string No
lastname string Yes
name string Yes
orgname string No
phone string No
reference string No
reseller boolean Yes
state string No
streetaddr string Yes
streetaddr2 string No
type enum: individual, company, association, publicbody Yes
vat_number string No
zip string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes

remove

DELETE /organization/organizations/{org_id}

Operation ID: deleteOrganizationOrganizationsOrgId.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_id path string Yes

Responses

204: No Content
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
409: Conflict

application/json

Property Type Required Description
message string Yes

update

PATCH /organization/organizations/{org_id}

Operation ID: patchOrganizationOrganizationsOrgId.

Authentication: bearer token (bearerAuth).

Parameters

Parameter In Type Required Description
org_id path string Yes

Request body

application/json

Property Type Required Description
city string No
country string No
email string No
fax string No
firstname string No
lang enum: en, es, fr, ja, zh-hans, zh-hant No
lastname string No
name string No
phone string No
reference string No
reseller boolean No
siren string No
state string No
streetaddr string No
streetaddr2 string No
vat_number string No
zip string No

Responses

202: Accepted

application/json

Property Type Required Description
message string Yes
401: Unauthorized

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes
403: Forbidden

application/json

Property Type Required Description
cause string Yes
code integer Yes
message string Yes
object string Yes