API Documentation

Integrate WatchDealerInventory with your applications using our comprehensive REST API

Quick Start

Get up and running with our API in minutes

Base URL

https://wdi-api.onrender.com/api

Authentication

Include your API key in the Authorization header:

Authorization: Bearer your_api_key

Example Request

Get your inventory items:

curl -H "Authorization: Bearer your_api_key" \
    https://wdi-api.onrender.com/api/inventory

API Endpoints

Comprehensive reference for all available endpoints

GET/api/inventory

Retrieve inventory items

Parameters

ParameterTypeRequiredDescription
pagenumberNoPage number for pagination
limitnumberNoNumber of items per page
statusstringNoFilter by status (available, sold, reserved)

Example

GET /api/inventory?page=1&limit=20&status=available
POST/api/inventory

Create a new inventory item

Parameters

ParameterTypeRequiredDescription
makestringYesWatch manufacturer
modelstringYesWatch model name
referencestringYesReference number
pricenumberYesAsking price
conditionstringYesWatch condition

Example

POST /api/inventory
GET/api/deals

Retrieve B2B deals and transactions

Parameters

ParameterTypeRequiredDescription
statusstringNoDeal status filter
dealer_idstringNoFilter by dealer ID

Example

GET /api/deals?status=pending
POST/api/deals

Create a new B2B deal

Parameters

ParameterTypeRequiredDescription
buyer_idstringYesBuyer dealer ID
seller_idstringYesSeller dealer ID
itemsarrayYesArray of item IDs
offer_pricenumberYesOffer price

Example

POST /api/deals
GET/api/public-links

Generate public sharing links for inventory

Parameters

ParameterTypeRequiredDescription
item_idstringYesInventory item ID
expires_innumberNoLink expiration in hours

Example

GET /api/public-links?item_id=123&expires_in=24

Authentication Methods

Choose the authentication method that works best for your application

API Key Authentication

Use your API key in the Authorization header

Authorization: Bearer your_api_key_here

OAuth 2.0

Use OAuth 2.0 for secure authentication

Authorization: Bearer oauth_access_token

Rate Limits

Fair usage policies to ensure optimal performance for all users

Free Plan

Perfect for testing and small applications

100 requests/hour

Professional Plan

Ideal for growing businesses

1,000 requests/hour

Enterprise Plan

For high-volume applications

10,000 requests/hour

SDKs & Libraries

Official libraries and community tools to help you integrate faster

JavaScript SDK

Official JavaScript/Node.js SDK for easy integration

Get SDK →

Python SDK

Python library for data analysis and automation

Get SDK →

Postman Collection

Ready-to-use API collection for testing and development

Get Collection →

Need Help with Integration?

Our developer support team is here to help you integrate successfully. Get in touch for technical assistance, custom integrations, or API questions.