DELETE /delivery-receipt/{uid}

Supprime un bon de livraison (soft delete).

Le bon passe en état "inactive" et n'est plus visible dans les listes standards.

Événement déclenché

Un événement DELETE_RECEIPT est émis après la suppression.

Path parameters

  • uid string Required

    Identifiant unique du bon de livraison

Responses

  • 200 application/json

    Bon de livraison supprimé

    Hide response attribute Show response attribute object
    • receipt object
      Hide receipt attributes Show receipt attributes object
      • _id string

        Unique identifier for the delivery receipt

      • client string

        Reference to the client

      • client_name string

        Name of the client

      • client_contact string

        Contact person at the client

      • client_email string

        Email of the client

      • client_mobile string

        Mobile phone of the client

      • comment string

        Additional comments

      • company string

        Reference to the company

      • company_name string

        Name of the company

      • date string(date-time)

        Date of the delivery receipt

      • delivery_address string

        Delivery address

      • delivery_city string

        Delivery city

      • delivery_country string

        Delivery country

      • delivery_zip_code string

        Delivery zip code

      • delivery_date string

        Delivery date

      • fromInvoice string

        Reference to the invoice if created from an invoice

      • fromQuote string

        Reference to the quote if created from a quote

      • lines array[object]

        List of delivery receipt lines

        Hide lines attributes Show lines attributes object
        • description string

          Description of the line

        • quantity number

          Quantity

          Default value is 1.

        • reference string

          Reference of the product

        • title string

          Title of the line

        • type string

          Type of the line

          Values are product or header. Default value is product.

        • weight number

          Weight of the product

      • number string

        Receipt number

      • numberOrder string

        Order number

      • notes string

        Additional notes

      • shipping_date string(date-time)

        Shipping date

      • shipping_method string

        Shipping method

      • shippingNbPackages number

        Number of packages

      • state string

        State of the delivery receipt

        Values are draft, waiting, shipped, delivered, refused, canceled, or inactive. Default value is draft.

      • title string

        Short description or label of the delivery receipt

      • totalWeight number

        Total weight of all products

      • totalQuantity number

        Total quantity of all products

        Default value is 0.

      • type string

        Type of the receipt

        Value is delivery. Default value is delivery.

  • 403

    Non autorisé - Droits insuffisants pour supprimer ce bon

  • 404

    Bon de livraison non trouvé

DELETE /delivery-receipt/{uid}
curl \
 --request DELETE 'https://wuro.pro/api/v3.2/delivery-receipt/{uid}' \
 --header "X-APP-ID: $API_KEY" \
 --header "X-APP-SECRET: $API_KEY"
Response examples (200)
{
  "receipt": {
    "_id": "string",
    "client": "string",
    "client_name": "string",
    "client_contact": "string",
    "client_email": "string",
    "client_mobile": "string",
    "comment": "string",
    "company": "string",
    "company_name": "string",
    "date": "2025-05-04T09:42:00Z",
    "delivery_address": "string",
    "delivery_city": "string",
    "delivery_country": "string",
    "delivery_zip_code": "string",
    "delivery_date": "string",
    "fromInvoice": "string",
    "fromQuote": "string",
    "lines": [
      {
        "description": "string",
        "quantity": 1,
        "reference": "string",
        "title": "string",
        "type": "product",
        "weight": 42.0
      }
    ],
    "number": "string",
    "numberOrder": "string",
    "notes": "string",
    "shipping_date": "2025-05-04T09:42:00Z",
    "shipping_method": "string",
    "shippingNbPackages": 42.0,
    "state": "draft",
    "title": "string",
    "totalWeight": 42.0,
    "totalQuantity": 0,
    "type": "delivery"
  }
}