Organization API
https://api.gandi.net/v5/organization
Introduction ¶
This section of our documentation explains how to view information on organizations at Gandi.net through our REST API. Organizations are used to share products via user accounts.
All organization management must be performed via our web interface:
https://admin.gandi.net/organizations/
General information on using organizations at Gandi can be found in our public documentation at:
https://docs.gandi.net/en/sharing_products/index.html
Organization Management ¶
https://api.gandi.net/v5/organization/organizations
get List organizations ¶
Request
Query String
Optional
- ~name ⁠stringFilters the list by a name pattern.Example:
*lice
Example:alic*
- name ⁠stringFilters the list by exact name.
- permission ⁠stringFilters the list by the permission the authenticated user has on that organization and products in it.
- sort_by ⁠string
One of: "name", "type", "id"
Default: "name"
Used to specify how you want the results sorted. - type ⁠string
One of: "individual", "company", "association", "publicbody"
Filters the list by type of organization.
- ~name ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
200
Body
application/json
⁠arrayOf items of type:
- object
With the following properties:
- id ⁠stringThe main identifier of the organization. Also known as
sharing_id
in many routes. - name ⁠stringUnique name of the organization.
Optional
- corporate ⁠booleanFlag to indicate the
corporate
status for the organization. - email ⁠stringThe email address of the organization.
- firstname ⁠stringThe first name of the organization.
- lastname ⁠stringThe last name of the organization.
- orgname ⁠stringThe company, association, or public body name of the (non-individual) organization.
- reseller ⁠booleanFlag to indicate the
reseller
status for the organization. - siren ⁠stringThe siren number of the (non-individual) organization.
- type ⁠stringThe type of the organization.
- vat_number ⁠stringThe VAT number of the (non-individual) organization.
- id ⁠string
Example:[ { "name": "alice", "firstname": "Alice", "lastname": "Doe", "id": "80548b45-e18d-4cab-adef-e10a8406de4a", "reseller": false, "corporate": true, "type": "individual", "email": "alice@example.net" }, { "name": "bob", "firstname": "Bob", "orgname": "Bob's Roads", "lastname": "Doe", "email": "bob@example.net", "reseller": false, "corporate": false, "type": "publicbody", "id": "e1ab1204-e638-4fd8-85a4-34dd95013cdc" }, { "name": "ron", "firstname": "Ron", "orgname": "Ron Inc.", "lastname": "Doe", "email": "ron@example.net", "reseller": false, "corporate": false, "type": "company", "id": "b018061c-a4e3-4d6d-8445-e3837bd23815" } ]
- object
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
post Create an organization ¶
Request
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Body
application/json
⁠objectWith the following properties:
Required
- city ⁠stringthe city name of the address.
- email ⁠stringThe email address of the organization.
- firstname ⁠stringThe first name of the organization.
- lastname ⁠stringThe last name of the organization.
- name ⁠stringUnique name of the organization.
- orgname ⁠stringThe company, association, or public body name of the organization.
- phone ⁠stringphone number.
- streetaddr ⁠stringthe street address of the organization.
- type ⁠string
One of: "company", "association", "publicbody"
The type of the organization.
Optional
- country ⁠stringcountry ISO code of the address.
- fax ⁠stringfax number.
- lang ⁠stringlanguage of the organization for emails.
- reference ⁠stringOptional text to display on the invoice, such as your own reference info.
- reseller ⁠booleanFlag to set the organization as reseller.
- siren ⁠stringThe siren number of the organization.
- state ⁠stringstate ISO code of the address.
- streetaddr2 ⁠stringadditional street address info of the organization.
- vat_number ⁠stringThe VAT number of the organization.
- zip ⁠stringzip code of the address.
Example:{ "type": "company", "name": "Poppy Red LLC", "firstname": "John", "lastname": "Do", "orgname": "Poppy Red LLC", "email": "jd@example.net", "streetaddr": "42 Rue du Soleil Levant", "zip": "17000", "city": "La Rochelle", "country": "FR", "state": "FR-NAQ", "phone": "+33.612345678", "reseller": false }
- city ⁠string
Responses
201
Headers
Optional
- Location ⁠string
Body
application/json
⁠objectWith the following properties:
- id ⁠stringCreated Organization ID.
- message ⁠stringConfirmation message.
- id ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
/v5/organization/organizations/{org_id} ¶
https://api.gandi.net/v5/organization/organizations/{org_id}
get Show organization information ¶
Request
URI Parameters
- org_id ⁠stringOrganization ID.
- org_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
200
Body
application/json
⁠objectWith the following properties:
- city ⁠stringthe city name of the address.
- corporate ⁠booleanFlag set for corporate organization.
- country ⁠stringcountry ISO code of the address.
- email ⁠stringthe email address of the organization.
- firstname ⁠stringthe first name of the organization.
- id ⁠stringthe sharing id of the organization.
- lastname ⁠stringthe last name of the organization.
- name ⁠stringthe sharing name of the organization.
- reseller ⁠booleanFlag set for reseller organization.
- streetaddr ⁠stringthe street address of the organization.
- type ⁠string
One of: "individual", "company", "association", "publicbody"
the type of the organization. - zip ⁠stringzip code of the address.
Optional
- fax ⁠stringfax number.
- lang ⁠stringlanguage used to send emails to the organization.
- orgname ⁠stringorganization legal name.
- phone ⁠stringphone number.
- reference ⁠stringOptional text to display on the invoice, such as your own reference info.
- state ⁠stringstate ISO code of the address.
- streetaddr2 ⁠stringadditional street address info of the organization.
- vat_number ⁠stringThe VAT number of the organization.
- city ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
patch Update an organization ¶
Request
URI Parameters
- org_id ⁠stringOrganization ID.
- org_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Body
application/json
⁠objectWith the following properties:
Optional
- city ⁠stringthe city name of the address.
- country ⁠stringcountry (ISO 3166-1 alpha-2) code of the address.
- email ⁠stringThe email address of the organization.
- fax ⁠stringfax number.
- firstname ⁠stringThe first name of the organization.
- lang ⁠string
One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"
language code of the organization for emails. - lastname ⁠stringThe last name of the organization.
- name ⁠stringUnique name of the organization.
- phone ⁠stringphone number.
- reference ⁠stringOptional text to display on the invoice, such as your own reference info.
- reseller ⁠booleanSet the organization as reseller if true, cannot be set to false.
- siren ⁠stringThe siren number of the organization.
- state ⁠stringCountry subdivisions(ISO 3166-2) of the address.
- streetaddr ⁠stringthe street address of the organization.
- streetaddr2 ⁠stringadditional street address info of the organization.
- vat_number ⁠stringThe VAT number of the organization.
- zip ⁠stringzip (postal) code of the address.
- city ⁠string
Responses
202
Headers
Optional
- Location ⁠string
Body
application/json
⁠objectWith the following properties:
- message ⁠stringConfirmation message.
- message ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
delete Delete an organization ¶
Request
URI Parameters
- org_id ⁠stringOrganization ID.
- org_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
204
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
409
Body
application/json
⁠objectWith the following properties:
- message ⁠stringExplanation message.
- message ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Actions on organization customers ¶
https://api.gandi.net/v5/organization/organizations/{org_id}/action
post ¶
Request
URI Parameters
- org_id ⁠stringOrganization ID.
- org_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Body
application/json
⁠objectWith the following properties:
Required
- action ⁠string
One of: "release_resellee"
- params ⁠object
With the following properties:
Required
- id ⁠stringIdentifier of the customer to release
- id ⁠string
Example:{ "action": "release_resellee", "params": { "id": "000000000000-0000-0000-0000-000000000000" } }
- action ⁠string
Responses
201
Headers
Optional
- Location ⁠string
Body
application/json
⁠objectWith the following properties:
- message ⁠stringConfirmation message.
- message ⁠string
202
Body
application/json
⁠objectWith the following properties:
- message ⁠stringAccepted.
- message ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Management Of Customers Under a Reseller Organization ¶
https://api.gandi.net/v5/organization/organizations/{org_id}/customers
reseller
, then the product is not legally owned by the organization, but by the organization's customers.get List customers ¶
Request
URI Parameters
- org_id ⁠stringOrganization ID.
- org_id ⁠string
Query String
Optional
- name ⁠stringFilters the list by name, with optional patterns.Example:
*lice
Example:alic*
- page ⁠integer
Default: 1
Minimum: 1
Which result page to retrieve. If the number is greater than the last page, an empty list is returned. - per_page ⁠integer
Minimum: 1
How many items to display per page. - permission ⁠stringFilters the list by the permission the authenticated user has on that organization and products in it.
- sort_by ⁠string
One of: "name", "type", "id"
Default: "name"
Used to specify how you want the results sorted.
- name ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
200
Headers
- Total-Count ⁠integerTotal number of items.
Optional
- Link ⁠stringLinks to next and last page.
- Total-Count ⁠integer
Body
application/json
⁠arrayOf items of type:
- object
With the following properties:
- email ⁠stringEmail of the customer.
- firstname ⁠stringFirst name of the customer.
- id ⁠stringThe main identifier of the customer. Also known as
sharing_id
in many routes. - lastname ⁠stringLast name of the customer.
- name ⁠stringName of the customer.
- type ⁠string
One of: "individual", "company", "association", "publicbody"
Type of the customer organization.
Optional
- orgname ⁠stringOrganization legal name of the customer.
- email ⁠string
Example:[ { "id": "80548b45-e18d-4cab-adef-e10a8406de4a", "name": "alice", "firstname": "Alice", "lastname": "Doe", "type": "individual", "email": "alice@example.net" }, { "id": "e1ab1204-e638-4fd8-85a4-34dd95013cdc", "name": "bob", "firstname": "Bob", "lastname": "Doe", "type": "publicbody", "orgname": "Bob's Roads", "email": "bob@example.net" }, { "id": "b018061c-a4e3-4d6d-8445-e3837bd23815", "name": "ron", "firstname": "Ron", "lastname": "Doe", "type": "company", "orgname": "Ron Inc.", "email": "ron@example.net" } ]
- object
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
post Create a new customer ¶
Request
URI Parameters
- org_id ⁠stringOrganization ID.
- org_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Body
application/json
⁠objectWith the following properties:
Required
- city ⁠string
- country ⁠stringCountry code.
- email ⁠string
- firstname ⁠stringFirst name.
- lastname ⁠stringLast name.
- phone ⁠string
- streetaddr ⁠stringStreet address.
- type ⁠string
One of: "individual", "company", "association", "publicbody"
Type of the customer organization.
Optional
- fax ⁠string
- orgname ⁠stringOrganization legal name.
- reference ⁠stringOptional text to display on the invoice, such as your own customer reference info.
- state ⁠stringState/Province/Region.
- streetaddr2 ⁠stringApt. number, suite, building, etc.
- zip ⁠stringPostal (zip) code, see also https://en.wikipedia.org/wiki/List_of_postal_codes.
Example:{ "type": "company", "firstname": "John", "lastname": "Do", "orgname": "R&D", "email": "jd@example.net", "streetaddr": "21 jump street", "streetaddr2": "Appt31", "zip": "17137", "city": "Nieul-sur-mer", "country": "FR", "state": "FR-NAQ", "phone": "+33.612345678", "fax": "+33.612345699", "reference": "abc/3458" }
Responses
201
Headers
Optional
- Location ⁠string
Body
application/json
⁠objectWith the following properties:
- id ⁠stringCreated customer ID.
- message ⁠stringConfirmation message.
- id ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Management Of A Customer Under a Reseller Organization ¶
https://api.gandi.net/v5/organization/organizations/{org_id}/customers/{id}
get Show customer's information ¶
Request
URI Parameters
- org_id ⁠stringOrganization ID.
- id ⁠stringCustomer ID.
- org_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
200
Body
application/json
⁠objectWith the following properties:
- city ⁠stringthe city name of the address.
- country ⁠stringcountry ISO code of the address.
- email ⁠stringEmail of the customer.
- firstname ⁠stringFirst name of the customer.
- id ⁠stringThe main identifier of the customer. Also known as
sharing_id
in many routes. - lastname ⁠stringLast name of the customer.
- name ⁠stringName of the customer.
- streetaddr ⁠stringthe street address of the user.
- type ⁠string
One of: "individual", "company", "association", "publicbody"
Type of the customer organization.
Optional
- fax ⁠stringfax number.
- orgname ⁠stringOrganization legal name of the customer.
- phone ⁠stringphone number.
- reference ⁠stringOptional text to display on the invoice, such as your own customer reference info.
- state ⁠stringstate ISO code of the address.
- streetaddr2 ⁠stringadditional street address info of the user.
- zip ⁠stringzip code of the address.
Example:{ "id": "80548b45-e18d-4cab-adef-e10a8406de4a", "name": "alice", "firstname": "Alice", "lastname": "Doe", "type": "individual", "email": "alice@example.net", "streetaddr": "5000 Fraise", "zip": "17540", "city": "Les Rivieres d'Anais", "country": "FR" }
- city ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
patch Update customer's information ¶
Request
URI Parameters
- org_id ⁠stringOrganization ID.
- id ⁠stringCustomer ID.
- org_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Body
application/json
⁠objectWith the following properties:
Optional
- city ⁠stringthe city name of the address.
- country ⁠stringcountry (ISO 3166-1 alpha-2) code of the address.
- email ⁠stringThe email address of the customer.
- fax ⁠stringfax number.
- firstname ⁠stringThe first name of the customer; clients with type 'individual' cannot update their firstname.
- lang ⁠string
One of: "en", "es", "fr", "ja", "zh-hans", "zh-hant"
language code of the organization for emails. - lastname ⁠stringThe last name of the customer; clients with type 'individual' cannot update their lastname.
- phone ⁠stringphone number of the customer.
- reference ⁠stringreference field written on every invoice.
- siren ⁠stringThe siren number of the organization.
- state ⁠stringCountry subdivisions (ISO 3166-2) of the address.
- streetaddr ⁠stringthe street address of the customer.
- streetaddr2 ⁠stringadditional street address info of the customer.
- sync_contact_email ⁠string
One of: "never", "match", "always"
If the customer owns domains, the update of the email can automatically propagate the update of the email of the owners of domains. By default, the change is not propagated. If 'match' is chosen, the domains' owners that have the same email are updated, if 'always' is chosen, then the email is always updated. - vat_number ⁠stringThe VAT number of the organization.
- zip ⁠stringzip (postal) code of the address.
Example:Update email with domain owners email{ "email": "hello@example.net", "sync_contact_email": "match" }
Example:Update the reference of the customer{ "reference": "POPPYRED500" }
- city ⁠string
Responses
202
Headers
Optional
- Location ⁠string
Body
application/json
⁠objectWith the following properties:
- message ⁠stringConfirmation message.
- message ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
delete Delete customer ¶
Request
URI Parameters
- org_id ⁠stringOrganization ID.
- id ⁠stringCustomer ID.
- org_id ⁠string
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
204
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
409
Body
application/json
⁠objectWith the following properties:
- message ⁠stringExplanation message.
- message ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Authenticated User Information ¶
https://api.gandi.net/v5/organization/user-info
get Get user information ¶
Request
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string
Responses
200
Body
application/json
⁠objectWith the following properties:
- city ⁠stringthe city name of the address.
- email ⁠stringthe email address of the user.
- id ⁠stringthe sharing id of the user.
- lang ⁠stringlanguage used by the user.
- name ⁠stringthe sharing name of the user.
- username ⁠stringthe username of the user.
Optional
- country ⁠stringcountry ISO code of the address.
- fax ⁠stringfax number.
- firstname ⁠stringthe first name of the user.
- lastname ⁠stringthe last name of the user.
- phone ⁠stringphone number.
- state ⁠stringstate ISO code of the address.
- streetaddr ⁠stringthe street address of the user.
- streetaddr2 ⁠stringadditional street address info of the user.
- zip ⁠stringzip code of the address.
Example:{ "id": "ebfcd3cd-e014-4a3d-8216-6e342f227c3d", "username": "alice", "email": "alice@example.org", "name": "alice", "firstname": "Alice", "lastname": "Doe", "streetaddr": "5 rue neuve", "zip": "75001", "city": "Paris", "state": "FR-IDF", "country": "FR", "phone": "+33.123456789", "lang": "en" }
- city ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
401
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
403
Body
application/json
⁠objectWith the following properties:
- cause ⁠string
- code ⁠integer
- message ⁠string
- object ⁠string
Secured by
Http Authorization Scheme
This authentication scheme allows you to pass your Personal Access Token and be granted access to permissions and resources scoped by this token.
Tokens are created in the Organization Tab of the Gandi Admin application, choose the organization the token will have access too. Then go to the sharing tab, and click on "Create a token" button.
The authentication scheme Apikey allows also you to pass your Gandi API Key, but has been deprecated.
Headers
Required
- Authorization ⁠stringThe
Authorization
header must start withBearer
for access token, orApikey
depending of the authentication scheme.Apikey
is deprecated and be replaced by personal access token.Example:Bearer pat_abc-123
Example:Apikey your-api-key
- Authorization ⁠string