REST API v1.1.0 · OpenAPI 3.1.0 · OAuth 2.0 + X-API-Key

Tarima.Cool Cold-Chain Visibility & Produce Brokerage API

Machine-to-machine partner API linking origin packing shed harvest manifests (Mexico, Peru, Guatemala, Ecuador, Brazil) and US border cooler inventory (Pharr TX, Pompano Beach FL, Vineland NJ) with real-time carrier ELD GPS, reefer telematics, PACA/DRC crop thermal safety evaluation, FSMA Rule 204 KDE, and X12 EDI 856 ASN records.

1. Architecture & Base URL

Tarima.Cool operates a dual-direction cold-chain integration layer so visibility platforms (such as project44 Movement), carriers, border cold-storage desks, and retail buyers stay synchronized on one shared pallet-to-trailer timeline.

ItemSpecification
Base URLhttps://tarima.cool/api/v1
OpenAPI 3.1.0 Spechttps://tarima.cool/openapi.json and /api/ai/openapi.json
Protocol & FormatHTTPS TLS 1.3, UTF-8 JSON (application/json), ISO 8601 UTC timestamps
Rate Limit60 requests / minute per source IP in Partner Sandbox (429 Too Many Requests with Retry-After)
Default Load Mode22_pallet_straight (default straight commodity cooler loads), with 53ft_3zone_mixed multi-temp consolidation support
Primary DesksPHARR_TX (Pharr, TX), POMPANO_FL (Pompano Beach, FL), VINELAND_NJ (Vineland, NJ)
GET /api/v1/health Public readiness endpoint (no auth required)
curl -s https://tarima.cool/api/v1/health

2. Authentication (OAuth 2.0 Client Credentials & X-API-Key)

