🚀 Devdraft Launch Week I is live! Sign up for exclusive access and early features. Learn more →
curl --request PUT \
--url https://api.devdraft.ai/api/v0/invoices/{id} \
--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>"
}'
curl --request PUT \
--url https://api.devdraft.ai/api/v0/invoices/{id} \
--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>"
}'
Your secret API key. Keep this secure and never expose it in client-side code.
Invoice ID
The invoice has been successfully updated.