Attach payment to invoice
documentedAttach a payment to an invoice.
POST /v1/invoices/{id}/attach_paymentBillingno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://api.stripe.com/v1/invoices/{{$invoice_id}}/attach_payment" \
-X POST \
-H "Authorization: Bearer {{STRIPE_API_KEY}}" \
-H "Content-Type: application/x-www-form-urlencoded" \
-d "payment_intent={{$payment_intent}}" \
-d "expand[]"=payments