All protected endpoints under /api/v1/shipments* and /api/v1/telematics/* require one of two credential methods:

  • OAuth 2.0 Client Credentials Flow (Recommended for Partners): Exchange client_id and client_secret at POST /api/v1/oauth/token for a short-lived HS256 Bearer JWT (expires_in: 3600 seconds).
  • Direct API Key Header: Pass X-API-Key: <your_api_key> on HTTPS requests for simple curl or webhook bridge scripts.

Requests missing valid credentials return HTTP 401 Unauthorized with WWW-Authenticate: Bearer realm="tarima.cool". Scoped partner evaluation credentials are provisioned out-of-band by our integration desk (gerald@tarima.cool / +1 (956) 758-COOL).

POST /api/v1/oauth/token Accepts JSON, form-urlencoded, or HTTP Basic
curl -X POST https://tarima.cool/api/v1/oauth/token \ -H "Content-Type: application/json" \ -d '{ "grant_type": "client_credentials", "client_id": "<your_client_id>", "client_secret": "<your_client_secret>" }' # Response (200 OK): { "access_token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...", "token_type": "Bearer", "expires_in": 3600, "scope": "shipments:read telematics:read telematics:write", "environment": "sandbox" }

3. Shipments & Lot Passports

Query active cross-border straight (22-pallet default) and 53-foot 3-zone consolidated shipments carrying origin packing shed GLNs, CBP border/port cooler timestamps, FSMA Rule 204 Traceability Lot Codes (TLC), PTI Voice Pick codes, and sample X12 EDI 856 Advance Ship Notice (ASN) payloads.

GET /api/v1/shipments Optional filters: corridor, load_mode, status, limit
curl -s "https://tarima.cool/api/v1/shipments?corridor=PHARR_TX" \ -H "Authorization: Bearer <access_token>"
GET /api/v1/shipments/{shipmentId} Accepts shipment_id (TRM-SBX-8910) or BOL (BOL-TRM-SBX-8910)
Sandbox IDLoad ModeCorridorCommodity & Thermal Target
TRM-SBX-891022_pallet_straightPHARR_TXMichoacan Hass Avocados 48s #1 (40.5F single-zone, 24.4% dry matter)
TRM-SBX-895522_pallet_straightPOMPANO_FLGuatemala Tommy Atkins Mangos 8s-9s (53.0F single-zone, 14.8% Brix)
TRM-SBX-901253ft_3zone_mixedPHARR_TX3-Zone Mixed Consolidation (40.5F Avocado / 48.5F Lime+Pineapple / 53.0F Mango)

4. Telematics Ingestion (ELD GPS & Reefer Telemetry)

Visibility platforms (project44 Movement, carrier ELDs, Thermo King TracKing, Carrier eSolutions, Copeland GO, Sensitech, Tive) push real-time position, door status, setpoint, return air, discharge air, and pulp probe temperature pings to Tarima.Cool. Every ingested ping returns an immediate PACA/DRC crop thermal safety evaluation.

POST /api/v1/telematics/events 201 Created + Thermal Safety Evaluation
FieldTypeRequiredDescription
shipment_idstringYesTarima Shipment ID (TRM-SBX-8910) or BOL (BOL-TRM-SBX-8910)
event_typeenumNoPOSITION_TEMP (default), REEFER_ALARM, DOOR_OPEN, GEOFENCE_ARRIVAL, DEPARTURE, ETA_UPDATE
source_providerstringNoOriginating telematics aggregator (e.g. project44_movement)
timestamp_utcISO 8601NoEvent timestamp in UTC (defaults to server receipt time)
latitude, longitudenumberNoWGS84 coordinates (-90..90, -180..180)
pulp_probe_temp_fnumberNoPrimary biological pulp probe reading (evaluated first if supplied)
return_air_temp_f, discharge_air_temp_f, reefer_setpoint_fnumberNoReefer telemetry temperatures in Fahrenheit
curl -X POST https://tarima.cool/api/v1/telematics/events \ -H "X-API-Key: <your_api_key>" \ -H "Content-Type: application/json" \ -d '{ "shipment_id": "TRM-SBX-8910", "source_provider": "project44_movement", "event_type": "POSITION_TEMP", "equipment_id": "REEF-53104", "latitude": 29.4241, "longitude": -98.4936, "reefer_setpoint_f": 40.5, "return_air_temp_f": 40.9, "discharge_air_temp_f": 39.8, "pulp_probe_temp_f": 40.7, "door_status": "CLOSED" }'
GET /api/v1/telematics/events Query params: shipment_id, limit (1..100)

5. Biological Crop Thermal Windows (PACA / DRC)

Inbound telemetry readings are automatically checked against crop-specific biological safety ranges. Out-of-window temperatures return excursion_detected: true with either CHILLING_INJURY_ALERT or WARM_EXCURSION_ALERT.

Crop KeyCommoditySafe Window (F)Target Setpoint (F)
hass_avocadoHass Avocados39.0 - 43.0 F40.5 F
honey_mangoHoney / Kent / Tommy Mangos50.0 - 55.0 F53.0 F (chilling injury below 50.0 F)
persian_limeSeedless Persian Limes47.0 - 52.0 F48.5 F (zero-ethylene protected)
md2_pineappleGolden MD2 Pineapples45.0 - 49.0 F46.5 F
jumbo_blueberryJumbo Blueberries31.5 - 35.5 F33.0 F

6. Outbound Webhooks & HMAC-SHA256 Signing

For bilateral partner integrations, Tarima.Cool emits milestone webhooks (shipment.crossed_border, shipment.offer_confirmed, telemetry.excursion_alert, edi.856_dispatched) signed via HMAC-SHA256 in the X-Tarima-Signature header:

X-Tarima-Signature: t=1794500000,v1=<hex_hmac_sha256_of_t_dot_raw_body>

Verify signatures by concatenating the Unix timestamp t, a period (.), and the raw HTTP request body bytes, then computing HMAC-SHA256 using your shared webhook secret and rejecting timestamps older than 300 seconds.

7. Live Sandbox API Console

Evaluate the live https://tarima.cool/api/v1/* endpoints directly from your browser using your assigned partner sandbox credentials. Nothing entered here is persisted in browser local storage.

Ready.
{ "hint": "Enter your sandbox credentials above and click any endpoint button to inspect live JSON responses." }

8. ERP / EDI 856 & Public AI / Cold-Chain JSON Feeds

Tarima.Cool maintains non-intrusive supporting data bridges alongside Famous Software (Oracle/SQL/XML), Silo ERP, Produce Pro, QuickBooks, and X12 EDI 850/856 without displacing system-of-record accounting. Public cold-chain datasets are published as open JSON:

PRO DESK & ERP BRIDGE

Get the 5:30 AM Morning Dashboard & Live ERP Sync

Our WhatsApp tool for packing sheds, PTI label calculator, and 14-day grove weather are 100% free. Enter your work email below to receive the daily 5:30 AM Morning Dashboard Email and unlock live Famous / Silo / Produce Pro sync.

At the shed or on mobile? Call or text our Pharr Desk first: +1 (956) 758-COOL (758-2665)