Skip to Content
Paycose Docs
Tax IDs

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

  • 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.

  • customer_idstringRequired

    ID of the customer the tax ID belongs to.

  • typestringRequired

    Tax ID type code, such as th_vat. GET /tax_id_types lists the codes.

  • valuestringRequired

    The tax ID number.

  • countrystringRequired

    Two-letter code of the country that issued the tax ID.

  • verificationobjectRequired

    Verification result of the tax ID. New tax IDs start as pending.

    Show child attributes
    • 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.

    • verification.verified_namestring

      Name on record for the tax ID, when the verification returned one; omitted otherwise.

    • verification.verified_addressobject

      Address on record for the tax ID, when the verification returned one; omitted otherwise.

  • metadataobjectRequired

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

  • reference_idstring

    ID of this tax ID at the payment provider that holds a copy of it; omitted when no provider does.

  • provider_idstring

    Payment provider that holds a copy of this tax ID, such as stripe; omitted when none does.