GET/api/v1/talepler
Firmanızın teklif fırsatları: sektörlerinize uyan açık talepler ve size özel gönderilen talepler (panel → Teklif fırsatları ile aynı liste). Erken erişimdeki talepte açıklama, alanlar ve bütçe boş gelir, locked_until dolu olur.
page- Sayfa (1'den başlar)
per_page- Sayfa başına kayıt (en fazla 100, varsayılan 20)
all- 1 = sektör filtresi olmadan tüm açık talepler
Örnek istek
bash
curl -s "https://energyexporter.com/api/v1/talepler?per_page=20" \
-H "Authorization: Bearer $EE_API_KEY"
Örnek yanıt
json
{
"data": [
{
"id": 41,
"title": "100 MWac GES projesi için EPC teklifi",
"kind": "standard",
"status": "open",
"is_private": false,
"category_id": 1,
"country": "RO",
"city": "Constanța",
"quantity": "100 MWac",
"deadline": "2026-12-15",
"description": "…",
"budget": null,
"currency": "EUR",
"specs": {},
"has_attachments": true,
"locked_until": null,
"offer_count": 3,
"my_offer_status": null,
"published_at": "2026-11-10T08:00:00.000Z",
"created_at": "2026-11-10T08:00:00.000Z",
"url": "https://energyexporter.com/tr/talep/41"
}
],
"meta": {
"page": 1,
"per_page": 20,
"has_more": false
}
}
GET/api/v1/talepler/{id}
Tek talep. Talep sahibinin adı ve iletişimi (requester) sadece talebe teklif vermişseniz gelir.
Örnek istek
bash
curl -s "https://energyexporter.com/api/v1/talepler/41" -H "Authorization: Bearer $EE_API_KEY"
Örnek yanıt
json
{
"data": {
"id": 41,
"title": "100 MWac GES projesi için EPC teklifi",
"kind": "standard",
"status": "open",
"is_private": false,
"category_id": 1,
"country": "RO",
"city": "Constanța",
"quantity": "100 MWac",
"deadline": "2026-12-15",
"description": "…",
"budget": null,
"currency": "EUR",
"specs": {},
"has_attachments": true,
"locked_until": null,
"offer_count": 3,
"my_offer_status": null,
"published_at": "2026-11-10T08:00:00.000Z",
"created_at": "2026-11-10T08:00:00.000Z",
"url": "https://energyexporter.com/tr/talep/41",
"requester": null,
"my_offer": null
}
}
POST/api/v1/teklifler
Teklif gönderir; aynı talebe gönderilmiş teklifiniz varsa günceller (200). Kalem (items) gönderirseniz toplam fiyat sunucuda hesaplanır. Aylık hakkınız bittiyse ek teklif kredisi sadece use_credits: true ile harcanır.
Gövde: request_id, price veya items[], currency (TRY/USD/EUR/GBP), delivery_days, valid_until (YYYY-AA-GG), note, payment_terms, delivery_terms, unit_price + price_unit, specs, use_credits
Örnek istek
bash
curl -s -X POST "https://energyexporter.com/api/v1/teklifler" \
-H "Authorization: Bearer $EE_API_KEY" \
-H "Content-Type: application/json" \
-H "Idempotency-Key: quote-41-v1" \
-d '{"request_id":41,"currency":"EUR","delivery_days":120,"valid_until":"2026-12-31","items":[{"description":"EPC – 100 MWac","quantity":1,"unit":"lot","unit_price":1000000,"vat_rate":20}],"unit_price":0.21,"price_unit":"Wp","note":"Details in the attached technical offer."}'
Örnek yanıt
json
{
"data": {
"id": 77,
"request_id": 41,
"request_title": "100 MWac GES projesi için EPC teklifi",
"status": "sent",
"price": 1200000,
"currency": "EUR",
"subtotal": 1000000,
"vat_total": 200000,
"delivery_days": 120,
"valid_until": "2026-12-31",
"payment_terms": "30% advance, 70% on delivery",
"delivery_terms": "DAP Constanța",
"note": "",
"unit_price": 0.21,
"price_unit": "Wp",
"specs": {},
"items": [
{
"description": "EPC – 100 MWac",
"quantity": 1,
"unit": "lot",
"unit_price": 1000000,
"vat_rate": 20
}
],
"created_at": "2026-11-10T09:12:00.000Z",
"updated_at": "2026-11-10T09:12:00.000Z"
},
"result": "created"
}
GET/api/v1/tekliflerim
Teklifleriniz (yeniden eskiye).
status- Duruma göre süz: sent, accepted, rejected, withdrawn
page- Sayfa (1'den başlar)
per_page- Sayfa başına kayıt (en fazla 100, varsayılan 20)
Örnek istek
bash
curl -s "https://energyexporter.com/api/v1/tekliflerim?status=accepted" -H "Authorization: Bearer $EE_API_KEY"
Örnek yanıt
json
{
"data": [
{
"id": 77,
"request_id": 41,
"request_title": "100 MWac GES projesi için EPC teklifi",
"status": "accepted",
"price": 1200000,
"currency": "EUR",
"subtotal": 1000000,
"vat_total": 200000,
"delivery_days": 120,
"valid_until": "2026-12-31",
"payment_terms": "30% advance, 70% on delivery",
"delivery_terms": "DAP Constanța",
"note": "",
"unit_price": 0.21,
"price_unit": "Wp",
"specs": {},
"items": [
{
"description": "EPC – 100 MWac",
"quantity": 1,
"unit": "lot",
"unit_price": 1000000,
"vat_rate": 20
}
],
"created_at": "2026-11-10T09:12:00.000Z",
"updated_at": "2026-11-10T09:12:00.000Z"
}
],
"meta": {
"page": 1,
"per_page": 20,
"has_more": false
}
}
GET/api/v1/ilanlar
Ürün ve hizmet ilanlarınız (silinenler hariç).
status- Duruma göre süz: active, passive, suspended
page- Sayfa (1'den başlar)
per_page- Sayfa başına kayıt (en fazla 100, varsayılan 20)
Örnek istek
bash
curl -s "https://energyexporter.com/api/v1/ilanlar" -H "Authorization: Bearer $EE_API_KEY"
Örnek yanıt
json
{
"data": [
{
"id": 15,
"type": "product",
"status": "active",
"category_id": 1,
"title": "550 Wp Monokristal Güneş Paneli",
"title_en": "550 Wp Mono Solar Panel",
"description": "…",
"description_en": "",
"brand": "Anadolu",
"model": "AS-550",
"min_order": "1 palet",
"price_note": "",
"specs": {
"panel_gucu": 550
},
"image_url": null,
"url": "https://energyexporter.com/tr/ilan/15",
"created_at": "2026-11-10T09:00:00.000Z"
}
],
"meta": {
"page": 1,
"per_page": 20,
"has_more": false
}
}
POST/api/v1/ilanlar
Yeni ilan (paket ilan sınırı ve kategori alanları doğrulanır). İlan onayı açıksa yanıt status: "pending" ve review { status, eta_hours, reason } içerir; yönetici onaylayınca yayına girer. Görsel zorunlu: image_base64 (JPG/PNG/WEBP, en çok 190 KB) yoksa 422 image_required; draft: true ile görselsiz taslak oluşturulur.
Gövde: type (product/service), category_id, title, title_en, description, description_en, brand, model, min_order, price_note, status (active/passive), specs, image_base64 (görsel, ≤ 190 KB), draft (true = taslak)
Örnek istek
bash
curl -s -X POST "https://energyexporter.com/api/v1/ilanlar" \
-H "Authorization: Bearer $EE_API_KEY" -H "Content-Type: application/json" \
-d '{"type":"product","category_id":1,"title":"550 Wp Monokristal Güneş Paneli","title_en":"550 Wp Mono Solar Panel","brand":"Anadolu","specs":{"panel_gucu":550}}'
Örnek yanıt
json
{
"data": {
"id": 15,
"type": "product",
"status": "active",
"category_id": 1,
"title": "550 Wp Monokristal Güneş Paneli",
"title_en": "550 Wp Mono Solar Panel",
"description": "…",
"description_en": "",
"brand": "Anadolu",
"model": "AS-550",
"min_order": "1 palet",
"price_note": "",
"specs": {
"panel_gucu": 550
},
"image_url": null,
"url": "https://energyexporter.com/tr/ilan/15",
"created_at": "2026-11-10T09:00:00.000Z"
}
}
GET/api/v1/ilanlar/{id}
Tek ilanınız.
Örnek istek
bash
curl -s "https://energyexporter.com/api/v1/ilanlar/15" -H "Authorization: Bearer $EE_API_KEY"
Örnek yanıt
json
{
"data": {
"id": 15,
"type": "product",
"status": "active",
"category_id": 1,
"title": "550 Wp Monokristal Güneş Paneli",
"title_en": "550 Wp Mono Solar Panel",
"description": "…",
"description_en": "",
"brand": "Anadolu",
"model": "AS-550",
"min_order": "1 palet",
"price_note": "",
"specs": {
"panel_gucu": 550
},
"image_url": null,
"url": "https://energyexporter.com/tr/ilan/15",
"created_at": "2026-11-10T09:00:00.000Z"
}
}
PATCH/api/v1/ilanlar/{id}
Kısmi güncelleme: göndermediğiniz alanlar korunur; specs mevcut değerlerle birleşir (null = sil).
Gövde: type (product/service), category_id, title, title_en, description, description_en, brand, model, min_order, price_note, status (active/passive), specs, image_base64 (görsel, ≤ 190 KB), draft (true = taslak)
Örnek istek
bash
curl -s -X PATCH "https://energyexporter.com/api/v1/ilanlar/15" \
-H "Authorization: Bearer $EE_API_KEY" -H "Content-Type: application/json" \
-d '{"price_note":"FOB İzmir","status":"passive"}'
Örnek yanıt
json
{
"data": {
"id": 15,
"type": "product",
"status": "passive",
"category_id": 1,
"title": "550 Wp Monokristal Güneş Paneli",
"title_en": "550 Wp Mono Solar Panel",
"description": "…",
"description_en": "",
"brand": "Anadolu",
"model": "AS-550",
"min_order": "1 palet",
"price_note": "FOB İzmir",
"specs": {
"panel_gucu": 550
},
"image_url": null,
"url": null,
"created_at": "2026-11-10T09:00:00.000Z"
}
}
GET/api/v1/kategoriler
Kategoriler ve kategoriye özel alanlar (specs anahtarları).
Örnek istek
bash
curl -s "https://energyexporter.com/api/v1/kategoriler" -H "Authorization: Bearer $EE_API_KEY"
Örnek yanıt
json
{
"data": [
{
"id": 1,
"slug": "gunes-enerjisi",
"name_tr": "Güneş Enerjisi",
"name_en": "Solar Energy",
"fields": [
{
"key": "panel_gucu",
"label_tr": "Panel gücü",
"label_en": "Panel power",
"type": "number",
"unit": "Wp",
"options": [],
"required": false,
"for_request": true,
"for_listing": true,
"for_offer": false
}
]
}
]
}