Invoice
Create the invoice
Guides
API References
- Payment Request
- Recurring Billing
- Charges
- Payout
- Account
- Orders
- Products
- Product Category
- Customers
- Staffs
- Invoice
- Webhook Events
- Static QR Codes
- Notifications
- Terminal
Invoice
Create the invoice
Create the invoice
POST
/
v1
/
invoices
curl --request POST \
--url https://api.sandbox.hit-pay.com/v1/invoices \
--header 'Content-Type: application/json' \
--header 'X-BUSINESS-API-KEY: <x-business-api-key>' \
--data '{
"customer": {
"name": "<string>",
"email": "<string>",
"address": {
"name": "160 Paya Lebar Road 07-08 Orion Industrial ",
"city": "Singapore",
"state": "Singapore",
"postal_code": "367903",
"country": "sg"
}
},
"customer_id": "<string>",
"invoice_date": "<string>",
"due_date": "<string>",
"auto_invoice_number": "<string>",
"invoice_number": "<string>",
"currency": "<string>",
"amount": 123,
"subtotal": 123,
"payment_by": "<string>",
"tax_setting": "<string>",
"send_email": 0,
"webhook": "<string>",
"reference": "<string>",
"footer": "<string>",
"allow_partial_payments": 0,
"partial_payments": [
{
"amount": 0,
"due_date": "<string>"
}
],
"products": [
{
"product_id": "<string>",
"quantity": "<string>",
"variation_id": "<string>",
"discount": "<string>"
}
],
"stackable_discounts": [
{
"name": "<string>",
"discount": "<string>",
"percentage_discount": "<string>",
"order": "<string>"
}
],
"recipients": [
{
"email": "<string>",
"customer_id": "<string>"
}
]
}'
Headers
Example:
"b286daabf9921b5a01a4621f026c111e046f8911feba212996c92159b98427d"
Body
application/json
Was this page helpful?
curl --request POST \
--url https://api.sandbox.hit-pay.com/v1/invoices \
--header 'Content-Type: application/json' \
--header 'X-BUSINESS-API-KEY: <x-business-api-key>' \
--data '{
"customer": {
"name": "<string>",
"email": "<string>",
"address": {
"name": "160 Paya Lebar Road 07-08 Orion Industrial ",
"city": "Singapore",
"state": "Singapore",
"postal_code": "367903",
"country": "sg"
}
},
"customer_id": "<string>",
"invoice_date": "<string>",
"due_date": "<string>",
"auto_invoice_number": "<string>",
"invoice_number": "<string>",
"currency": "<string>",
"amount": 123,
"subtotal": 123,
"payment_by": "<string>",
"tax_setting": "<string>",
"send_email": 0,
"webhook": "<string>",
"reference": "<string>",
"footer": "<string>",
"allow_partial_payments": 0,
"partial_payments": [
{
"amount": 0,
"due_date": "<string>"
}
],
"products": [
{
"product_id": "<string>",
"quantity": "<string>",
"variation_id": "<string>",
"discount": "<string>"
}
],
"stackable_discounts": [
{
"name": "<string>",
"discount": "<string>",
"percentage_discount": "<string>",
"order": "<string>"
}
],
"recipients": [
{
"email": "<string>",
"customer_id": "<string>"
}
]
}'