Appearance
Tokenizer - Customer - Payment
This page outlines the Tokenizer workflow for securely handling sensitive payment information. This page will guide you through the process of going from raw payment data to a secure token that can be used to create or update customer records in the Customer Vault and process payments.
1. Tokenize Card Data
Use the Tokenizer service to securely convert raw card information into a token you can safely use for either creating or updating customer records or directly as a payment method in a transaction post.
See Tokenizer API Reference for more details.
Response:
json
{
"status": "success",
"token": "Z2a87b7wk9PHzwl2RZLvslq1UzjzjHl1"
}
2. Create Customer Record
Use the Customer Vault API to create or update a customer record with the tokenized card information.
See Customer Vault API Reference for more details.
Request:
Response:
json
{
"status": "success",
"msg": "success",
"data": {
"created_at": "2025-07-01T10:27:50.541931-05:00",
"data": {
"customer": {
"addresses": [
{
"city": "Some Town"
...
}
],
"custom_fields": null,
"defaults": {
"billing_address_id": "d1hvstnsvrvefsmakns0",
"payment_method_id": "d1hvstnsvrvefsmaknsg",
"payment_method_type": "card",
"shipping_address_id": ""
}
}
},
"id": "d1hvstnsvrvefsmaknt0", // customer ID
"owner_id": "testmerchant12345678",
"partner_id": "testpartner123456789",
"updated_at": "2025-07-01T10:27:50.541932-05:00"
}
}
3. Post Transactions
You can now use the customer record created in the previous step to process transactions. You can reference the customer ID and payment method ID in your transaction requests.
Request: