# Créer un achat **POST /purchase** Crée un nouvel achat (facture fournisseur). ## Champs principaux - **supplier** : Référence du fournisseur - **supplier_name** : Nom du fournisseur - **date** : Date de l'achat - **lines** : Lignes de l'achat (produits/services) ## États disponibles L'achat peut être créé directement en état : - **draft** : Brouillon - **waiting** : En attente - **paid** : Déjà payé ## Événement déclenché Un événement `CREATE_PURCHASE` est émis après la création. ## Servers - Version 2 of the API: https://wuro.pro/api/v3.2 (Version 2 of the API) ## Authentication methods - App id auth & App secret auth ## Parameters ### Body: application/json (object) - **invoiceNumber** (string) - **date** (string(date-time)) - **supplier** (string) - **supplier_name** (string) - **supplier_code** (string) - **supplierTvaNumber** (string) - **supplierReverseCharge** (boolean) - **total_ht** (number) - **total_ttc** (number) - **total_tva** (number) - **currency** (string) - **state** (string) - **type** (string) - **lines** (array[object]) - **payments** (array[object]) - **payment_date** (string(date-time)) - **payment_expiry_date** (string(date-time)) - **categories** (array[string]) - **analytical_code** (string) ## Responses ### 201 Achat créé avec succès #### Body: application/json (object) - **newPurchase** (object) ### 400 Bad request - Invalid input [Powered by Bump.sh](https://bump.sh)