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