The Landed Cost Voucher 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: draft
{
"id": "landed-cost-voucher_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"total_taxes_and_charges": 0,
"distribute_charges_based_on": "distribute_charges_based_on_example",
"posting_date": "2024-01-15",
"total_vendor_invoices_cost": 0
} /api/stock/landed-cost-voucher/{id} Retrieve a landed cost voucher
Retrieves the details of an existing landed cost voucher. Supply the unique landed cost voucher ID that was returned from a previous request.
Path parameters
The identifier of the landed cost voucher to retrieve.
Returns
Returns the landed cost voucher object if a valid identifier was provided.
curl https://api.overplane.dev/api/stock/landed-cost-voucher/landed-cost-voucher_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "landed-cost-voucher_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"total_taxes_and_charges": 0,
"distribute_charges_based_on": "distribute_charges_based_on_example",
"posting_date": "2024-01-15",
"total_vendor_invoices_cost": 0
} /api/stock/landed-cost-voucher List all landed cost vouchers
Returns a list of landed cost vouchers. 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 landed cost voucher objects.
curl https://api.overplane.dev/api/stock/landed-cost-voucher \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "landed-cost-voucher_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"total_taxes_and_charges": 0,
"distribute_charges_based_on": "distribute_charges_based_on_example",
"posting_date": "2024-01-15",
"total_vendor_invoices_cost": 0
}
],
"has_more": false,
"total": 1
} /api/stock/landed-cost-voucher Create a landed cost voucher
Creates a new landed cost voucher object.
Body parameters
Default: draft
Returns
Returns the newly created landed cost voucher object if the call succeeded.
curl https://api.overplane.dev/api/stock/landed-cost-voucher \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"company":"Example Corp","total_taxes_and_charges":0,"distribute_charges_based_on":"distribute_charges_based_on_example","posting_date":"2024-01-15"}' {
"id": "landed-cost-voucher_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"total_taxes_and_charges": 0,
"distribute_charges_based_on": "distribute_charges_based_on_example",
"posting_date": "2024-01-15",
"total_vendor_invoices_cost": 0
} /api/stock/landed-cost-voucher/{id} Update a landed cost voucher
Updates the specified landed cost voucher by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the landed cost voucher to update.
Body parameters
Default: draft
Returns
Returns the updated landed cost voucher object.
curl https://api.overplane.dev/api/stock/landed-cost-voucher/landed-cost-voucher_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","company":"Example Corp"}' {
"id": "landed-cost-voucher_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"total_taxes_and_charges": 0,
"distribute_charges_based_on": "distribute_charges_based_on_example",
"posting_date": "2024-01-15",
"total_vendor_invoices_cost": 0
} /api/stock/landed-cost-voucher/{id} Delete a landed cost voucher
Permanently deletes a landed cost voucher. This cannot be undone.
Path parameters
The identifier of the landed cost voucher to delete.
Returns
Returns a confirmation that the landed cost voucher has been deleted.
curl https://api.overplane.dev/api/stock/landed-cost-voucher/landed-cost-voucher_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "landed-cost-voucher_abc123",
"deleted": true
} /api/stock/landed-cost-voucher/{id}/submit Submit a landed cost voucher
Submits a draft landed cost voucher, transitioning its status from draft to submitted.
Path parameters
The identifier of the landed cost voucher to act on.
Returns
Returns the landed cost voucher object with updated status.
curl https://api.overplane.dev/api/stock/landed-cost-voucher/landed-cost-voucher_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "landed-cost-voucher_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"total_taxes_and_charges": 0,
"distribute_charges_based_on": "distribute_charges_based_on_example",
"posting_date": "2024-01-15",
"total_vendor_invoices_cost": 0
} /api/stock/landed-cost-voucher/{id}/cancel Cancel a landed cost voucher
Cancels a submitted landed cost voucher, transitioning its status to cancelled.
Path parameters
The identifier of the landed cost voucher to act on.
Returns
Returns the landed cost voucher object with updated status.
curl https://api.overplane.dev/api/stock/landed-cost-voucher/landed-cost-voucher_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "landed-cost-voucher_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"company": "Example Corp",
"total_taxes_and_charges": 0,
"distribute_charges_based_on": "distribute_charges_based_on_example",
"posting_date": "2024-01-15",
"total_vendor_invoices_cost": 0
} Line items
Child objects that belong to this landed cost voucher. These are accessed via the parent's ID.
Landed Cost Item
Attributes
Endpoints
/api/stock/landed-cost-item?parent_id={id} /api/stock/landed-cost-item /api/stock/landed-cost-item/{id} /api/stock/landed-cost-item/{id} /api/stock/landed-cost-item/reorder {
"id": "landed-cost-item_abc123",
"idx": 1,
"landed_cost_voucher_id": "landed_cost_voucher_id_example",
"item_code": "item_code_example",
"description": "description_example",
"receipt_document_type": "receipt_document_type_example",
"receipt_document": "receipt_document_example",
"qty": 0,
"rate": 0,
"amount": 0,
"applicable_charges": 0,
"purchase_receipt_item": "purchase_receipt_item_example",
"cost_center": "cost_center_example",
"is_fixed_asset": false,
"stock_entry_item": "stock_entry_item_example"
} Landed Cost Purchase Receipt
Attributes
Endpoints
/api/stock/landed-cost-purchase-receipt?parent_id={id} /api/stock/landed-cost-purchase-receipt /api/stock/landed-cost-purchase-receipt/{id} /api/stock/landed-cost-purchase-receipt/{id} /api/stock/landed-cost-purchase-receipt/reorder {
"id": "landed-cost-purchase-receipt_abc123",
"idx": 1,
"landed_cost_voucher_id": "landed_cost_voucher_id_example",
"receipt_document_type": "receipt_document_type_example",
"receipt_document": "receipt_document_example",
"supplier": "supplier_example",
"posting_date": "2024-01-15",
"grand_total": 0
} Landed Cost Vendor Invoice
Attributes
Endpoints
/api/stock/landed-cost-vendor-invoice?parent_id={id} /api/stock/landed-cost-vendor-invoice /api/stock/landed-cost-vendor-invoice/{id} /api/stock/landed-cost-vendor-invoice/{id} /api/stock/landed-cost-vendor-invoice/reorder {
"id": "landed-cost-vendor-invoice_abc123",
"idx": 1,
"landed_cost_voucher_id": "landed_cost_voucher_id_example",
"vendor_invoice": "vendor_invoice_example",
"amount": 0
}