Partner Onboarding Guide
Welcome to DepartCart
This guide will walk you through the complete onboarding process to integrate DepartCart ancillary services into your booking platform.
Overview
DepartCart provides a complete ancillary commerce platform that enables airlines and travel partners to offer premium services like seat selection, priority support, travel insurance, and more. Our platform handles the entire transaction lifecycle from presentation to fulfillment.
Integration Timeline
Typical integration timeline: 2-4 weeks
- Week 1: Onboarding and credential setup
- Week 2: Technical integration and testing
- Week 3: User acceptance testing and refinements
- Week 4: Production deployment and go-live
Step 1: Provide Branding Information
Brand Assets Required
Please provide the following branding materials to ensure a seamless customer experience:
Logo Requirements
- Primary Logo: Vector format (SVG preferred) or high-resolution PNG (minimum 300x100px)
- Secondary/Icon Logo: Square format for use in compact spaces (minimum 100x100px)
- White/Light Versions: For use on dark backgrounds
- File Formats: SVG, PNG, or AI files
Color Palette
- Primary Brand Color: Hex code (e.g., #1E3A8A)
- Secondary Brand Color: Hex code (e.g., #3B82F6)
- Accent Colors: Additional brand colors (if applicable)
- Text Colors: Primary and secondary text colors
- Background Colors: Light and dark background preferences
Typography (Optional)
- Primary Font: Font family name and web font URL (if custom)
- Secondary Font: For body text (if different from primary)
- Font Weights: Specify which weights to use (normal, bold, etc.)
Brand Guidelines
- Style Guide: PDF or link to brand guidelines
- Usage Rules: Any specific requirements for logo usage
- Color Combinations: Preferred color combinations and restrictions
Example Brand Submission
{
"brand_name": "SkylineAir",
"primary_color": "#1E40AF",
"secondary_color": "#3B82F6",
"accent_color": "#10B981",
"text_primary": "#1F2937",
"text_secondary": "#6B7280",
"background_light": "#F9FAFB",
"background_dark": "#111827",
"primary_font": "Montserrat",
"font_url": "https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700",
"logo_primary": "https://assets.skylineair.com/logo-primary.svg",
"logo_icon": "https://assets.skylineair.com/logo-icon.svg"
}
Step 2: Provide GDS Credentials
Supported GDS Systems
DepartCart integrates with major Global Distribution Systems:
- Sabre (Red Apps certified)
- Amadeus (API certified)
- Travelport (Universal API)
Required GDS Access
For Sabre Integration
REST API Credentials:
- Client ID: Your Sabre REST API client ID
- Client Secret: Your Sabre REST API client secret
- Username: Your Sabre username
- Password: Your Sabre password
For Amadeus Integration
API Credentials:
- API Key: Your Amadeus API key
- API Secret: Your Amadeus API secret
- Client ID: Your Amadeus client ID
- Environment: Production or Test environment details
Required Access:
- Flight Offers Search API
- Flight Offers Price API
- Flight Create Orders API
- PNR Management API
- Seat Map Display API
Security Requirements
- IP Whitelisting: Provide our server IPs for GDS access
- SSL Certificates: Ensure proper SSL configuration
- Rate Limiting: Understand GDS rate limits and quotas
- Failover: Configure backup credentials if available
GDS Credential Submission Form
gds_provider: "sabre" # or "amadeus", "travelport"
environment: "production" # or "test"
# Sabre REST Credentials
rest_credentials:
client_id: "YOUR_CLIENT_ID"
client_secret: "YOUR_CLIENT_SECRET"
username: "YOUR_REST_USERNAME"
password: "YOUR_REST_PASSWORD"
# Network Configuration
network:
allowed_ips: ["52.1.2.3", "52.4.5.6"]
rate_limits:
requests_per_minute: 1000
burst_limit: 100
Step 3: Payment Gateway Configuration
Supported Payment Gateways
- Stripe (Recommended)
- Adyen
- PayPal
- Authorize.Net
Merchant of Record Benefits
As the merchant of record, you maintain:
- Full Revenue Control: All payments go directly to your account
- Complete Transaction Visibility: Access to all payment data
- Fraud Rule Management: Configure your own fraud prevention
- Chargeback Handling: Direct relationship with payment processor
- Compliance: Maintain your existing PCI compliance
Stripe Configuration
Required Credentials
- Publishable Key: For client-side payment forms
- Secret Key: For server-side API calls
- Webhook Endpoint Secret: For payment event notifications
Webhook Events to Enable
payment_intent.succeeded
payment_intent.payment_failed
charge.dispute.created
invoice.payment_succeeded
customer.subscription.updated
Example Stripe Configuration
{
"provider": "stripe",
"environment": "production",
"credentials": {
"publishable_key": "pk_live_YOUR_PUBLISHABLE_KEY",
"secret_key": "sk_live_YOUR_SECRET_KEY",
"webhook_secret": "whsec_YOUR_WEBHOOK_SECRET"
},
"settings": {
"currency": "USD",
"capture_method": "automatic",
"payment_methods": ["card", "apple_pay", "google_pay"],
"fraud_rules": {
"enabled": true,
"risk_threshold": "normal"
}
}
}
Adyen Configuration
Required Credentials
- API Key: For API authentication
- Merchant Account: Your Adyen merchant account ID
- Client Key: For client-side integration
- HMAC Key: For webhook verification
Example Adyen Configuration
{
"provider": "adyen",
"environment": "live",
"credentials": {
"api_key": "YOUR_API_KEY",
"merchant_account": "YOUR_MERCHANT_ACCOUNT",
"client_key": "YOUR_CLIENT_KEY",
"hmac_key": "YOUR_HMAC_KEY"
},
"settings": {
"currency": "USD",
"payment_methods": ["scheme", "applepay", "googlepay"],
"fraud_detection": {
"enabled": true,
"risk_score_threshold": 60
}
}
}
Payment Flow Architecture
sequenceDiagram
participant Customer
participant YourSite
participant DepartCart
participant PaymentGateway
participant GDS
Customer->>YourSite: Select ancillary products
YourSite->>DepartCart: Generate encrypted seatmap URL
Customer->>DepartCart: Access seatmap with encrypted data
DepartCart->>GDS: Retrieve seat availability
Customer->>DepartCart: Select seats and proceed to payment
DepartCart->>PaymentGateway: Process payment via your gateway
PaymentGateway->>YourSite: Payment webhook notification
DepartCart->>GDS: Fulfill seat assignments
DepartCart->>YourSite: Transaction webhook notification
Step 4: Generate Seatmap Deeplinks
Recommended: self-encode the link. You will be issued your brand id, an encoding password and salt, and a decode test vector. With those you build the encrypted id in your own backend and append it to https://departcart.com/seatmap?id=..., with no call to DepartCart per link. The Partner Self-Encoding Guide has the recipe and Python and C# reference implementations. Keep the password and salt in your secret manager; never ship them in client code.
Alternative: the deeplink API. If you cannot hold a key in a backend service, use the API instead. You exchange your API key and API secret for a short-lived bearer token, then call our deeplink endpoint with the raw pnr and last_name. DepartCart encrypts the passenger data and returns a ready-to-use seatmap URL. Links from either route are interchangeable.
Generating a deeplink through the API is a two-step flow:
- Exchange your API key and secret for a bearer token.
- Call the deeplink endpoint with the bearer token to receive the seatmap URL.
Keep your API secret server-side. Always request bearer tokens from your backend so your secret is never exposed to browsers or end users.
The base URL for all requests is https://departcart.com.
Step 4.1: Request a Bearer Token
Exchange your API key and secret for a short-lived bearer token.
Request
curl -X POST https://departcart.com/generate-bearer-token \
-H "Content-Type: application/json" \
-d '{
"api_key": "YOUR_API_KEY",
"api_secret": "YOUR_API_SECRET",
"duration_hours": 24
}'
api_key(required): Your DepartCart API key.api_secret(required): Your DepartCart API secret. Keep this server-side.duration_hours(optional): Token lifetime in hours. Defaults to24.
Response
{
"success": true,
"bearer_token": "your_brand:...:...:...:...",
"token_type": "Bearer",
"expires_in": 86400,
"expires_at": 1718876400,
"brand": "your_brand"
}
Cache and reuse the token until it expires (expires_at is a Unix timestamp), then request a new one.
Step 4.2: Generate the Seatmap Deeplink
Call the deeplink endpoint with the bearer token and the passenger's raw pnr and last_name. The brand is derived from the bearer token, so it is not sent in the body.
Request
curl -X POST https://departcart.com/api/generate-encrypted-seatmap-url \
-H "Authorization: Bearer your_brand:...:...:...:..." \
-H "Content-Type: application/json" \
-d '{
"pnr": "ABC123",
"last_name": "SMITH",
"source": "api"
}'
pnr(required): The booking reference. Sent as plain text; DepartCart encrypts it server-side.last_name(required): The passenger's last name. Sent as plain text.source(optional): Attribution tag for the link. Defaults tocart.
Response
{
"success": true,
"encrypted_id": "Z0FBQUFB...",
"seatmap_url": "/seatmap?id=Z0FBQUFB...&source=api",
"source": "api"
}
seatmap_url is a path on the DepartCart domain. Build the customer-facing deeplink by prefixing it with https://departcart.com:
https://departcart.com/seatmap?id=Z0FBQUFB...&source=api
Code Examples
import requests
BASE_URL = "https://departcart.com"
def get_bearer_token(api_key, api_secret, duration_hours=24):
"""Exchange API credentials for a short-lived bearer token."""
response = requests.post(
f"{BASE_URL}/generate-bearer-token",
json={
"api_key": api_key,
"api_secret": api_secret,
"duration_hours": duration_hours,
},
)
response.raise_for_status()
return response.json()["bearer_token"]
def generate_seatmap_deeplink(bearer_token, pnr, last_name, source="api"):
"""Generate a customer-facing seatmap deeplink."""
response = requests.post(
f"{BASE_URL}/api/generate-encrypted-seatmap-url",
headers={
"Authorization": f"Bearer {bearer_token}",
"Content-Type": "application/json",
},
json={
"pnr": pnr,
"last_name": last_name,
"source": source,
},
)
response.raise_for_status()
seatmap_url = response.json()["seatmap_url"]
return f"{BASE_URL}{seatmap_url}"
# Example usage (run this from your backend)
token = get_bearer_token("YOUR_API_KEY", "YOUR_API_SECRET")
deeplink = generate_seatmap_deeplink(token, pnr="ABC123", last_name="SMITH")
print(deeplink) # https://departcart.com/seatmap?id=...&source=api
const BASE_URL = 'https://departcart.com';
async function getBearerToken(apiKey, apiSecret, durationHours = 24) {
// Exchange API credentials for a short-lived bearer token.
const response = await fetch(`${BASE_URL}/generate-bearer-token`, {
method: 'POST',
headers: { 'Content-Type': 'application/json' },
body: JSON.stringify({
api_key: apiKey,
api_secret: apiSecret,
duration_hours: durationHours,
}),
});
if (!response.ok) throw new Error(`Token request failed: ${response.status}`);
const data = await response.json();
return data.bearer_token;
}
async function generateSeatmapDeeplink(bearerToken, pnr, lastName, source = 'api') {
// Generate a customer-facing seatmap deeplink.
const response = await fetch(`${BASE_URL}/api/generate-encrypted-seatmap-url`, {
method: 'POST',
headers: {
Authorization: `Bearer ${bearerToken}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({ pnr, last_name: lastName, source }),
});
if (!response.ok) throw new Error(`Deeplink request failed: ${response.status}`);
const data = await response.json();
return `${BASE_URL}${data.seatmap_url}`;
}
// Example usage (run this from your backend so the API secret stays server-side)
const token = await getBearerToken('YOUR_API_KEY', 'YOUR_API_SECRET');
const deeplink = await generateSeatmapDeeplink(token, 'ABC123', 'SMITH');
console.log(deeplink); // https://departcart.com/seatmap?id=...&source=api
Testing Your Integration
Validate the end-to-end flow before going live.
If you self-encode (recommended):
- Decode the test vector issued with your brand key and confirm it yields the expected payload. This proves your key derivation and encoding are correct.
- Encode a sandbox booking and open
https://departcart.com/seatmap?id=...&source=cartin a browser to confirm the seatmap loads for it.
If you use the deeplink API:
- Request a token using your sandbox API key and secret against
https://departcart.com/generate-bearer-token. - Call the deeplink endpoint at
https://departcart.com/api/generate-encrypted-seatmap-urlwith the returned bearer token and a testpnrandlast_name. - Open the returned URL (
https://departcart.com+seatmap_url) in a browser to confirm the seatmap loads for the test booking.
Step 5: Integration Options
Option A: GTM Lightweight Integration ⭐ Recommended for the in-page panels
Timeline: 1-2 days
Development Effort: Minimal
Customization: Limited but sufficient for most use cases
Deploy seat selection panels using Google Tag Manager. Perfect for:
- Quick deployment
- Minimal development resources
- Standard branding requirements
See our GTM Integration Guide for complete implementation details.
Option B: Full API Integration
Timeline: 2-3 weeks
Development Effort: Moderate to High
Customization: Complete control
Direct API integration with your existing systems. Ideal for:
- Complex custom requirements
- Deep system integration
- Advanced analytics and reporting
See our API Documentation for complete technical details.
Option C: Hybrid Approach
Timeline: 1-2 weeks
Development Effort: Low to Moderate
Customization: Balanced
Combine GTM panels with webhook notifications. Best for:
- Quick deployment with backend integration
- Real-time transaction monitoring
- Custom post-purchase workflows
Step 6: Webhook Configuration (optional)
After a customer pays for extras on one of your bookings and every item has been
confirmed with the airline, DepartCart sends a signed transaction.processed
JSON POST to an HTTPS endpoint you give us at onboarding. It is optional and
switched on per brand.
- Verify the signature. Every request carries
X-DepartCart-TimestampandX-DepartCart-Signature(sha256=plus hex HMAC-SHA256 of the timestamp, a., and the raw request body, keyed with a shared secret we agree with you). Verify over the raw body before parsing JSON. - Answer fast. Return any
2xxwithin about 3 seconds, then process. There are no automatic retries. - De-duplicate on
event_id. A sale can occasionally be notified more than once. - Match on
transaction.itinerary_idortransaction.pnrto find the booking on your side.
The full payload, every field, and verification code in Python, Node.js and C# are in the Partner Webhook Guide.
What to send us
- Your endpoint URL for each brand, and for each environment (pre-production
and production are configured separately). It must be
https://with a valid certificate, and must not redirect. - A contact for the secret. We generate one shared secret per brand and send it over a private channel.
Only one event exists today, transaction.processed, for confirmed website
sales. Ignore event types you do not recognise, so later additions do not
break your handler.
Step 7: Testing & Go-Live
Sandbox Testing
- Receive sandbox credentials from our team
- Generate seatmap deeplinks with test data
- If you use webhooks, give us your pre-production endpoint and confirm your handler verifies the signature (see Verifying the signature)
- Complete end-to-end transaction in sandbox
- Performance testing under load
User Acceptance Testing
- Internal testing with your team
- Stakeholder review of user experience
- Brand compliance verification
- Mobile responsiveness testing
- Cross-browser compatibility testing
Production Deployment
- Switch to production credentials
- Update DNS/CDN configurations
- Monitor initial transactions
- Confirm the first webhook notification arrives and its signature verifies (if you use webhooks)
- Confirm GDS fulfillment
Launch Checklist
- [ ] Branding assets implemented correctly
- [ ] GDS integration tested and working
- [ ] Payment gateway processing successfully
- [ ] Seatmap deeplink generation verified
- [ ] GTM/API integration deployed
- [ ] Webhook endpoint verifying signatures and de-duplicating on
event_id(if used) - [ ] Customer support team trained
- [ ] Monitoring and alerting configured
- [ ] Rollback plan prepared
Support During Onboarding
Dedicated Support Team
During onboarding, you'll have access to:
- Integration Engineer: Technical implementation support
- Account Manager: Overall project coordination
- QA Specialist: Testing and validation assistance
Communication Channels
- Slack Channel: Real-time chat support (invitation provided)
- Email: [email protected]
- Video Calls: Weekly check-ins scheduled
Documentation & Resources
- Technical Documentation: Complete API and integration guides
- Code Examples: Sample implementations in multiple languages
- Best Practices: Proven patterns from successful integrations
- Troubleshooting: Common issues and solutions
Post-Launch Support
Ongoing Support Includes
- Technical Support: Bug fixes and integration issues
- Feature Updates: New products and capabilities
- Performance Monitoring: API performance and uptime tracking
- Business Reviews: Regular performance and optimization meetings
SLA Commitments
- API Uptime: 99.9%
- Support Response: < 4 hours (business days)
- Critical Issues: < 1 hour (24/7)
- Feature Requests: Quarterly roadmap reviews
Next Steps
Ready to get started? Contact our integration team:
📧 Email: [email protected]
We'll set up your initial onboarding call within 24 hours and provide you with:
- Dedicated Slack channel
- Sandbox credentials
- Project timeline
- Technical documentation access
Welcome to DepartCart! We're excited to help you maximize your ancillary revenue. 🚀