The Sales Invoice Payment object
Attributes
Unique identifier for the object.
Default: 0
Default: false
{
"id": "sales-invoice-payment_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"mode_of_payment": "mode_of_payment_example",
"amount": 0,
"account": "account_example",
"type": "type_example",
"base_amount": 0,
"clearance_date": "2024-01-15",
"default": false,
"reference_no": "reference_no_example"
} /api/accounts/sales-invoice-payment?parent_id={id} List sales invoice payments by parent
Returns all sales invoice payments belonging to the specified parent.
Query parameters
The ID of the parent to list children for.
Returns
A list of sales invoice payment objects belonging to the parent.
curl https://api.overplane.dev/api/accounts/sales-invoice-payment?parent_id=parent_abc123 \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "sales-invoice-payment_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"mode_of_payment": "mode_of_payment_example",
"amount": 0,
"account": "account_example",
"type": "type_example",
"base_amount": 0,
"clearance_date": "2024-01-15",
"default": false,
"reference_no": "reference_no_example"
}
],
"has_more": false,
"total": 1
} /api/accounts/sales-invoice-payment Create a sales invoice payment
Creates a new sales invoice payment object.
Body parameters
Default: 0
Default: false
Returns
Returns the newly created sales invoice payment object if the call succeeded.
curl https://api.overplane.dev/api/accounts/sales-invoice-payment \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"parent_id":null,"parent_type":"parent_type_example","mode_of_payment":"mode_of_payment_example"}' {
"id": "sales-invoice-payment_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"mode_of_payment": "mode_of_payment_example",
"amount": 0,
"account": "account_example",
"type": "type_example",
"base_amount": 0,
"clearance_date": "2024-01-15",
"default": false,
"reference_no": "reference_no_example"
} /api/accounts/sales-invoice-payment/{id} Update a sales invoice payment
Updates the specified sales invoice payment by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the sales invoice payment to update.
Body parameters
Default: 0
Default: false
Returns
Returns the updated sales invoice payment object.
curl https://api.overplane.dev/api/accounts/sales-invoice-payment/sales-invoice-payment_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"idx":1,"parent_id":null}' {
"id": "sales-invoice-payment_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"mode_of_payment": "mode_of_payment_example",
"amount": 0,
"account": "account_example",
"type": "type_example",
"base_amount": 0,
"clearance_date": "2024-01-15",
"default": false,
"reference_no": "reference_no_example"
} /api/accounts/sales-invoice-payment/{id} Delete a sales invoice payment
Permanently deletes a sales invoice payment. This cannot be undone.
Path parameters
The identifier of the sales invoice payment to delete.
Returns
Returns a confirmation that the sales invoice payment has been deleted.
curl https://api.overplane.dev/api/accounts/sales-invoice-payment/sales-invoice-payment_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "sales-invoice-payment_abc123",
"deleted": true
} /api/accounts/sales-invoice-payment/reorder Reorder sales invoice payments
Updates the sort order of sales invoice payments within their parent by setting new index values.
Returns
Returns the reordered list.
curl https://api.overplane.dev/api/accounts/sales-invoice-payment/reorder \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "sales-invoice-payment_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"mode_of_payment": "mode_of_payment_example",
"amount": 0,
"account": "account_example",
"type": "type_example",
"base_amount": 0,
"clearance_date": "2024-01-15",
"default": false,
"reference_no": "reference_no_example"
}