Base path: /v1/pre-sale/v2/master-data/{companyId}
Same route names as legacy v1 /v1/pre-sale/master-data/..., with v2 identifier normalization on responses.
Authorization: Bearer <token>
x-app-stage: <stage>
x-app-uid: <installation uid>
Accept: application/json
| JSON field | Mobile Isar field | Meaning |
|---|---|---|
id |
goalId |
GOAL PostgreSQL primary key |
uuid |
recordUuid |
Stable row uuid (BaseModel) when present |
uid |
uid |
Client-generated id for offline orders / no-sales (RFC-4122) |
remote_id |
remoteId |
SB1 / TVendo ERP numeric (e.g. seller slpCode) — not a merge key |
cli_pk, pro_pk, ped_pk |
remoteId on legacy entity parsers |
SAP wire fields only; never substitute for id |
Query sellerId is always the GOAL sellers.id, not remote_id.
{
"id": 42,
"uuid": "f47ac10b-58cc-4372-a567-0e02b2c3d479",
"company_id": 8,
"remote_id": 12,
"team_remote_id": 3,
"name": "Juan Pérez - 12",
"seller_id": 42,
"active": true,
"portfolios": [
{
"id": 101,
"uuid": "a1b2c3d4-...",
"code": "CART-01",
"name": "Cartera Norte 1",
"sales_team_id": 5,
"sales_team_name": "Mesa Tradicional",
"sales_team_group_id": 12,
"sales_team_group_name": "Grupo Lima Norte"
}
]
}
Mobile: goalId=42, recordUuid=<uuid>, remoteId=12. Multi-portfolio sellers open one isolated PreSaleSession per active portfolio.
GOAL-only rows expose id (+ uuid when modeled). remote_id is omitted unless linked to SB1.
| Method | Path | Description |
|---|---|---|
| GET | /{id}/customers?sellerId= |
Portfolio customers |
| GET | /{id}/products?sellerId=&portfolioId=&refresh= |
Active products & mobile_app presentations from sales_team_group_products + sales_team_group_product_measures for the seller's active portfolio (LoadPresaleSellerProductsAction, prices: []) |
| POST | /{id}/prices |
Active presentation-level prices derived strictly from factor1_price (with valid factor1_fixed_price override & tax) scoped to the portfolio's active sales_team_group_products (LoadPresaleSellerPricesAction; body: {sellerId, portfolioId?, priceListIds?, refresh?}) |
| GET | /{id}/products-with-prices |
(Legacy) Products and prices |
| GET | /{id}/payment-terms |
Payment terms |
| GET | /{id}/shipping-options |
Shipping options |
| GET | /{id}/sellers |
Active sellers for company (includes active portfolios[] with sales_team_group_id) |
| GET | /{id}/price-lists |
Price lists |
| GET | /{id}/visit-schedules |
Visit schedules |
| GET | /{id}/sales-zones |
Sales zones |
| GET | /{id}/sales-routes |
Sales routes |
| GET | /{id}/sales-teams |
Sales teams |
| GET | /{id}/customer-channels |
Customer channels |
| POST | /{id}/price-list-lines |
Price list lines |
| GET | /{id}/product-clasifications |
Product classifications |
| GET | /{id}/tvendo-config |
TVendo settings |
| GET | /{id}/daily-quota |
Seller daily quota |
| GET | /{id}/seller-commission |
Seller commission |
| GET | /{id}/no-orders |
No-sales download |
| POST | /{id}/nosales-bulk |
No-sales bulk upload |
Orders: see pre-sale-v2-orders.md.
Mobile agent doc: goal_me/docs/modules/presale/PRESALE_DUAL_IDENTITY.md (Isar field mapping and forbidden fallbacks).
{
"success": true,
"message": "Operación exitosa.",
"data": [],
"stage": "dev"
}
nosales-bulk, orders-bulk)Each result item includes uid and id (GOAL PK when registered). Mobile reconciles by uid first.