Skip to main content

Rollout: dropoff edit & proof links

Deploy in this order so Kafka consumers tolerate additive fields:

  1. Lynq — partner intake consumer (dropoff_update), proof link service, public /api/v1/proof/{token}, internal /api/v1/internal/orders/{public_id}/proof-links, and order.status_changed proof URL fields.
  2. order-worker — Alembic 0012_order_proof_urls, dropoff PATCH API, Lynq events consumer proof persistence.
  3. Nginx — reload after adding location ^~ /api/v1/proof/ (rate limit aligned with /api/v1/track/).

Environment​

ServiceVariablePurpose
LynqPROOF_LINK_SECRETHMAC secret for proof tokens (fallback: app secret_key)
LynqPROOF_LINK_BASE_URLHost in partner-facing proof URLs: UAT https://uat-proof.lynq-sa.com, prod https://proof.lynq-sa.com (path /api/v1/proof/{token})
Lynq / order-workerLYNQ_INTEGRATION_SECRET / LYNQ_INTERNAL_AUTH_TOKENMust match for internal proof-link backfill

Database​

  • order-worker: run Alembic migration adding worker.orders.pickup_proof_url and delivery_proof_url.

Verification​

  • PATCH /partner/api/v1/orders/{id}/dropoff on a pending order returns updated fee and emits order.dropoff_updated.
  • After delivery with proof, order.delivered webhook includes proof.delivery_url; GET /orders/{id}/proof returns the same links.