PUT
/
v1
/
invoices
/
{invoice_id}
curl --request PUT \
  --url https://api.sandbox.hit-pay.com/v1/invoices/{invoice_id} \
  --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

X-BUSINESS-API-KEY
string
required
Example:

"b286daabf9921b5a01a4621f026c111e046f8911feba212996c92159b98427d"

Path Parameters

invoice_id
string
required

It's required field

Body

application/json