- API Introduction
- Error Code
- Payment Intents
- Charges
- Payment Methods
- Refunds
- Webhooks
- Events
- Files
- Disputes
- Payouts
- Balance
- Products
- Prices
- Payment Links
- Checkout
- Customers
- Setup Intents
- Invoices
- Invoice Items
- Invoice Line Item
- Subscriptions
- Subscription Items
- Issuing
- Authorizations
- Cardholders
- Cards
- Transactions
- Coupons
- Promotion Code
- Accounts
Retrieve a customer
GET
/v1/customers/{id}
Request
Authorization
Send your HTTP requests with an
Authorization
header that contains the word Basic followed by a space and a base64-encoded string {{Username}}:{{Password}}Example:
Authorization: Basic YWRtaW46MTIzNDU2
Path Params
id
string
required
Header Params
Accept
string
required
Default:
application/json
Content-Type
string
required
Default:
application/json
Body Params application/json
address
object (Address)
optional
city
string
optional
country
string
optional
line1
string
optional
line2
string
optional
postal_code
string
optional
state
string
optional
description
string
optional
email
string
optional
metadata
object
optional
name
string
optional
phone
string
optional
shipping
object
optional
address
object (Address)
optional
name
string
optional
phone
string
optional
payment_method
string
optional
Example
{
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"description": "string",
"email": "string",
"metadata": {},
"name": "string",
"phone": "string",
"shipping": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"name": "string",
"phone": "string"
},
"payment_method": "string"
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET 'https://apitest.wooshpay.com/v1/customers/?members&reference&Type&_postman_listIndexKey=key&_postman_listAllowsMultipleValues' \
--data-raw ''
Responses
🟢200OK
application/json
Body
id
string
optional
object
string
optional
address
object (Address)
optional
city
string
optional
country
string
optional
line1
string
optional
line2
string
optional
postal_code
string
optional
state
string
optional
created
integer
optional
currency
string
optional
description
string
optional
email
string
optional
livemode
boolean
optional
metadata
object
optional
name
string
optional
phone
string
optional
preferred_locales
array[string]
optional
shipping
object
optional
address
object (Address)
optional
name
string
optional
phone
string
optional
Example
{
"id": "string",
"object": "string",
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"created": 0,
"currency": "string",
"description": "string",
"email": "string",
"livemode": true,
"metadata": {},
"name": "string",
"phone": "string",
"preferred_locales": [
"string"
],
"shipping": {
"address": {
"city": "string",
"country": "string",
"line1": "string",
"line2": "string",
"postal_code": "string",
"state": "string"
},
"name": "string",
"phone": "string"
}
}
Modified at 2023-01-06 13:41:50