API → PaymentsGet 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

    object
    optional

    The resource representing a payment "Customer".

    Object Properties
    • address

      object
      optional

      The customer's address. Address details.

      Object Properties
      • city

        string
        optional

        The city component.

      • country

        string
        optional

        The country component. This is a two-letter ISO country code. An ISO-3166 alpha-2 country code. Always uppercase.

      • state

        string
        optional

        The state component.

      • street1

        string
        optional

        The first street component.

      • street2

        string
        optional

        The second street component.

      • zip

        string
        optional

        The zip component.

    • balance

      number / USD Price
      optional

      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.

    • created_at

      string / ISO-8601
      optional

      Time at which the object was created.

    • currency

      string
      optional
    • delinquent

      boolean
      optional

      When the customer's latest invoice is billed by charging automatically, delinquent is true if the invoice's latest charge failed.

      When the customer's latest invoice is billed by sending an invoice, delinquent is true if the invoice isn't paid by its due date. If an invoice is marked uncollectible by dunning, delinquent doesn't get reset to false.

    • email

      string / Email Address
      optional

      The customer's email address.

    • id

      string
      optional

      Unique identifier for the object.

    • metadata

      object
      optional

      Set of key-value pairs.

    • name

      string
      optional

      The customer's full name or business name.

    • phone

      string / Phone Number
      optional

      The customer's phone number.

get
/user/payment
$ curl "https://api.zoo.dev/user/payment" \
	--header "Authorization: Bearer $TOKEN"
200 OK
Response
{
  "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"
}