The Payment Term 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: Percentage
Default: Day(s) after invoice date
{
"id": "payment-term_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"payment_term_name": "payment_term_name_example",
"invoice_portion": 0,
"mode_of_payment": "mode_of_payment_example",
"due_date_based_on": "2024-01-15",
"credit_days": 0,
"credit_months": 0,
"description": "description_example",
"discount_type": "Percentage",
"discount": 0,
"discount_validity_based_on": "Day(s) after invoice date",
"discount_validity": 0
} /api/accounts/payment-term/{id} Retrieve a payment term
Retrieves the details of an existing payment term. Supply the unique payment term ID that was returned from a previous request.
Path parameters
The identifier of the payment term to retrieve.
Returns
Returns the payment term object if a valid identifier was provided.
curl https://api.overplane.dev/api/accounts/payment-term/payment-term_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "payment-term_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"payment_term_name": "payment_term_name_example",
"invoice_portion": 0,
"mode_of_payment": "mode_of_payment_example",
"due_date_based_on": "2024-01-15",
"credit_days": 0,
"credit_months": 0,
"description": "description_example",
"discount_type": "Percentage",
"discount": 0,
"discount_validity_based_on": "Day(s) after invoice date",
"discount_validity": 0
} /api/accounts/payment-term List all payment terms
Returns a list of payment terms. 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 payment term objects.
curl https://api.overplane.dev/api/accounts/payment-term \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "payment-term_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"payment_term_name": "payment_term_name_example",
"invoice_portion": 0,
"mode_of_payment": "mode_of_payment_example",
"due_date_based_on": "2024-01-15",
"credit_days": 0,
"credit_months": 0,
"description": "description_example",
"discount_type": "Percentage",
"discount": 0,
"discount_validity_based_on": "Day(s) after invoice date",
"discount_validity": 0
}
],
"has_more": false,
"total": 1
} /api/accounts/payment-term Create a payment term
Creates a new payment term object.
Body parameters
Default: Percentage
Default: Day(s) after invoice date
Returns
Returns the newly created payment term object if the call succeeded.
curl https://api.overplane.dev/api/accounts/payment-term \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" {
"id": "payment-term_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"payment_term_name": "payment_term_name_example",
"invoice_portion": 0,
"mode_of_payment": "mode_of_payment_example",
"due_date_based_on": "2024-01-15",
"credit_days": 0,
"credit_months": 0,
"description": "description_example",
"discount_type": "Percentage",
"discount": 0,
"discount_validity_based_on": "Day(s) after invoice date",
"discount_validity": 0
} /api/accounts/payment-term/{id} Update a payment term
Updates the specified payment term by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the payment term to update.
Body parameters
Default: Percentage
Default: Day(s) after invoice date
Returns
Returns the updated payment term object.
curl https://api.overplane.dev/api/accounts/payment-term/payment-term_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"payment_term_name":"payment_term_name_example","invoice_portion":0}' {
"id": "payment-term_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"payment_term_name": "payment_term_name_example",
"invoice_portion": 0,
"mode_of_payment": "mode_of_payment_example",
"due_date_based_on": "2024-01-15",
"credit_days": 0,
"credit_months": 0,
"description": "description_example",
"discount_type": "Percentage",
"discount": 0,
"discount_validity_based_on": "Day(s) after invoice date",
"discount_validity": 0
} /api/accounts/payment-term/{id} Delete a payment term
Permanently deletes a payment term. This cannot be undone.
Path parameters
The identifier of the payment term to delete.
Returns
Returns a confirmation that the payment term has been deleted.
curl https://api.overplane.dev/api/accounts/payment-term/payment-term_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "payment-term_abc123",
"deleted": true
}