API

Crear transferencia de stock

Changed on

Crea una transferencia para mover productos entre depósitos.

post/api/v1/stock-transfers

Request

  • Base URL
    https://api.lapyme.com.ar
  • URL
    https://api.lapyme.com.ar/api/v1/stock-transfers
  • Auth
    HTTP bearer

Headers

Idempotency-Keystring

Clave opcional para deduplicar reintentos de la misma creación de transferencia. Si se omite, no hay protección automática contra repeticiones.

X-Request-Idstring

ID opcional de la solicitud para trazabilidad. Si se omite, el servidor genera uno.

Request body

source_warehouse_idstring uuid required
target_warehouse_idstring uuid required
notesstring
save_as_draftboolean
mark_as_receivedboolean

Response

Transferencia creada exitosamente

request_idstring required

Changes

    • breaking

      for the header request parameter Idempotency-Key, the minLength was increased from 0 to 1

    • breaking

      for the header request parameter X-Request-Id, the minLength was increased from 0 to 1

    • breaking

      the request property type changed from string to no type, and format from date-time to no format

    • 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/transfer/items/items/quantity list-of-types was widened by adding types null to media type application/json of response 200

    • breaking

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

    • breaking

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

    • breaking

      the // response's property type changed from object to no type for status

    • breaking

      the // response's property type changed from object to no type for status

    • breaking

      removed the required property /// from the response with the status

    • breaking

      removed the required property /// from the response with the status

    • breaking

      removed the required property /// from the response with the status

    • breaking

      removed the required property /// from the response with the status

    • warning

      for the header request parameter Idempotency-Key, the maxLength was set to 255

    • warning

      for the header request parameter X-Request-Id, the maxLength was set to 255

    • info

      added subschema #1 subschema #2 to the request property anyOf list

    • 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 subschema #2 to the // response property anyOf list for the response status

    • info

      added subschema #2 to the // response property anyOf list for the response status

    • info

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

    • info

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

    • info

      response property data/transfer/updated_by 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