Sign in

Create asset

documented

Add a new fixed asset.

POST /AssetsAssetsno implementation yet0 runs
No implementation yet. Run it to have the agent write one, or open a pull request with your own.

Seed example (keychains curl)

npx -y keychains@latest curl "https://api.xero.com/assets.xro/1.0/Assets" \
  -X POST \
  -H "Authorization: Bearer {{OAUTH2_ACCESS_TOKEN}}" \
  -H "Content-Type: application/json" \
  -H "Accept: application/json" \
  -H "xero-tenant-id: {{$tenant_id}}" \
  -H "Idempotency-Key: {{$idempotency_key}}" \
  -d '{"AssetName": "{{$assetName}}", "AssetNumber": "{{$assetNumber}}", "Status": "{{$status}}", "SerialNumber": "{{$serialNumber}}", "Description": "{{$description}}", "PurchaseDate": "{{$purchaseDate}}", "PurchasePrice": {{$purchasePrice}}}'
Create asset · Xero · OpenIntegrations