Definitions of terms used in this document can be found in the glossary.
BravoTran maps a company in the FFS to an account in BravoTran. Often a company represents a country in the FFS. It’s ok to have more than one account in BravoTran for a country if that country has multiple companies, but it’s not ok to have one account in BravoTran represent multiple companies / countries. BravoTran will discuss this with you before starting the implementation.
updated_at – ISO 8601 timestamp (ex 2024-04-25T08:00:00Z) of when the entity was last updated. BravoTran uses this as a “version” to prevent overwriting with old data if updates get out of sync.
updated_at should change.external_id – unique and immutable identifier for the entity used as a “foreign key” between BravoTran and the FFS. This will be used in “upserts” to BravoTran’s database.
external_id unique in BravoTran. For example, vendor-123[x] – represents an index in what would be an array in JSON.
way_bill_1_number, way_bill_1_type, way_bill_2_number, way_bill_2_type, etc. We don’t care if they’re 0 or 1 indexed, just as long as they’re unique.FFS → BravoTran
Each file should have the entity type as well as a unix timestamp to ensure files don’t get overwritten if there is a delay processing them by BravoTran.
[ENTITY_TYPE]-[UNIX_TIMESTAMP].csv
When uploading files to the SFTP they must be uploaded as [ENTITY_TYPE]-[UNIX_TIMESTAMP].csv.part and then renamed to [ENTITY_TYPE]-[UNIX_TIMESTAMP].csv once complete. This will ensure BravoTran doesn’t start importing partial files.
Once BravoTran has imported the files, they will be moved to a sub folder named “processed.”