The Subscription Invoice object
Attributes
Unique identifier for the object.
{
"id": "subscription-invoice_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"document_type": "document_type_example",
"invoice": "invoice_example"
} /api/accounts/subscription-invoice?parent_id={id} List subscription invoices by parent
Returns all subscription invoices belonging to the specified parent.
Query parameters
The ID of the parent to list children for.
Returns
A list of subscription invoice objects belonging to the parent.
curl https://api.overplane.dev/api/accounts/subscription-invoice?parent_id=parent_abc123 \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "subscription-invoice_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"document_type": "document_type_example",
"invoice": "invoice_example"
}
],
"has_more": false,
"total": 1
} /api/accounts/subscription-invoice Create a subscription invoice
Creates a new subscription invoice object.
Body parameters
Returns
Returns the newly created subscription invoice object if the call succeeded.
curl https://api.overplane.dev/api/accounts/subscription-invoice \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" {
"id": "subscription-invoice_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"document_type": "document_type_example",
"invoice": "invoice_example"
} /api/accounts/subscription-invoice/{id} Update a subscription invoice
Updates the specified subscription invoice by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the subscription invoice to update.
Body parameters
Returns
Returns the updated subscription invoice object.
curl https://api.overplane.dev/api/accounts/subscription-invoice/subscription-invoice_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"idx":1,"parent_id":null}' {
"id": "subscription-invoice_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"document_type": "document_type_example",
"invoice": "invoice_example"
} /api/accounts/subscription-invoice/{id} Delete a subscription invoice
Permanently deletes a subscription invoice. This cannot be undone.
Path parameters
The identifier of the subscription invoice to delete.
Returns
Returns a confirmation that the subscription invoice has been deleted.
curl https://api.overplane.dev/api/accounts/subscription-invoice/subscription-invoice_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "subscription-invoice_abc123",
"deleted": true
} /api/accounts/subscription-invoice/reorder Reorder subscription invoices
Updates the sort order of subscription invoices within their parent by setting new index values.
Returns
Returns the reordered list.
curl https://api.overplane.dev/api/accounts/subscription-invoice/reorder \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "subscription-invoice_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"document_type": "document_type_example",
"invoice": "invoice_example"
}