curl --location --request POST 'https://connect.dispatchable.com/invoices/api/v1/invoices' \
--header 'Accept: application/json' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"invoiceable_type": "load",
"customer_type": "shipper",
"invoiceable_uuid": "6c401dcf-d1dd-4869-883c-1e1bfc404216",
"due_date": "03/30/2025",
"total_amount": "5000",
"items": [
{
"name": "Oil Change",
"description": "Full synthetic oil change service",
"quantity": 1,
"unit_price": 89.99,
"total_price": 89.99,
"is_taxable": true,
"tax_rate": 7.5,
"tax_amount": 6.75,
"total_with_tax": 96.74,
"notes": "Performed on 5/10/2024",
"status": "pending"
}
]
}'