Skip to main content
POST
/
stripe
/
connect
/
accounts
/
{accountId}
/
invoices
Create Invoice
curl --request POST \
  --url https://api.chat-dash.com/v1/public/stripe/connect/accounts/{accountId}/invoices \
  --header 'Authorization: <authorization>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": {
    "clientId": "64abc123def456789012345a",
    "productId": "prod_ABC123XYZ",
    "collection_method": "send_invoice",
    "days_until_due": 30
  }
}
'
{
  "id": "in_1ABC123DEF456GHI",
  "amount": 10000,
  "currency": "usd",
  "status": "draft",
  "number": "GJXQAHMC-0001",
  "customer": {
    "id": "cus_ABC123XYZ",
    "email": "[email protected]",
    "name": "John Doe"
  },
  "description": "",
  "created": 1700000000
}

Headers

Authorization
string
required

All requests to the ChatDash API must be validated with the agency API Key found on your agency profile

Path Parameters

accountId
string
required

The Stripe connected account ID

Body

application/json
data
object
required

Response

OK

id
string

The invoice ID

Example:

"in_1ABC123DEF456GHI"

amount
integer

Amount in smallest currency unit (e.g., cents for USD)

Example:

10000

currency
string

Three-letter ISO currency code

Example:

"usd"

status
string

Invoice status

Example:

"draft"

number
string | null

Invoice number

Example:

"GJXQAHMC-0001"

customer
object
description
string

Invoice description

Example:

""

created
integer

Unix timestamp of when the invoice was created

Example:

1700000000