Retrieve a customer with specified identifier string.
expand | string Expand a response to get a full related object included inside of the |
fields | string Limit the returned fields to the list specified, separated by comma. Note that id is always returned. |
Customer was retrieved successfully.
id | string <= 50 characters The customer identifier string. | ||||
string <email> The customer's email. | |||||
firstName | string The customer's first name. | ||||
lastName | string The customer's last name. | ||||
websiteId | string <= 50 characters The website's ID. | ||||
Vaulted instrument (object) or Alternative Instrument (object) or Cash (object) or Check (object) (PaymentInstrumentValueObject) | |||||
Any of: Vaulted payment instrument.
| |||||
createdTime | string <date-time> The customer created time. | ||||
updatedTime | string <date-time> Read-only timestamp updates when the resource is updated. | ||||
customFields | object (ResourceCustomFields) Default: {} Custom Fields list as a map | ||||
object (ContactObject) | |||||
object (CustomerAverageValue) | |||||
paymentCount | integer The number of approved payments for the customer. | ||||
lastPaymentTime | string <date-time> The most recent time of an approved payment for the customer. | ||||
object (CustomerLifetimeRevenue) | |||||
invoiceCount | integer An auto-incrementing number based on the sequence of invoices. If set to 0, then this record is a Lead, otherwise is a Customer. | ||||
Array of objects (Tag) A list of customer's tags. | |||||
Array | |||||
revision | integer The number of times the customer data has been modified. The revision is useful when analyzing webhook data to determine if the change takes precedence over the current representation. | ||||
isEddRequired | boolean Default: false Indicates if EDD is enabled for this customer. | ||||
hasFulfilledKyc | boolean Specifies whether the customer has accepted and reviewed identity and address documents, or an accepted credit file document. | ||||
Array of Self (object) or DefaultPaymentInstrumentLink (object) or LeadSourceLink (object) or WebsiteLink (object) >= 3 items The links related to resource. | |||||
Array of LeadSourceEmbed (object) non-empty Any embedded objects available that are requested by the | |||||
Array (non-empty) Any of: Lead Source object.
|
Unauthorized access, invalid credentials were used.
Access forbidden.
Resource was not found.
$customers = $client->customers()->load('myCustomerId');
{- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "email": "user@example.com",
- "firstName": "string",
- "lastName": "string",
- "websiteId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "defaultPaymentInstrument": {
- "method": "payment-card",
- "paymentInstrumentId": "4f6cf35x-2c4y-483z-a0a9-158621f77a21"
}, - "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "customFields": {
- "foo": "bar"
}, - "primaryAddress": {
- "firstName": "Benjamin",
- "lastName": "Franklin",
- "organization": "Rebilly",
- "address": "36 Craven St",
- "address2": "string",
- "city": "London",
- "region": "London",
- "country": "GB",
- "postalCode": "WC2N 5NF",
- "phoneNumbers": [
- {
- "label": "main",
- "value": "512-710-1640",
- "primary": true
}
], - "emails": [
- {
- "label": "main",
- "value": "rebilly@example.com",
- "primary": true
}
], - "dob": "1980-04-01",
- "jobTitle": "CEO",
- "hash": "056ae6d97c788b9e98b049ebafd7b229bf852221"
}, - "averageValue": {
- "currency": "USD",
- "amount": 0,
- "amountUsd": 0
}, - "paymentCount": 0,
- "lastPaymentTime": "2019-08-24T14:15:22Z",
- "lifetimeRevenue": {
- "currency": "USD",
- "amount": 0,
- "amountUsd": 0
}, - "invoiceCount": 0,
- "tags": [
- {
- "id": "4f6cf35x-2c4y-483z-a0a9-158621f77a21",
- "name": "New",
- "type": "customer",
- "createdTime": "2019-08-24T14:15:22Z",
- "updatedTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "rel": "self",
- "href": "string"
}
]
}
], - "revision": 0,
- "isEddRequired": false,
- "hasFulfilledKyc": true,
- "_links": [
- {
- "rel": "self",
- "href": "string"
}, - {
- "rel": "self",
- "href": "string"
}, - {
- "rel": "self",
- "href": "string"
}
], - "_embedded": [
- {
- "leadSource": {
- "medium": "string",
- "source": "string",
- "campaign": "string",
- "term": "string",
- "content": "string",
- "affiliate": "string",
- "subAffiliate": "string",
- "salesAgent": "string",
- "clickId": "string",
- "path": "string",
- "referrer": "string",
- "createdTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "rel": "self",
- "href": "string"
}
], - "original": {
- "medium": "string",
- "source": "string",
- "campaign": "string",
- "term": "string",
- "content": "string",
- "affiliate": "string",
- "subAffiliate": "string",
- "salesAgent": "string",
- "clickId": "string",
- "path": "string",
- "referrer": "string",
- "createdTime": "2019-08-24T14:15:22Z",
- "_links": [
- {
- "rel": "self",
- "href": "string"
}
]
}
}
}
]
}