> This is Payabli documentation. For a complete page index, fetch https://docs.payabli.com/llms.txt — append .md to any page URL for lightweight markdown. For section-level indexes, query parameters, and other AI-optimized access methods, see https://docs.payabli.com/ai-agents.md

# Send virtual card link

POST https://api-sandbox.payabli.com/api/MoneyOut/vcard/send-card-link
Content-Type: application/json

Sends a virtual card link via email to the vendor associated with the `transId`.

Reference: https://docs.payabli.com/developers/api-reference/cards/send-vcard-link

## Authentication

- `Authorization` header (bearer token, required)
- `requestToken` header (required) — Long-lived API token sent in the `requestToken` header. See [API token authentication](/developers/api-tokens).

## Servers

- `https://api-sandbox.payabli.com/api` (Sandbox, default)
- `https://api.payabli.com/api` (Production)

## Request

### Body (application/json)

- `transId` (string, required) — The transaction ID of the virtual card payout. The ID is returned as `ReferenceId` in the response when you authorize a payout with POST /MoneyOut/authorize.

## Response

### 200

Success

- `success` (boolean, required) — Indicates whether the operation was successful.
- `message` (string, required) — A status message describing the result.
- `link` (string, required) — The secure link the vendor uses to view their virtual card details. Empty when the operation fails.

## Examples

**Request**

```json
{
  "transId": "01K33Z6YQZ6GD5QVKZ856MJBSC"
}
```

**Response**

```json
{
  "success": true,
  "message": "Email sent.",
  "link": "https://app.payabli.com/vendor/virtual-card-link/code"
}
```

**SDK Code**

```typescript
import { PayabliClient } from "@payabli/sdk-node";

async function main() {
    const client = new PayabliClient({
        clientId: "YOUR_CLIENT_ID",
        clientSecret: "YOUR_CLIENT_SECRET",
    });
    await client.moneyOut.sendVCardLink({
        transId: "01K33Z6YQZ6GD5QVKZ856MJBSC",
    });
}
main();

```

```python
from payabli import payabli

client = payabli(
    client_id="YOUR_CLIENT_ID",
    client_secret="YOUR_CLIENT_SECRET",
)

client.money_out.send_v_card_link(
    trans_id="01K33Z6YQZ6GD5QVKZ856MJBSC",
)

```

```java
package com.example.usage;

import io.github.payabli.api.PayabliApiClient;
import io.github.payabli.api.resources.moneyout.requests.SendVCardLinkRequest;

public class Example {
    public static void main(String[] args) {
        PayabliApiClient client = PayabliApiClient.withCredentials("YOUR_CLIENT_ID", "YOUR_CLIENT_SECRET")
            .build()
        ;

        client.moneyOut().sendVCardLink(
            SendVCardLinkRequest
                .builder()
                .transId("01K33Z6YQZ6GD5QVKZ856MJBSC")
                .build()
        );
    }
}
```

```csharp
using PayabliApi;
using System.Threading.Tasks;

public partial class Examples
{
    public async Task Example() {
        var client = new PayabliApiClient(
            clientId: "YOUR_CLIENT_ID",
            clientSecret: "YOUR_CLIENT_SECRET"
        );

        await client.MoneyOut.SendVCardLinkAsync(
            new SendVCardLinkRequest {
                TransId = "01K33Z6YQZ6GD5QVKZ856MJBSC"
            }
        );
    }

}

```

```go
package example

import (
    context "context"

    payabli "github.com/payabli/sdk-go"
    client "github.com/payabli/sdk-go/client"
    option "github.com/payabli/sdk-go/option"
)

func do() {
    client := client.NewClient(
        option.WithClientCredentials(
            "YOUR_CLIENT_ID",
            "YOUR_CLIENT_SECRET",
        ),
    )
    request := &payabli.SendVCardLinkRequest{
        TransId: "01K33Z6YQZ6GD5QVKZ856MJBSC",
    }
    client.MoneyOut.SendVCardLink(
        context.TODO(),
        request,
    )
}

```

```php
<?php

namespace Example;

use Payabli\PayabliClient;
use Payabli\MoneyOut\Requests\SendVCardLinkRequest;

$client = new PayabliClient(
    clientId: 'YOUR_CLIENT_ID',
    clientSecret: 'YOUR_CLIENT_SECRET',
);
$client->moneyOut->sendVCardLink(
    new SendVCardLinkRequest([
        'transId' => '01K33Z6YQZ6GD5QVKZ856MJBSC',
    ]),
);

```

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

url = URI("https://api-sandbox.payabli.com/api/MoneyOut/vcard/send-card-link")

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

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n  \"transId\": \"01K33Z6YQZ6GD5QVKZ856MJBSC\"\n}"

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

```swift
import Foundation

let headers = [
  "Authorization": "Bearer <token>",
  "Content-Type": "application/json"
]
let parameters = ["transId": "01K33Z6YQZ6GD5QVKZ856MJBSC"] as [String : Any]

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

let request = NSMutableURLRequest(url: NSURL(string: "https://api-sandbox.payabli.com/api/MoneyOut/vcard/send-card-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()
```