Tax IDs
The tax_id object
A tax ID records a customer's tax identification number, such as a Thai VAT number. Paycose checks the number against the format of its type when you add it.
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.
customer_idstringRequiredID of the customer the tax ID belongs to.
typestringRequiredTax ID type code, such as
th_vat.GET /tax_id_typeslists the codes.valuestringRequiredThe tax ID number.
countrystringRequiredTwo-letter code of the country that issued the tax ID.
verificationobjectRequiredVerification result of the tax ID. New tax IDs start as
pending.Show child attributes
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.
verification.verified_namestringName on record for the tax ID, when the verification returned one; omitted otherwise.
verification.verified_addressobjectAddress on record for the tax ID, when the verification returned one; omitted otherwise.
metadataobjectRequiredKey-value pairs you attach to the object for your own use. Paycose never reads or changes them.
reference_idstringID of this tax ID at the payment provider that holds a copy of it; omitted when no provider does.
provider_idstringPayment provider that holds a copy of this tax ID, such as
stripe; omitted when none does.