post https://open-api.stag-v2.paper.id/api/v1/store-invoice
This API is used for creating sales invoice in Paper.id, and also to provide a payment link that can be shared to the customer as needed.
By creating invoice using this API, also automatically create a new partner if the partner number is not yet registered
Path | Data Type | Validation | Description |
---|---|---|---|
invoice_date | Date | Mandatory | Date of the invoice |
due_date | Date | Mandatory | Due date for the invoice |
number | String | Mandatory | Invoice number |
customer.id | String | Mandatory | ID of the customer |
customer.name | String | Mandatory | Name of the customer |
customer.email | String | Mandatory | Email of the customer |
customer.phone | String | Mandatory | Phone number of the customer |
items | Array | Mandatory | List of items in the invoice |
items.name | String | Mandatory | Product Name |
items.description | String | Mandatory | Description of the item |
items.quantity | Int | Mandatory | Quantity of the item |
items.price | Int | Mandatory | Price of the item |
items.discount | Int | Optional | Discount on the item |
items.tax_id | Int | Optional | Tax ID on the item |
items.additional_info | Object | Optional | Additional information related to the item |
signature_text_header | String | Optional | Text above the document signature area |
signature_text_footer | String | Optional | Text below the document signature area |
terms_condition | String | Optional | Terms and conditions for the invoice |
notes | String | Optional | Additional notes for the invoice |
send.email | Boolean | Mandatory | Flag to determine if the invoice should be sent via email |
send.whatsapp | Boolean | Mandatory | Flag to determine if the invoice should be sent via WhatsApp |
send.sms | Boolean | Mandatory | Flag to determine if the invoice should be sent via SMS. |
additional_info | Object | Optional | Additional information for the invoice |
total_discount | Int | Optional | Total discount applied to the transaction |
additional_fee | Object | Optional | Any extra charges or fees incurred in addition to the base transaction amount |
additional_fee.delivery_fee | Int | Optional | The charge for delivering goods or services |