The Payment Schedule object
Attributes
Unique identifier for the object.
Default: 0
Default: Percentage
{
"id": "payment-schedule_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"payment_term": "payment_term_example",
"description": "description_example",
"due_date": "2024-01-15",
"invoice_portion": 0,
"payment_amount": 0,
"mode_of_payment": "mode_of_payment_example",
"paid_amount": 0,
"discounted_amount": 0,
"outstanding": 0,
"discount_date": "2024-01-15",
"discount_type": "Percentage",
"discount": 0,
"base_payment_amount": 0,
"base_outstanding": 0,
"base_paid_amount": 0,
"due_date_based_on": "2024-01-15",
"credit_days": 0,
"credit_months": 0,
"discount_validity_based_on": "discount_validity_based_on_example",
"discount_validity": 0
} /api/accounts/payment-schedule?parent_id={id} List payment schedules by parent
Returns all payment schedules belonging to the specified parent.
Query parameters
The ID of the parent to list children for.
Returns
A list of payment schedule objects belonging to the parent.
curl https://api.overplane.dev/api/accounts/payment-schedule?parent_id=parent_abc123 \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "payment-schedule_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"payment_term": "payment_term_example",
"description": "description_example",
"due_date": "2024-01-15",
"invoice_portion": 0,
"payment_amount": 0,
"mode_of_payment": "mode_of_payment_example",
"paid_amount": 0,
"discounted_amount": 0,
"outstanding": 0,
"discount_date": "2024-01-15",
"discount_type": "Percentage",
"discount": 0,
"base_payment_amount": 0,
"base_outstanding": 0,
"base_paid_amount": 0,
"due_date_based_on": "2024-01-15",
"credit_days": 0,
"credit_months": 0,
"discount_validity_based_on": "discount_validity_based_on_example",
"discount_validity": 0
}
],
"has_more": false,
"total": 1
} /api/accounts/payment-schedule Create a payment schedule
Creates a new payment schedule object.
Body parameters
Default: 0
Default: Percentage
Returns
Returns the newly created payment schedule object if the call succeeded.
curl https://api.overplane.dev/api/accounts/payment-schedule \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"parent_id":null,"parent_type":"parent_type_example","due_date":"2024-01-15","payment_amount":0}' {
"id": "payment-schedule_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"payment_term": "payment_term_example",
"description": "description_example",
"due_date": "2024-01-15",
"invoice_portion": 0,
"payment_amount": 0,
"mode_of_payment": "mode_of_payment_example",
"paid_amount": 0,
"discounted_amount": 0,
"outstanding": 0,
"discount_date": "2024-01-15",
"discount_type": "Percentage",
"discount": 0,
"base_payment_amount": 0,
"base_outstanding": 0,
"base_paid_amount": 0,
"due_date_based_on": "2024-01-15",
"credit_days": 0,
"credit_months": 0,
"discount_validity_based_on": "discount_validity_based_on_example",
"discount_validity": 0
} /api/accounts/payment-schedule/{id} Update a payment schedule
Updates the specified payment schedule by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the payment schedule to update.
Body parameters
Default: 0
Default: Percentage
Returns
Returns the updated payment schedule object.
curl https://api.overplane.dev/api/accounts/payment-schedule/payment-schedule_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"idx":1,"parent_id":null}' {
"id": "payment-schedule_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"payment_term": "payment_term_example",
"description": "description_example",
"due_date": "2024-01-15",
"invoice_portion": 0,
"payment_amount": 0,
"mode_of_payment": "mode_of_payment_example",
"paid_amount": 0,
"discounted_amount": 0,
"outstanding": 0,
"discount_date": "2024-01-15",
"discount_type": "Percentage",
"discount": 0,
"base_payment_amount": 0,
"base_outstanding": 0,
"base_paid_amount": 0,
"due_date_based_on": "2024-01-15",
"credit_days": 0,
"credit_months": 0,
"discount_validity_based_on": "discount_validity_based_on_example",
"discount_validity": 0
} /api/accounts/payment-schedule/{id} Delete a payment schedule
Permanently deletes a payment schedule. This cannot be undone.
Path parameters
The identifier of the payment schedule to delete.
Returns
Returns a confirmation that the payment schedule has been deleted.
curl https://api.overplane.dev/api/accounts/payment-schedule/payment-schedule_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "payment-schedule_abc123",
"deleted": true
} /api/accounts/payment-schedule/reorder Reorder payment schedules
Updates the sort order of payment schedules within their parent by setting new index values.
Returns
Returns the reordered list.
curl https://api.overplane.dev/api/accounts/payment-schedule/reorder \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "payment-schedule_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"payment_term": "payment_term_example",
"description": "description_example",
"due_date": "2024-01-15",
"invoice_portion": 0,
"payment_amount": 0,
"mode_of_payment": "mode_of_payment_example",
"paid_amount": 0,
"discounted_amount": 0,
"outstanding": 0,
"discount_date": "2024-01-15",
"discount_type": "Percentage",
"discount": 0,
"base_payment_amount": 0,
"base_outstanding": 0,
"base_paid_amount": 0,
"due_date_based_on": "2024-01-15",
"credit_days": 0,
"credit_months": 0,
"discount_validity_based_on": "discount_validity_based_on_example",
"discount_validity": 0
}