API

Crear lista de precios

Changed on

Crea una lista de precios para vender con reglas y valores comerciales diferenciados.

post/api/v1/price-lists

Request

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

Headers

Idempotency-Keystring required

Clave única para evitar duplicados al reintentar la misma creación de lista de precios.

X-Request-Idstring

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

Request body

namestring required
is_automaticboolean
automatic_pricing_mode'base_price_adjustment' | 'cost_markup'
adjustment_percentagenumber nullable
source_price_list_idstring uuid nullable
default_economic_activitystring nullable
tax_inclusiveboolean

Response

Lista de precios 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's minLength was increased from 0 to 1

    • breaking

      the response property // became nullable for 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

    • warning

      the request property's maxLength was set to 50

    • info

      added the new optional request property

    • 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

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

    • info

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