API

Crear proveedor

Changed on

Crea un proveedor para usarlo en compras, cuentas corrientes y reportes.

post/api/v1/suppliers

Request

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

Headers

Idempotency-Keystring required

Request body

default_account_idstring uuid nullable

Setting or clearing this field also requires treasury:write. Omit it to preserve the default.

namestring required
company_namestring nullable
descriptionstring nullable
emailstring email nullable
phonestring nullable
tax_idstring nullable
tax_id_type'CUIL/CUIT' | 'DNI'
tax_category'registered_vat_taxpayer' | 'final_consumer' | 'monotributo_taxpayer' | 'vat_exempt' | 'vat_not_applicable'
countrystring
provincestring
citystring nullable
addressstring nullable
apartmentstring nullable
postal_codestring nullable
payment_term_idstring nullable
payment_term_daysinteger nullable

Cantidad de días hasta el vencimiento. Usá 0 para Contado. Se prefiere sobre paymentTermId.

is_activeboolean

Response

Proveedor creado exitosamente

request_idstring required

Changes

    • breaking

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

    • breaking

      request property list-of-types was narrowed by removing types null from media type application/json

    • breaking

      the request property's minLength was increased from 0 to 1

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

    • breaking

      the response property // became nullable for the status

    • breaking

      the response property // became nullable for the status

    • warning

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

    • warning

      the / request property's maxLength was set to 70

    • warning

      the / request property's maxLength was set to 10

    • warning

      the / request property's maxLength was set to 255

    • warning

      the / request property's maxLength was set to 70

    • warning

      the request property's maxLength was set to 50

    • warning

      the / request property's maxLength was set to 500

    • warning

      the / request property's maxLength was set to 100

    • warning

      the request property's maxLength was set to 200

    • warning

      the / request property's maxLength was set to 13

    • warning

      the / request property's maxLength was set to 8

    • warning

      the request property's maxLength was set to 2

    • warning

      the / request property's maxLength was set to 32

    • info

      added the new optional request property

    • info

      the request property became nullable

    • 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

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

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

    • info

      response property data/supplier/tax_id_type 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

    • info

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