Birthday.Gold Partner API
Integrate birthday rewards directly into your business systems
API Overview
Build powerful integrations with Birthday.Gold's Partner API
User Management
Enroll members, manage profiles, and track birthday celebrations seamlessly.
Coming SoonCampaign Management
Create, schedule, and monitor marketing campaigns targeted at birthday celebrants.
Coming SoonReward Programs
Design and deploy custom birthday reward programs with flexible redemption options.
Coming SoonAnalytics & Reporting
Access detailed insights on redemptions, engagement, and ROI metrics.
Coming SoonAPI Access
The Birthday.Gold Partner API is currently under development. Join our partner program to be notified when API access becomes available.
Authentication
Secure API access with OAuth 2.0 and API keys
Authentication Methods
API Key Authentication
For server-to-server integrations, use your API key in the request header:
Authorization: Bearer YOUR_API_KEY
OAuth 2.0
For user-authorized actions, implement OAuth 2.0 flow:
POST /oauth/token Content-Type: application/x-www-form-urlencoded grant_type=authorization_code &code=AUTHORIZATION_CODE &client_id=YOUR_CLIENT_ID &client_secret=YOUR_CLIENT_SECRET &redirect_uri=YOUR_REDIRECT_URI
User Management API
Manage Birthday.Gold members from your platform
Enroll a new user in Birthday.Gold
Request Body
{ "email": "user@example.com", "first_name": "John", "last_name": "Doe", "birthday": "1990-06-15", "phone": "+1234567890", "source": "partner_enrollment", "partner_user_id": "USR123456" }
Response
{ "success": true, "user": { "id": "bguser_1234567890", "email": "user@example.com", "status": "active", "enrollment_date": "2025-07-06T10:30:00Z" } }
Retrieve user details and enrollment status
Update user profile information
Remove user from Birthday.Gold (soft delete)
Campaign Management API
Create and manage targeted birthday marketing campaigns
Create a new birthday campaign
Request Body
{ "name": "Summer Birthday Special", "description": "20% off for July birthdays", "start_date": "2025-07-01", "end_date": "2025-07-31", "target_criteria": { "birth_month": 7, "age_range": { "min": 18, "max": 65 } }, "reward": { "type": "percentage_discount", "value": 20, "applicable_to": "entire_purchase" } }
List all campaigns with filtering options
Query Parameters
Parameter | Type | Description |
---|---|---|
status |
string | Filter by campaign status (active, scheduled, completed) |
start_date |
date | Filter campaigns starting after this date |
limit |
integer | Number of results per page (default: 20) |
Get detailed analytics for a specific campaign
Rewards Program API
Configure and manage birthday reward offerings
Create a new reward program
Request Body
{ "name": "Birthday Free Dessert", "type": "free_item", "description": "Complimentary dessert during birthday month", "terms": [ "Valid during birthday month only", "One redemption per member", "Dine-in only" ], "redemption_method": "qr_code", "locations": ["all"] }
Validate a reward redemption attempt
Process a reward redemption
Analytics & Reporting API
Access comprehensive data on your birthday programs
Get high-level metrics for your account
Response Example
{ "period": "last_30_days", "metrics": { "total_members": 1523, "new_enrollments": 87, "redemptions": 342, "redemption_rate": 0.225, "average_transaction_value": 45.67, "revenue_impact": 15632.14 } }
Detailed redemption analytics with filtering
Member demographic insights
Webhooks
Receive real-time notifications for important events
Available Webhook Events
user.enrolled
Triggered when a new user successfully enrolls
{ "event": "user.enrolled", "timestamp": "2025-07-06T10:30:00Z", "data": { "user_id": "bguser_1234567890", "email": "user@example.com", "enrollment_source": "partner_api" } }
reward.redeemed
Triggered when a member redeems a reward
campaign.completed
Triggered when a campaign ends
Webhook Configuration
Register a new webhook endpoint
SDKs & Libraries
Get started quickly with our official SDKs
PHP SDK
Native PHP library with full API coverage
composer require birthdaygold/partner-sdk-php
JavaScript SDK
Browser and Node.js compatible library
npm install @birthdaygold/partner-sdk
Python SDK
Python library with async support
pip install birthdaygold-partner