Not all payment gateways support tokenization. Check your gateway’s capabilities using the List Gateways endpoint.
When to Use Gateway Tokens
| Use Case | Solution |
|---|---|
| Recurring subscriptions | Gateway tokenization |
| Stored cards for returning customers | Gateway tokenization |
| Temporary storage during checkout | String Tokenization |
| PCI scope reduction (any data) | String Tokenization |
Create a Gateway Token
Endpoint:POST /PaymentGateway/tokenize
Request Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
card | object | Yes | Card details to tokenize |
paymentGatewayAccountName | string | Conditional | Stored gateway account name |
paymentGatewayAccount | object | Conditional | Inline gateway credentials |
payerDetails | object | No | Billing information |
certificateName | string | No | Client certificate if required |
networkTokenBrand | string | No | For network tokens: Visa, MasterCard, or Amex |
Card Object
| Field | Type | Required | Description |
|---|---|---|---|
cardNumber | string | Yes | Card number (PAN) |
cardHolderName | string | Yes | Cardholder name |
expirationMonth | integer | Yes | Two-digit month (1-12) |
expirationYear | integer | Yes | Four-digit year |
cvv | string | No | Card verification code |
Response
gatewayToken value is the processor-specific token you’ll use for future charges.
Using Gateway Tokens
Once you have a gateway token, use it with theuserToken parameter in charge or authorize requests:
Response Codes
| Code | Description |
|---|---|
200 | Success - token created |
400 | Bad request - invalid parameters |
401 | Not authenticated |
409 | Gateway doesn’t support tokenization or rejected |
500 | Error with payment gateway |
503 | Temporary failure with payment gateway |
Gateway Token vs String Token
| Feature | Gateway Token | String Token |
|---|---|---|
| Storage location | Payment processor | Orchestra vault |
| Use case | Recurring billing | PCI scope reduction |
| Portability | Tied to one gateway | Works across gateways |
| Data type | Card details only | Any string (up to 16KB) |