---
title: Pay Invoice
---

[Skip to content](#_top)

[API Reference](https://developers.cloudflare.com/api/typescript)

[Accounts](https://developers.cloudflare.com/api/typescript/resources/accounts)

Copy Markdown

Open in **Claude**Open in **ChatGPT**Open in **Cursor**

---

**Copy Markdown****View as Markdown**

# Pay Invoice

##### [Pay Invoice](https://developers.cloudflare.com/api/typescript/resources/accounts/subresources/pay_invoice/methods/create)

client.accounts.payInvoice.create(PayInvoiceCreateParams {account\_id, invoice\_id, payment\_method\_id, validate\_payment\_method } params, RequestOptionsoptions?): [PayInvoiceCreateResponse](<https://developers.cloudflare.com/api/typescript/resources/accounts#(resource)%20accounts.pay_invoice%20%3E%20(model)%20pay_invoice_create_response%20%3E%20(schema)>) {client\_secret }

POST/accounts/{account\_id}/pay-invoice

##### ModelsExpand Collapse

<details>

<summary>

PayInvoiceCreateResponse {client\_secret }

</summary>

client\_secret?: string

The Stripe client secret for frontend payment confirmation.

<a href="#(resource)%20accounts.pay_invoice%20%3E%20(model)%20pay_invoice_create_response%20%3E%20(schema)%20%3E%20(property)%20client_secret">Link to this property</a>

</details>

[Link to this property](<#(resource)%20accounts.pay_invoice%20%3E%20(model)%20pay_invoice_create_response%20%3E%20(schema)>)