Point de terminaison du fabricant
Terminal
Fabricants
Fabricants/marques conformes à la norme GPSR.
Aperçu
| Fonctionnement | Méthode | Point d'extrémité | Portée |
|---|---|---|---|
| Exportation | GET | /xpanel/xoPort/export/json/manufacturers | fabricants : lecture |
| Import | POST | /xpanel/xoPort/import/json/manufacturers | fabricants : écriture |
| Mise à jour | PUT | /xpanel/xoPort/import/json/manufacturers | fabricants : écriture |
| Supprimer | DELETE | /xpanel/xoPort/delete/json/manufacturers | fabricants : supprimer |
Champs GPSR (sécurité des produits de l'UE)
À partir de la version 2.3.0, tous les champs de contact GPSR sont pris en charge (règlement européen sur la sécurité des produits) :
Contact UE (manufacturers_gpsr_contact_*)
manufacturers_gpsr_contact_company- Nom de l'entreprisemanufacturers_gpsr_contact_street,_postcode,_citymanufacturers_gpsr_contact_country- Code pays (DE, AT, etc.)manufacturers_gpsr_contact_email,_phone,_url
Contact hors UE (manufacturers_gpsr_non_eu_contact_*)
- Les mêmes champs avec le préfixe
_non_eu_ - Obligatoire pour les fabricants hors UE
Exportation (GET)
Paramètres de requête
| Paramètres | Type | Description |
|---|---|---|
manufacturers_id | int | Exporter un fabricant spécifique |
limit | int | Nombre max. |
offset | int | Position de départ |
Champs de réponse
manufacturers_id,manufacturers_namemanufacturers_image- Chemin d'accès au logomanufacturers_gpsr_*- Champs de contact GPSRlanguages{}- Description, référencement par langue
Importation (POST/PUT)
Exemple avec GPSR
curl -X POST "https://shop.de/xpanel/xoPort/import/json/manufacturers" \
-H "Authorization: Bearer VOTRE_JETON_D'ACCÈS" \
-H "Content-Type: application/json" \
-d '{
"type": "manufacturers",
"data": [{
"manufacturers_name": "ACME Corp",
"manufacturers_gpsr_contact_company": "ACME Europe GmbH",
"manufacturers_gpsr_contact_street": "Industriestr. 1",
"manufacturers_gpsr_contact_postcode": "12345",
"manufacturers_gpsr_contact_city": "Berlin",
"manufacturers_gpsr_contact_country": "DE",
"manufacturers_gpsr_contact_email": "gpsr@acme.de",
"languages": {
"de": {
"manufacturers_description": "Führender Hersteller..."
}
}
}]
}'