create_customer_payment_method
Create a payment method for a customer using a single-use token (paymentMethodNonce) from your payment integration. Supports card or ACH types, requires billing address and gateway ID.
Instructions
Create a payment method for a customer. Gateway-agnostic: required companyGatewayId, type (card or ach), paymentMethodNonce, billingAddress (countryCode, street1, city, state, zip). Obtain gateway client credential via get_client_token; use your payment integration to produce paymentMethodNonce, then call this tool. No raw card data or gateway-specific fields in MCP.
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": {
"customerId": "<customerId>",
"companyGatewayId": "<companyGatewayId>",
"type": "<type>",
"paymentMethodNonce": "<paymentMethodNonce>",
"billingAddress": "<billingAddress>"
},
"name": "create_customer_payment_method"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| customerId | Yes | Customer ID (required) | |
| companyGatewayId | Yes | Company gateway ID (required) | |
| type | Yes | Payment method type (required): card or ach | |
| paymentMethodNonce | Yes | Single-use token from your payment integration. Obtain gateway client credential via get_client_token, then use your hosted payment UI to produce this token. Do not send raw card data. Gateway-specific tokenization is handled outside MCP. | |
| billingAddress | Yes | Billing address (required): countryCode, street1, city, state, zip; street2 optional |