← Back to Documentation

API Reference

CRMGift middleware API endpoints.

Base URL

Production: https://crmgift.com/api/tremendous
Sandbox:    https://crmgift.com/api/tremendous (uses Tremendous sandbox)

Authentication

All API requests require a valid API key in the Authorization header:

Authorization: Bearer <your-api-key>

Endpoints

GET /api/tremendous/products

Browse the gift catalog.

Query Parameters:

  • search (string) — Search by product name or brand
  • category (string) — Filter by category
  • min_price (number) — Minimum price filter
  • max_price (number) — Maximum price filter
  • page (number) — Page number (default: 1)
  • per_page (number) — Results per page (default: 20)

POST /api/tremendous/orders

Create a gift order.

Body:

{
  "product_ids": ["tremendous_product_id"],
  "recipient_name": "Jane Doe",
  "recipient_email": "jane@example.com",
  "message": "Thanks for a great meeting!",
  "card_id": "card_template_id",
  "sf_record_id": "003xx000xxxx"
}

GET /api/tremendous/funding

List available funding sources and balances.

POST /api/webhooks/tremendous

Webhook receiver for Tremendous order events. Events: ORDERS.CREATED, ORDERS.APPROVED, REWARDS.DELIVERY.SUCCEEDED, ORDERS.CANCELED.