The Supplier Group 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: false
{
"id": "supplier-group_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"parent_id": null,
"is_group": false,
"supplier_group_name": "supplier_group_name_example",
"parent_supplier_group": "parent_supplier_group_example",
"payment_terms": "payment_terms_example"
} /api/setup/supplier-group/{id} Retrieve a supplier group
Retrieves the details of an existing supplier group. Supply the unique supplier group ID that was returned from a previous request.
Path parameters
The identifier of the supplier group to retrieve.
Returns
Returns the supplier group object if a valid identifier was provided.
curl https://api.overplane.dev/api/setup/supplier-group/supplier-group_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "supplier-group_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"parent_id": null,
"is_group": false,
"supplier_group_name": "supplier_group_name_example",
"parent_supplier_group": "parent_supplier_group_example",
"payment_terms": "payment_terms_example"
} /api/setup/supplier-group List all supplier groups
Returns a list of supplier groups. 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 supplier group objects.
curl https://api.overplane.dev/api/setup/supplier-group \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "supplier-group_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"parent_id": null,
"is_group": false,
"supplier_group_name": "supplier_group_name_example",
"parent_supplier_group": "parent_supplier_group_example",
"payment_terms": "payment_terms_example"
}
],
"has_more": false,
"total": 1
} /api/setup/supplier-group Create a supplier group
Creates a new supplier group object.
Body parameters
Default: false
Returns
Returns the newly created supplier group object if the call succeeded.
curl https://api.overplane.dev/api/setup/supplier-group \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"supplier_group_name":"supplier_group_name_example"}' {
"id": "supplier-group_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"parent_id": null,
"is_group": false,
"supplier_group_name": "supplier_group_name_example",
"parent_supplier_group": "parent_supplier_group_example",
"payment_terms": "payment_terms_example"
} /api/setup/supplier-group/{id} Update a supplier group
Updates the specified supplier group by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the supplier group to update.
Body parameters
Default: false
Returns
Returns the updated supplier group object.
curl https://api.overplane.dev/api/setup/supplier-group/supplier-group_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"parent_id":null,"is_group":false}' {
"id": "supplier-group_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"parent_id": null,
"is_group": false,
"supplier_group_name": "supplier_group_name_example",
"parent_supplier_group": "parent_supplier_group_example",
"payment_terms": "payment_terms_example"
} /api/setup/supplier-group/{id} Delete a supplier group
Permanently deletes a supplier group. This cannot be undone.
Path parameters
The identifier of the supplier group to delete.
Returns
Returns a confirmation that the supplier group has been deleted.
curl https://api.overplane.dev/api/setup/supplier-group/supplier-group_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "supplier-group_abc123",
"deleted": true
} /api/setup/supplier-group/{id}/children Get children
Returns the direct children of the specified node in the tree.
Path parameters
The identifier of the supplier group to act on.
Returns
A list of direct child objects.
curl https://api.overplane.dev/api/setup/supplier-group/supplier-group_abc123/children \
-H "Authorization: Bearer sk_test_..." {
"id": "supplier-group_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"parent_id": null,
"is_group": false,
"supplier_group_name": "supplier_group_name_example",
"parent_supplier_group": "parent_supplier_group_example",
"payment_terms": "payment_terms_example"
} /api/setup/supplier-group/{id}/ancestors Get ancestors
Returns all ancestors from the immediate parent up to the root of the tree.
Path parameters
The identifier of the supplier group to act on.
Returns
A list of ancestor objects from parent to root.
curl https://api.overplane.dev/api/setup/supplier-group/supplier-group_abc123/ancestors \
-H "Authorization: Bearer sk_test_..." {
"id": "supplier-group_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"parent_id": null,
"is_group": false,
"supplier_group_name": "supplier_group_name_example",
"parent_supplier_group": "parent_supplier_group_example",
"payment_terms": "payment_terms_example"
} /api/setup/supplier-group/{id}/descendants Get descendants
Returns all descendants of the specified node in the tree.
Path parameters
The identifier of the supplier group to act on.
Returns
A list of all descendant objects.
curl https://api.overplane.dev/api/setup/supplier-group/supplier-group_abc123/descendants \
-H "Authorization: Bearer sk_test_..." {
"id": "supplier-group_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"parent_id": null,
"is_group": false,
"supplier_group_name": "supplier_group_name_example",
"parent_supplier_group": "parent_supplier_group_example",
"payment_terms": "payment_terms_example"
}