Create an asset
Assets
Create Asset
Registers a new device/asset in inventory. Each asset is identified by a unique serial number. Assets start as “available” and can be assigned to subscriptions during order fulfillment.
POST
Create an asset
Overview
Add a new physical asset to your inventory. Assets are tracked by serial number and linked to product variants via SKU. Before you can create subscriptions, you need assets in your inventory.The serial number becomes the asset’s unique identifier. Use manufacturer serial numbers, asset tags, or your own numbering system—just ensure each is unique.
Common Use Cases
Receiving Inventory
Add assets as they arrive from suppliers
Warehouse Operations
Register assets during intake and inspection
Bulk Import
Add multiple assets from inventory spreadsheets
Returns Processing
Re-register returned/refurbished assets
Request Fields
| Field | Required | Description |
|---|---|---|
serialNumber | Yes | Unique identifier (manufacturer SN or your own) |
sku | Yes | Product variant SKU (must exist in catalog) |
acquisitionCost | No | Your cost to acquire (used for cost recovery) |
acquisitionDate | No | When acquired (default: today) |
location | No | Physical location (warehouse name, etc.) |
condition | No | Condition notes |
notes | No | Additional notes |
Minimal Example
Complete Example
Serial Number Best Practices
Choose a consistent serial number strategy:| Approach | Example | Pros |
|---|---|---|
| Manufacturer SN | C02ZX1Y2MD6T | Matches physical label |
| Your numbering | FP-2025-00001 | Predictable, sequential |
| Combined | APPLE-C02ZX1Y2MD6T | Searchable by manufacturer |
SKU Validation
The SKU must match an active product variant. Before creating assets:- Verify the SKU exists using List Variants
- Ensure the variant is
active, notinactive
Acquisition Cost Importance
TheacquisitionCost is crucial for cost recovery calculations:
- If provided: Used for profitability tracking on subscriptions
- If omitted: System may use variant’s default acquisition cost
Example: Bulk Asset Creation
Error Handling
| Error Code | Cause | Solution |
|---|---|---|
ASSET_EXISTS | Serial number already in use | Use unique serial number |
VARIANT_NOT_FOUND | SKU doesn’t exist | Create product variant first |
VARIANT_INACTIVE | SKU is deactivated | Reactivate variant or use different SKU |
VALIDATION_ERROR | Missing required fields | Check serial number and SKU |
Related Endpoints
- List Assets - View all assets
- Get Asset - Verify asset was created
- List Variants - Find valid SKUs
- Create Subscription - Use asset in subscription
Authorizations
API key obtained from FlexPortal dashboard
Headers
Your tenant identifier
Body
application/json
Minimum string length:
1Minimum string length:
1Minimum string length:
1Minimum string length:
1Available options:
available, rented_out, returned, sold, unavailable