First product
Upload your first product with a seller key in five steps. In the examples $KEY is your key.
| Step | Endpoint |
|---|---|
| 1. Check the account | GET /seller |
| 2. Pick a category | GET /seller/categories |
| 3. Send the product | POST /seller/products |
| 4. Wait for the result | GET /seller/jobs/{id} |
| 5. See the product | GET /seller/products/{id} |
1. Check the account
curl https://api.ustageliyor.com/v1/seller -H "Authorization: Bearer $KEY"Returns seller.status and seller.listable. A 403 SELLERS_DISABLED means external sellers are not open yet; see the overview.
2. Pick a category
curl https://api.ustageliyor.com/v1/seller/categories \
-H "Authorization: Bearer $KEY"{
"categories": [
{
"id": "pcat_…",
"name": "El Aletleri",
"handle": "el-aletleri",
"attributes": [
{
"name": "Güç Kaynağı",
"required": true,
"values": ["Akülü", "Kablolu"]
}
]
}
]
}Attributes with required: true are needed to publish; when values is set only those values are accepted. A draft product saves without them.
3. Send the product
Products always go through the bulk endpoint; one product is a list of one.
curl -X POST https://api.ustageliyor.com/v1/seller/products \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-H "Idempotency-Key: first-product-2026-10-23" \
-d '{
"products": [{
"title": "Akülü Vidalama 12V",
"brand": "Usta İş",
"category_id": "pcat_…",
"status": "published",
"deliveries": ["cargo"],
"tax_rate": 20,
"desi": 3,
"images": ["https://cdn.example.com/vda-12.jpg"],
"attributes": [{ "name": "Güç Kaynağı", "value": "Akülü" }],
"variants": [{
"sku": "VDA-12",
"barcode": "8680000000059",
"price": 1299.90,
"list_price": 1499.90,
"stock": 8
}]
}]
}'The answer is a 202 with a job:
{
"job": {
"id": "mij_…",
"source": "api",
"status": "queued",
"total": 1,
"processed": 0
}
}4. Wait for the result
curl https://api.ustageliyor.com/v1/seller/jobs/mij_… \
-H "Authorization: Bearer $KEY"Poll every few seconds until status is done. results holds the per-product outcome:
{
"job": {
"id": "mij_…",
"status": "done",
"total": 1,
"processed": 1,
"created": 1,
"updated": 0,
"failed": 0,
"results": [
{
"index": 0,
"ref": "VDA-12",
"ok": true,
"product_id": "prod_…",
"created": true
}
]
}
}A failed product carries ok: false, a code (e.g. MARKET_PRODUCT_INVALID) and the bad fields (problems, e.g. ["variants.0.price"]).
5. See the product
curl https://api.ustageliyor.com/v1/seller/products/prod_… \
-H "Authorization: Bearer $KEY"The product comes with its variants and their stock (on the shelf) and available (sellable) counts. Sending the same product again — same model_code or same stock codes — opens no new product; the existing one is updated.
Next: Product model.