πReplenit Ingestion API - Complete Guide
The unified, production-ready API for real-time commerce data synchronization
Getting Started β’ Authentication β’ API Reference β’ Best Practices
π Table of Contents
π― Overview
The Replenit Ingestion API is the backbone of your marketing automation ecosystem. It provides:
Real-time synchronization of customers, orders, and products
Bi-directional data flow between your systems and Replenit's intelligence engine
Production-grade reliability with 99.9% uptime SLA
Enterprise security with API key authentication and data encryption
Use Cases:
E-commerce platforms syncing purchase data
CRM systems updating customer profiles
Inventory management systems pushing product updates
Marketing automation platforms triggering campaigns
β¨ Key Features
π Quick Start (5 Minutes)
Prerequisites
Before you begin:
β Replenit account (Your dashboard access will be provided via email. Contact your Customer Success Manager if you haven't received it.)
β Your Tenant ID (GUID format)
β Your API Key (base64 encoded)
Get your credentials:
Complete signup and login via your invitation link (request it from your CSM if you haven't received one)
Navigate to Settings β API
Copy your Tenant ID and generate an API Key
Step 1: Make Your First API Call
Choose your preferred language:
Step 2: Verify Success
β Success Response:
Verify in Dashboard: created data will reflect to Data and Health page in the panel after 24 hours
Step 3: Next Steps
π Congratulations! You've successfully integrated with Replenit.
What you just did:
β Authenticated with API key
β Created a customer profile
β Customer is now available for campaigns
Try these next:
ποΈ Architecture
Core Entities
Customers
Profiles & Preferences
Email, CustomerId, Consent flags
Real-time or daily
Orders
Purchase Behavior
OrderId, Items, Revenue
Real-time per transaction
Products
Catalog & Inventory
ProductId, Variants, Stock
Hourly or on-change
π Authentication
All API requests require the x-replenit-auth-key header with your base64-encoded API key.
Quick Example:
Get your API key:
Login to your Replenit panel (Reach out to Customer Success Manager if you don't have invitation email)
Navigate to Settings β API Keys
Click Generate New Key and save securely
π Complete security guide: authentication.md β includes key rotation, best practices, troubleshooting, and multi-environment setup
π API Reference
Base URL
Endpoints Overview
Common Request Format
All POST endpoints expect:
β Array of objects (even for single record)
β Content-Type:
application/jsonβ UTF-8 encoding
Common Response Format
Success (200 OK):
Error (4xx/5xx):
β‘ Rate Limits
Standard Tier: 100 requests/minute, 5,000 requests/hour
All responses include rate limit headers:
Handling 429 Responses:
Implement exponential backoff with jitter
Use
Retry-Afterheader valueMonitor
X-RateLimit-Remaining
π Complete optimization guide: rate-limits.md β includes tier comparison, handling strategies, batch optimization, and real-world patterns
β
Data Standards
We follow international standards for interoperability:
Datetime: ISO 8601 (
2024-12-22T14:30:00.000ZUTC)Language: IETF BCP 47 (
en-US,fr-FR)Currency: ISO 4217 (
USD,EUR,GBP)Encoding: UTF-8 required
π Complete standards & production checklist: best-practices.md
π¨ Error Handling
HTTP Status Codes
200
Success
Continue normal flow
401
Unauthorized
Verify API key
404
Tenant Not Found
Check tenant ID
429
Rate Limit
Implement backoff, reduce request rate
500
Server Error
Retry with exponential backoff
Error Response Structure
Common Errors & Solutions
"Tenant not found" (404)
β Verify tenant ID is a GUID (36 characters)
β Copy from Dashboard β Settings β API
"Unauthorized" (401)
β Check
x-replenit-auth-keyheaderβ Verify full API key was copied
"Validation Error" (400)
β Request must be an array:
[{...}]β Check required fields per endpoint
β Verify string lengths don't exceed limits
π Complete troubleshooting: error-responses.md
π Support & Community
Getting Help
π§ Email Support: support@replen.it
π Documentation: You're reading it!
π§ Status Page: status.replen.it
Response Times
Critical Issues: < 1 hour
Standard Support: < 24 hours
Feature Requests: 48-72 hours
When Contacting Support
Include:
β Tenant ID
β Timestamp (UTC) of issue
β Full error response (sanitize sensitive data)
β Request payload example (sanitize sensitive data)
β Expected vs actual behavior
π Additional Resources
Getting Started
π Getting Started Guide - Complete 9-step tutorial with examples
π Authentication & Security - API keys, rotation, troubleshooting
β‘ Rate Limits & Optimization - Tier comparison, handling strategies
API Reference
π₯ Customers API - Complete customer endpoint reference
π Orders API - Order & transaction management
π¦ Products API - Product catalog synchronization
Production Guides
π Best Practices - Production patterns & optimization
π¨ Error Responses - Troubleshooting & validation decoder
Last updated