API

Crea un pedido de comercio y su trabajo inicial de preparación. Requiere Idempotency-Key.

post/api/v1/orders

Request

  • Base URL
    https://api.lapyme.com.ar
  • URL
    https://api.lapyme.com.ar/api/v1/orders
  • Auth
    HTTP bearer

Headers

Idempotency-Keystring required

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

Request body

customer_idstring uuid required
assigned_warehouse_idstring uuid required
delivery_method'shipping' | 'local_delivery' | 'pickup'
currency'ARS' | 'USD'
notesstring
discount_amountinteger

Response

Pedido creado exitosamente

request_idstring required

Changes

    • breaking

      removed the enum value DOL of the request property

    • breaking

      removed the enum value PES of the request property

    • 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

      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's property type changed from integer to number for status

    • breaking

      the //// response's property type changed from integer to number for status

    • breaking

      the //// response's property type changed from integer to number for status

    • breaking

      the //// response's property type changed from integer to number for status

    • breaking

      the //// response's property type changed from integer to number for status

    • breaking

      the //// response's property type changed from integer to number for status

    • breaking

      the ////// response's property type changed from integer to number for status

    • breaking

      the ////// response's property type changed from integer to number for status

    • breaking

      the // response's property type changed from integer to number for status

    • warning

      the request property's maxLength was set to 2000

    • warning

      added the new ARS enum value to the // response property for the response status

    • warning

      added the new USD enum value to the // response property for the response status

    • info

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

    • info

      the request property became optional

    • info

      added the new ARS enum value to the request property

    • info

      added the new USD enum value to the request property

    • info

      the // request property type was generalized from integer to number

    • 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

      removed the DOL enum value from the // response property for the response status

    • info

      removed the PES enum value from the // response property for the response status

    • info

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

    • info

      response property data/order/invoices/items/formatted_invoice_number list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property data/order/line_items/items/discount_percentage list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

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

    • info

      response property data/order/preparations/items/formatted_remito_number list-of-types was narrowed by removing types null from media type application/json of response 200

    • info

      response property data/order/preparations/items/lines/items/discount_percentage 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

    • info

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