What the model is told
Finalise a draft Stripe invoice. After this the invoice can no longer be edited. Only do it once the lines are correct and the customer has agreed. It returns the invoice with status open. Then call Send Stripe Invoice.
Request
POSThttps://api.stripe.com/v1/invoices/{{invoiceId}}/finalize
Headers
AuthorizationBearer YOUR_STRIPE_SECRET_KEY
Parameters
invoiceId stringThe ID of the draft invoice.
Engage payload
{
"source": "VOICE_AI",
"tool": {
"id": "a6ce2752-c795-46fa-84f9-5b22ec1f3e37",
"type": "HTTP_REQUEST",
"label": "Finalise Stripe Invoice",
"name": "finalise_stripe_invoice",
"customName": false,
"description": "Finalise a draft Stripe invoice. After this the invoice can no longer be edited. Only do it once the lines are correct and the customer has agreed. It returns the invoice with status open. Then call Send Stripe Invoice.",
"parameters": [
{
"name": "invoiceId",
"type": "string",
"description": "The ID of the draft invoice."
}
],
"config": {
"endpoint": {
"method": "POST",
"url": "https://api.stripe.com/v1/invoices/{{invoiceId}}/finalize"
},
"headers": [
{
"name": "Authorization",
"value": "Bearer YOUR_STRIPE_SECRET_KEY"
}
],
"body": null,
"timeout": null
}
}
}IDs are regenerated on every copy.