Tango Sales Inbound — File
Generated fromTango Sales Inbound Integration Design Specification V0.9.docxin SharePoint folder02 Lease Integrations. OAS spec:sales-inbound-file.yaml
Overview
SFTP file-based inbound. Client drops a pipe-delimited file containing monthly sales / exclusion rows; Tango processes and feeds Percent Rent calculations. Owner: Tango Analytics Spec version: 0.9 Status: Draft (auto-generated — needs review)Transport
Integration logic
- Percent Rent is applied based on Calendar Period and Calendar Year (not fiscal).
- Sales can be loaded for multiple active percent rent agreements on the same lease.
- Sales code is optional; uniqueness is
(SALES_EXCLUSION, SALES_CATEGORY). - Send sales as positive, exclusions as negative.
Gross Sales = Net Sales + Exclusion;Net Sales = Gross Sales − Exclusion.- Re-sending data for the same month overwrites prior data.
- Forecast is replaced by Actual when sent later for the same month/year/category.
- Sales adjustments for past periods (when payment was already generated) must be sent in future periods.
- Multiple concurrent files are processed in arrival order; all are moved to Processed.
Data fields
Validations
Open Questions / Assumptions
-
CALENDAR_YEARtyped VARCHAR in source mapping but treated as a year value. Schema mirrors the doc. - SFTP credentials are
<TBD>. - Timing/frequency is
<TBD>. - Cap logic (Annual / Monthly) is detailed in the source’s Functional Design — applied at processing time, not in the inbound row schema.
- Lookup values for
SALES_CODE,SALES_CATEGORY,SALES_EXCLUSIONare<TBD>in Appendix.

