Set Up Wholesale Payment Method
agency_billing_setup_collectionCreates the agency's customer record at the payment provider if needed and returns a hosted link where the owner adds a payment method. Requires the agency owner and accepted terms. It charges nothing, and the method is ready only after the provider confirms it.
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": {
"partnerId": "<partnerId>"
},
"name": "agency_billing_setup_collection"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| offerId | No | Optional offer to return to after setup. | |
| partnerId | Yes | The agency (partner) workspace ID. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| error | No | Present when success is false | |
| receipt | No | ||
| success | Yes | Whether the tool completed successfully |