The Shipment Parcel Template 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.
{
"id": "shipment-parcel-template_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"length": 0,
"width": 0,
"height": 0,
"weight": 0,
"parcel_template_name": "parcel_template_name_example"
} /api/stock/shipment-parcel-template/{id} Retrieve a shipment parcel template
Retrieves the details of an existing shipment parcel template. Supply the unique shipment parcel template ID that was returned from a previous request.
Path parameters
The identifier of the shipment parcel template to retrieve.
Returns
Returns the shipment parcel template object if a valid identifier was provided.
curl https://api.overplane.dev/api/stock/shipment-parcel-template/shipment-parcel-template_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "shipment-parcel-template_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"length": 0,
"width": 0,
"height": 0,
"weight": 0,
"parcel_template_name": "parcel_template_name_example"
} /api/stock/shipment-parcel-template List all shipment parcel templates
Returns a list of shipment parcel templates. 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 shipment parcel template objects.
curl https://api.overplane.dev/api/stock/shipment-parcel-template \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "shipment-parcel-template_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"length": 0,
"width": 0,
"height": 0,
"weight": 0,
"parcel_template_name": "parcel_template_name_example"
}
],
"has_more": false,
"total": 1
} /api/stock/shipment-parcel-template Create a shipment parcel template
Creates a new shipment parcel template object.
Body parameters
Returns
Returns the newly created shipment parcel template object if the call succeeded.
curl https://api.overplane.dev/api/stock/shipment-parcel-template \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"length":0,"width":0,"height":0,"weight":0,"parcel_template_name":"parcel_template_name_example"}' {
"id": "shipment-parcel-template_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"length": 0,
"width": 0,
"height": 0,
"weight": 0,
"parcel_template_name": "parcel_template_name_example"
} /api/stock/shipment-parcel-template/{id} Update a shipment parcel template
Updates the specified shipment parcel template by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the shipment parcel template to update.
Body parameters
Returns
Returns the updated shipment parcel template object.
curl https://api.overplane.dev/api/stock/shipment-parcel-template/shipment-parcel-template_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"length":0,"width":0}' {
"id": "shipment-parcel-template_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"length": 0,
"width": 0,
"height": 0,
"weight": 0,
"parcel_template_name": "parcel_template_name_example"
} /api/stock/shipment-parcel-template/{id} Delete a shipment parcel template
Permanently deletes a shipment parcel template. This cannot be undone.
Path parameters
The identifier of the shipment parcel template to delete.
Returns
Returns a confirmation that the shipment parcel template has been deleted.
curl https://api.overplane.dev/api/stock/shipment-parcel-template/shipment-parcel-template_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "shipment-parcel-template_abc123",
"deleted": true
}