create Method
Overview
The create method creates a customer record in the payment processor.
Request Fields
| Field | Type | Required | Description |
|---|---|---|---|
merchantCustomerId | String | Yes | Your customer reference |
email | String | No | Customer email |
name | String | No | Customer name |
Response Fields
| Field | Type | Description |
|---|---|---|
connectorCustomerId | String | Customer ID (cus_xxx) |
status | CustomerStatus | ACTIVE |
Example
Map<String, Object> request = new HashMap<>();
request.put("merchantCustomerId", "cust_12345");
request.put("email", "[email protected]");
Map<String, Object> response = customerClient.create(request);