API

Confirmar orden de compra

Changed on

Confirma una orden de compra y devuelve el detalle persistido. Idempotency-Key es opcional; si se envía, un reintento con la misma clave devuelve el resultado original y la clave reusada con otro cuerpo responde 409 IDEMPOTENCY_CONFLICT.

post/api/v1/purchase-orders/{purchase_order_id}/confirm

Request

Path parameters

purchase_order_idstring uuid required

ID de la orden de compra

Headers

Idempotency-Keystring

Clave estable para deduplicar reintentos de la misma operación. Opcional en v1; si se envía, un reintento con la misma clave y el mismo cuerpo devuelve el resultado original sin repetir la operación, y con otro cuerpo devuelve 409.

Response

Orden de compra confirmada exitosamente

request_idstring required

Changes

    • info

      added the new optional header request parameter Idempotency-Key

    • 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

    • 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