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
idstringRequiredUnique identifier for the object.
objectstringRequiredString naming the object's type.
livemodebooleanRequiredtruewhen the object exists in live mode,falsein test mode.createdtimestampRequiredTime the object was created, in Unix seconds.
updatedtimestampRequiredTime the object last changed, in Unix seconds.
namestringRequiredFull name of the customer or business.
emailstringRequiredEmail address of the customer.
phonestringRequiredPhone number of the customer; empty when not provided.
addressobjectRequiredNullableBilling address of the customer, the most recently saved one; null when none is set.
Show child attributes
address.citystringRequiredNullableCity, district, suburb, town or village.
address.countrystringRequiredNullableTwo-letter country code (ISO 3166-1 alpha-2), in uppercase.
Pattern
^[A-Z]{2}$address.line1stringRequiredNullableFirst line of the address, such as the street, house number or PO box.
address.line2stringRequiredNullableSecond line of the address, such as the apartment, suite, unit or building.
address.postal_codestringRequiredNullablePostal or ZIP code.
address.statestringRequiredNullableState, province, county or region.
shippingobjectNullableShipping details of the customer, the most recently saved ones; omitted when none are set.
Show child attributes
shipping.namestringRequiredNullableName of the recipient; null when not provided.
shipping.phonestringRequiredNullablePhone number of the recipient; null when not provided.
shipping.addressobjectRequiredNullableShipping address.
Show child attributes
shipping.address.citystringRequiredNullableCity, district, suburb, town or village.
shipping.address.countrystringRequiredNullableTwo-letter country code (ISO 3166-1 alpha-2), in uppercase.
Pattern
^[A-Z]{2}$shipping.address.line1stringRequiredNullableFirst line of the address, such as the street, house number or PO box.
shipping.address.line2stringRequiredNullableSecond line of the address, such as the apartment, suite, unit or building.
shipping.address.postal_codestringRequiredNullablePostal or ZIP code.
shipping.address.statestringRequiredNullableState, province, county or region.
is_application_customerbooleanRequiredtruewhen this is the customer Paycose created to represent your own application in this country. Set only when you retrieve a single customer; other responses returnfalse.capabilitiesobjectRequiredWhich money movements the customer may take part in.
Show child attributes
capabilities.chargebooleanRequiredtruewhen charges can be created for this customer.capabilities.payoutbooleanRequiredtruewhen payouts can be made for this customer.
tax_idsarray of objectsRequiredTax IDs of the customer, newest first;
[]when the customer has none.Show child attributes
tax_ids.typestringRequiredTax ID type code, such as
th_vat.tax_ids.valuestringRequiredThe tax ID number.
tax_ids.countrystringRequiredCode of the country that issued the tax ID; empty when unknown.
tax_ids.verification_statusstringRequiredVerification status of the tax ID.
pendingNot verified yet. Every new tax ID starts in this status.
verifiedThe payment provider reported the tax ID as valid.
unverifiedThe payment provider could not verify the tax ID.
unavailableVerification is not available for this tax ID.
metadataobjectRequiredKey-value pairs you attach to the object for your own use. Paycose never reads or changes them.
invoice_settingsobjectInvoice defaults of the customer.
default_payment_methodis 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 withPOST /payment_methods/{id}/default. Omitted when empty.tax_exemptstringTax exemption status of the customer. No API endpoint sets it, so it is normally omitted.
preferred_localesarray of stringsLanguages the customer prefers, in order of preference (
enorth); omitted when empty.business_namestringRegistered business name of the customer; omitted when empty.
currencystringDefault 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_idstringID of the test clock the customer is on (test mode), as Stripe's
test_clock; omitted for a customer on no clock.