curl --request POST \
--url https://api.wizcommerce.com/v1/invoices \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"reference_id": "INV-20250101",
"order_id": "ORD-20250101",
"invoice_number": "INV-20250101",
"total_amount": 1000000,
"paid_amount": 1000000,
"status": "PAID",
"due_date": "2025-01-01T00:00:00Z",
"remarks": "Remarks",
"url": "https://example.com/invoice/INV-20250101",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z",
"items": [
{
"reference_id": "ITEM-20250101",
"sku": "SKU-20250101",
"quantity": 1000000,
"amount": 1000000,
"name": "Item Name"
}
]
}'
{
"data": {
"id": "01f5d171-d3e3-4b2b-bd57-0727194b5bed",
"reference_id": "INV-20250101",
"order_id": "ORD-20250101",
"invoice_number": "INV-20250101",
"total_amount": 1000000,
"paid_amount": 1000000,
"status": "PAID",
"due_date": "2025-01-01T00:00:00Z",
"remarks": "Remarks",
"url": "https://example.com/invoice/INV-20250101",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z",
"items": [
{
"name": "Item Name",
"product_id": "1234567890",
"amount": 1000000,
"item_total": 1000000,
"id": "01f5d171-d3e3-4b2b-bd57-0727194b5bed",
"quantity": 1000000,
"reference_id": "ITEM-20250101"
}
]
}
}
Create Invoice
curl --request POST \
--url https://api.wizcommerce.com/v1/invoices \
--header 'Content-Type: application/json' \
--header 'X-API-Key: <api-key>' \
--data '{
"reference_id": "INV-20250101",
"order_id": "ORD-20250101",
"invoice_number": "INV-20250101",
"total_amount": 1000000,
"paid_amount": 1000000,
"status": "PAID",
"due_date": "2025-01-01T00:00:00Z",
"remarks": "Remarks",
"url": "https://example.com/invoice/INV-20250101",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z",
"items": [
{
"reference_id": "ITEM-20250101",
"sku": "SKU-20250101",
"quantity": 1000000,
"amount": 1000000,
"name": "Item Name"
}
]
}'
{
"data": {
"id": "01f5d171-d3e3-4b2b-bd57-0727194b5bed",
"reference_id": "INV-20250101",
"order_id": "ORD-20250101",
"invoice_number": "INV-20250101",
"total_amount": 1000000,
"paid_amount": 1000000,
"status": "PAID",
"due_date": "2025-01-01T00:00:00Z",
"remarks": "Remarks",
"url": "https://example.com/invoice/INV-20250101",
"created_at": "2025-01-01T00:00:00Z",
"updated_at": "2025-01-01T00:00:00Z",
"items": [
{
"name": "Item Name",
"product_id": "1234567890",
"amount": 1000000,
"item_total": 1000000,
"id": "01f5d171-d3e3-4b2b-bd57-0727194b5bed",
"quantity": 1000000,
"reference_id": "ITEM-20250101"
}
]
}
}
API Key for authentication
Invoice
The body is of type object
.
Created
The response is of type object
.
Was this page helpful?