BranchPriceList


Representa a una lista de precios para una Sucursal. Contiene valores para calcular los precios de todos los Productos y Servicios aplicando una sencilla fórmula. Sin embargo, se puede especificar un valor personalizado por cada Producto y Servicio por separado dentro de la lista:

multiplied_price = branch_good.min_price_e2 * price_multiplier; rounded_price_e2 = roundUpToNearestInt(multiplied_price, price_multiple_e2); price_e2 = rounded_price_e2 + price_adjustment_e2;

Modelo BranchPriceList

{
    "id": 26,
    "name": "USD default",
    "price_multiplier": 1,
    "price_multiple_e2": 1,
    "price_adjustment_e2": 0,
    "enabled": true,
    "is_default": true,
    "created_at": "2021-01-26 19:51:51",
    "updated_at": "2021-01-26 19:51:51",
    "branch_id": 1,
    "currency_id": 26
}

Insertar BranchPriceList

Insertar Branch PriceList

Método URI Cabeceras
POST /companies/{companyId}/branches/{branchId}/price-lists Authorization
{
    "name": "required|string|max:64",
    "price_multiplier": "numeric|min:0.00001",
    "price_multiple_e2": "integer|min:1",
    "price_adjustment_e2": "integer",
    "currency_id": "integer"
}

Listar BranchPriceList

Listar Branch PriceList

{info} Soporta: Paginación Filters Carga dinámica

Método URI Cabeceras
GET /companies/{companyId}/branches/{branchId}/price-lists Authorization

Mostrar BranchPriceList

Mostrar PriceList

Método URI Cabeceras
GET /companies/{companyId}/price-lists/{priceListId} Authorization

Actualizar BranchPriceList

Actualizar PriceList

Método URI Cabeceras
PATCH /companies/{companyId}/price-lists/{priceListId} Authorization
{
    "name": "string|max:64",
    "price_multiplier": "numeric|min:0.00001",
    "price_multiple_e2": "integer|min:1",
    "price_adjustment_e2": "integer"
}

Eliminar BranchPriceList

Eliminar PriceList

Método URI Cabeceras
DELETE /companies/{companyId}/price-lists/{priceListId} Authorization

Enlaces de BranchPriceList