Créer un client
curl --request POST \
--url https://qwoty.app/api/customers \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"type": "<string>",
"segment_id": "<string>",
"logo": "<string>",
"tax_ids": [
{}
],
"id_crm": "<string>",
"id_erp": "<string>",
"id_accounting": "<string>"
}
'import requests
url = "https://qwoty.app/api/customers"
payload = {
"name": "<string>",
"type": "<string>",
"segment_id": "<string>",
"logo": "<string>",
"tax_ids": [{}],
"id_crm": "<string>",
"id_erp": "<string>",
"id_accounting": "<string>"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
type: '<string>',
segment_id: '<string>',
logo: '<string>',
tax_ids: [{}],
id_crm: '<string>',
id_erp: '<string>',
id_accounting: '<string>'
})
};
fetch('https://qwoty.app/api/customers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://qwoty.app/api/customers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'type' => '<string>',
'segment_id' => '<string>',
'logo' => '<string>',
'tax_ids' => [
[
]
],
'id_crm' => '<string>',
'id_erp' => '<string>',
'id_accounting' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://qwoty.app/api/customers"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"segment_id\": \"<string>\",\n \"logo\": \"<string>\",\n \"tax_ids\": [\n {}\n ],\n \"id_crm\": \"<string>\",\n \"id_erp\": \"<string>\",\n \"id_accounting\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://qwoty.app/api/customers")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"segment_id\": \"<string>\",\n \"logo\": \"<string>\",\n \"tax_ids\": [\n {}\n ],\n \"id_crm\": \"<string>\",\n \"id_erp\": \"<string>\",\n \"id_accounting\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://qwoty.app/api/customers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"segment_id\": \"<string>\",\n \"logo\": \"<string>\",\n \"tax_ids\": [\n {}\n ],\n \"id_crm\": \"<string>\",\n \"id_erp\": \"<string>\",\n \"id_accounting\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"workspace_id": "706eb564-6c4a-4e18-841c-bdd79be6bca7",
"name": "Acme Corporation",
"type": "company",
"segment_id": null,
"logo": null,
"id_crm": "crm_001",
"id_erp": null,
"id_accounting": null,
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-01-15T10:30:00Z"
}
}
{
"error": "Validation error",
"details": [
{ "path": "name", "message": "Name is required" },
{ "path": "type", "message": "Type must be \"company\" or \"individual\"" }
]
}
{
"error": "Invalid API token"
}
Clients
Créer un client
Créer un nouveau client dans votre espace de travail
POST
/
api
/
customers
Créer un client
curl --request POST \
--url https://qwoty.app/api/customers \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"name": "<string>",
"type": "<string>",
"segment_id": "<string>",
"logo": "<string>",
"tax_ids": [
{}
],
"id_crm": "<string>",
"id_erp": "<string>",
"id_accounting": "<string>"
}
'import requests
url = "https://qwoty.app/api/customers"
payload = {
"name": "<string>",
"type": "<string>",
"segment_id": "<string>",
"logo": "<string>",
"tax_ids": [{}],
"id_crm": "<string>",
"id_erp": "<string>",
"id_accounting": "<string>"
}
headers = {
"Authorization": "<authorization>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: '<authorization>', 'Content-Type': 'application/json'},
body: JSON.stringify({
name: '<string>',
type: '<string>',
segment_id: '<string>',
logo: '<string>',
tax_ids: [{}],
id_crm: '<string>',
id_erp: '<string>',
id_accounting: '<string>'
})
};
fetch('https://qwoty.app/api/customers', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://qwoty.app/api/customers",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'name' => '<string>',
'type' => '<string>',
'segment_id' => '<string>',
'logo' => '<string>',
'tax_ids' => [
[
]
],
'id_crm' => '<string>',
'id_erp' => '<string>',
'id_accounting' => '<string>'
]),
CURLOPT_HTTPHEADER => [
"Authorization: <authorization>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://qwoty.app/api/customers"
payload := strings.NewReader("{\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"segment_id\": \"<string>\",\n \"logo\": \"<string>\",\n \"tax_ids\": [\n {}\n ],\n \"id_crm\": \"<string>\",\n \"id_erp\": \"<string>\",\n \"id_accounting\": \"<string>\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "<authorization>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://qwoty.app/api/customers")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"segment_id\": \"<string>\",\n \"logo\": \"<string>\",\n \"tax_ids\": [\n {}\n ],\n \"id_crm\": \"<string>\",\n \"id_erp\": \"<string>\",\n \"id_accounting\": \"<string>\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://qwoty.app/api/customers")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = '<authorization>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"name\": \"<string>\",\n \"type\": \"<string>\",\n \"segment_id\": \"<string>\",\n \"logo\": \"<string>\",\n \"tax_ids\": [\n {}\n ],\n \"id_crm\": \"<string>\",\n \"id_erp\": \"<string>\",\n \"id_accounting\": \"<string>\"\n}"
response = http.request(request)
puts response.read_body{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"workspace_id": "706eb564-6c4a-4e18-841c-bdd79be6bca7",
"name": "Acme Corporation",
"type": "company",
"segment_id": null,
"logo": null,
"id_crm": "crm_001",
"id_erp": null,
"id_accounting": null,
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-01-15T10:30:00Z"
}
}
{
"error": "Validation error",
"details": [
{ "path": "name", "message": "Name is required" },
{ "path": "type", "message": "Type must be \"company\" or \"individual\"" }
]
}
{
"error": "Invalid API token"
}
Autorisation
string
requis
Jeton Bearer. Format :
Bearer qwoty_your_tokenCorps de la requête
string
requis
Nom d’affichage du client
string
requis
Type de client. Valeurs autorisées :
"company", "individual"string
UUID du segment client
string
URL du logo
array
Identifiants légaux de ce client. Chaque entrée doit contenir
tax et tax_value.[{ "tax": "VAT", "tax_value": "FR12345678901" }]
string
Identifiant CRM externe
string
Identifiant ERP externe
string
Identifiant comptable externe
Exemples
curl -X POST https://qwoty.app/api/customers \
-H "Authorization: Bearer qwoty_your_token" \
-H "Content-Type: application/json" \
-d '{
"name": "Acme Corporation",
"type": "company",
"tax_ids": [
{ "tax": "VAT", "tax_value": "FR12345678901" }
],
"id_crm": "crm_001"
}'
const response = await fetch('https://qwoty.app/api/customers', {
method: 'POST',
headers: {
Authorization: 'Bearer qwoty_your_token',
'Content-Type': 'application/json',
},
body: JSON.stringify({
name: 'Acme Corporation',
type: 'company',
tax_ids: [{ tax: 'VAT', tax_value: 'FR12345678901' }],
id_crm: 'crm_001',
}),
})
const data = await response.json()
import requests
response = requests.post(
'https://qwoty.app/api/customers',
headers={
'Authorization': 'Bearer qwoty_your_token',
'Content-Type': 'application/json',
},
json={
'name': 'Acme Corporation',
'type': 'company',
'tax_ids': [{'tax': 'VAT', 'tax_value': 'FR12345678901'}],
'id_crm': 'crm_001',
},
)
data = response.json()
Réponse
boolean
true si le client a été crééobject
L’objet client créé (même structure que Obtenir un
client)
{
"success": true,
"data": {
"id": "550e8400-e29b-41d4-a716-446655440000",
"workspace_id": "706eb564-6c4a-4e18-841c-bdd79be6bca7",
"name": "Acme Corporation",
"type": "company",
"segment_id": null,
"logo": null,
"id_crm": "crm_001",
"id_erp": null,
"id_accounting": null,
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-01-15T10:30:00Z"
}
}
{
"error": "Validation error",
"details": [
{ "path": "name", "message": "Name is required" },
{ "path": "type", "message": "Type must be \"company\" or \"individual\"" }
]
}
{
"error": "Invalid API token"
}
Cette page vous a-t-elle été utile ?
⌘I

