Saltar al contenido principal
Version: Pro7

GENERAR COTIZACIÓN

POST 

/api/quotations

Los comprobantes de cotización son documentos esenciales en las transacciones comerciales, proporcionando detalles sobre ofertas de precios a clientes o proveedores. Estas cotizaciones son fundamentales para la toma de decisiones y la gestión eficiente de ventas y adquisiciones en el mundo empresarial.

Ejemplo:

Request

Body

required

  1. JSON A ENVIAR
    descriptionstring
    Example:
    prefixstring
    Example: COT
    establishment_idnumber
    Example: 1
    date_of_issuedate
    Example: 2022-02-08
    time_of_issuetime
    Example: 10:17:26
    customer_idnumber
    Example: 4
    currency_type_idstring
    Example: PEN
    purchase_orderstring
    Example: null
    exchange_rate_salenumber
    Example: 4.078
    total_prepaymentnumber
    Example: 0
    total_chargenumber
    Example: 0
    total_discountnumber
    Example: 0
    total_exportationnumber
    Example: 0
    total_freenumber
    Example: 0
    total_taxednumber
    Example: 29.66
    total_unaffectednumber
    Example: 0
    total_exoneratednumber
    Example: 0
    total_igvnumber
    Example: 5.34
    total_igv_freenumber
    Example: 0
    total_base_iscnumber
    Example: 0
    total_iscnumber
    Example: 0
    total_base_other_taxesnumber
    Example: 0
    total_other_taxesnumber
    Example: 0
    total_taxesnumber
    Example: 5.34
    total_valuenumber
    Example: 29.66
    totalnumber
    Example: 35
    subtotalnumber
    Example: 35
    operation_type_idnumber
    Example: null
    date_of_duenumber
    Example: null
    delivery_datenumber
    Example: null

    items

    object[]

  • Array [

  • item_idnumber
    Example: 3

    item

    object

    idnumber
    Example: 3
    item_codenumber
    Example: null
    full_descriptionstring
    Example: algo - algo -
    modelstring
    Example: null
    brandstring
    Example:

    stock_by_extra

    object

    totalnumber
    Example: -2

    CatItemStatus

    object

    detailedstring
    Example: []
    totalnumber
    Example: null

    CatItemUnitBusiness

    object

    detailedstring
    Example: []
    totalnumber
    Example: null

    CatItemMoldCavity

    object

    detailedstring
    Example: []
    totalnumber
    Example: null

    CatItemPackageMeasurement

    object

    detailedstring
    Example: []
    totalnumber
    Example: null

    CatItemUnitsPerPackage

    object

    detailedstring
    Example: []
    totalnumber
    Example: null

    CatItemMoldProperty

    object

    detailedstring
    Example: []
    totalnumber
    Example: null

    CatItemProductFamily

    object

    detailedstring
    Example: []
    totalnumber
    Example: null

    colors

    object

    detailedstring
    Example: []
    totalnumber
    Example: null

    CatItemSize

    object

    detailedstring
    Example: []
    totalnumber
    Example: null
    warehouse_descriptionstring
    Example: Almacén Oficina Principal

    extra

    object

    colorsstring
    Example: null
    CatItemUnitsPerPackagestring
    Example: null
    CatItemMoldPropertystring
    Example: null
    CatItemProductFamilystring
    Example: null
    CatItemMoldCavitystring
    Example: null
    CatItemPackageMeasurementstring
    Example: null
    CatItemStatusstring
    Example: null
    CatItemSizestring
    Example: null
    CatItemUnitBusinessstring
    Example: null
    categorystring
    Example:
    stockstring
    Example: -9.0000
    internal_idstring
    Example: algo
    descriptionstring
    Example: algo
    currency_type_idstring
    Example: PEN
    currency_type_symbolstring
    Example: S/
    sale_unit_pricestring
    Example: 35.0000
    purchase_unit_pricestring
    Example: 0.000000
    unit_type_idstring
    Example: NIU
    original_unit_type_idstring
    Example: NIU

    sale_affectation_igv_type

    object

    idstring
    Example: 10
    activenumber
    Example: 1
    exportationnumber
    Example: 0
    freenumber
    Example: 0
    descriptionstring
    Example: Gravado - Operación Onerosa
    sale_affectation_igv_type_idstring
    Example: 10
    purchase_affectation_igv_type_idstring
    Example: 10
    calculate_quantityboolean
    Example: false
    has_igvboolean
    Example: true
    has_plastic_bag_taxesboolean
    Example: false
    amount_plastic_bag_taxesstring
    Example: 0.10
    colorsstring
    Example: []
    CatItemUnitsPerPackagestring
    Example: []
    CatItemMoldPropertystring
    Example: []
    CatItemProductFamilystring
    Example: []
    CatItemMoldCavitystring
    Example: []
    CatItemPackageMeasurementstring
    Example: []
    CatItemStatusstring
    Example: []
    CatItemSizestring
    Example: []
    CatItemUnitBusinessstring
    Example: []
    item_unit_typesstring
    Example: []

    warehouses

    object[]

  • Array [

  • warehouse_descriptionstring
    Example: Almacén Oficina Principal
    stockstring
    Example: -9.0000
    warehouse_idnumber
    Example: 1
    checkedboolean
    Example: true
  • ]

  • attributesstring
    Example: []
    lots_groupstring
    Example: []
    lotsstring
    Example: []
    lots_enabledboolean
    Example: false
    series_enabledboolean
    Example: false
    is_setboolean
    Example: false
    lot_codestring
    Example: null
    date_of_duestring
    Example: null
    barcodestring
    Example: 000000000003
    change_free_affectation_igvboolean
    Example: false
    original_affectation_igv_type_idstring
    Example: 10
    has_iscboolean
    Example: false
    system_isc_type_idstring
    Example: null
    percentage_iscstring
    Example: 0
    is_for_productionboolean
    Example: false
    name_product_pdfstring
    Example:
    unit_pricestring
    Example: 35.0000
    extra_attr_namestring
    Example: Tiempo de entrega
    extra_attr_valuestring
    Example:
    presentationstring
    Example: {}
    currency_type_idstring
    Example: PEN
    quantitynumber
    Example: 1
    unit_valuenumber
    Example: 29.661016949152543
    affectation_igv_type_idstring
    Example: 10

    affectation_igv_type

    object

    idstring
    Example: 10
    activenumber
    Example: null
    exportationnumber
    Example: 0
    freenumber
    Example: 0
    descriptionstring
    Example: Gravado - Operación Onerosa
    total_base_igvnumber
    Example: 29.66
    percentage_igvnumber
    Example: 18
    total_igvnumber
    Example: 5.34
    system_isc_type_idnumber
    Example: null
    total_base_iscnumber
    Example: 0
    percentage_iscnumber
    Example: 0
    total_iscnumber
    Example: 0
    total_base_other_taxesnumber
    Example: 0
    percentage_other_taxesnumber
    Example: 0
    total_other_taxesnumber
    Example: 0
    total_plastic_bag_taxesnumber
    Example: 0
    total_taxesnumber
    Example: 5.34
    price_type_idstring
    Example: 01
    unit_pricenumber
    Example: 35
    input_unit_price_valuenumber
    Example: 35
    total_valuenumber
    Example: 29.66
    total_discountnumber
    Example: 0
    total_chargenumber
    Example: 0
    totalnumber
    Example: 35
    attributesstring
    Example: []
    chargesstring
    Example: []
    discountsstring
    Example: []
    warehouse_idnumber
    Example: null
    name_product_pdfstring
    Example:
    record_idnumber
    Example: null
    total_value_without_roundingnumber
    Example: 29.661016949152543
    total_base_igv_without_roundingnumber
    Example: 29.661016949152543
    total_igv_without_roundingnumber
    Example: 5.338983050847458
    total_taxes_without_roundingnumber
    Example: 5.338983050847458
    total_without_roundingnumber
    Example: 35
  • ]

  • chargesstring
    Example: []
    discountsstring
    Example: []
    attributesstring
    Example: []
    guidesstring
    Example: []
    payment_method_type_idstring
    Example: 10
    customer_address_idstring
    Example: null
    additional_informationstring
    Example: null
    shipping_addressstring
    Example: null
    account_numberstring
    Example: null
    terms_conditionstring
    Example: null
    active_terms_conditionboolean
    Example: false

    actions

    object

    format_pdfstring
    Example: a4

    payments

    object[]

  • Array [

  • idnumber
    Example: null
    document_idnumber
    Example: null
    date_of_paymentdate
    Example: 2022-02-08
    payment_method_type_idstring
    Example: 01
    referencestring
    Example: null
    payment_destination_idstring
    Example: cash
    paymentnumber
    Example: 35
  • ]

  • sale_opportunity_idnumber
    Example: null
    contactstring
    Example: null
    phonenumber
    Example: null

Responses

JSON RESPUESTA

Schema

    successboolean
    Example: true

    data

    object

    number_fullstring
    Example: COT-8
    external_idstring
    Example: 25fd5675-1ad5-4e7b-9191-9ae4b7f1dde2
    filenamestring
    Example: COT-8-20241108
    print_a4string
    Example: https://empresa1.demo3pro6.ibu.pe/quotations/print/25fd5675-1ad5-4e7b-9191-9ae4b7f1dde2/a4
    print_ticketstring
    Example: https://empresa1.demo3pro6.ibu.pe/quotations/print/25fd5675-1ad5-4e7b-9191-9ae4b7f1dde2/ticket