The Sales Invoice Advance object
Attributes
Unique identifier for the object.
{
"id": "sales-invoice-advance_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"reference_type": "reference_type_example",
"reference_name": "reference_name_example",
"remarks": "remarks_example",
"reference_row": "reference_row_example",
"advance_amount": 0,
"allocated_amount": 0,
"exchange_gain_loss": 0,
"ref_exchange_rate": 0,
"difference_posting_date": "2024-01-15"
} /api/accounts/sales-invoice-advance?parent_id={id} List sales invoice advances by parent
Returns all sales invoice advances belonging to the specified parent.
Query parameters
The ID of the parent to list children for.
Returns
A list of sales invoice advance objects belonging to the parent.
curl https://api.overplane.dev/api/accounts/sales-invoice-advance?parent_id=parent_abc123 \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "sales-invoice-advance_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"reference_type": "reference_type_example",
"reference_name": "reference_name_example",
"remarks": "remarks_example",
"reference_row": "reference_row_example",
"advance_amount": 0,
"allocated_amount": 0,
"exchange_gain_loss": 0,
"ref_exchange_rate": 0,
"difference_posting_date": "2024-01-15"
}
],
"has_more": false,
"total": 1
} /api/accounts/sales-invoice-advance Create a sales invoice advance
Creates a new sales invoice advance object.
Body parameters
Returns
Returns the newly created sales invoice advance object if the call succeeded.
curl https://api.overplane.dev/api/accounts/sales-invoice-advance \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"parent_id":null,"parent_type":"parent_type_example"}' {
"id": "sales-invoice-advance_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"reference_type": "reference_type_example",
"reference_name": "reference_name_example",
"remarks": "remarks_example",
"reference_row": "reference_row_example",
"advance_amount": 0,
"allocated_amount": 0,
"exchange_gain_loss": 0,
"ref_exchange_rate": 0,
"difference_posting_date": "2024-01-15"
} /api/accounts/sales-invoice-advance/{id} Update a sales invoice advance
Updates the specified sales invoice advance by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the sales invoice advance to update.
Body parameters
Returns
Returns the updated sales invoice advance object.
curl https://api.overplane.dev/api/accounts/sales-invoice-advance/sales-invoice-advance_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"idx":1,"parent_id":null}' {
"id": "sales-invoice-advance_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"reference_type": "reference_type_example",
"reference_name": "reference_name_example",
"remarks": "remarks_example",
"reference_row": "reference_row_example",
"advance_amount": 0,
"allocated_amount": 0,
"exchange_gain_loss": 0,
"ref_exchange_rate": 0,
"difference_posting_date": "2024-01-15"
} /api/accounts/sales-invoice-advance/{id} Delete a sales invoice advance
Permanently deletes a sales invoice advance. This cannot be undone.
Path parameters
The identifier of the sales invoice advance to delete.
Returns
Returns a confirmation that the sales invoice advance has been deleted.
curl https://api.overplane.dev/api/accounts/sales-invoice-advance/sales-invoice-advance_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "sales-invoice-advance_abc123",
"deleted": true
} /api/accounts/sales-invoice-advance/reorder Reorder sales invoice advances
Updates the sort order of sales invoice advances within their parent by setting new index values.
Returns
Returns the reordered list.
curl https://api.overplane.dev/api/accounts/sales-invoice-advance/reorder \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "sales-invoice-advance_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"reference_type": "reference_type_example",
"reference_name": "reference_name_example",
"remarks": "remarks_example",
"reference_row": "reference_row_example",
"advance_amount": 0,
"allocated_amount": 0,
"exchange_gain_loss": 0,
"ref_exchange_rate": 0,
"difference_posting_date": "2024-01-15"
}