@vitrina/api 17.37.2 → 17.39.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.cts +846 -59
- package/dist/index.d.ts +846 -59
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -38558,7 +38558,212 @@ interface paths {
|
|
|
38558
38558
|
delete?: never;
|
|
38559
38559
|
options?: never;
|
|
38560
38560
|
head?: never;
|
|
38561
|
-
|
|
38561
|
+
/**
|
|
38562
|
+
* Edit the price terms of an issued nota de venta
|
|
38563
|
+
* @description Corrects `net_clp`, `tax_clp` (null = not recorded, 0 = no tax), `tax_treatment` and/or `issued_at` on a nota de venta that is ISSUED but not approved and not voided. All optional, at least one; unknown keys are a 400. In one transaction the edit re-derives what issuing at the new terms would have: the buyer’s receivable (the sale note’s open obligation, re-stated from price + IVA + charged add-ons) and the participations’ DEFAULTED commissions (the margin basis and, when the sale’s day moves, the scheme rate); `discount_clp` follows. Payments already recorded, add-on lines, trade-ins, the credit and `list_price_clp` are kept. Responds with the same read as `GET /sale-notes/{id}`; sending the values it already has is a no-op 200.
|
|
38564
|
+
*
|
|
38565
|
+
* **409** with `details.blocked_reason` = `sale_note_approved` (an approved price binds the company) or `sale_note_voided`, and a Spanish message; the way out is void + re-issue. Requires `sale_notes:write`.
|
|
38566
|
+
*/
|
|
38567
|
+
patch: {
|
|
38568
|
+
parameters: {
|
|
38569
|
+
query?: never;
|
|
38570
|
+
header?: never;
|
|
38571
|
+
path: {
|
|
38572
|
+
id: string;
|
|
38573
|
+
};
|
|
38574
|
+
cookie?: never;
|
|
38575
|
+
};
|
|
38576
|
+
requestBody?: {
|
|
38577
|
+
content: {
|
|
38578
|
+
/**
|
|
38579
|
+
* @example {
|
|
38580
|
+
* "net_clp": 16386555,
|
|
38581
|
+
* "tax_clp": 3113445
|
|
38582
|
+
* }
|
|
38583
|
+
*/
|
|
38584
|
+
"application/json": {
|
|
38585
|
+
net_clp?: number;
|
|
38586
|
+
tax_clp?: number | null;
|
|
38587
|
+
/** @enum {string} */
|
|
38588
|
+
tax_treatment?: "afecto" | "exento" | "no_gravado" | "pass_through";
|
|
38589
|
+
/** Format: date-time */
|
|
38590
|
+
issued_at?: string;
|
|
38591
|
+
};
|
|
38592
|
+
};
|
|
38593
|
+
};
|
|
38594
|
+
responses: {
|
|
38595
|
+
/** @description The nota de venta, as GET /sale-notes/{id} reads it */
|
|
38596
|
+
200: {
|
|
38597
|
+
headers: {
|
|
38598
|
+
[name: string]: unknown;
|
|
38599
|
+
};
|
|
38600
|
+
content: {
|
|
38601
|
+
/**
|
|
38602
|
+
* @example {
|
|
38603
|
+
* "data": {
|
|
38604
|
+
* "id": "d4d4d4d4-0000-4000-8000-000000000001",
|
|
38605
|
+
* "tenant_id": "a1a1a1a1-0000-4000-8000-000000000001",
|
|
38606
|
+
* "display_id": "V-118",
|
|
38607
|
+
* "display_seq": 118,
|
|
38608
|
+
* "vehicle_id": "e1e1e1e1-0000-4000-8000-000000000002",
|
|
38609
|
+
* "buyer_contact_id": "22222222-0000-4000-8000-000000000002",
|
|
38610
|
+
* "lead_id": null,
|
|
38611
|
+
* "converted_from_reservation_id": null,
|
|
38612
|
+
* "seller_of_record": "automotora",
|
|
38613
|
+
* "salesperson_id": "11111111-0000-4000-8000-000000000001",
|
|
38614
|
+
* "net_clp": 11900000,
|
|
38615
|
+
* "list_price_clp": 12490000,
|
|
38616
|
+
* "discount_clp": 590000,
|
|
38617
|
+
* "tax_clp": 1900000,
|
|
38618
|
+
* "tax_treatment": "afecto",
|
|
38619
|
+
* "status": "issued",
|
|
38620
|
+
* "issued_at": "2026-09-19T13:00:00.000Z",
|
|
38621
|
+
* "emitted_by": "11111111-0000-4000-8000-000000000001",
|
|
38622
|
+
* "approved_by": null,
|
|
38623
|
+
* "approved_at": null,
|
|
38624
|
+
* "voided_at": null,
|
|
38625
|
+
* "void_reason": null,
|
|
38626
|
+
* "voided_by": null,
|
|
38627
|
+
* "created_at": "2026-09-19T13:00:00.000Z",
|
|
38628
|
+
* "updated_at": "2026-09-19T13:00:00.000Z",
|
|
38629
|
+
* "receivable_obligation_id": "01a1c1df-a6ea-779f-9310-bdbb2eadd184",
|
|
38630
|
+
* "print_missing_fields": [
|
|
38631
|
+
* {
|
|
38632
|
+
* "variable": "COMPRADOR_DOMICILIO",
|
|
38633
|
+
* "label": "Domicilio del comprador",
|
|
38634
|
+
* "fix": "buyer_contact",
|
|
38635
|
+
* "contact_id": "01a1ad2b-a52a-7b04-abf8-389e20e8217a"
|
|
38636
|
+
* }
|
|
38637
|
+
* ],
|
|
38638
|
+
* "payments": [
|
|
38639
|
+
* {
|
|
38640
|
+
* "id": "d6d6d6d6-0000-4000-8000-000000000002",
|
|
38641
|
+
* "tenant_id": "a1a1a1a1-0000-4000-8000-000000000001",
|
|
38642
|
+
* "reservation_id": null,
|
|
38643
|
+
* "sale_note_id": "d4d4d4d4-0000-4000-8000-000000000001",
|
|
38644
|
+
* "carried_from_reservation_id": null,
|
|
38645
|
+
* "instrument": "transferencia",
|
|
38646
|
+
* "amount_clp": 13800000,
|
|
38647
|
+
* "paid_on": "2026-09-19",
|
|
38648
|
+
* "bank": "Banco de Chile",
|
|
38649
|
+
* "account_number": null,
|
|
38650
|
+
* "document_number": null,
|
|
38651
|
+
* "note": null,
|
|
38652
|
+
* "card_fee_bps": null,
|
|
38653
|
+
* "card_surcharge_clp": null,
|
|
38654
|
+
* "card_surcharge_source": null,
|
|
38655
|
+
* "created_at": "2026-09-19T13:05:00.000Z"
|
|
38656
|
+
* }
|
|
38657
|
+
* ],
|
|
38658
|
+
* "totals": {
|
|
38659
|
+
* "total_a_pagar_clp": 13800000,
|
|
38660
|
+
* "total_pagos_clp": 13800000,
|
|
38661
|
+
* "saldo_clp": 0,
|
|
38662
|
+
* "recargo_tarjeta_clp": 0,
|
|
38663
|
+
* "total_a_cobrar_clp": 13800000,
|
|
38664
|
+
* "payment_count": 1,
|
|
38665
|
+
* "complete": true,
|
|
38666
|
+
* "gaps": []
|
|
38667
|
+
* },
|
|
38668
|
+
* "funding": {
|
|
38669
|
+
* "standing": "funded",
|
|
38670
|
+
* "balanced": true,
|
|
38671
|
+
* "terms": {
|
|
38672
|
+
* "price_clp": 13800000,
|
|
38673
|
+
* "add_on_charges_clp": 0,
|
|
38674
|
+
* "payments_clp": 13800000,
|
|
38675
|
+
* "retoma_clp": 0,
|
|
38676
|
+
* "credit_clp": 0
|
|
38677
|
+
* },
|
|
38678
|
+
* "total_a_pagar_clp": 13800000,
|
|
38679
|
+
* "total_consideration_clp": 13800000,
|
|
38680
|
+
* "saldo_clp": 0,
|
|
38681
|
+
* "gap_clp": null,
|
|
38682
|
+
* "saldo_a_favor_del_cliente_clp": null,
|
|
38683
|
+
* "payment_count": 1,
|
|
38684
|
+
* "complete": true,
|
|
38685
|
+
* "gaps": []
|
|
38686
|
+
* },
|
|
38687
|
+
* "trade_ins": [],
|
|
38688
|
+
* "credit": null,
|
|
38689
|
+
* "timeline": [
|
|
38690
|
+
* {
|
|
38691
|
+
* "step": "emitted",
|
|
38692
|
+
* "at": "2026-09-19T13:00:00.000Z",
|
|
38693
|
+
* "actor": {
|
|
38694
|
+
* "id": "11111111-0000-4000-8000-000000000001",
|
|
38695
|
+
* "name": "Martina Reyes",
|
|
38696
|
+
* "kind": "member"
|
|
38697
|
+
* }
|
|
38698
|
+
* }
|
|
38699
|
+
* ]
|
|
38700
|
+
* }
|
|
38701
|
+
* }
|
|
38702
|
+
*/
|
|
38703
|
+
"application/json": {
|
|
38704
|
+
data?: unknown;
|
|
38705
|
+
meta?: {
|
|
38706
|
+
[key: string]: unknown;
|
|
38707
|
+
};
|
|
38708
|
+
};
|
|
38709
|
+
};
|
|
38710
|
+
};
|
|
38711
|
+
/** @description Validation error */
|
|
38712
|
+
400: {
|
|
38713
|
+
headers: {
|
|
38714
|
+
[name: string]: unknown;
|
|
38715
|
+
};
|
|
38716
|
+
content: {
|
|
38717
|
+
"application/json": components["schemas"]["Error"];
|
|
38718
|
+
};
|
|
38719
|
+
};
|
|
38720
|
+
/** @description Unauthorized */
|
|
38721
|
+
401: {
|
|
38722
|
+
headers: {
|
|
38723
|
+
[name: string]: unknown;
|
|
38724
|
+
};
|
|
38725
|
+
content: {
|
|
38726
|
+
"application/json": components["schemas"]["Error"];
|
|
38727
|
+
};
|
|
38728
|
+
};
|
|
38729
|
+
/** @description Forbidden */
|
|
38730
|
+
403: {
|
|
38731
|
+
headers: {
|
|
38732
|
+
[name: string]: unknown;
|
|
38733
|
+
};
|
|
38734
|
+
content: {
|
|
38735
|
+
"application/json": components["schemas"]["Error"];
|
|
38736
|
+
};
|
|
38737
|
+
};
|
|
38738
|
+
/** @description Not found */
|
|
38739
|
+
404: {
|
|
38740
|
+
headers: {
|
|
38741
|
+
[name: string]: unknown;
|
|
38742
|
+
};
|
|
38743
|
+
content: {
|
|
38744
|
+
"application/json": components["schemas"]["Error"];
|
|
38745
|
+
};
|
|
38746
|
+
};
|
|
38747
|
+
/** @description Conflict (incl. Idempotency-Key reuse with different body) */
|
|
38748
|
+
409: {
|
|
38749
|
+
headers: {
|
|
38750
|
+
[name: string]: unknown;
|
|
38751
|
+
};
|
|
38752
|
+
content: {
|
|
38753
|
+
"application/json": components["schemas"]["Error"];
|
|
38754
|
+
};
|
|
38755
|
+
};
|
|
38756
|
+
/** @description Rate limited */
|
|
38757
|
+
429: {
|
|
38758
|
+
headers: {
|
|
38759
|
+
[name: string]: unknown;
|
|
38760
|
+
};
|
|
38761
|
+
content: {
|
|
38762
|
+
"application/json": components["schemas"]["Error"];
|
|
38763
|
+
};
|
|
38764
|
+
};
|
|
38765
|
+
};
|
|
38766
|
+
};
|
|
38562
38767
|
trace?: never;
|
|
38563
38768
|
};
|
|
38564
38769
|
"/sale-notes/{id}/buyer": {
|
|
@@ -39080,7 +39285,7 @@ interface paths {
|
|
|
39080
39285
|
};
|
|
39081
39286
|
/**
|
|
39082
39287
|
* The Vendedor a new nota de venta would get
|
|
39083
|
-
* @description Who `POST /sale-notes` credits as the **Vendedor** when its body names nobody (ADR 0114 §3), so a screen or an agent can propose that person up front: the assignee of the sale’s lead — the `lead_id` given, else the buyer’s lead on this car (`buyer_contact_id` + `vehicle_id`) — otherwise the car’s **Responsable del auto
|
|
39288
|
+
* @description Who `POST /sale-notes` credits as the **Vendedor** when its body names nobody (ADR 0114 §3), so a screen or an agent can propose that person up front: the assignee of the sale’s lead — the `lead_id` given, else the buyer’s lead on this car (`buyer_contact_id` + `vehicle_id`) — otherwise the car’s **Responsable del auto**, otherwise the **signed-in member** asking (never a Vitrina staff email, never an API key — for those the rung is skipped). A member who left the workspace is skipped. `source` says which rung answered (`lead_owner` | `vehicle_responsible` | `signed_in_user`) and `lead` (`id`, `display_id`) names the lead when it did. `data` is `null` when nobody can be proposed: the emit is then refused until a Vendedor is chosen. The inferred lead only proposes the Vendedor; it is never written as the nota de venta’s `lead_id`.
|
|
39084
39289
|
*/
|
|
39085
39290
|
get: {
|
|
39086
39291
|
parameters: {
|
|
@@ -44868,7 +45073,7 @@ interface paths {
|
|
|
44868
45073
|
head?: never;
|
|
44869
45074
|
/**
|
|
44870
45075
|
* Edit a live reservation
|
|
44871
|
-
* @description Changes what a LIVE hold may change after it was taken: the transfer cost (`transfer_cost_clp` alone = a manual amount and clears the breakdown), the term (`hold_expires_on`, never a past day — it also moves the seña’s deadline), the advertising decision (`keep_advertised`, through the existing cierre queue) and the
|
|
45076
|
+
* @description Changes what a LIVE hold may change after it was taken: the transfer cost (`transfer_cost_clp` alone = a manual amount and clears the breakdown), the term (`hold_expires_on`, never a past day — it also moves the seña’s deadline), the advertising decision (`keep_advertised`, through the existing cierre queue), the salesperson, the holder (`holder_contact_id`, a contact of this workspace — 404 otherwise; the seña expectation and every payment applied to it move to the new holder) and the agreed price (`agreed_price_clp` > 0; 400 when below the money already paid or the expected seña; an estimated transfer cost — one stored with its breakdown — is re-estimated at the new price unless the request states one, a manual amount is kept). Never the unit. **409** once the hold is not `activa` (`details.reason = reservation_not_active`), or when a payment of the hold is also applied to another debt of the current holder (`details.reason = reservation_payment_shared`). Unknown keys are a 400. Answers the same shape as `GET /reservations/{id}`.
|
|
44872
45077
|
*/
|
|
44873
45078
|
patch: {
|
|
44874
45079
|
parameters: {
|
|
@@ -44883,6 +45088,7 @@ interface paths {
|
|
|
44883
45088
|
content: {
|
|
44884
45089
|
/**
|
|
44885
45090
|
* @example {
|
|
45091
|
+
* "agreed_price_clp": 19500000,
|
|
44886
45092
|
* "transfer_cost_clp": 250000,
|
|
44887
45093
|
* "transfer_cost_lines": null,
|
|
44888
45094
|
* "hold_expires_on": "2026-09-30"
|
|
@@ -44901,6 +45107,9 @@ interface paths {
|
|
|
44901
45107
|
keep_advertised?: boolean;
|
|
44902
45108
|
/** Format: uuid */
|
|
44903
45109
|
salesperson_id?: string | null;
|
|
45110
|
+
/** Format: uuid */
|
|
45111
|
+
holder_contact_id?: string;
|
|
45112
|
+
agreed_price_clp?: number;
|
|
44904
45113
|
};
|
|
44905
45114
|
};
|
|
44906
45115
|
};
|
|
@@ -45750,7 +45959,7 @@ interface paths {
|
|
|
45750
45959
|
put?: never;
|
|
45751
45960
|
/**
|
|
45752
45961
|
* Convert a reservation into a nota de venta
|
|
45753
|
-
* @description Produces a NEW sale-note document — 201, the same as `POST /sale-notes`. Scoped `sale_notes:write`, borrowed rather than a fifth reservations scope.
|
|
45962
|
+
* @description Produces a NEW sale-note document — 201, the same as `POST /sale-notes`. Scoped `sale_notes:write`, borrowed rather than a fifth reservations scope. `net_clp` omitted = the sale inherits the hold’s `agreed_price_clp`; stated = the sale closes at that price. A hold with no agreed price needs `net_clp` (400 otherwise).
|
|
45754
45963
|
*/
|
|
45755
45964
|
post: {
|
|
45756
45965
|
parameters: {
|
|
@@ -45779,6 +45988,7 @@ interface paths {
|
|
|
45779
45988
|
seller_of_record?: "consignante" | "retoma" | "automotora";
|
|
45780
45989
|
/** @enum {string} */
|
|
45781
45990
|
tax_treatment: "afecto" | "exento" | "no_gravado" | "pass_through";
|
|
45991
|
+
net_clp?: number;
|
|
45782
45992
|
tax_clp?: number | null;
|
|
45783
45993
|
/** Format: date-time */
|
|
45784
45994
|
issued_at?: string | null;
|
|
@@ -140041,8 +140251,247 @@ interface paths {
|
|
|
140041
140251
|
* "stage": "appointment_booked",
|
|
140042
140252
|
* "label": "Visita agendada",
|
|
140043
140253
|
* "website_event": "Schedule",
|
|
140254
|
+
* "messaging_default": "ViewContent",
|
|
140255
|
+
* "messaging_event": "ViewContent",
|
|
140256
|
+
* "overridden": false
|
|
140257
|
+
* },
|
|
140258
|
+
* {
|
|
140259
|
+
* "stage": "checkout_started",
|
|
140260
|
+
* "label": "Abrió el link de pago",
|
|
140261
|
+
* "website_event": "InitiateCheckout",
|
|
140262
|
+
* "messaging_default": "InitiateCheckout",
|
|
140263
|
+
* "messaging_event": "InitiateCheckout",
|
|
140264
|
+
* "overridden": false
|
|
140265
|
+
* },
|
|
140266
|
+
* {
|
|
140267
|
+
* "stage": "deposit_paid",
|
|
140268
|
+
* "label": "Abono pagado",
|
|
140269
|
+
* "website_event": "vitrina_step_8",
|
|
140270
|
+
* "messaging_default": "OrderCreated",
|
|
140271
|
+
* "messaging_event": "OrderCreated",
|
|
140272
|
+
* "overridden": false
|
|
140273
|
+
* },
|
|
140274
|
+
* {
|
|
140275
|
+
* "stage": "closed_won",
|
|
140276
|
+
* "label": "Venta o compra",
|
|
140277
|
+
* "website_event": "Purchase",
|
|
140278
|
+
* "messaging_default": "Purchase",
|
|
140279
|
+
* "messaging_event": "Purchase",
|
|
140280
|
+
* "overridden": false
|
|
140281
|
+
* },
|
|
140282
|
+
* {
|
|
140283
|
+
* "stage": "payment_received",
|
|
140284
|
+
* "label": "Pago recibido",
|
|
140285
|
+
* "website_event": "Purchase",
|
|
140286
|
+
* "messaging_default": "Purchase",
|
|
140287
|
+
* "messaging_event": "Purchase",
|
|
140288
|
+
* "overridden": false
|
|
140289
|
+
* },
|
|
140290
|
+
* {
|
|
140291
|
+
* "stage": "seller_qualified",
|
|
140292
|
+
* "label": "Vendedor calificado",
|
|
140293
|
+
* "website_event": "SellerQualified",
|
|
140294
|
+
* "messaging_default": "AddToCart",
|
|
140295
|
+
* "messaging_event": "AddToCart",
|
|
140296
|
+
* "overridden": false
|
|
140297
|
+
* },
|
|
140298
|
+
* {
|
|
140299
|
+
* "stage": "seller_visit_booked",
|
|
140300
|
+
* "label": "Vendedor con visita agendada",
|
|
140301
|
+
* "website_event": "SellerVisitScheduled",
|
|
140302
|
+
* "messaging_default": "RatingProvided",
|
|
140303
|
+
* "messaging_event": "RatingProvided",
|
|
140304
|
+
* "overridden": false
|
|
140305
|
+
* },
|
|
140306
|
+
* {
|
|
140307
|
+
* "stage": "seller_deal_closed",
|
|
140308
|
+
* "label": "Compra cerrada a un vendedor",
|
|
140309
|
+
* "website_event": "SellerDealClosed",
|
|
140310
|
+
* "messaging_default": "OrderDelivered",
|
|
140311
|
+
* "messaging_event": "OrderDelivered",
|
|
140312
|
+
* "overridden": false
|
|
140313
|
+
* }
|
|
140314
|
+
* ]
|
|
140315
|
+
* }
|
|
140316
|
+
* }
|
|
140317
|
+
*/
|
|
140318
|
+
"application/json": {
|
|
140319
|
+
data: components["schemas"]["AdsMessagingEventNames"];
|
|
140320
|
+
};
|
|
140321
|
+
};
|
|
140322
|
+
};
|
|
140323
|
+
/** @description Validation error */
|
|
140324
|
+
400: {
|
|
140325
|
+
headers: {
|
|
140326
|
+
[name: string]: unknown;
|
|
140327
|
+
};
|
|
140328
|
+
content: {
|
|
140329
|
+
"application/json": components["schemas"]["Error"];
|
|
140330
|
+
};
|
|
140331
|
+
};
|
|
140332
|
+
/** @description Unauthorized */
|
|
140333
|
+
401: {
|
|
140334
|
+
headers: {
|
|
140335
|
+
[name: string]: unknown;
|
|
140336
|
+
};
|
|
140337
|
+
content: {
|
|
140338
|
+
"application/json": components["schemas"]["Error"];
|
|
140339
|
+
};
|
|
140340
|
+
};
|
|
140341
|
+
/** @description Vitrina Ads is not active for this workspace. `error.code` is `ENTITLEMENT_NOT_ACTIVE`, `error.details.feature` is `vitrina_ads`. */
|
|
140342
|
+
402: {
|
|
140343
|
+
headers: {
|
|
140344
|
+
[name: string]: unknown;
|
|
140345
|
+
};
|
|
140346
|
+
content: {
|
|
140347
|
+
/**
|
|
140348
|
+
* @example {
|
|
140349
|
+
* "error": {
|
|
140350
|
+
* "code": "ENTITLEMENT_NOT_ACTIVE",
|
|
140351
|
+
* "message": "El complemento Vitrina Ads no está activo en este espacio de trabajo.",
|
|
140352
|
+
* "details": {
|
|
140353
|
+
* "required": [
|
|
140354
|
+
* "vitrina_ads"
|
|
140355
|
+
* ],
|
|
140356
|
+
* "active": [],
|
|
140357
|
+
* "feature": "vitrina_ads",
|
|
140358
|
+
* "entitlement_state": "off"
|
|
140359
|
+
* }
|
|
140360
|
+
* }
|
|
140361
|
+
* }
|
|
140362
|
+
*/
|
|
140363
|
+
"application/json": components["schemas"]["Error"];
|
|
140364
|
+
};
|
|
140365
|
+
};
|
|
140366
|
+
/** @description Forbidden */
|
|
140367
|
+
403: {
|
|
140368
|
+
headers: {
|
|
140369
|
+
[name: string]: unknown;
|
|
140370
|
+
};
|
|
140371
|
+
content: {
|
|
140372
|
+
"application/json": components["schemas"]["Error"];
|
|
140373
|
+
};
|
|
140374
|
+
};
|
|
140375
|
+
/** @description Not found */
|
|
140376
|
+
404: {
|
|
140377
|
+
headers: {
|
|
140378
|
+
[name: string]: unknown;
|
|
140379
|
+
};
|
|
140380
|
+
content: {
|
|
140381
|
+
"application/json": components["schemas"]["Error"];
|
|
140382
|
+
};
|
|
140383
|
+
};
|
|
140384
|
+
/** @description Vitrina Ads is active but the delegated key has not finished rotating (`ADS_KEY_NEEDS_REMINT`) — retry once `GET /ads/state` reports `needs_remint: false`. Also the generic conflict of a write. */
|
|
140385
|
+
409: {
|
|
140386
|
+
headers: {
|
|
140387
|
+
[name: string]: unknown;
|
|
140388
|
+
};
|
|
140389
|
+
content: {
|
|
140390
|
+
/**
|
|
140391
|
+
* @example {
|
|
140392
|
+
* "error": {
|
|
140393
|
+
* "code": "ADS_KEY_NEEDS_REMINT",
|
|
140394
|
+
* "message": "Vitrina Ads is active but the delegated key has not finished rotating (key_kind: core)",
|
|
140395
|
+
* "details": {
|
|
140396
|
+
* "key_kind": "core"
|
|
140397
|
+
* }
|
|
140398
|
+
* }
|
|
140399
|
+
* }
|
|
140400
|
+
*/
|
|
140401
|
+
"application/json": components["schemas"]["Error"];
|
|
140402
|
+
};
|
|
140403
|
+
};
|
|
140404
|
+
/** @description Rate limited */
|
|
140405
|
+
429: {
|
|
140406
|
+
headers: {
|
|
140407
|
+
[name: string]: unknown;
|
|
140408
|
+
};
|
|
140409
|
+
content: {
|
|
140410
|
+
"application/json": components["schemas"]["Error"];
|
|
140411
|
+
};
|
|
140412
|
+
};
|
|
140413
|
+
};
|
|
140414
|
+
};
|
|
140415
|
+
put?: never;
|
|
140416
|
+
post?: never;
|
|
140417
|
+
delete?: never;
|
|
140418
|
+
options?: never;
|
|
140419
|
+
head?: never;
|
|
140420
|
+
/**
|
|
140421
|
+
* Choose a stage’s Meta event name on the WhatsApp lane
|
|
140422
|
+
* @description Merges onto the stored choices: `overrides` sets a stage’s name (one of `accepted_events`, or `null` = do not send it on the WhatsApp lane), `reset` drops a choice (back to `messaging_default`). The website lane never changes. The RESULT is validated, and nothing is stored on a `422` (`field_errors.overrides.<stage>`, `details.problems.<stage>`): `unknown_stage` (the workspace does not send it), `stage_not_sent` (instalments), `name_not_accepted`, `purchase_needs_value` (Purchase only on a stage that carries a value), `seller_name_shared` (a seller-side stage never shares its name with a buyer stage, so an ad set that optimises on buyers never learns from sellers; buyer stages may share). Then the engine’s live rules are converged at once (`sync.state: converged`, `sync.updated` = the stages rewritten); `pending` = stored, the daily sweep retries the write. Requires `ads:write`. Errors: `402 ENTITLEMENT_NOT_ACTIVE` (`details.feature: vitrina_ads`, with `hint`) when the Vitrina Ads Add-on is not active — never retried; `409 ADS_KEY_NEEDS_REMINT` when the Add-on is on but the delegated key has not finished rotating, or still lacks `exports:write` after one automatic re-mint (the entitlement rail converges it; see `GET /ads/state`).
|
|
140423
|
+
*/
|
|
140424
|
+
patch: {
|
|
140425
|
+
parameters: {
|
|
140426
|
+
query?: never;
|
|
140427
|
+
header?: never;
|
|
140428
|
+
path?: never;
|
|
140429
|
+
cookie?: never;
|
|
140430
|
+
};
|
|
140431
|
+
requestBody?: {
|
|
140432
|
+
content: {
|
|
140433
|
+
/**
|
|
140434
|
+
* @example {
|
|
140435
|
+
* "overrides": {
|
|
140436
|
+
* "lead_qualified": "InitiateCheckout"
|
|
140437
|
+
* }
|
|
140438
|
+
* }
|
|
140439
|
+
*/
|
|
140440
|
+
"application/json": components["schemas"]["AdsMessagingEventNamesPatch"];
|
|
140441
|
+
};
|
|
140442
|
+
};
|
|
140443
|
+
responses: {
|
|
140444
|
+
/** @description The stored choices and the engine write */
|
|
140445
|
+
200: {
|
|
140446
|
+
headers: {
|
|
140447
|
+
[name: string]: unknown;
|
|
140448
|
+
};
|
|
140449
|
+
content: {
|
|
140450
|
+
/**
|
|
140451
|
+
* @example {
|
|
140452
|
+
* "data": {
|
|
140453
|
+
* "overrides": {
|
|
140454
|
+
* "lead_qualified": "InitiateCheckout"
|
|
140455
|
+
* },
|
|
140456
|
+
* "accepted_events": [
|
|
140457
|
+
* "Purchase",
|
|
140458
|
+
* "LeadSubmitted",
|
|
140459
|
+
* "InitiateCheckout",
|
|
140460
|
+
* "AddToCart",
|
|
140461
|
+
* "ViewContent",
|
|
140462
|
+
* "OrderCreated",
|
|
140463
|
+
* "OrderShipped",
|
|
140464
|
+
* "OrderDelivered",
|
|
140465
|
+
* "OrderCanceled",
|
|
140466
|
+
* "OrderReturned",
|
|
140467
|
+
* "CartAbandoned",
|
|
140468
|
+
* "QualifiedLead",
|
|
140469
|
+
* "RatingProvided",
|
|
140470
|
+
* "ReviewProvided"
|
|
140471
|
+
* ],
|
|
140472
|
+
* "stages": [
|
|
140473
|
+
* {
|
|
140474
|
+
* "stage": "lead_created",
|
|
140475
|
+
* "label": "Contacto nuevo",
|
|
140476
|
+
* "website_event": "Lead",
|
|
140477
|
+
* "messaging_default": "LeadSubmitted",
|
|
140478
|
+
* "messaging_event": "LeadSubmitted",
|
|
140479
|
+
* "overridden": false
|
|
140480
|
+
* },
|
|
140481
|
+
* {
|
|
140482
|
+
* "stage": "lead_qualified",
|
|
140483
|
+
* "label": "Cotizó",
|
|
140484
|
+
* "website_event": "QualifiedLead",
|
|
140044
140485
|
* "messaging_default": "QualifiedLead",
|
|
140045
|
-
* "messaging_event": "
|
|
140486
|
+
* "messaging_event": "InitiateCheckout",
|
|
140487
|
+
* "overridden": true
|
|
140488
|
+
* },
|
|
140489
|
+
* {
|
|
140490
|
+
* "stage": "appointment_booked",
|
|
140491
|
+
* "label": "Visita agendada",
|
|
140492
|
+
* "website_event": "Schedule",
|
|
140493
|
+
* "messaging_default": "ViewContent",
|
|
140494
|
+
* "messaging_event": "ViewContent",
|
|
140046
140495
|
* "overridden": false
|
|
140047
140496
|
* },
|
|
140048
140497
|
* {
|
|
@@ -140089,8 +140538,8 @@ interface paths {
|
|
|
140089
140538
|
* "stage": "seller_visit_booked",
|
|
140090
140539
|
* "label": "Vendedor con visita agendada",
|
|
140091
140540
|
* "website_event": "SellerVisitScheduled",
|
|
140092
|
-
* "messaging_default":
|
|
140093
|
-
* "messaging_event":
|
|
140541
|
+
* "messaging_default": "RatingProvided",
|
|
140542
|
+
* "messaging_event": "RatingProvided",
|
|
140094
140543
|
* "overridden": false
|
|
140095
140544
|
* },
|
|
140096
140545
|
* {
|
|
@@ -140101,12 +140550,268 @@ interface paths {
|
|
|
140101
140550
|
* "messaging_event": "OrderDelivered",
|
|
140102
140551
|
* "overridden": false
|
|
140103
140552
|
* }
|
|
140553
|
+
* ],
|
|
140554
|
+
* "sync": {
|
|
140555
|
+
* "state": "converged",
|
|
140556
|
+
* "updated": [
|
|
140557
|
+
* "lead_qualified"
|
|
140558
|
+
* ]
|
|
140559
|
+
* }
|
|
140560
|
+
* }
|
|
140561
|
+
* }
|
|
140562
|
+
*/
|
|
140563
|
+
"application/json": {
|
|
140564
|
+
data: components["schemas"]["AdsMessagingEventNamesPatchResult"];
|
|
140565
|
+
};
|
|
140566
|
+
};
|
|
140567
|
+
};
|
|
140568
|
+
/** @description Validation error */
|
|
140569
|
+
400: {
|
|
140570
|
+
headers: {
|
|
140571
|
+
[name: string]: unknown;
|
|
140572
|
+
};
|
|
140573
|
+
content: {
|
|
140574
|
+
"application/json": components["schemas"]["Error"];
|
|
140575
|
+
};
|
|
140576
|
+
};
|
|
140577
|
+
/** @description Unauthorized */
|
|
140578
|
+
401: {
|
|
140579
|
+
headers: {
|
|
140580
|
+
[name: string]: unknown;
|
|
140581
|
+
};
|
|
140582
|
+
content: {
|
|
140583
|
+
"application/json": components["schemas"]["Error"];
|
|
140584
|
+
};
|
|
140585
|
+
};
|
|
140586
|
+
/** @description Vitrina Ads is not active for this workspace. `error.code` is `ENTITLEMENT_NOT_ACTIVE`, `error.details.feature` is `vitrina_ads`. */
|
|
140587
|
+
402: {
|
|
140588
|
+
headers: {
|
|
140589
|
+
[name: string]: unknown;
|
|
140590
|
+
};
|
|
140591
|
+
content: {
|
|
140592
|
+
/**
|
|
140593
|
+
* @example {
|
|
140594
|
+
* "error": {
|
|
140595
|
+
* "code": "ENTITLEMENT_NOT_ACTIVE",
|
|
140596
|
+
* "message": "El complemento Vitrina Ads no está activo en este espacio de trabajo.",
|
|
140597
|
+
* "details": {
|
|
140598
|
+
* "required": [
|
|
140599
|
+
* "vitrina_ads"
|
|
140600
|
+
* ],
|
|
140601
|
+
* "active": [],
|
|
140602
|
+
* "feature": "vitrina_ads",
|
|
140603
|
+
* "entitlement_state": "off"
|
|
140604
|
+
* }
|
|
140605
|
+
* }
|
|
140606
|
+
* }
|
|
140607
|
+
*/
|
|
140608
|
+
"application/json": components["schemas"]["Error"];
|
|
140609
|
+
};
|
|
140610
|
+
};
|
|
140611
|
+
/** @description Forbidden */
|
|
140612
|
+
403: {
|
|
140613
|
+
headers: {
|
|
140614
|
+
[name: string]: unknown;
|
|
140615
|
+
};
|
|
140616
|
+
content: {
|
|
140617
|
+
"application/json": components["schemas"]["Error"];
|
|
140618
|
+
};
|
|
140619
|
+
};
|
|
140620
|
+
/** @description Not found */
|
|
140621
|
+
404: {
|
|
140622
|
+
headers: {
|
|
140623
|
+
[name: string]: unknown;
|
|
140624
|
+
};
|
|
140625
|
+
content: {
|
|
140626
|
+
"application/json": components["schemas"]["Error"];
|
|
140627
|
+
};
|
|
140628
|
+
};
|
|
140629
|
+
/** @description Vitrina Ads is active but the delegated key has not finished rotating (`ADS_KEY_NEEDS_REMINT`) — retry once `GET /ads/state` reports `needs_remint: false`. Also the generic conflict of a write. */
|
|
140630
|
+
409: {
|
|
140631
|
+
headers: {
|
|
140632
|
+
[name: string]: unknown;
|
|
140633
|
+
};
|
|
140634
|
+
content: {
|
|
140635
|
+
/**
|
|
140636
|
+
* @example {
|
|
140637
|
+
* "error": {
|
|
140638
|
+
* "code": "ADS_KEY_NEEDS_REMINT",
|
|
140639
|
+
* "message": "Vitrina Ads is active but the delegated key has not finished rotating (key_kind: core)",
|
|
140640
|
+
* "details": {
|
|
140641
|
+
* "key_kind": "core"
|
|
140642
|
+
* }
|
|
140643
|
+
* }
|
|
140644
|
+
* }
|
|
140645
|
+
*/
|
|
140646
|
+
"application/json": components["schemas"]["Error"];
|
|
140647
|
+
};
|
|
140648
|
+
};
|
|
140649
|
+
/** @description Rate limited */
|
|
140650
|
+
429: {
|
|
140651
|
+
headers: {
|
|
140652
|
+
[name: string]: unknown;
|
|
140653
|
+
};
|
|
140654
|
+
content: {
|
|
140655
|
+
"application/json": components["schemas"]["Error"];
|
|
140656
|
+
};
|
|
140657
|
+
};
|
|
140658
|
+
};
|
|
140659
|
+
};
|
|
140660
|
+
trace?: never;
|
|
140661
|
+
};
|
|
140662
|
+
"/ads/conversion-sync/website-event-names": {
|
|
140663
|
+
parameters: {
|
|
140664
|
+
query?: never;
|
|
140665
|
+
header?: never;
|
|
140666
|
+
path?: never;
|
|
140667
|
+
cookie?: never;
|
|
140668
|
+
};
|
|
140669
|
+
/**
|
|
140670
|
+
* Each stage’s Meta event name on the website (pixel) lane
|
|
140671
|
+
* @description Per stage the workspace sends: the matrix’s website-lane name (`website_default`) and the name in force (`website_event`: the workspace’s choice, else the default). `accepted_events` are Meta’s standard pixel events; `messaging_optimizable_events` (and each stage’s `messaging_optimizable`) mark the names Meta accepts as the optimisation event of a click-to-WhatsApp ad set that optimises on website conversions. Change them with `PATCH` on this path. `sample=1` (or a sandbox) answers the defaults. Requires `ads:read`.
|
|
140672
|
+
*/
|
|
140673
|
+
get: {
|
|
140674
|
+
parameters: {
|
|
140675
|
+
query?: {
|
|
140676
|
+
/** @description `1` serves the deterministic sample dataset («Ver con datos de ejemplo»): same shapes, invented but internally consistent figures, no entitlement required (the scope still is). A sandbox workspace is always served the sample, with or without this parameter. */
|
|
140677
|
+
sample?: "1" | "true";
|
|
140678
|
+
};
|
|
140679
|
+
header?: never;
|
|
140680
|
+
path?: never;
|
|
140681
|
+
cookie?: never;
|
|
140682
|
+
};
|
|
140683
|
+
requestBody?: never;
|
|
140684
|
+
responses: {
|
|
140685
|
+
/** @description The stages and their website-lane names */
|
|
140686
|
+
200: {
|
|
140687
|
+
headers: {
|
|
140688
|
+
[name: string]: unknown;
|
|
140689
|
+
};
|
|
140690
|
+
content: {
|
|
140691
|
+
/**
|
|
140692
|
+
* @example {
|
|
140693
|
+
* "data": {
|
|
140694
|
+
* "overrides": {
|
|
140695
|
+
* "appointment_booked": "CompleteRegistration"
|
|
140696
|
+
* },
|
|
140697
|
+
* "accepted_events": [
|
|
140698
|
+
* "AddPaymentInfo",
|
|
140699
|
+
* "AddToCart",
|
|
140700
|
+
* "AddToWishlist",
|
|
140701
|
+
* "CompleteRegistration",
|
|
140702
|
+
* "Contact",
|
|
140703
|
+
* "CustomizeProduct",
|
|
140704
|
+
* "Donate",
|
|
140705
|
+
* "FindLocation",
|
|
140706
|
+
* "InitiateCheckout",
|
|
140707
|
+
* "Lead",
|
|
140708
|
+
* "Purchase",
|
|
140709
|
+
* "Schedule",
|
|
140710
|
+
* "Search",
|
|
140711
|
+
* "StartTrial",
|
|
140712
|
+
* "SubmitApplication",
|
|
140713
|
+
* "Subscribe",
|
|
140714
|
+
* "ViewContent"
|
|
140715
|
+
* ],
|
|
140716
|
+
* "messaging_optimizable_events": [
|
|
140717
|
+
* "AddPaymentInfo",
|
|
140718
|
+
* "AddToCart",
|
|
140719
|
+
* "AddToWishlist",
|
|
140720
|
+
* "CompleteRegistration",
|
|
140721
|
+
* "InitiateCheckout",
|
|
140722
|
+
* "Purchase",
|
|
140723
|
+
* "Search",
|
|
140724
|
+
* "StartTrial",
|
|
140725
|
+
* "Subscribe",
|
|
140726
|
+
* "ViewContent"
|
|
140727
|
+
* ],
|
|
140728
|
+
* "stages": [
|
|
140729
|
+
* {
|
|
140730
|
+
* "stage": "lead_created",
|
|
140731
|
+
* "label": "Contacto nuevo",
|
|
140732
|
+
* "website_default": "Lead",
|
|
140733
|
+
* "website_event": "Lead",
|
|
140734
|
+
* "overridden": false,
|
|
140735
|
+
* "messaging_optimizable": false
|
|
140736
|
+
* },
|
|
140737
|
+
* {
|
|
140738
|
+
* "stage": "lead_qualified",
|
|
140739
|
+
* "label": "Cotizó",
|
|
140740
|
+
* "website_default": "QualifiedLead",
|
|
140741
|
+
* "website_event": "QualifiedLead",
|
|
140742
|
+
* "overridden": false,
|
|
140743
|
+
* "messaging_optimizable": false
|
|
140744
|
+
* },
|
|
140745
|
+
* {
|
|
140746
|
+
* "stage": "appointment_booked",
|
|
140747
|
+
* "label": "Visita agendada",
|
|
140748
|
+
* "website_default": "Schedule",
|
|
140749
|
+
* "website_event": "CompleteRegistration",
|
|
140750
|
+
* "overridden": true,
|
|
140751
|
+
* "messaging_optimizable": true
|
|
140752
|
+
* },
|
|
140753
|
+
* {
|
|
140754
|
+
* "stage": "checkout_started",
|
|
140755
|
+
* "label": "Abrió el link de pago",
|
|
140756
|
+
* "website_default": "InitiateCheckout",
|
|
140757
|
+
* "website_event": "InitiateCheckout",
|
|
140758
|
+
* "overridden": false,
|
|
140759
|
+
* "messaging_optimizable": true
|
|
140760
|
+
* },
|
|
140761
|
+
* {
|
|
140762
|
+
* "stage": "deposit_paid",
|
|
140763
|
+
* "label": "Abono pagado",
|
|
140764
|
+
* "website_default": "vitrina_step_8",
|
|
140765
|
+
* "website_event": "vitrina_step_8",
|
|
140766
|
+
* "overridden": false,
|
|
140767
|
+
* "messaging_optimizable": false
|
|
140768
|
+
* },
|
|
140769
|
+
* {
|
|
140770
|
+
* "stage": "closed_won",
|
|
140771
|
+
* "label": "Venta o compra",
|
|
140772
|
+
* "website_default": "Purchase",
|
|
140773
|
+
* "website_event": "Purchase",
|
|
140774
|
+
* "overridden": false,
|
|
140775
|
+
* "messaging_optimizable": true
|
|
140776
|
+
* },
|
|
140777
|
+
* {
|
|
140778
|
+
* "stage": "payment_received",
|
|
140779
|
+
* "label": "Pago recibido",
|
|
140780
|
+
* "website_default": "Purchase",
|
|
140781
|
+
* "website_event": "Purchase",
|
|
140782
|
+
* "overridden": false,
|
|
140783
|
+
* "messaging_optimizable": true
|
|
140784
|
+
* },
|
|
140785
|
+
* {
|
|
140786
|
+
* "stage": "seller_qualified",
|
|
140787
|
+
* "label": "Vendedor calificado",
|
|
140788
|
+
* "website_default": "SellerQualified",
|
|
140789
|
+
* "website_event": "SellerQualified",
|
|
140790
|
+
* "overridden": false,
|
|
140791
|
+
* "messaging_optimizable": false
|
|
140792
|
+
* },
|
|
140793
|
+
* {
|
|
140794
|
+
* "stage": "seller_visit_booked",
|
|
140795
|
+
* "label": "Vendedor con visita agendada",
|
|
140796
|
+
* "website_default": "SellerVisitScheduled",
|
|
140797
|
+
* "website_event": "SellerVisitScheduled",
|
|
140798
|
+
* "overridden": false,
|
|
140799
|
+
* "messaging_optimizable": false
|
|
140800
|
+
* },
|
|
140801
|
+
* {
|
|
140802
|
+
* "stage": "seller_deal_closed",
|
|
140803
|
+
* "label": "Compra cerrada a un vendedor",
|
|
140804
|
+
* "website_default": "SellerDealClosed",
|
|
140805
|
+
* "website_event": "SellerDealClosed",
|
|
140806
|
+
* "overridden": false,
|
|
140807
|
+
* "messaging_optimizable": false
|
|
140808
|
+
* }
|
|
140104
140809
|
* ]
|
|
140105
140810
|
* }
|
|
140106
140811
|
* }
|
|
140107
140812
|
*/
|
|
140108
140813
|
"application/json": {
|
|
140109
|
-
data: components["schemas"]["
|
|
140814
|
+
data: components["schemas"]["AdsWebsiteEventNames"];
|
|
140110
140815
|
};
|
|
140111
140816
|
};
|
|
140112
140817
|
};
|
|
@@ -140208,8 +140913,8 @@ interface paths {
|
|
|
140208
140913
|
options?: never;
|
|
140209
140914
|
head?: never;
|
|
140210
140915
|
/**
|
|
140211
|
-
* Choose a stage’s Meta event name on the
|
|
140212
|
-
* @description Merges onto the stored choices: `overrides` sets a stage’s name (one of `accepted_events
|
|
140916
|
+
* Choose a stage’s Meta event name on the website (pixel) lane
|
|
140917
|
+
* @description Merges onto the stored choices: `overrides` sets a stage’s name (one of `accepted_events`; `null` drops the choice), `reset` drops a choice (back to `website_default`). The WhatsApp lane never changes here. The RESULT is validated, and nothing is stored on a `422` (`field_errors.overrides.<stage>`, `details.problems.<stage>`): `unknown_stage` (the workspace does not send it), `stage_not_sent` (instalments), `name_not_accepted`, `purchase_needs_value` (Purchase only on a stage that carries a value), `seller_name_shared` (a seller-side stage never shares its name with a buyer stage), `name_taken` (another stage already reaches Meta under that name; a choice equal to the stage’s own default is always valid). Then the engine’s live rules are converged at once (`sync.state: converged`, `sync.updated` = the stages rewritten); `pending` = stored, the daily sweep retries the write. Requires `ads:write`. Errors: `402 ENTITLEMENT_NOT_ACTIVE` (`details.feature: vitrina_ads`, with `hint`) when the Vitrina Ads Add-on is not active — never retried; `409 ADS_KEY_NEEDS_REMINT` when the Add-on is on but the delegated key has not finished rotating, or still lacks `exports:write` after one automatic re-mint (the entitlement rail converges it; see `GET /ads/state`).
|
|
140213
140918
|
*/
|
|
140214
140919
|
patch: {
|
|
140215
140920
|
parameters: {
|
|
@@ -140223,11 +140928,11 @@ interface paths {
|
|
|
140223
140928
|
/**
|
|
140224
140929
|
* @example {
|
|
140225
140930
|
* "overrides": {
|
|
140226
|
-
* "
|
|
140931
|
+
* "appointment_booked": "CompleteRegistration"
|
|
140227
140932
|
* }
|
|
140228
140933
|
* }
|
|
140229
140934
|
*/
|
|
140230
|
-
"application/json": components["schemas"]["
|
|
140935
|
+
"application/json": components["schemas"]["AdsWebsiteEventNamesPatch"];
|
|
140231
140936
|
};
|
|
140232
140937
|
};
|
|
140233
140938
|
responses: {
|
|
@@ -140241,117 +140946,132 @@ interface paths {
|
|
|
140241
140946
|
* @example {
|
|
140242
140947
|
* "data": {
|
|
140243
140948
|
* "overrides": {
|
|
140244
|
-
* "
|
|
140949
|
+
* "appointment_booked": "CompleteRegistration"
|
|
140245
140950
|
* },
|
|
140246
140951
|
* "accepted_events": [
|
|
140247
|
-
* "
|
|
140248
|
-
* "
|
|
140952
|
+
* "AddPaymentInfo",
|
|
140953
|
+
* "AddToCart",
|
|
140954
|
+
* "AddToWishlist",
|
|
140955
|
+
* "CompleteRegistration",
|
|
140956
|
+
* "Contact",
|
|
140957
|
+
* "CustomizeProduct",
|
|
140958
|
+
* "Donate",
|
|
140959
|
+
* "FindLocation",
|
|
140249
140960
|
* "InitiateCheckout",
|
|
140961
|
+
* "Lead",
|
|
140962
|
+
* "Purchase",
|
|
140963
|
+
* "Schedule",
|
|
140964
|
+
* "Search",
|
|
140965
|
+
* "StartTrial",
|
|
140966
|
+
* "SubmitApplication",
|
|
140967
|
+
* "Subscribe",
|
|
140968
|
+
* "ViewContent"
|
|
140969
|
+
* ],
|
|
140970
|
+
* "messaging_optimizable_events": [
|
|
140971
|
+
* "AddPaymentInfo",
|
|
140250
140972
|
* "AddToCart",
|
|
140251
|
-
* "
|
|
140252
|
-
* "
|
|
140253
|
-
* "
|
|
140254
|
-
* "
|
|
140255
|
-
* "
|
|
140256
|
-
* "
|
|
140257
|
-
* "
|
|
140258
|
-
* "
|
|
140259
|
-
* "RatingProvided",
|
|
140260
|
-
* "ReviewProvided"
|
|
140973
|
+
* "AddToWishlist",
|
|
140974
|
+
* "CompleteRegistration",
|
|
140975
|
+
* "InitiateCheckout",
|
|
140976
|
+
* "Purchase",
|
|
140977
|
+
* "Search",
|
|
140978
|
+
* "StartTrial",
|
|
140979
|
+
* "Subscribe",
|
|
140980
|
+
* "ViewContent"
|
|
140261
140981
|
* ],
|
|
140262
140982
|
* "stages": [
|
|
140263
140983
|
* {
|
|
140264
140984
|
* "stage": "lead_created",
|
|
140265
140985
|
* "label": "Contacto nuevo",
|
|
140986
|
+
* "website_default": "Lead",
|
|
140266
140987
|
* "website_event": "Lead",
|
|
140267
|
-
* "
|
|
140268
|
-
* "
|
|
140269
|
-
* "overridden": false
|
|
140988
|
+
* "overridden": false,
|
|
140989
|
+
* "messaging_optimizable": false
|
|
140270
140990
|
* },
|
|
140271
140991
|
* {
|
|
140272
140992
|
* "stage": "lead_qualified",
|
|
140273
140993
|
* "label": "Cotizó",
|
|
140994
|
+
* "website_default": "QualifiedLead",
|
|
140274
140995
|
* "website_event": "QualifiedLead",
|
|
140275
|
-
* "
|
|
140276
|
-
* "
|
|
140277
|
-
* "overridden": true
|
|
140996
|
+
* "overridden": false,
|
|
140997
|
+
* "messaging_optimizable": false
|
|
140278
140998
|
* },
|
|
140279
140999
|
* {
|
|
140280
141000
|
* "stage": "appointment_booked",
|
|
140281
141001
|
* "label": "Visita agendada",
|
|
140282
|
-
* "
|
|
140283
|
-
* "
|
|
140284
|
-
* "
|
|
140285
|
-
* "
|
|
141002
|
+
* "website_default": "Schedule",
|
|
141003
|
+
* "website_event": "CompleteRegistration",
|
|
141004
|
+
* "overridden": true,
|
|
141005
|
+
* "messaging_optimizable": true
|
|
140286
141006
|
* },
|
|
140287
141007
|
* {
|
|
140288
141008
|
* "stage": "checkout_started",
|
|
140289
141009
|
* "label": "Abrió el link de pago",
|
|
141010
|
+
* "website_default": "InitiateCheckout",
|
|
140290
141011
|
* "website_event": "InitiateCheckout",
|
|
140291
|
-
* "
|
|
140292
|
-
* "
|
|
140293
|
-
* "overridden": false
|
|
141012
|
+
* "overridden": false,
|
|
141013
|
+
* "messaging_optimizable": true
|
|
140294
141014
|
* },
|
|
140295
141015
|
* {
|
|
140296
141016
|
* "stage": "deposit_paid",
|
|
140297
141017
|
* "label": "Abono pagado",
|
|
141018
|
+
* "website_default": "vitrina_step_8",
|
|
140298
141019
|
* "website_event": "vitrina_step_8",
|
|
140299
|
-
* "
|
|
140300
|
-
* "
|
|
140301
|
-
* "overridden": false
|
|
141020
|
+
* "overridden": false,
|
|
141021
|
+
* "messaging_optimizable": false
|
|
140302
141022
|
* },
|
|
140303
141023
|
* {
|
|
140304
141024
|
* "stage": "closed_won",
|
|
140305
141025
|
* "label": "Venta o compra",
|
|
141026
|
+
* "website_default": "Purchase",
|
|
140306
141027
|
* "website_event": "Purchase",
|
|
140307
|
-
* "
|
|
140308
|
-
* "
|
|
140309
|
-
* "overridden": false
|
|
141028
|
+
* "overridden": false,
|
|
141029
|
+
* "messaging_optimizable": true
|
|
140310
141030
|
* },
|
|
140311
141031
|
* {
|
|
140312
141032
|
* "stage": "payment_received",
|
|
140313
141033
|
* "label": "Pago recibido",
|
|
141034
|
+
* "website_default": "Purchase",
|
|
140314
141035
|
* "website_event": "Purchase",
|
|
140315
|
-
* "
|
|
140316
|
-
* "
|
|
140317
|
-
* "overridden": false
|
|
141036
|
+
* "overridden": false,
|
|
141037
|
+
* "messaging_optimizable": true
|
|
140318
141038
|
* },
|
|
140319
141039
|
* {
|
|
140320
141040
|
* "stage": "seller_qualified",
|
|
140321
141041
|
* "label": "Vendedor calificado",
|
|
141042
|
+
* "website_default": "SellerQualified",
|
|
140322
141043
|
* "website_event": "SellerQualified",
|
|
140323
|
-
* "
|
|
140324
|
-
* "
|
|
140325
|
-
* "overridden": false
|
|
141044
|
+
* "overridden": false,
|
|
141045
|
+
* "messaging_optimizable": false
|
|
140326
141046
|
* },
|
|
140327
141047
|
* {
|
|
140328
141048
|
* "stage": "seller_visit_booked",
|
|
140329
141049
|
* "label": "Vendedor con visita agendada",
|
|
141050
|
+
* "website_default": "SellerVisitScheduled",
|
|
140330
141051
|
* "website_event": "SellerVisitScheduled",
|
|
140331
|
-
* "
|
|
140332
|
-
* "
|
|
140333
|
-
* "overridden": false
|
|
141052
|
+
* "overridden": false,
|
|
141053
|
+
* "messaging_optimizable": false
|
|
140334
141054
|
* },
|
|
140335
141055
|
* {
|
|
140336
141056
|
* "stage": "seller_deal_closed",
|
|
140337
141057
|
* "label": "Compra cerrada a un vendedor",
|
|
141058
|
+
* "website_default": "SellerDealClosed",
|
|
140338
141059
|
* "website_event": "SellerDealClosed",
|
|
140339
|
-
* "
|
|
140340
|
-
* "
|
|
140341
|
-
* "overridden": false
|
|
141060
|
+
* "overridden": false,
|
|
141061
|
+
* "messaging_optimizable": false
|
|
140342
141062
|
* }
|
|
140343
141063
|
* ],
|
|
140344
141064
|
* "sync": {
|
|
140345
141065
|
* "state": "converged",
|
|
140346
141066
|
* "updated": [
|
|
140347
|
-
* "
|
|
141067
|
+
* "appointment_booked"
|
|
140348
141068
|
* ]
|
|
140349
141069
|
* }
|
|
140350
141070
|
* }
|
|
140351
141071
|
* }
|
|
140352
141072
|
*/
|
|
140353
141073
|
"application/json": {
|
|
140354
|
-
data: components["schemas"]["
|
|
141074
|
+
data: components["schemas"]["AdsWebsiteEventNamesPatchResult"];
|
|
140355
141075
|
};
|
|
140356
141076
|
};
|
|
140357
141077
|
};
|
|
@@ -288769,7 +289489,7 @@ interface components {
|
|
|
288769
289489
|
/** @enum {string} */
|
|
288770
289490
|
stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | "seller_qualified" | "seller_visit_booked" | "seller_deal_closed";
|
|
288771
289491
|
label: string;
|
|
288772
|
-
/** @description The website pixel lane’s name (not
|
|
289492
|
+
/** @description The website pixel lane’s name in force (configured with `website-event-names`, not here). */
|
|
288773
289493
|
website_event: string;
|
|
288774
289494
|
/** @description The matrix’s own WhatsApp-lane name; `null` = not sent there. */
|
|
288775
289495
|
messaging_default: string | null;
|
|
@@ -288823,6 +289543,73 @@ interface components {
|
|
|
288823
289543
|
/** @description Stages whose choice is dropped: they go back to the matrix's name (`messaging_default`). Applied before `overrides`. */
|
|
288824
289544
|
reset?: ("lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | "seller_qualified" | "seller_visit_booked" | "seller_deal_closed")[];
|
|
288825
289545
|
};
|
|
289546
|
+
AdsWebsiteEventNames: {
|
|
289547
|
+
/** @description The stored choices, `{ stage: name }`. */
|
|
289548
|
+
overrides: {
|
|
289549
|
+
[key: string]: string;
|
|
289550
|
+
};
|
|
289551
|
+
/** @description Meta’s standard pixel events: the names a stage may take. */
|
|
289552
|
+
accepted_events: string[];
|
|
289553
|
+
/** @description The subset Meta accepts as the optimisation event of a click-to-WhatsApp (messaging) ad set that optimises on website conversions. */
|
|
289554
|
+
messaging_optimizable_events: string[];
|
|
289555
|
+
stages: {
|
|
289556
|
+
/** @enum {string} */
|
|
289557
|
+
stage: "lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | "seller_qualified" | "seller_visit_booked" | "seller_deal_closed";
|
|
289558
|
+
label: string;
|
|
289559
|
+
/** @description The matrix’s own website-lane name. */
|
|
289560
|
+
website_default: string;
|
|
289561
|
+
/** @description The website-lane name in force: the workspace’s choice, else the default. */
|
|
289562
|
+
website_event: string;
|
|
289563
|
+
overridden: boolean;
|
|
289564
|
+
/** @description Whether a click-to-WhatsApp ad set can optimise on `website_event`. */
|
|
289565
|
+
messaging_optimizable: boolean;
|
|
289566
|
+
}[];
|
|
289567
|
+
};
|
|
289568
|
+
AdsWebsiteEventNamesPatchResult: components["schemas"]["AdsWebsiteEventNames"] & {
|
|
289569
|
+
sync: {
|
|
289570
|
+
/**
|
|
289571
|
+
* @description `converged`: the engine’s live rules now hold the names in force. `pending`: stored, the engine write failed and the daily sweep retries it.
|
|
289572
|
+
* @enum {string}
|
|
289573
|
+
*/
|
|
289574
|
+
state: "converged" | "pending";
|
|
289575
|
+
updated: ("lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | "seller_qualified" | "seller_visit_booked" | "seller_deal_closed")[];
|
|
289576
|
+
};
|
|
289577
|
+
};
|
|
289578
|
+
AdsWebsiteEventNamesPatch: {
|
|
289579
|
+
/** @description Per stage, the name the website (pixel) dataset receives: one of `accepted_events`, or `null` = drop the choice (back to the matrix's name, `website_default`). Stages left out keep what they have. */
|
|
289580
|
+
overrides?: {
|
|
289581
|
+
/** @enum {string|null} */
|
|
289582
|
+
lead_created?: "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CompleteRegistration" | "Contact" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Lead" | "Purchase" | "Schedule" | "Search" | "StartTrial" | "SubmitApplication" | "Subscribe" | "ViewContent" | null;
|
|
289583
|
+
/** @enum {string|null} */
|
|
289584
|
+
lead_qualified?: "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CompleteRegistration" | "Contact" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Lead" | "Purchase" | "Schedule" | "Search" | "StartTrial" | "SubmitApplication" | "Subscribe" | "ViewContent" | null;
|
|
289585
|
+
/** @enum {string|null} */
|
|
289586
|
+
appointment_booked?: "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CompleteRegistration" | "Contact" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Lead" | "Purchase" | "Schedule" | "Search" | "StartTrial" | "SubmitApplication" | "Subscribe" | "ViewContent" | null;
|
|
289587
|
+
/** @enum {string|null} */
|
|
289588
|
+
checkout_started?: "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CompleteRegistration" | "Contact" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Lead" | "Purchase" | "Schedule" | "Search" | "StartTrial" | "SubmitApplication" | "Subscribe" | "ViewContent" | null;
|
|
289589
|
+
/** @enum {string|null} */
|
|
289590
|
+
deposit_paid?: "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CompleteRegistration" | "Contact" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Lead" | "Purchase" | "Schedule" | "Search" | "StartTrial" | "SubmitApplication" | "Subscribe" | "ViewContent" | null;
|
|
289591
|
+
/** @enum {string|null} */
|
|
289592
|
+
appointment_attended?: "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CompleteRegistration" | "Contact" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Lead" | "Purchase" | "Schedule" | "Search" | "StartTrial" | "SubmitApplication" | "Subscribe" | "ViewContent" | null;
|
|
289593
|
+
/** @enum {string|null} */
|
|
289594
|
+
quote_presented?: "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CompleteRegistration" | "Contact" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Lead" | "Purchase" | "Schedule" | "Search" | "StartTrial" | "SubmitApplication" | "Subscribe" | "ViewContent" | null;
|
|
289595
|
+
/** @enum {string|null} */
|
|
289596
|
+
closed_won?: "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CompleteRegistration" | "Contact" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Lead" | "Purchase" | "Schedule" | "Search" | "StartTrial" | "SubmitApplication" | "Subscribe" | "ViewContent" | null;
|
|
289597
|
+
/** @enum {string|null} */
|
|
289598
|
+
first_payment?: "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CompleteRegistration" | "Contact" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Lead" | "Purchase" | "Schedule" | "Search" | "StartTrial" | "SubmitApplication" | "Subscribe" | "ViewContent" | null;
|
|
289599
|
+
/** @enum {string|null} */
|
|
289600
|
+
returning_first_payment?: "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CompleteRegistration" | "Contact" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Lead" | "Purchase" | "Schedule" | "Search" | "StartTrial" | "SubmitApplication" | "Subscribe" | "ViewContent" | null;
|
|
289601
|
+
/** @enum {string|null} */
|
|
289602
|
+
payment_received?: "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CompleteRegistration" | "Contact" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Lead" | "Purchase" | "Schedule" | "Search" | "StartTrial" | "SubmitApplication" | "Subscribe" | "ViewContent" | null;
|
|
289603
|
+
/** @enum {string|null} */
|
|
289604
|
+
seller_qualified?: "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CompleteRegistration" | "Contact" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Lead" | "Purchase" | "Schedule" | "Search" | "StartTrial" | "SubmitApplication" | "Subscribe" | "ViewContent" | null;
|
|
289605
|
+
/** @enum {string|null} */
|
|
289606
|
+
seller_visit_booked?: "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CompleteRegistration" | "Contact" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Lead" | "Purchase" | "Schedule" | "Search" | "StartTrial" | "SubmitApplication" | "Subscribe" | "ViewContent" | null;
|
|
289607
|
+
/** @enum {string|null} */
|
|
289608
|
+
seller_deal_closed?: "AddPaymentInfo" | "AddToCart" | "AddToWishlist" | "CompleteRegistration" | "Contact" | "CustomizeProduct" | "Donate" | "FindLocation" | "InitiateCheckout" | "Lead" | "Purchase" | "Schedule" | "Search" | "StartTrial" | "SubmitApplication" | "Subscribe" | "ViewContent" | null;
|
|
289609
|
+
};
|
|
289610
|
+
/** @description Stages whose choice is dropped: they go back to the matrix's name (`website_default`). Applied before `overrides`. */
|
|
289611
|
+
reset?: ("lead_created" | "lead_qualified" | "appointment_booked" | "checkout_started" | "deposit_paid" | "appointment_attended" | "quote_presented" | "closed_won" | "first_payment" | "returning_first_payment" | "payment_received" | "seller_qualified" | "seller_visit_booked" | "seller_deal_closed")[];
|
|
289612
|
+
};
|
|
288826
289613
|
AdsMetaDatasetStatus: {
|
|
288827
289614
|
prerequisites: {
|
|
288828
289615
|
meta_ads_connected: boolean | null;
|