Skip to Content
Paycose Docs
Customers

Customers

The customer object

A customer is a person or business you take payments from. A customer belongs to one country of your application and holds its saved payment methods, tax IDs and addresses.

Attributes

  • idstringRequired

    Unique identifier for the object.

  • objectstringRequired

    String naming the object's type.

  • livemodebooleanRequired

    true when the object exists in live mode, false in test mode.

  • createdtimestampRequired

    Time the object was created, in Unix seconds.

  • updatedtimestampRequired

    Time the object last changed, in Unix seconds.

  • namestringRequired

    Full name of the customer or business.

  • emailstringRequired

    Email address of the customer.

  • phonestringRequired

    Phone number of the customer; empty when not provided.

  • addressobjectRequiredNullable

    Billing address of the customer, the most recently saved one; null when none is set.

    Show child attributes
    • address.citystringRequiredNullable

      City, district, suburb, town or village.

    • address.countrystringRequiredNullable

      Two-letter country code (ISO 3166-1 alpha-2), in uppercase.

      Pattern ^[A-Z]{2}$

    • address.line1stringRequiredNullable

      First line of the address, such as the street, house number or PO box.

    • address.line2stringRequiredNullable

      Second line of the address, such as the apartment, suite, unit or building.

    • address.postal_codestringRequiredNullable

      Postal or ZIP code.

    • address.statestringRequiredNullable

      State, province, county or region.

  • shippingobjectNullable

    Shipping details of the customer, the most recently saved ones; omitted when none are set.

    Show child attributes
    • shipping.namestringRequiredNullable

      Name of the recipient; null when not provided.

    • shipping.phonestringRequiredNullable

      Phone number of the recipient; null when not provided.

    • shipping.addressobjectRequiredNullable

      Shipping address.

      Show child attributes
      • shipping.address.citystringRequiredNullable

        City, district, suburb, town or village.

      • shipping.address.countrystringRequiredNullable

        Two-letter country code (ISO 3166-1 alpha-2), in uppercase.

        Pattern ^[A-Z]{2}$

      • shipping.address.line1stringRequiredNullable

        First line of the address, such as the street, house number or PO box.

      • shipping.address.line2stringRequiredNullable

        Second line of the address, such as the apartment, suite, unit or building.

      • shipping.address.postal_codestringRequiredNullable

        Postal or ZIP code.

      • shipping.address.statestringRequiredNullable

        State, province, county or region.

  • is_application_customerbooleanRequired

    true when this is the customer Paycose created to represent your own application in this country. Set only when you retrieve a single customer; other responses return false.

  • capabilitiesobjectRequired

    Which money movements the customer may take part in.

    Show child attributes
    • capabilities.chargebooleanRequired

      true when charges can be created for this customer.

    • capabilities.payoutbooleanRequired

      true when payouts can be made for this customer.

  • tax_idsarray of objectsRequired

    Tax IDs of the customer, newest first; [] when the customer has none.

    Show child attributes
    • tax_ids.typestringRequired

      Tax ID type code, such as th_vat.

    • tax_ids.valuestringRequired

      The tax ID number.

    • tax_ids.countrystringRequired

      Code of the country that issued the tax ID; empty when unknown.

    • tax_ids.verification_statusstringRequired

      Verification status of the tax ID.

      • pending

        Not verified yet. Every new tax ID starts in this status.

      • verified

        The payment provider reported the tax ID as valid.

      • unverified

        The payment provider could not verify the tax ID.

      • unavailable

        Verification is not available for this tax ID.

  • metadataobjectRequired

    Key-value pairs you attach to the object for your own use. Paycose never reads or changes them.

  • invoice_settingsobject

    Invoice defaults of the customer. default_payment_method is the ID of the payment method used when a subscription or invoice names none. The first payment method saved for a customer without a usable default becomes it; change it with POST /payment_methods/{id}/default. Omitted when empty.

  • tax_exemptstring

    Tax exemption status of the customer. No API endpoint sets it, so it is normally omitted.

  • preferred_localesarray of strings

    Languages the customer prefers, in order of preference (en or th); omitted when empty.

  • business_namestring

    Registered business name of the customer; omitted when empty.

  • currencystring

    Default currency of the customer: the default currency of your application's country when the customer was created. Three-letter ISO 4217 code, in lowercase.

  • test_clock_idstring

    ID of the test clock the customer is on (test mode), as Stripe's test_clock; omitted for a customer on no clock.