Get a customer
Returns a customer of your account.
Authentication
Section titled “Authentication”Authorization: Bearer <API token>, required.
Path parameters
Section titled “Path parameters”| Name | Type | Description |
|---|---|---|
id |
integer | Customer ID (customerId from the checkout response or webhooks). |
Request
Section titled “Request”curl "https://api.creditcore.io/api/customer/5812" \ -H "Authorization: Bearer $CREDITCORE_API_TOKEN"Response
Section titled “Response”| Field | Type | Description |
|---|---|---|
id |
integer | Customer ID. |
accountId |
integer | Your account ID. |
email |
string | Buyer’s email. |
name / lastName |
string | Buyer’s name. |
status |
string | Customer status. |
productId |
integer | Product subscribed to. |
subscriptionTimestamp |
datetime | Signup date. |
nextRenewalTimestamp |
datetime | null | Next scheduled charge. |
lastTimeBilled |
datetime | null | Last successful charge. |
unsubscriptionTimestamp |
datetime | null | Cancellation date. |
renewalActive |
boolean | Whether future renewals will be billed. |
attempts |
integer | Consecutive billing attempts in the current cycle. |
cardBin |
string | First 6 digits of the card. |
cardType |
string | Card brand, e.g. visa. |
cardExpiredTime |
string | Card expiry as MMYY. |
{ "id": 5812, "accountId": 40, "email": "jane.doe@example.com", "name": "Jane", "lastName": "Doe", "status": "ACTIVE", "productId": 12, "subscriptionTimestamp": "2026-09-29T14:03:12.123", "nextRenewalTimestamp": "2026-10-29T14:03:12.123", "lastTimeBilled": "2026-09-29T14:03:12.456", "unsubscriptionTimestamp": null, "renewalActive": true, "attempts": 1, "cardBin": "411111", "cardType": "visa", "cardExpiredTime": "1228"}If the customer doesn’t exist or belongs to another account, the response is 200 with an empty body.