get_client_token
Retrieve a gateway client credential to initialize payment integration and generate a payment method nonce. Optionally scope to a customer for vaulted payment methods.
Instructions
Get the gateway client credential to initialize your payment integration and produce a paymentMethodNonce. Use the returned value in your hosted payment UI; then pass the resulting token as paymentMethodNonce to create_customer_payment_method. Gateway-agnostic: no gateway-specific concepts in MCP. Optional customerId scopes the credential to a customer (e.g. for vault). Required for PayFabric; optional for others. Requires company API token (X-AUTH-TOKEN).
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"gatewayId": "<gatewayId>"
},
"name": "get_client_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| gatewayId | Yes | Company gateway ID (e.g. from rebillia_list_gateways or dashboard). | |
| customerId | No | Optional. Rebillia customer ID when the token must be scoped to a customer (e.g. for saved payment methods). Required for PayFabric gateway. |