Skip to main content
POST
/
v1
/
invoices
/
{id}
/
email
Send invoice via email
curl --request POST \
  --url https://dev.flextell.ai/api/v1/invoices/{id}/email \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --header 'X-Tenant: <x-tenant>' \
  --data '
{
  "id": 2,
  "emails": [
    "jsmith@example.com"
  ]
}
'
{
  "success": "<string>",
  "data": {
    "message": "<string>"
  }
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Headers

X-Tenant
number
required

Tenant identifier. Send the Tenant ID in the X-Tenant header to scope API requests to a specific tenant.

Path Parameters

id
integer
required

The invoice identifier

Body

application/json
id
integer
required

The invoice send email identifier.

Required range: x >= 1
emails
string<email>[]
required

An array of email addresses.

Required array length: 1 - 20 elements

An email address.

Maximum string length: 255

Response

success
string
required
data
object
required