The Dunning object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
Default: draft
Default: 0
Default: 0
Default: 0
Default: 0
Default: 0
Default: 0
{
"id": "dunning_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"customer_name": "customer_name_example",
"posting_date": "2024-01-15",
"dunning_type": "dunning_type_example",
"dunning_fee": 0,
"language": "language_example",
"letter_head": "letter_head_example",
"body_text": "body_text_example",
"closing_text": "closing_text_example",
"posting_time": "posting_time_example",
"rate_of_interest": 0,
"address_display": "address_display_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"company_address_display": "Example Corp",
"contact_email": "user@example.com",
"customer": "customer_example",
"grand_total": 0,
"income_account": "income_account_example",
"total_interest": 0,
"total_outstanding": 0,
"customer_address": "customer_address_example",
"contact_person": "contact_person_example",
"dunning_amount": 0,
"cost_center": "cost_center_example",
"spacer": "spacer_example",
"company_address": "Example Corp",
"currency": "USD",
"conversion_rate": 0,
"base_dunning_amount": 0
} /api/accounts/dunning/{id} Retrieve a dunning
Retrieves the details of an existing dunning. Supply the unique dunning ID that was returned from a previous request.
Path parameters
The identifier of the dunning to retrieve.
Returns
Returns the dunning object if a valid identifier was provided.
curl https://api.overplane.dev/api/accounts/dunning/dunning_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "dunning_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"customer_name": "customer_name_example",
"posting_date": "2024-01-15",
"dunning_type": "dunning_type_example",
"dunning_fee": 0,
"language": "language_example",
"letter_head": "letter_head_example",
"body_text": "body_text_example",
"closing_text": "closing_text_example",
"posting_time": "posting_time_example",
"rate_of_interest": 0,
"address_display": "address_display_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"company_address_display": "Example Corp",
"contact_email": "user@example.com",
"customer": "customer_example",
"grand_total": 0,
"income_account": "income_account_example",
"total_interest": 0,
"total_outstanding": 0,
"customer_address": "customer_address_example",
"contact_person": "contact_person_example",
"dunning_amount": 0,
"cost_center": "cost_center_example",
"spacer": "spacer_example",
"company_address": "Example Corp",
"currency": "USD",
"conversion_rate": 0,
"base_dunning_amount": 0
} /api/accounts/dunning List all dunnings
Returns a list of dunnings. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of dunning objects.
curl https://api.overplane.dev/api/accounts/dunning \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "dunning_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"customer_name": "customer_name_example",
"posting_date": "2024-01-15",
"dunning_type": "dunning_type_example",
"dunning_fee": 0,
"language": "language_example",
"letter_head": "letter_head_example",
"body_text": "body_text_example",
"closing_text": "closing_text_example",
"posting_time": "posting_time_example",
"rate_of_interest": 0,
"address_display": "address_display_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"company_address_display": "Example Corp",
"contact_email": "user@example.com",
"customer": "customer_example",
"grand_total": 0,
"income_account": "income_account_example",
"total_interest": 0,
"total_outstanding": 0,
"customer_address": "customer_address_example",
"contact_person": "contact_person_example",
"dunning_amount": 0,
"cost_center": "cost_center_example",
"spacer": "spacer_example",
"company_address": "Example Corp",
"currency": "USD",
"conversion_rate": 0,
"base_dunning_amount": 0
}
],
"has_more": false,
"total": 1
} /api/accounts/dunning Create a dunning
Creates a new dunning object.
Body parameters
Default: draft
Default: 0
Default: 0
Default: 0
Default: 0
Default: 0
Default: 0
Returns
Returns the newly created dunning object if the call succeeded.
curl https://api.overplane.dev/api/accounts/dunning \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"company":"Example Corp","posting_date":"2024-01-15","customer":"customer_example"}' {
"id": "dunning_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"customer_name": "customer_name_example",
"posting_date": "2024-01-15",
"dunning_type": "dunning_type_example",
"dunning_fee": 0,
"language": "language_example",
"letter_head": "letter_head_example",
"body_text": "body_text_example",
"closing_text": "closing_text_example",
"posting_time": "posting_time_example",
"rate_of_interest": 0,
"address_display": "address_display_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"company_address_display": "Example Corp",
"contact_email": "user@example.com",
"customer": "customer_example",
"grand_total": 0,
"income_account": "income_account_example",
"total_interest": 0,
"total_outstanding": 0,
"customer_address": "customer_address_example",
"contact_person": "contact_person_example",
"dunning_amount": 0,
"cost_center": "cost_center_example",
"spacer": "spacer_example",
"company_address": "Example Corp",
"currency": "USD",
"conversion_rate": 0,
"base_dunning_amount": 0
} /api/accounts/dunning/{id} Update a dunning
Updates the specified dunning by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the dunning to update.
Body parameters
Default: draft
Default: 0
Default: 0
Default: 0
Default: 0
Default: 0
Default: 0
Returns
Returns the updated dunning object.
curl https://api.overplane.dev/api/accounts/dunning/dunning_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","company":"Example Corp"}' {
"id": "dunning_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"customer_name": "customer_name_example",
"posting_date": "2024-01-15",
"dunning_type": "dunning_type_example",
"dunning_fee": 0,
"language": "language_example",
"letter_head": "letter_head_example",
"body_text": "body_text_example",
"closing_text": "closing_text_example",
"posting_time": "posting_time_example",
"rate_of_interest": 0,
"address_display": "address_display_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"company_address_display": "Example Corp",
"contact_email": "user@example.com",
"customer": "customer_example",
"grand_total": 0,
"income_account": "income_account_example",
"total_interest": 0,
"total_outstanding": 0,
"customer_address": "customer_address_example",
"contact_person": "contact_person_example",
"dunning_amount": 0,
"cost_center": "cost_center_example",
"spacer": "spacer_example",
"company_address": "Example Corp",
"currency": "USD",
"conversion_rate": 0,
"base_dunning_amount": 0
} /api/accounts/dunning/{id} Delete a dunning
Permanently deletes a dunning. This cannot be undone.
Path parameters
The identifier of the dunning to delete.
Returns
Returns a confirmation that the dunning has been deleted.
curl https://api.overplane.dev/api/accounts/dunning/dunning_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "dunning_abc123",
"deleted": true
} /api/accounts/dunning/{id}/submit Submit a dunning
Submits a draft dunning, transitioning its status from draft to submitted.
Path parameters
The identifier of the dunning to act on.
Returns
Returns the dunning object with updated status.
curl https://api.overplane.dev/api/accounts/dunning/dunning_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "dunning_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"customer_name": "customer_name_example",
"posting_date": "2024-01-15",
"dunning_type": "dunning_type_example",
"dunning_fee": 0,
"language": "language_example",
"letter_head": "letter_head_example",
"body_text": "body_text_example",
"closing_text": "closing_text_example",
"posting_time": "posting_time_example",
"rate_of_interest": 0,
"address_display": "address_display_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"company_address_display": "Example Corp",
"contact_email": "user@example.com",
"customer": "customer_example",
"grand_total": 0,
"income_account": "income_account_example",
"total_interest": 0,
"total_outstanding": 0,
"customer_address": "customer_address_example",
"contact_person": "contact_person_example",
"dunning_amount": 0,
"cost_center": "cost_center_example",
"spacer": "spacer_example",
"company_address": "Example Corp",
"currency": "USD",
"conversion_rate": 0,
"base_dunning_amount": 0
} /api/accounts/dunning/{id}/cancel Cancel a dunning
Cancels a submitted dunning, transitioning its status to cancelled.
Path parameters
The identifier of the dunning to act on.
Returns
Returns the dunning object with updated status.
curl https://api.overplane.dev/api/accounts/dunning/dunning_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "dunning_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"customer_name": "customer_name_example",
"posting_date": "2024-01-15",
"dunning_type": "dunning_type_example",
"dunning_fee": 0,
"language": "language_example",
"letter_head": "letter_head_example",
"body_text": "body_text_example",
"closing_text": "closing_text_example",
"posting_time": "posting_time_example",
"rate_of_interest": 0,
"address_display": "address_display_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"company_address_display": "Example Corp",
"contact_email": "user@example.com",
"customer": "customer_example",
"grand_total": 0,
"income_account": "income_account_example",
"total_interest": 0,
"total_outstanding": 0,
"customer_address": "customer_address_example",
"contact_person": "contact_person_example",
"dunning_amount": 0,
"cost_center": "cost_center_example",
"spacer": "spacer_example",
"company_address": "Example Corp",
"currency": "USD",
"conversion_rate": 0,
"base_dunning_amount": 0
} Line items
Child objects that belong to this dunning. These are accessed via the parent's ID.
Overdue Payment
Attributes
Endpoints
/api/accounts/overdue-payment?parent_id={id} /api/accounts/overdue-payment /api/accounts/overdue-payment/{id} /api/accounts/overdue-payment/{id} /api/accounts/overdue-payment/reorder {
"id": "overdue-payment_abc123",
"idx": 1,
"dunning_id": "dunning_id_example",
"payment_term": "payment_term_example",
"description": "description_example",
"due_date": "2024-01-15",
"mode_of_payment": "mode_of_payment_example",
"invoice_portion": 0,
"payment_amount": 0,
"outstanding": 0,
"paid_amount": 0,
"discounted_amount": 0,
"sales_invoice": "sales_invoice_example",
"payment_schedule": "payment_schedule_example",
"overdue_days": "overdue_days_example",
"dunning_level": 1,
"interest": 0
}