Pay with a Link Shared Payment Token
pay_with_shared_payment_tokenPays the remaining balance of a booking (after set_contact, and after any pass or gift card) with a Shared Payment Token from the buyer's Link agent wallet. Request the token for exactly amount_to_pay_cents in EUR, scoped to the Stripe network profile profile_61VNUTvZyhaQmxLgqA6VNUTv7A9CUusxmQZ0xC5doSoy; the buyer approves that spend in Link. Charges the buyer, so only call it once they confirmed the purchase. On success the booking is paid and carries ticket_url; if the response says otherwise (payment_status, next_step) or errors, give the payment_url to the human buyer instead — the booking stays open until its hold expires.
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": {
"booking_uuid": "<booking_uuid>",
"shared_payment_token": "<shared_payment_token>"
},
"name": "pay_with_shared_payment_token"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| locale | No | Language for titles, labels and the returned URLs. Defaults to fr. | |
| booking_uuid | Yes | ||
| shared_payment_token | Yes | The spt_… token granted by the buyer's Link wallet. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |