POST
/
api
/
v0
/
invoices
Create a new invoice
curl --request POST \
  --url https://api.devdraft.ai/api/v0/invoices \
  --header 'Content-Type: application/json' \
  --header 'x-client-secret: <api-key>' \
  --data '{
  "name": "<string>",
  "email": "<string>",
  "customer_id": "<string>",
  "currency": "usdc",
  "items": {},
  "due_date": "2025-05-20",
  "delivery": "EMAIL",
  "payment_link": true,
  "payment_methods": [
    "ACH"
  ],
  "status": "DRAFT",
  "address": "<string>",
  "phone_number": "<string>",
  "send_date": "2025-05-20",
  "logo": "<string>",
  "partial_payment": true,
  "taxId": "<string>"
}'

Authorizations

x-client-secret
string
header
required

Your secret API key. Keep this secure and never expose it in client-side code.

Body

application/json

Response

201

The invoice has been successfully created.