Skip to content

Get a customer

Returns a customer of your account.

Authorization: Bearer <API token>, required.

Name Type Description
id integer Customer ID (customerId from the checkout response or webhooks).
Terminal window
curl "https://api.creditcore.io/api/customer/5812" \
-H "Authorization: Bearer $CREDITCORE_API_TOKEN"
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.
200 OK
{
"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.