Complete guide to on-demand customer synchronization between Flexprice and Stripe
POST /api/v1/payments
Request:
stripe_customer_id
in metadataPOST /api/v1/payments
Request:
POST /api/v1/integrations/sync/customer
Request:
customer.created
Webhook Payload:
Field | Flexprice → Stripe | Stripe → Flexprice | Notes |
---|---|---|---|
name | ✅ | ✅ | Customer full name |
email | ✅ | ✅ | Primary email address |
address_line1 | ✅ | ✅ | Street address |
address_city | ✅ | ✅ | City |
address_state | ✅ | ✅ | State/province |
address_postal_code | ✅ | ✅ | ZIP/postal code |
address_country | ✅ | ✅ | Country code |
Field | Description |
---|---|
address_line2 | Apartment/suite number |
phone | Phone number |
external_id | Your internal customer ID |
metadata | Custom key-value pairs |
GET /api/v1/customers/{customer_id}/integrations
Response:
Error | Cause | Resolution |
---|---|---|
”Customer not found” | Invalid customer ID | Verify customer exists |
”Email already exists” | Duplicate email in Stripe | Check for existing customer |
”Invalid email format” | Malformed email address | Fix email format |
”Stripe API error” | Stripe connection issue | Check Stripe credentials |