Stripe
Create Stripe Payment Link
Creates a one-off payment link for a set amount that the customer can open to pay.
Unverified
What the model is told
Create a Stripe payment link for a single item and amount agreed with the customer. Confirm the description, amount and quantity first. The amount is in the smallest currency unit, so 2500 means 25.00 in GBP. It returns a url that you can read out or send to the customer by another channel. Do not use this to take card details yourself.
Request
POSThttps://api.stripe.com/v1/payment_links
Headers
AuthorizationBearer YOUR_STRIPE_SECRET_KEYContent-Typeapplication/x-www-form-urlencoded
Body
line_items[0][price_data][currency]={{currency}}&line_items[0][price_data][product_data][name]={{description}}&line_items[0][price_data][unit_amount]={{amount}}&line_items[0][quantity]={{quantity}}Parameters
currency stringThree-letter lowercase ISO currency code.description stringWhat the customer is paying for. Shown on the payment page.amount numberThe price of one item in the smallest currency unit, as a whole number.quantity numberHow many of the item.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "4007ded6-3980-4811-8bb3-5d6989c03fef",
"type": "HTTP_REQUEST",
"label": "Create Stripe Payment Link",
"name": "create_stripe_payment_link",
"customName": false,
"description": "Create a Stripe payment link for a single item and amount agreed with the customer. Confirm the description, amount and quantity first. The amount is in the smallest currency unit, so 2500 means 25.00 in GBP. It returns a url that you can read out or send to the customer by another channel. Do not use this to take card details yourself.",
"parameters": [
{
"name": "currency",
"type": "string",
"description": "Three-letter lowercase ISO currency code."
},
{
"name": "description",
"type": "string",
"description": "What the customer is paying for. Shown on the payment page."
},
{
"name": "amount",
"type": "number",
"description": "The price of one item in the smallest currency unit, as a whole number."
},
{
"name": "quantity",
"type": "number",
"description": "How many of the item."
}
],
"config": {
"endpoint": {
"method": "POST",
"url": "https://api.stripe.com/v1/payment_links"
},
"headers": [
{
"name": "Authorization",
"value": "Bearer YOUR_STRIPE_SECRET_KEY"
},
{
"name": "Content-Type",
"value": "application/x-www-form-urlencoded"
}
],
"body": "line_items[0][price_data][currency]={{currency}}&line_items[0][price_data][product_data][name]={{description}}&line_items[0][price_data][unit_amount]={{amount}}&line_items[0][quantity]={{quantity}}",
"timeout": null
}
}
}IDs are regenerated on every copy.