# Modifier un achat **PATCH /purchase/{uid}** Met à jour un achat existant. Vous pouvez modifier : - Les informations fournisseur - Les lignes de l'achat - Les dates et échéances - L'état (pour marquer comme payé, etc.) ## Événement déclenché Un événement `UPDATE_PURCHASE` est émis après la mise à jour. ## 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 ### Path parameters - **uid** (string) Identifiant unique de l'achat ### 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 ### 200 Achat mis à jour avec succès #### Body: application/json (object) - **updatedPurchase** (object) ### 400 Requête invalide - Données incorrectes ### 404 Achat non trouvé [Powered by Bump.sh](https://bump.sh)