The Landed Cost Taxes And Charges object
Attributes
Unique identifier for the object.
Default: false
Default: false
{
"id": "landed-cost-taxes-and-charges_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"description": "description_example",
"amount": 0,
"expense_account": "expense_account_example",
"account_currency": "USD",
"exchange_rate": 0,
"base_amount": 0,
"has_corrective_cost": false,
"has_operating_cost": false
} /api/stock/landed-cost-taxes-and-charges?parent_id={id} List landed cost taxes and chargess by parent
Returns all landed cost taxes and chargess belonging to the specified parent.
Query parameters
The ID of the parent to list children for.
Returns
A list of landed cost taxes and charges objects belonging to the parent.
curl https://api.overplane.dev/api/stock/landed-cost-taxes-and-charges?parent_id=parent_abc123 \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "landed-cost-taxes-and-charges_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"description": "description_example",
"amount": 0,
"expense_account": "expense_account_example",
"account_currency": "USD",
"exchange_rate": 0,
"base_amount": 0,
"has_corrective_cost": false,
"has_operating_cost": false
}
],
"has_more": false,
"total": 1
} /api/stock/landed-cost-taxes-and-charges Create a landed cost taxes and charges
Creates a new landed cost taxes and charges object.
Body parameters
Default: false
Default: false
Returns
Returns the newly created landed cost taxes and charges object if the call succeeded.
curl https://api.overplane.dev/api/stock/landed-cost-taxes-and-charges \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"parent_id":null,"parent_type":"parent_type_example","description":"description_example","amount":0}' {
"id": "landed-cost-taxes-and-charges_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"description": "description_example",
"amount": 0,
"expense_account": "expense_account_example",
"account_currency": "USD",
"exchange_rate": 0,
"base_amount": 0,
"has_corrective_cost": false,
"has_operating_cost": false
} /api/stock/landed-cost-taxes-and-charges/{id} Update a landed cost taxes and charges
Updates the specified landed cost taxes and charges by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the landed cost taxes and charges to update.
Body parameters
Default: false
Default: false
Returns
Returns the updated landed cost taxes and charges object.
curl https://api.overplane.dev/api/stock/landed-cost-taxes-and-charges/landed-cost-taxes-and-charges_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"idx":1,"parent_id":null}' {
"id": "landed-cost-taxes-and-charges_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"description": "description_example",
"amount": 0,
"expense_account": "expense_account_example",
"account_currency": "USD",
"exchange_rate": 0,
"base_amount": 0,
"has_corrective_cost": false,
"has_operating_cost": false
} /api/stock/landed-cost-taxes-and-charges/{id} Delete a landed cost taxes and charges
Permanently deletes a landed cost taxes and charges. This cannot be undone.
Path parameters
The identifier of the landed cost taxes and charges to delete.
Returns
Returns a confirmation that the landed cost taxes and charges has been deleted.
curl https://api.overplane.dev/api/stock/landed-cost-taxes-and-charges/landed-cost-taxes-and-charges_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "landed-cost-taxes-and-charges_abc123",
"deleted": true
} /api/stock/landed-cost-taxes-and-charges/reorder Reorder landed cost taxes and chargess
Updates the sort order of landed cost taxes and chargess within their parent by setting new index values.
Returns
Returns the reordered list.
curl https://api.overplane.dev/api/stock/landed-cost-taxes-and-charges/reorder \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "landed-cost-taxes-and-charges_abc123",
"idx": 1,
"parent_id": null,
"parent_type": "parent_type_example",
"description": "description_example",
"amount": 0,
"expense_account": "expense_account_example",
"account_currency": "USD",
"exchange_rate": 0,
"base_amount": 0,
"has_corrective_cost": false,
"has_operating_cost": false
}