API

Actualizar orden de compra

Changed on

Actualiza una orden de compra editable y devuelve el detalle persistido. Requiere Idempotency-Key.

put/api/v1/purchase-orders/{purchase_order_id}

Request

  • Base URL
    https://api.lapyme.com.ar
  • URL
    https://api.lapyme.com.ar/api/v1/purchase-orders/{purchase_order_id}
  • Auth
    HTTP bearer

Path parameters

purchase_order_idstring uuid required

ID de la orden de compra

Headers

Idempotency-Keystring required

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

Request body

supplier_idstring uuid required
order_datestring date required
expected_datestring date
warehouse_idstring uuid required
notesstring

Response

Orden de compra actualizada exitosamente

request_idstring required

Changes

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property //// became nullable for the status

    • breaking

      the response property ///// became nullable for the status

    • breaking

      the response property // became nullable for the status

    • breaking

      response property data/purchase_order/warehouse_id list-of-types was widened by adding types null to media type application/json of response 200

    • warning

      the request property's maxLength was set to 4000

    • info

      added 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

    • info

      added to the // response property anyOf list for the response status

    • info

      removed from the // response property anyOf list for the response status

    • info

      response property data/purchase_order/formatted_order_number list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property data/purchase_order/items/items/product/sku list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property data/purchase_order/notes list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      added 'propertyNames' constraint to the ////// response property for the status

    • info

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