FISCALISTO / API
Price lists
Different prices per customer: wholesale, distributor or promotion lists, with quantity and per-box tiers, and customer groups with their list, discount, credit and minimum order.
A price list says how much a certain kind of customer pays. It starts from the catalog price (or another list), lowers or raises it by a percentage and rounds it; on top, each product can have its own price or a discount, per package (a box of 12) and from a certain quantity, which are its wholesale tiers. A customer group gathers those who pay the same: their list, their discount on each line item, their credit days and their minimum order. They're the same as Ventas › Listas de precios in the app.
Which list each customer has: their own (the customer's price_list), otherwise their group's, otherwise the one with is_default, and if there's none, the catalog price. A list outside its dates (starts_on, ends_on) doesn't count. The customer's discount, otherwise their group's, goes as each line item's discount on the CFDI.
Create a list
curl https://api.fiscalisto.com/v1/price_lists \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Mayoreo", "adjust_percent": -10, "round_to": 0.5, "items": [{ "product": "prd_OufpKqnrvx9p1", "min_quantity": 24, "unit_price": 80 }] }'adjust_percent moves the price it starts from (−10 lowers it 10 %). Each row of items carries unit_price (its unit price before IVA) or discount_percent (a discount on the list's price), not both. Several rows of the same product with different min_quantity are its tiers: «24 or more at $80», «100 or more at $75». With unit (a package of the product, like a box) the price is per box; without its own box price, the box is worth its pieces, and 2 boxes of 12 already reach the «24 or more» tier. Sending items in POST /v1/price_lists/{id} replaces all the ones it had.
Customer groups
curl https://api.fiscalisto.com/v1/customer_groups \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "name": "Mayoristas", "price_list": "prl_OufpKqnrvx9p1", "discount_percent": 3, "credit_days": 30, "min_order": 5000 }'A customer joins a group, or takes their own list or discount, with POST /v1/customers/{id}:
curl https://api.fiscalisto.com/v1/customers/cus_OufpKqnrvx9p1 \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "group": "cgr_OufpKqnrvx9p1" }'The customer's price_list and discount_percent win over their group's; set to null they go back to the group's. min_order is the minimum order before IVA to order from the Portal del cliente (customer portal), and portal_ordering: false doesn't let them order from there. portal_changes says until when they change or cancel from their portal an order they sent there: none, until_confirmed (until you confirm it; the default) or until_delivered (until something is delivered or invoiced). Their delivery terms decide which days the portal offers: delivery_days (0 Sunday to 6 Saturday; null, any day), cutoff_hour (an order after that Mexico City hour counts from the next day) and prep_days (days to prepare it). The portal only lets them pick those days, the earliest first.
What a customer pays
curl https://api.fiscalisto.com/v1/prices \
-H "Authorization: Bearer $FISCALISTO_API_KEY" \
-H "Content-Type: application/json" \
-d '{ "customer": "cus_OufpKqnrvx9p1", "items": [{ "product": "prd_OufpKqnrvx9p1", "quantity": 10 }] }'Returns, per product, its unit_price before IVA at that quantity, the catalog_price, the customer's discount_percent and next_step: from how many units it drops and to how much. It stores nothing: use it to show prices in your store or to fill unit_price and discount on an invoice or an order.
Orders from the portal
A product with portal_visible: true (POST /v1/products/{id}) is sold in the Portal del cliente: your customers order it there at their prices, with min_order_qty and order_step (in steps of 12), and the order arrives in Orders as a draft, for you to confirm.
Was this page helpful?
Findings
What Fiscalisto found in your purchase orders, payouts, suppliers, books, travel expenses, purchase receipts, inventory, customers and payroll, to review from your system.
Inventory
Track stock of your products: each invoice takes out what it sells, and you see what's in each warehouse, the stock ledger and its adjustments.