Listar Proformas

Listar Proformas

GET https://api.sperant.com/v3/budgets

Permite listar la información de todas las proformas

Query Parameters

Name
Type
Description

q

string

Se puede filtrar por código de proforma o número de contrato.

client_id

number

ID Cliente

created_start

string

Inicio de fecha de creación de una proforma

created_end

string

Fin de fecha de creación de una proforma

Headers

Name
Type
Description

Authorization

string

Token entregado.

{
    "links": {
        "prev": "https://api.eterniasoft.com/v3?page=1",
        "next": "https://api.eterniasoft.com/v3?page=2",
        "last": "https://api.eterniasoft.com/v3?page=116"
    },
    "meta": {
        "page": {
            "total": 2319
        }
    },
    "data": [
        {
            "type": "budgets",
            "id": "2597",
            "links": {
                "self": "https://api.eterniasoft.com/v3/budgets/2597",
                "project": "https://api.eterniasoft.com/v3/projects/473",
                "titulars": "https://api.eterniasoft.com/v3/budgets/2597/titulars"
                "units": "https://api.eterniasoft.com/v3/budgets/2597/units"
            },
            "attributes": {
                "id": 2597,
                "code": "2020-00287",
                "contract_num": null,
                "expire_date": 1607636475775,
                "created_at": 1607636475775,
                "active": true,
                "total_price": 150000,
                "total_price_discount": 150000,
                "exchange_rate": 1,
                "can_discount": 0,
                "currency": "PEN",
                "origin": "api",
                "project_id": 473,
                "agent_id": 185,
                "funding_type_id": 1,
                "funding_type": "hipotecario"
            }
        },
        {
            "type": "budgets",
            "id": "2596",
            "links": {
                "self": "https://api.eterniasoft.com/v3/budgets/2596",
                "project": "https://api.eterniasoft.com/v3/projects/473",
                "titulars": "https://api.eterniasoft.com/v3/budgets/2596/titulars"
            },
            "attributes": {
                "id": 2596,
                "code": "2020-00286",
                "contract_num": null,
                "expire_date": 1607636475776,
                "created_at": 1607636475776,
                "active": true,
                "total_price": 135000,
                "total_price_discount": 135000,
                "exchange_rate": 1,
                "can_discount": 0,
                "currency": "PEN",
                "origin": "api",
                "project_id": 473,
                "agent_id": 185,
                "funding_type_id": 1,
                "funding_type": "hipotecario"
            }
        },
        {
            "type": "budgets",
            "id": "2595",
            "links": {
                "self": "https://api.eterniasoft.com/v3/budgets/2595",
                "project": "https://api.eterniasoft.com/v3/projects/473",
                "titulars": "https://api.eterniasoft.com/v3/budgets/2595/titulars"
            },
            "attributes": {
                "id": 2595,
                "code": "2020-00285",
                "contract_num": null,
                "expire_date": 1607636475776,
                "created_at": 1607636475776,
                "active": true,
                "total_price": 150000,
                "total_price_discount": 150000,
                "exchange_rate": 1,
                "can_discount": 0,
                "currency": "PEN",
                "origin": "api",
                "project_id": 473,
                "agent_id": 185,
                "funding_type_id": 1,
                "funding_type": "hipotecario"
            }
        }
    ]
}        

Parámetros de retorno

Parámetro

Tipo de Dato

Descripción

id

integer

Identificador de la proforma.

code

string

Código de la proforma.

contract_num

string

Número de contrato de la proforma.

expire_date

timestamp

Fecha de expiración de la proforma.

created_at

timestamp

Fecha de creación de la proforma.

active

boolean

Indica el estado de la proforma:

  • false -> vencida

  • true -> vigente

total_price

double

Precio total sin descuento de la proforma.

total_price_discount

double

Precio final de la venta en la proforma.

exchange_rate

double

Tipo de cambio aplicado en la proforma.

can_discount

double

Monto del descuento.

currency

string

Tipo de moneda de la proforma en formato ISO CODE. Por ejemplo, PEN, USD.

origin

string

Origen de la proforma.

  • budget_web -> proforma web

  • api -> api

  • manual -> manual

project_id

integer

Identificador del proyecto relacionado a la proforma.

agent_id

integer

Identificador del vendedor asignado en la proforma.

funding_type_id

integer

Identificador del tipo de financiamiento con el que se creó la proforma.

funding_type

string

Indica el tipo de financiamiento con el que se creó la proforma.

Última actualización