Create a PII token 

Core Resources
Tokens
Create a PII token

Creates a single-use token that represents the details of personally identifiable information (PII). You can use this token in place of an id_number or id_number_secondary in Account or Person Update API methods. You can only use a PII token once.

Parameters

  • piiDictionaryRequired

    The PII this token represents.

    • pii.id_numberstring

      The id_number for the PII, in string form.

Returns

Returns the created PII token if it’s successful. Otherwise, this call throws an error.

POST /v1/tokens
StripeConfiguration.ApiKey = "sk_test_BQokikJ...2HlWgH4olfQ2sk_test_BQokikJOvBiI2HlWgH4olfQ2";
var options = new TokenCreateOptions
{
Pii = new TokenPiiOptions { IdNumber = "000000000" },
};
var service = new TokenService();
Token token = service.Create(options);
Response
{
"id": "pii_18PwbX2eZvKYlo2CzRXgwN3J",
"object": "token",
"client_ip": "124.123.76.134",
"created": 1466783547,
"livemode": false,
"redaction": null,
"type": "pii",
"used": false
}