> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.tabs.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.tabs.com/_mcp/server.

# Send payment method link

POST https://integrators.prod.api.tabsplatform.com/v3/customers/{id}/payment-method-link
Content-Type: application/json

Emails your customer a secure link to manage their saved payment methods — view, add, set a default, or remove a card or bank account. This is the same link the "Send link" button in your dashboard sends.

By default the link goes to the customer's primary billing contact. Pass `contactIds` to send it to specific contacts instead, and set `sendToPrimaryContact` to `true` to include the primary billing contact as well. Each address gets its own email with its own link, once, even if it's listed more than once.

The link is time-limited, and each call sends a fresh one. The response tells you which addresses it went to and how long it stays valid.

Reference: https://docs.tabs.com/api-reference/customers/sendPaymentMethodLink

## Authentication

- `Authorization` header (required) — API Key authentication via header

## Request

### Path parameters

- `id` (string, required) — Customer ID

### Body (application/json)

This endpoint expects a SendPaymentMethodLinkRequestV3Dto.

- `contactIds` (list of string, optional) — IDs of the customer's contacts to send the link to — the `id` values from GET /v3/customers/\{id}/contacts. Each contact must belong to this customer and have an email on file. When omitted or empty, the link goes to the primary billing contact only.
- `sendToPrimaryContact` (boolean, optional, default: false) — When `contactIds` is provided, also send the link to the customer's primary billing contact. Ignored when `contactIds` is omitted or empty.

## Response

### 202

Link sent to the requested contacts

- `payload` (V3CustomersIdPaymentMethodLinkPostResponsesContentApplicationJsonSchemaPayload, required) — Response payload, will be empty when success is false
- `success` (boolean, required) — Boolean with true=success, false=failure
- `message` (string, required) — Plain-text description of the result
- `error` (IntegratorsApiError, optional) — json element with any error messages or warnings

## Errors

### 400 Bad Request Error

The primary billing contact is a recipient but has no email; a `contactIds` entry is not a contact on this customer or has no email (the response lists the IDs); more than 50 recipients; or the manage-payment-methods email template is not configured

- `any`

### 404 Not Found Error

Customer not found

- `any`

### 500 Internal Server Error

Internal server error

- `any`

## Types

### V3CustomersIdPaymentMethodLinkPostResponsesContentApplicationJsonSchemaPayload

Response payload, will be empty when success is false

### IntegratorsApiError

- `code` (double, required) — API response code
- `message` (string, required) — API response message
- `errorCode` (string, optional) — Machine-readable error code
- `details` (IntegratorsApiErrorDetails, optional) — Additional details about the error

### IntegratorsApiErrorDetails

Additional details about the error

## Examples

**Request**

```json
{}
```

**Response**

```json
{
  "payload": {
    "sentTo": "ap@acme.com",
    "recipients": [
      "ap@acme.com",
      "controller@acme.com"
    ],
    "createdAt": "2026-07-27T14:03:11.000Z",
    "expiresAt": "2026-08-03T14:03:11.000Z"
  },
  "success": true,
  "message": "string",
  "error": {
    "code": 1.1,
    "message": "string",
    "errorCode": "string",
    "details": {}
  }
}
```

**SDK Code**

```python
import requests

url = "https://integrators.prod.api.tabsplatform.com/v3/customers/123e4567-e89b-12d3-a456-426614174000/payment-method-link"

payload = {}
headers = {
    "Authorization": "<apiKey>",
    "Content-Type": "application/json"
}

response = requests.post(url, json=payload, headers=headers)

print(response.json())
```

```javascript
const url = 'https://integrators.prod.api.tabsplatform.com/v3/customers/123e4567-e89b-12d3-a456-426614174000/payment-method-link';
const options = {
  method: 'POST',
  headers: {Authorization: '<apiKey>', 'Content-Type': 'application/json'},
  body: '{}'
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"strings"
	"net/http"
	"io"
)

func main() {

	url := "https://integrators.prod.api.tabsplatform.com/v3/customers/123e4567-e89b-12d3-a456-426614174000/payment-method-link"

	payload := strings.NewReader("{}")

	req, _ := http.NewRequest("POST", url, payload)

	req.Header.Add("Authorization", "<apiKey>")
	req.Header.Add("Content-Type", "application/json")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://integrators.prod.api.tabsplatform.com/v3/customers/123e4567-e89b-12d3-a456-426614174000/payment-method-link")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Post.new(url)
request["Authorization"] = '<apiKey>'
request["Content-Type"] = 'application/json'
request.body = "{}"

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.post("https://integrators.prod.api.tabsplatform.com/v3/customers/123e4567-e89b-12d3-a456-426614174000/payment-method-link")
  .header("Authorization", "<apiKey>")
  .header("Content-Type", "application/json")
  .body("{}")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('POST', 'https://integrators.prod.api.tabsplatform.com/v3/customers/123e4567-e89b-12d3-a456-426614174000/payment-method-link', [
  'body' => '{}',
  'headers' => [
    'Authorization' => '<apiKey>',
    'Content-Type' => 'application/json',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://integrators.prod.api.tabsplatform.com/v3/customers/123e4567-e89b-12d3-a456-426614174000/payment-method-link");
var request = new RestRequest(Method.POST);
request.AddHeader("Authorization", "<apiKey>");
request.AddHeader("Content-Type", "application/json");
request.AddParameter("application/json", "{}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = [
  "Authorization": "<apiKey>",
  "Content-Type": "application/json"
]
let parameters = [] as [String : Any]

let postData = JSONSerialization.data(withJSONObject: parameters, options: [])

let request = NSMutableURLRequest(url: NSURL(string: "https://integrators.prod.api.tabsplatform.com/v3/customers/123e4567-e89b-12d3-a456-426614174000/payment-method-link")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "POST"
request.allHTTPHeaderFields = headers
request.httpBody = postData as Data

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```