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