Créer une adresse
curl --request POST \
--url https://qwoty.app/api/addresses \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"customer_id": "<string>",
"type": "<string>",
"address_line1": "<string>",
"city": "<string>",
"postal_code": "<string>",
"country": "<string>",
"name": "<string>",
"address_line2": "<string>",
"state": "<string>",
"contact_id": "<string>",
"comment": "<string>",
"id_crm": "<string>",
"id_erp": "<string>",
"id_accounting": "<string>"
}
'import requests
url = "https://qwoty.app/api/addresses"
payload = {
"customer_id": "<string>",
"type": "<string>",
"address_line1": "<string>",
"city": "<string>",
"postal_code": "<string>",
"country": "<string>",
"name": "<string>",
"address_line2": "<string>",
"state": "<string>",
"contact_id": "<string>",
"comment": "<string>",
"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({
customer_id: '<string>',
type: '<string>',
address_line1: '<string>',
city: '<string>',
postal_code: '<string>',
country: '<string>',
name: '<string>',
address_line2: '<string>',
state: '<string>',
contact_id: '<string>',
comment: '<string>',
id_crm: '<string>',
id_erp: '<string>',
id_accounting: '<string>'
})
};
fetch('https://qwoty.app/api/addresses', 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/addresses",
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([
'customer_id' => '<string>',
'type' => '<string>',
'address_line1' => '<string>',
'city' => '<string>',
'postal_code' => '<string>',
'country' => '<string>',
'name' => '<string>',
'address_line2' => '<string>',
'state' => '<string>',
'contact_id' => '<string>',
'comment' => '<string>',
'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/addresses"
payload := strings.NewReader("{\n \"customer_id\": \"<string>\",\n \"type\": \"<string>\",\n \"address_line1\": \"<string>\",\n \"city\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"name\": \"<string>\",\n \"address_line2\": \"<string>\",\n \"state\": \"<string>\",\n \"contact_id\": \"<string>\",\n \"comment\": \"<string>\",\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/addresses")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"customer_id\": \"<string>\",\n \"type\": \"<string>\",\n \"address_line1\": \"<string>\",\n \"city\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"name\": \"<string>\",\n \"address_line2\": \"<string>\",\n \"state\": \"<string>\",\n \"contact_id\": \"<string>\",\n \"comment\": \"<string>\",\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/addresses")
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 \"customer_id\": \"<string>\",\n \"type\": \"<string>\",\n \"address_line1\": \"<string>\",\n \"city\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"name\": \"<string>\",\n \"address_line2\": \"<string>\",\n \"state\": \"<string>\",\n \"contact_id\": \"<string>\",\n \"comment\": \"<string>\",\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": "770e8400-e29b-41d4-a716-446655440002",
"workspace_id": "706eb564-6c4a-4e18-841c-bdd79be6bca7",
"customer_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "billing",
"name": "Siège social",
"address_line1": "12 Rue de la Paix",
"address_line2": null,
"city": "Paris",
"state": null,
"postal_code": "75001",
"country": "FR",
"contact_id": null,
"comment": null,
"id_crm": null,
"id_erp": null,
"id_accounting": null,
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-01-15T10:30:00Z"
}
}
{
"error": "Erreur de validation",
"details": [
{ "path": "customer_id", "message": "customer_id doit être un UUID valide" },
{ "path": "type", "message": "Le type doit être \"billing\" ou \"shipping\"" }
]
}
Adresses
Créer une adresse
Créer une nouvelle adresse liée à un client
POST
/
api
/
addresses
Créer une adresse
curl --request POST \
--url https://qwoty.app/api/addresses \
--header 'Authorization: <authorization>' \
--header 'Content-Type: application/json' \
--data '
{
"customer_id": "<string>",
"type": "<string>",
"address_line1": "<string>",
"city": "<string>",
"postal_code": "<string>",
"country": "<string>",
"name": "<string>",
"address_line2": "<string>",
"state": "<string>",
"contact_id": "<string>",
"comment": "<string>",
"id_crm": "<string>",
"id_erp": "<string>",
"id_accounting": "<string>"
}
'import requests
url = "https://qwoty.app/api/addresses"
payload = {
"customer_id": "<string>",
"type": "<string>",
"address_line1": "<string>",
"city": "<string>",
"postal_code": "<string>",
"country": "<string>",
"name": "<string>",
"address_line2": "<string>",
"state": "<string>",
"contact_id": "<string>",
"comment": "<string>",
"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({
customer_id: '<string>',
type: '<string>',
address_line1: '<string>',
city: '<string>',
postal_code: '<string>',
country: '<string>',
name: '<string>',
address_line2: '<string>',
state: '<string>',
contact_id: '<string>',
comment: '<string>',
id_crm: '<string>',
id_erp: '<string>',
id_accounting: '<string>'
})
};
fetch('https://qwoty.app/api/addresses', 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/addresses",
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([
'customer_id' => '<string>',
'type' => '<string>',
'address_line1' => '<string>',
'city' => '<string>',
'postal_code' => '<string>',
'country' => '<string>',
'name' => '<string>',
'address_line2' => '<string>',
'state' => '<string>',
'contact_id' => '<string>',
'comment' => '<string>',
'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/addresses"
payload := strings.NewReader("{\n \"customer_id\": \"<string>\",\n \"type\": \"<string>\",\n \"address_line1\": \"<string>\",\n \"city\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"name\": \"<string>\",\n \"address_line2\": \"<string>\",\n \"state\": \"<string>\",\n \"contact_id\": \"<string>\",\n \"comment\": \"<string>\",\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/addresses")
.header("Authorization", "<authorization>")
.header("Content-Type", "application/json")
.body("{\n \"customer_id\": \"<string>\",\n \"type\": \"<string>\",\n \"address_line1\": \"<string>\",\n \"city\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"name\": \"<string>\",\n \"address_line2\": \"<string>\",\n \"state\": \"<string>\",\n \"contact_id\": \"<string>\",\n \"comment\": \"<string>\",\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/addresses")
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 \"customer_id\": \"<string>\",\n \"type\": \"<string>\",\n \"address_line1\": \"<string>\",\n \"city\": \"<string>\",\n \"postal_code\": \"<string>\",\n \"country\": \"<string>\",\n \"name\": \"<string>\",\n \"address_line2\": \"<string>\",\n \"state\": \"<string>\",\n \"contact_id\": \"<string>\",\n \"comment\": \"<string>\",\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": "770e8400-e29b-41d4-a716-446655440002",
"workspace_id": "706eb564-6c4a-4e18-841c-bdd79be6bca7",
"customer_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "billing",
"name": "Siège social",
"address_line1": "12 Rue de la Paix",
"address_line2": null,
"city": "Paris",
"state": null,
"postal_code": "75001",
"country": "FR",
"contact_id": null,
"comment": null,
"id_crm": null,
"id_erp": null,
"id_accounting": null,
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-01-15T10:30:00Z"
}
}
{
"error": "Erreur de validation",
"details": [
{ "path": "customer_id", "message": "customer_id doit être un UUID valide" },
{ "path": "type", "message": "Le type doit être \"billing\" ou \"shipping\"" }
]
}
Autorisation
string
requis
Jeton Bearer. Format :
Bearer qwoty_your_tokenCorps de la requête
string
requis
UUID du client auquel cette adresse appartient
string
requis
Type d’adresse. Valeurs autorisées :
"billing", "shipping"string
requis
Adresse postale
string
requis
Ville
string
requis
Code postal
string
requis
Code pays (ISO 3166-1 alpha-2, ex. :
"FR", "US", "DE")string
Libellé de cette adresse (ex. :
"Siège social", "Entrepôt")string
Complément d’adresse (appartement, étage, etc.)
string
État ou région
string
UUID du contact associé à cette adresse
string
Commentaire interne
string
Identifiant CRM externe
string
Identifiant ERP externe
string
Identifiant comptable externe
Exemples
curl -X POST https://qwoty.app/api/addresses \
-H "Authorization: Bearer qwoty_your_token" \
-H "Content-Type: application/json" \
-d '{
"customer_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "billing",
"name": "Siège social",
"address_line1": "12 Rue de la Paix",
"city": "Paris",
"postal_code": "75001",
"country": "FR"
}'
const response = await fetch('https://qwoty.app/api/addresses', {
method: 'POST',
headers: {
Authorization: 'Bearer qwoty_your_token',
'Content-Type': 'application/json',
},
body: JSON.stringify({
customer_id: '550e8400-e29b-41d4-a716-446655440000',
type: 'billing',
name: 'Siège social',
address_line1: '12 Rue de la Paix',
city: 'Paris',
postal_code: '75001',
country: 'FR',
}),
})
const data = await response.json()
import requests
response = requests.post(
'https://qwoty.app/api/addresses',
headers={
'Authorization': 'Bearer qwoty_your_token',
'Content-Type': 'application/json',
},
json={
'customer_id': '550e8400-e29b-41d4-a716-446655440000',
'type': 'billing',
'name': 'Siège social',
'address_line1': '12 Rue de la Paix',
'city': 'Paris',
'postal_code': '75001',
'country': 'FR',
},
)
data = response.json()
Réponse
boolean
true si l’adresse a été crééeobject
L’objet adresse créé (même structure que Obtenir une
adresse)
{
"success": true,
"data": {
"id": "770e8400-e29b-41d4-a716-446655440002",
"workspace_id": "706eb564-6c4a-4e18-841c-bdd79be6bca7",
"customer_id": "550e8400-e29b-41d4-a716-446655440000",
"type": "billing",
"name": "Siège social",
"address_line1": "12 Rue de la Paix",
"address_line2": null,
"city": "Paris",
"state": null,
"postal_code": "75001",
"country": "FR",
"contact_id": null,
"comment": null,
"id_crm": null,
"id_erp": null,
"id_accounting": null,
"created_at": "2026-01-15T10:30:00Z",
"updated_at": "2026-01-15T10:30:00Z"
}
}
{
"error": "Erreur de validation",
"details": [
{ "path": "customer_id", "message": "customer_id doit être un UUID valide" },
{ "path": "type", "message": "Le type doit être \"billing\" ou \"shipping\"" }
]
}
Cette page vous a-t-elle été utile ?
⌘I

