%%{init: { "theme": "base", "themeVariables": { "fontSize": "18px", "background": "transparent", "actorBkg": "#038851", "actorTextColor": "#ffffff", "actorBorder": "#026139", "actorLineColor": "#94a3b8", "signalColor": "#64748b", "signalTextColor": "#059669", "noteBkgColor": "#e6f4ee", "noteTextColor": "#02502f", "noteBorderColor": "#038851", "activationBkgColor": "#c6ebdc", "activationBorderColor": "#026139", "sequenceNumberColor": "#ffffff" }, "sequence": { "useMaxWidth": true, "actorMargin": 70, "width": 150, "height": 60, "boxMargin": 12, "noteMargin": 14, "messageMargin": 50, "diagramMarginX": 20, "diagramMarginY": 20, "actorFontSize": 18, "actorFontWeight": 700, "noteFontSize": 15, "noteFontFamily": "ui-monospace, SFMono-Regular, Menlo, Consolas, monospace", "messageFontSize": 16, "messageFontWeight": 700, "noteAlign": "left", "mirrorActors": false } }}%%
sequenceDiagram
autonumber
participant Partner as Partner Integration
participant API as REST API
participant GCS as Google Cloud Storage
rect rgb(250,238,218)
Note over Partner,API: 1. Request Latest Feed
Partner->>+API: GET /[locationId]/productFeed/latest
end
rect rgb(250,238,218)
Note over API,GCS: 2. File Lookup & URL Generation
API->>+GCS: Lookup latest feed file for [locationId]
GCS-->>-API: Return file metadata
API->>+GCS: Request Signed URL (Valid for 15 minutes)
GCS-->>-API: Return Signed URL
end
rect rgb(250,238,218)
Note over Partner,API: 3. Response
API-->>-Partner: 200 OK { "locationId": "...", "url": "Signed_URL" }
end
rect rgb(250,238,218)
Note over Partner,GCS: 4. Data Consumption (Within 15m)
Partner->>+GCS: HTTP GET Request using Signed URL
GCS-->>-Partner: Return product feed file
end