API ReferenceCustomers
Retrieve a customer
GET /v1/customers/{id} : fetch a customer by id.
GET /v1/customers/{id}
Headers
| Header | Required | Value |
|---|---|---|
Authorization | yes | Bearer sk_... |
Path params
| Param | Type | Notes |
|---|---|---|
id | string | Customer ULID |
Request
curl https://api.ouipay.com/v1/customers/01M2S17... \
-H "Authorization: Bearer sk_test_..."Response 200
Returns the customer object.
Errors
| HTTP | error.code | Cause |
|---|---|---|
| 404 | NOT_FOUND | No such customer |
| 403 | FORBIDDEN | Not your resource |