Create
Overview
The create method creates a customer record in the payment processor system. Storing customer details streamlines future transactions and can improve authorization rates.
Business Use Case: A new user signs up for your e-commerce platform. Create their customer profile to enable faster checkout on future purchases.
Purpose
Faster checkout
Returning customers skip entering details
Payment history
Track all payments by customer
Fraud scoring
Established customers have better risk profiles
Subscriptions
Required for recurring billing setup
Request Fields
merchantCustomerId
string
Yes
Your unique customer reference
email
string
No
Customer email address
name
string
No
Customer full name
phone
string
No
Customer phone number
description
string
No
Internal description
metadata
object
No
Additional data (max 20 keys)
Response Fields
merchantCustomerId
string
Your customer reference
connectorCustomerId
string
Connector's customer ID (e.g., Stripe's cus_xxx)
status
CustomerStatus
ACTIVE
statusCode
number
HTTP status code
Example
SDK Setup
Request
Response
Best Practices
Create customers at account signup, not first purchase
Use consistent
merchantCustomerIdformatStore
connectorCustomerIdfor future referenceInclude email for processor communications
Next Steps
Payment Method Service - Store payment methods for customer
Payment Service - Process payments with customer ID
Recurring Payment Service - Set up subscriptions
Last updated
Was this helpful?

