Get customer
GET/customers/:id
Get customer.
Authorization Action:
pay:customers:get
Request
Path Parameters
id stringrequired
Query Parameters
expand string[]
Specifies which fields in the response should be expanded.
Responses
- 200
- application/json
- Schema
- Example (auto)
Schema
address object
delinquentbooleanrequired
When the customer's latest invoice is billed by charging automatically, delinquent is true if the invoice's latest charge failed. When the customer's latest invoice is billed by sending an invoice, delinquent is true if the invoice isn't paid by its due date.
emailstring
The customer's email address.
namestring
The customer's full name or business name.
phonestring
The customer's phone number.
subscriptionsobject
The customer's current subscriptions, if any.
idstringrequired
Unique identifier for the object.
creatednumberrequired
Time at which the object was created. Measured in seconds since the Unix epoch.
{
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"delinquent": true,
"email": "string",
"name": "string",
"phone": "string",
"subscriptions": {},
"id": "string",
"created": 0
}
- csharp
- curl
- dart
- go
- http
- java
- javascript
- kotlin
- c
- nodejs
- objective-c
- ocaml
- php
- powershell
- python
- r
- ruby
- rust
- shell
- swift
- HTTPCLIENT
- RESTSHARP
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://connhex.com/customers/:id");
request.Headers.Add("Accept", "application/json");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());