Submit inventory snapshot
POST
https://api.metahvac.com
/webhooks/inventory/v1.0
Receives inventory submissions from distributors. Each submission is treated as a full snapshot for the account and date combination. The system will validate the account exists in Salesforce, store items in Snowflake, and update the account's last processed timestamp.
Headers
Authorizationstring · requiredThe
Authorizationheader is used to authenticate with the API using your API key. Value is of the formatBearer YOUR_KEY_HERE.
Request Body
account_idstring · pattern:^[a-zA-Z0-9]{18}$· requiredSalesforce Account ID (18-character)
snapshot_datestring · date-time · requiredISO8601/RFC3339 timestamp for the inventory snapshot. Typically set to midnight UTC for daily snapshots.
itemsobject[] · minItems: 1 · requiredArray of inventory items. Must contain at least one item.
Responses
Inventory submission processed successfully
statusintegerHTTP status code
messagestringSuccess message
dataobjectversionstringAPI version