API

Eliminar compra

Changed on

Elimina una compra existente. Puede revertir stock directo con undo_stock=true. Requiere Idempotency-Key.

delete/api/v1/purchases/{purchase_id}

Request

  • Base URL
    https://api.lapyme.com.ar
  • URL
    https://api.lapyme.com.ar/api/v1/purchases/{purchase_id}
  • Auth
    HTTP bearer

Path parameters

purchase_idstring uuid required

ID de la compra

Query parameters

undo_stockboolean

Si es true, revierte los movimientos de stock directo creados por la compra cuando sea posible.

Headers

Idempotency-Keystring required

Clave estable para deduplicar reintentos de la misma operación.

Response

Compra eliminada exitosamente

request_idstring required

Changes

    • info

      added the non-success response with the status

    • info

      removed the non-success response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status

    • info

      added the optional property /// to the response with the status