Retrieve a customer
Retrieves a customer resource.
Endpoint
GET /customers/:id
Sample code
- curl
- Node
- PHP
- Python
- Ruby
curl --location 'https://api.payrexhq.com/customers/<ID of a customer resource>' \
-u replace_with_secret_api_key:
const client = require('payrex-node')('insert your PayRex Secret API key.');
const customer = await client.customers.retrieve('<ID of a customer resource>');
$client = new \Payrex\PayrexClient('insert your PayRex Secret API key.');
$customer = $client->customers->retrieve('<ID of a customer resource>');
from payrex import Client as PayrexClient
client = PayrexClient('insert your PayRex Secret API key.')
customer = client.customers.retrieve('<ID of a customer resource>')
client = Payrex::Client.new("insert your PayRex Secret API key.")
customer = client.customers.retrieve('<ID of a customer resource>')
Returns
Returns a Customer resource.