https://app.kulmipay.com/api/v1/subscriptions/customers/
The POST endpoint performs an upsert: if a customer with the given email already exists on your account, the request updates their record instead of creating a new one. This makes it safe to call on every checkout without checking for duplicates first.
Create or update a customer
POST /api/v1/subscriptions/customers/
Request parameters
The customer’s email address. This is the unique key — if a customer with this email already exists on your account, the request will update their record.
Customer’s first name. Alphanumeric characters only.
Customer’s last name. Alphanumeric characters only.
Customer’s phone number in international format, for example
254712345678.Your internal reference ID for this customer, up to 45 characters. Useful for linking the Kulmi Pay customer record to your own database.
Street address for billing, up to 50 characters. Required for card payments in some regions.
City for the billing address.
State or region for the billing address.
Postal or ZIP code. Required for card billing when
country is US, CA, or GB.Two-letter ISO 3166-1 alpha-2 country code, for example
KE or US.cURL
List customers
GET /api/v1/subscriptions/customers/
Returns all customers associated with your account, ordered by creation date (newest first).
Retrieve a customer
GET /api/v1/subscriptions/customers/{customer_id}/
Returns a single customer record by their customer_id (alias ID).
Customer object
The customer alias ID. Use this value as
customer_id when creating a subscription.The customer’s email address.
Customer’s first name.
Customer’s last name.
Customer’s phone number.
Your internal reference ID for this customer.
Street address on file.
City on file.
State or region on file.
Postal code on file.
Two-letter country code on file.
ISO 8601 timestamp of when the customer was created.
ISO 8601 timestamp of the last update to this customer record.
