API → Payments → Get payment info about your user
This includes billing address, phone, and name.
This endpoint requires authentication by any Zoo user. It gets the payment information for the authenticated user.
Parameters
No parameters
Returns
- 200 OK
successful operation
Name
Type
Req.
body
objectoptionalThe resource representing a payment "Customer".
Object Properties
address
objectoptionalThe customer's address. Address details.
Object Properties
The city component.
The country component. This is a two-letter ISO country code. An ISO-3166 alpha-2 country code. Always uppercase.
The state component.
The first street component.
The second street component.
The zip component.
Current balance, if any, being stored on the customer in the payments service.
If negative, the customer has credit to apply to their next invoice. If positive, the customer has an amount owed that will be added to their next invoice. The balance does not refer to any unpaid invoices; it solely takes into account amounts that have yet to be successfully applied to any invoice. This balance is only taken into account as invoices are finalized.
Time at which the object was created.
When the customer's latest invoice is billed by charging automatically,
delinquent
istrue
if the invoice's latest charge failed.When the customer's latest invoice is billed by sending an invoice,
delinquent
istrue
if the invoice isn't paid by its due date. If an invoice is marked uncollectible by dunning,delinquent
doesn't get reset tofalse
.The customer's email address.
Unique identifier for the object.
Set of key-value pairs.
The customer's full name or business name.
The customer's phone number.
$ curl "https://api.zoo.dev/user/payment" \
--header "Authorization: Bearer $TOKEN"
{
"address": {
"city": "nqRTw4",
"country": "AhjE5eHEhSKCzHZXWvU",
"state": "n24R1Gth8hmnGEojdnUcqJ",
"street1": "BunddFFii9meOnscoYj",
"street2": "djnWyCwbuFIPDuL",
"zip": "oEdi"
},
"balance": "90.02",
"created_at": "2025-04-02T17:54:28.898Z",
"currency": "Cn",
"delinquent": true,
"email": "BZk@G.com",
"id": "k6CwRsnvAvShZcmtOii",
"metadata": {},
"name": "URFyV8cMKqHR",
"phone": "+1-316-853-1672"
}