Retrieve a customer

Retrieve a customer with a given ID.

GET /v1/customers/:id

curl https://testapi.txpmnts.com/v1/customers/9v4RIaTmQbqq1T7jox85Og \
  -u sk_test_yFStF-KUmgr-7CoumuY2JA:

The above command returns JSON structured like this:

{
	"id": "P2ZTA56JQ7-AvwGf0pHd2Q",
	"first_name": "John",
	"last_name": "Doe",
	"email": "john.doe@example.com",
	"phone": "+48-7589658478",
	"currency": "usd",
	"created_at": 1568895751,
	"default_source": "-7c66LB0TWCPZBNyXw4SAA",
	"address_line1": "Address line 1",
	"address_city": "City example",
	"address_country": "PL",
	"address_line2": "Address line 2",
	"address_zip": "03-5896",
	"address_state": "sk"
	"description": "",
}

Retrieves the details of an existing customer. You need only supply the unique customer identifier that was returned upon customer creation.

Arguments

Parameter
Required
Description

customer

required

The identifier of the customer to be retrieved.

Returns

Returns a customer object if a valid identifier was provided. When requesting the ID of a customer that has been deleted, a subset of the customer’s information will be returned, including a deleted property, which will be true.

Last updated