openapi: 3.0.3
info:
title: 'Sopyo Api v2 - Dökümantasyon'
description: "Sopyo API ile birlikte Sopyo üzerinde size ait tüm verileri işleyebilir, kendi uygulamalarınız ile entegre edebilirsiniz.
\n Sopyo API modülümüzü her geçen gün geliştiriyoruz, görüşlerinizi bize destek@sopyo.com adresinden iletebilirsiniz."
version: 1.0.0
servers:
-
url: 'https://api.sopyo.dev'
paths:
/api/v2/auth/login:
post:
summary: 'Token Al'
operationId: tokenAl
description: 'API Token üretmek için bu endpoint i kullanabilirsiniz'
parameters: []
responses:
200:
description: Ok
content:
application/json:
schema:
type: object
example:
status: true
message: ''
user:
id: 1
name: 'Sopyo Yazılım'
email: bilgi@sopyo.com
access_token:
token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwMDAvYXBpL3YyL2F1dGgvbG9naW4iLCJpYXQiOjE2NjcyMzA1NDgsImV4cCI6MTY2NzMxNjk0OCwibmJmIjoxNjY3MjMwNTQ4LCJqdGkiOiJ1OXhWSUw3MnlNWHZiRmZCIiwic3ViIjoiMSIsInBydiI6IjEzZThkMDI4YjM5MWYzYjdiNjNmMjE5MzNkYmFkNDU4ZmYyMTA3MmUifQ._ZL7f6irN8HrsKlQDddwBQccjV1nZViympxj3ML3wq8
expire_in: 1440
type: bearer
properties:
status:
type: boolean
example: true
message:
type: string
example: ''
user:
type: object
properties:
id:
type: integer
example: 1
name:
type: string
example: 'Sopyo Yazılım'
email:
type: string
example: bilgi@sopyo.com
access_token:
type: object
properties:
token:
type: string
example: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJodHRwOi8vbG9jYWxob3N0OjgwMDAvYXBpL3YyL2F1dGgvbG9naW4iLCJpYXQiOjE2NjcyMzA1NDgsImV4cCI6MTY2NzMxNjk0OCwibmJmIjoxNjY3MjMwNTQ4LCJqdGkiOiJ1OXhWSUw3MnlNWHZiRmZCIiwic3ViIjoiMSIsInBydiI6IjEzZThkMDI4YjM5MWYzYjdiNjNmMjE5MzNkYmFkNDU4ZmYyMTA3MmUifQ._ZL7f6irN8HrsKlQDddwBQccjV1nZViympxj3ML3wq8
expire_in:
type: integer
example: 1440
type:
type: string
example: bearer
tags:
- 'Giriş İşlemleri'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
api_token:
type: string
description: 'API TOKEN bilgisine Sopyo uygulamasında Api Ayarları sayfasından ulaşabilirsiniz. Api Ayarları sayfasını göremiyorsunuz lütfen satış temsilciniz ile görüşünüz.'
example:
- 'string 1'
required:
- api_token
security: []
/api/v2/variant-group:
get:
summary: 'Seçenek Grup Listesi'
operationId: seenekGrupListesi
description: '
Seçenek Grup Listesi
// Örnek filtrelemeler
Diğer filtreleme parametreleri | ||||
---|---|---|---|---|
[eq] | Eşit | |||
[lt] | Küçük | |||
[lte] | Küçük ve Eşit | |||
[gt] | Büyük | |||
[gte] | Büyük ve Eşit |
Diğer filtreleme parametreleri | ||||
---|---|---|---|---|
[eq] | Eşit | |||
[lt] | Küçük | |||
[lte] | Küçük ve Eşit | |||
[gt] | Büyük | |||
[gte] | Büyük ve Eşit |
Ürün Listesi
// Örnek filtrelemeler
0
, 1
, 8
, or 18
: bu değerlerden bir tanesini girmelisiniz.'
example: 18.0
sub_title:
type: string
description: 'Ürünün alt başlık bilgisi. Uzunluğu en çok 150 karakter olmalıdır.'
example: 'Gökkuşağı temalı çamaşır mandalı'
barcode:
type: string
description: 'Ürünün barkod bilgisi. Maksimum uzunluğu en çok 100 karakter olmalıdır.'
example: 5EASDF522
barcode_2:
type: string
description: 'Ürünün 2. barkod bilgisi. Maksimum uzunluğu en çok 100 karakter olmalıdır.'
example: 5EAEF525
brand:
type: string
description: 'Ürünün marka bilgisi. Maksimum uzunluğu en çok 50 karakter olmalıdır.'
example: YILDIZ
description:
type: string
description: 'Ürün açıklaması.'
example: 'Gökkuşağı temalı çamaşır mandalları kaliteli malzeme yapısı ile uzun süre kullanılabilir.'
price1:
type: array
description: 'Ürün Fiyat 1 Grubu'
example:
- []
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 1 için satış fiyatı.'
example: '7'
list_price:
type: string
description: 'Fiyat grubu 1 için liste fiyatı.'
example: '3.31'
required:
- sale_price
- list_price
price2:
type: 'string[]'
description: ''
example: null
price3:
type: 'string[]'
description: ''
example: null
price4:
type: 'string[]'
description: ''
example: null
price5:
type: 'string[]'
description: ''
example: null
price6:
type: 'string[]'
description: ''
example: null
price7:
type: 'string[]'
description: ''
example: null
price8:
type: 'string[]'
description: ''
example: null
price9:
type: 'string[]'
description: ''
example: null
price10:
type: 'string[]'
description: ''
example: null
variants:
type: 'string[]'
description: ''
example: null
price:
type: object
description: ''
example:
list_price: '14586'
properties:
list_price:
type: string
description: 'Fiyat grubu 2 için liste fiyatı.'
example: '14586'
required:
- title
- stock_code
- stock
- category_id
- desi
- tax_rate
- price1
'/api/v2/products/{id}':
get:
summary: 'Ürün Göster'
operationId: rnGster
description: 'Ürün Kaydı Göster'
parameters:
-
in: header
name: Authorization
description: ''
example: 'Bearer {YOUR_AUTH_KEY}'
schema:
type: string
responses:
200:
description: 'İşlem Başarılı'
content:
application/json:
schema:
type: object
example:
id: 18248770
title: 'Varyantlı Ürün Örneği'
sub_title: ''
stock: 0
stock_code: HBCV00002Z3YQM
barcode: '8683323005482'
barcode_2: null
tax_rate: 8
currency: TL
description: 'Varyantlı Ürün Örneği'
brand: 'The North Face'
desi: '1'
source: sopyo
tag_id: 453
category:
id: 413616
name: Bot
status: false
images:
- 'https://app.sopyo.com/public/products/a3150a3c93a90eb882dbecb5e3d7f8f9.jpg'
- 'https://app.sopyo.com/public/products/9e15adb60acffcd98af06e02c7241a8a.jpg'
- 'https://app.sopyo.com/public/products/516c4c59ab7a0d900f402c9fb07ef96f.jpg'
- 'https://app.sopyo.com/public/products/ddd0d5d962f4dcf7ad0ac10c713f9fc4.jpg'
variants:
-
id: 14824969
product_id: 18248770
stock_code: HBCV00002Z3WEY
stock: 0
barcode: HBCV00002Z3WEY
option1:
name: 'Ayakkabı Numarası'
value: '40'
option2:
name: Renk
value: 'Siyah - Sarı'
price_1:
sale_price: 6555
list_price: null
price_2: null
price_3: null
price_4: null
price_5: null
price_6: null
price_7: null
price_8: null
price_9: null
price_10: null
-
id: 14824972
product_id: 18248770
stock_code: HBCV00002Z3WEZ
stock: 0
barcode: HBCV00002Z3WEZ
option1:
name: 'Ayakkabı Numarası'
value: '41'
option2:
name: Renk
value: 'Siyah - Sarı'
price_1:
sale_price: 6555
list_price: null
price_2: null
price_3: null
price_4: null
price_5: null
price_6: null
price_7: null
price_8: null
price_9: null
price_10: null
-
id: 14824975
product_id: 18248770
stock_code: HBCV00002Z3WF0
stock: 0
barcode: HBCV00002Z3WF0
option1:
name: 'Ayakkabı Numarası'
value: '42'
option2:
name: Renk
value: 'Siyah - Sarı'
price_1:
sale_price: 6555
list_price: null
price_2: null
price_3: null
price_4: null
price_5: null
price_6: null
price_7: null
price_8: null
price_9: null
price_10: null
properties:
id:
type: integer
example: 18248770
description: "Ürün id'si"
title:
type: string
example: 'Varyantlı Ürün Örneği'
description: 'Ürün adı'
sub_title:
type: string
example: ''
description: 'Ürün alt başlığı'
stock:
type: integer
example: 0
description: 'Ürün stok bilgisi'
stock_code:
type: string
example: HBCV00002Z3YQM
description: 'Ürün stok kodu bilgisi'
barcode:
type: string
example: '8683323005482'
description: 'Ürün barkod bilgisi'
barcode_2:
type: string
example: null
description: 'Ürün ikinci barkod bilgisi'
tax_rate:
type: integer
example: 8
description: 'Ürün KDV oranı bilgisi'
currency:
type: string
example: TL
description: 'Ürün satış para birimi bilgisi'
description:
type: string
example: 'Varyantlı Ürün Örneği'
description: 'Ürün açıklaması'
brand:
type: string
example: 'The North Face'
description: 'Ürün marka bilgisi'
desi:
type: string
example: '1'
description: 'Ürün desi bilgisi'
source:
type: string
example: sopyo
description: 'Ürünün hangi kaynak üzerinden sisteme eklendiği bilgisini vermektedir'
tag_id:
type: integer
example: 453
category:
type: object
properties:
id:
type: integer
example: 413616
name:
type: string
example: Bot
status:
type: boolean
example: false
images:
type: array
example:
- 'https://app.sopyo.com/public/products/a3150a3c93a90eb882dbecb5e3d7f8f9.jpg'
- 'https://app.sopyo.com/public/products/9e15adb60acffcd98af06e02c7241a8a.jpg'
- 'https://app.sopyo.com/public/products/516c4c59ab7a0d900f402c9fb07ef96f.jpg'
- 'https://app.sopyo.com/public/products/ddd0d5d962f4dcf7ad0ac10c713f9fc4.jpg'
description: 'Ürün resimlerinin URL adres bilgilerini vermektedir.'
items:
type: string
variants:
type: array
example:
-
id: 14824969
product_id: 18248770
stock_code: HBCV00002Z3WEY
stock: 0
barcode: HBCV00002Z3WEY
option1:
name: 'Ayakkabı Numarası'
value: '40'
option2:
name: Renk
value: 'Siyah - Sarı'
price_1:
sale_price: 6555
list_price: null
price_2: null
price_3: null
price_4: null
price_5: null
price_6: null
price_7: null
price_8: null
price_9: null
price_10: null
-
id: 14824972
product_id: 18248770
stock_code: HBCV00002Z3WEZ
stock: 0
barcode: HBCV00002Z3WEZ
option1:
name: 'Ayakkabı Numarası'
value: '41'
option2:
name: Renk
value: 'Siyah - Sarı'
price_1:
sale_price: 6555
list_price: null
price_2: null
price_3: null
price_4: null
price_5: null
price_6: null
price_7: null
price_8: null
price_9: null
price_10: null
-
id: 14824975
product_id: 18248770
stock_code: HBCV00002Z3WF0
stock: 0
barcode: HBCV00002Z3WF0
option1:
name: 'Ayakkabı Numarası'
value: '42'
option2:
name: Renk
value: 'Siyah - Sarı'
price_1:
sale_price: 6555
list_price: null
price_2: null
price_3: null
price_4: null
price_5: null
price_6: null
price_7: null
price_8: null
price_9: null
price_10: null
description: 'Ürün varyantlarını vermektedir.'
items:
type: object
properties:
id:
type: integer
example: 14824969
product_id:
type: integer
example: 18248770
stock_code:
type: string
example: HBCV00002Z3WEY
stock:
type: integer
example: 0
barcode:
type: string
example: HBCV00002Z3WEY
option1:
type: object
properties:
name:
type: string
example: 'Ayakkabı Numarası'
value:
type: string
example: '40'
option2:
type: object
properties:
name:
type: string
example: Renk
value:
type: string
example: 'Siyah - Sarı'
price_1:
type: object
properties:
sale_price:
type: integer
example: 6555
list_price:
type: string
example: null
price_2:
type: string
example: null
price_3:
type: string
example: null
price_4:
type: string
example: null
price_5:
type: string
example: null
price_6:
type: string
example: null
price_7:
type: string
example: null
price_8:
type: string
example: null
price_9:
type: string
example: null
price_10:
type: string
example: null
401:
description: 'Kimlik Doğrulanmamış'
content:
application/json:
schema:
type: object
example:
status: false
message: Unauthenticated.
properties:
status:
type: boolean
example: false
message:
type: string
example: Unauthenticated.
404:
description: 'Kayıt Bulunamadı'
content:
application/json:
schema:
type: object
example:
status: false
message: 'Kayıt Bulunamadı !'
properties:
status:
type: boolean
example: false
message:
type: string
example: 'Kayıt Bulunamadı !'
tags:
- 'Katalog Yönetimi'
put:
summary: 'Ürün Güncelle'
operationId: rnGncelle
description: 'Ürün Kaydı Güncelle'
parameters:
-
in: header
name: Authorization
description: ''
example: 'Bearer {YOUR_AUTH_KEY}'
schema:
type: string
responses:
200:
description: 'İşlem Başarılı'
content:
application/json:
schema:
type: object
example:
id: 1
title: 'Sırt Çantası'
sub_title: null
stock: 50
stock_code: SPE80693
barcode: '1234556'
barcode_2: null
tax_rate: 18
currency: TL
description: ''
brand: Sopyo
desi: '1'
source: ankasync
price_1:
sale_price: 681.08
list_price: 690.08
price_2: null
price_3: null
price_4: null
price_5: null
price_6: null
price_7: null
price_8: null
price_9: null
price_10: null
category:
id: 1
name: Çanta
status: false
images:
- 'https://www.app.sopyo.com/images/urunler/sirt-can-5253_1.jpg'
variants: []
properties:
id:
type: integer
example: 1
description: "Ürün id'si"
title:
type: string
example: 'Sırt Çantası'
description: 'Ürün adı'
sub_title:
type: string
example: null
description: 'Ürün alt başlığı'
stock:
type: integer
example: 50
description: 'Ürün stok bilgisi'
stock_code:
type: string
example: SPE80693
description: 'Ürün stok kodu bilgisi'
barcode:
type: string
example: '1234556'
description: 'Ürün barkod bilgisi'
barcode_2:
type: string
example: null
description: 'Ürün ikinci barkod bilgisi'
tax_rate:
type: integer
example: 18
description: 'Ürün KDV oranı bilgisi'
currency:
type: string
example: TL
description: 'Ürün satış para birimi bilgisi'
description:
type: string
example: ''
description: 'Ürün açıklaması'
brand:
type: string
example: Sopyo
description: 'Ürün marka bilgisi'
desi:
type: string
example: '1'
description: 'Ürün desi bilgisi'
source:
type: string
example: ankasync
description: 'Ürünün hangi kaynak üzerinden sisteme eklendiği bilgisini vermektedir'
price_1:
type: object
properties:
sale_price:
type: number
example: 681.08
description: 'Fiyat 1 grubunun satış fiyatı bilgisini vermektedir'
list_price:
type: number
example: 690.08
description: 'Fiyat 1 grubunun liste fiyatı bilgisini vermektedir'
price_2:
type: string
example: null
description: 'Fiyat 2 grubunun fiyat bilgisini vermektedir'
price_3:
type: string
example: null
description: 'Fiyat 3 grubunun fiyat bilgisini vermektedir'
price_4:
type: string
example: null
description: 'Fiyat 4 grubunun fiyat bilgisini vermektedir'
price_5:
type: string
example: null
description: 'Fiyat 5 grubunun fiyat bilgisini vermektedir'
price_6:
type: string
example: null
description: 'Fiyat 6 grubunun fiyat bilgisini vermektedir'
price_7:
type: string
example: null
description: 'Fiyat 7 grubunun fiyat bilgisini vermektedir'
price_8:
type: string
example: null
description: 'Fiyat 8 grubunun fiyat bilgisini vermektedir'
price_9:
type: string
example: null
description: 'Fiyat 9 grubunun fiyat bilgisini vermektedir'
price_10:
type: string
example: null
description: 'Fiyat 10 grubunun fiyat bilgisini vermektedir'
category:
type: object
properties:
id:
type: integer
example: 1
name:
type: string
example: Çanta
status:
type: boolean
example: false
images:
type: array
example:
- 'https://www.app.sopyo.com/images/urunler/sirt-can-5253_1.jpg'
description: 'Ürün resimlerinin URL adres bilgilerini vermektedir.'
items:
type: string
variants:
type: array
example: []
description: 'Ürün varyantlarını vermektedir.'
401:
description: 'Kimlik Doğrulanmamış'
content:
text/plain:
schema:
type: string
example: '"status": false,"message": "Unauthenticated."}'
404:
description: 'Kayıt Bulunamadı'
content:
application/json:
schema:
type: object
example:
status: false
message: 'Kayıt Bulunamadı !'
properties:
status:
type: boolean
example: false
message:
type: string
example: 'Kayıt Bulunamadı !'
tags:
- 'Katalog Yönetimi'
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
title:
type: string
description: 'Ürünün adı. Minumum uzunluğu en az 5 karakter olmalıdır. Maksimum uzunluğu en çok 150 karakter olmalıdır.'
example: 'Çamaşır Mandalı'
stock_code:
type: string
description: 'Ürünün stok kodu bilgisi. Maksimum uzunluğu en çok 150 karakter olmalıdır.'
example: '87484554'
stock:
type: integer
description: 'Ürünün stok miktarı bilgisi.'
example: 45
category_id:
type: integer
description: 'Ürün kategori bilgisi. Kategori id yazmanınız gerekmektedir. .'
example: 25
desi:
type: number
description: 'Ürün desi bilgisi.'
example: 5.0
tax_rate:
type: number
description: 'Ürün KDV bilgisi. 0
, 1
, 8
, or 18
bu değerlerden herhangi biri olmalıdır.'
example: 18.0
sub_title:
type: string
description: 'Ürünün alt başlık bilgisi. Maksimum uzunluğu en çok 150 karakter olmalıdır.'
example: 'Gökkuşağı temalı çamaşır mandalı'
barcode:
type: string
description: 'Ürünün barkod bilgisi. Maksimum uzunluğu en çok 100 karakter olmalıdır.'
example: 5EASDF522
barcode_2:
type: string
description: 'Ürünün 2. barkod bilgisi. Maksimum uzunluğu en çok 100 karakter olmalıdır.'
example: 5EAEF525
brand:
type: string
description: 'Ürünün marka bilgisi. Maksimum uzunluğu en çok 50 karakter olmalıdır.'
example: YILDIZ
description:
type: string
description: 'Ürün açıklaması.'
example: 'Gökkuşağı temalı çamaşır mandalları kaliteli malzeme yapısı ile uzun süre kullanılabilir.'
images:
type: array
description: 'Ürün resimleri için URL olarak göndeririniz. Geçerli bir URL olmalıdır.'
example:
- 'https://app.sopyo.com/public/2021/11/MANDAL-GOKKUSAGI-1.jpg'
- 'https://app.sopyo.com/public/2021/11/MANDAL-GOKKUSAGI-1.jpg'
items:
type: string
price1:
type: array
description: 'Fiyat 1 Grubu'
example:
- []
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 1 için satış fiyatı.'
example: '7913.34'
list_price:
type: string
description: 'Fiyat grubu 1 için liste fiyatı.'
example: '19.7'
required:
- sale_price
- list_price
price2:
type: array
description: ''
example:
- []
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 2 için satış fiyatı.'
example: '779429'
list_price:
type: string
description: 'Fiyat grubu 2 için liste fiyatı.'
example: '1'
required:
- sale_price
price3:
type: array
description: ''
example:
- []
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 3 için satış fiyatı.'
example: '4'
list_price:
type: string
description: 'Fiyat grubu 3 için liste fiyatı.'
example: '4'
required:
- sale_price
price4:
type: array
description: ''
example:
- []
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 4 için satış fiyatı.'
example: '2'
list_price:
type: string
description: 'Fiyat grubu 4 için liste fiyatı.'
example: '00'
required:
- sale_price
price5:
type: array
description: ''
example:
- []
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 5 için satış fiyatı.'
example: '493'
required:
- sale_price
price6:
type: array
description: ''
example:
- []
items:
type: object
properties:
list_price:
type: string
description: 'Fiyat grubu 6 için liste fiyatı.'
example: '994721.68'
price7:
type: array
description: ''
example:
- []
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 7 için satış fiyatı.'
example: '029714.4'
list_price:
type: string
description: 'Fiyat grubu 7 için liste fiyatı.'
example: '77'
required:
- sale_price
price8:
type: array
description: ''
example:
- []
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 8 için satış fiyatı.'
example: '111'
list_price:
type: string
description: 'Fiyat grubu 8 için liste fiyatı.'
example: '0.15'
required:
- sale_price
price9:
type: array
description: ''
example:
- []
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 9 için satış fiyatı.'
example: '893.54'
list_price:
type: string
description: 'Fiyat grubu 9 için liste fiyatı.'
example: '3'
required:
- sale_price
price10:
type: array
description: ''
example:
- []
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 10 için satış fiyatı.'
example: '3628'
list_price:
type: string
description: 'Fiyat grubu 10 için liste fiyatı.'
example: '73182.05'
required:
- sale_price
price_5:
type: object
description: ''
example:
list_price: '53'
properties:
list_price:
type: string
description: 'Fiyat grubu 5 için liste fiyatı.'
example: '53'
price_6:
type: object
description: ''
example:
sale_price: '2.01'
properties:
sale_price:
type: string
description: 'Fiyat grubu 6 için satış fiyatı.'
example: '2.01'
delete:
summary: 'Ürün Sil'
operationId: rnSil
description: 'Ürün Kaydı Sil'
parameters:
-
in: header
name: Authorization
description: ''
example: 'Bearer {YOUR_AUTH_KEY}'
schema:
type: string
responses:
200:
description: 'İşlem Başarılı'
content:
application/json:
schema:
type: object
example:
status: true
message: 'İşlem başarılı'
properties:
status:
type: boolean
example: true
message:
type: string
example: 'İşlem başarılı'
401:
description: 'Kimlik Doğrulanmamış'
content:
application/json:
schema:
type: object
example:
status: false
message: Unauthenticated.
properties:
status:
type: boolean
example: false
message:
type: string
example: Unauthenticated.
404:
description: 'Kayıt Bulunamadı'
content:
application/json:
schema:
type: object
example:
status: false
message: 'Kayıt Bulunamadı !'
properties:
status:
type: boolean
example: false
message:
type: string
example: 'Kayıt Bulunamadı !'
tags:
- 'Katalog Yönetimi'
parameters:
-
in: path
name: id
description: 'Ürün ID'
example: 5
required: true
schema:
type: integer
'/api/v2/products/{id}/variants':
get:
summary: 'Ürün Seçenek Listesi (Varyant)'
operationId: rnSeenekListesiVaryant
description: ''
parameters:
-
in: header
name: Authorization
description: ''
example: 'Bearer {YOUR_AUTH_KEY}'
schema:
type: string
responses:
200:
description: 'İşlem Başarılı'
content:
application/json:
schema:
type: object
example:
data:
-
id: 21
product_id: 2
stock_code: hgfkzm1-1063-020beyazl
stock: 50
barcode: ''
option1:
name: Renk
value: Beyaz
option2:
name: Beden
value: L
price_1:
sale_price: 0
list_price: 0
price_2: null
price_3: null
price_4: null
price_5: null
price_6: null
price_7: null
price_8: null
price_9: null
price_10: null
links:
first: '/api/v2/products/2/variants?page=1'
last: '/api/v2/products/2/variants?page=1'
prev: null
next: null
meta:
current_page: 1
from: 1
last_page: 1
links:
-
url: null
label: '« Önceki'
active: false
-
url: '/api/v2/products/2/variants?page=1'
label: '1'
active: true
-
url: null
label: 'Sonraki »'
active: false
path: /api/v2/products/2/variants
per_page: 100
to: 3
total: 3
properties:
data:
type: array
example:
-
id: 21
product_id: 2
stock_code: hgfkzm1-1063-020beyazl
stock: 50
barcode: ''
option1:
name: Renk
value: Beyaz
option2:
name: Beden
value: L
price_1:
sale_price: 0
list_price: 0
price_2: null
price_3: null
price_4: null
price_5: null
price_6: null
price_7: null
price_8: null
price_9: null
price_10: null
items:
type: object
properties:
id:
type: integer
example: 21
product_id:
type: integer
example: 2
stock_code:
type: string
example: hgfkzm1-1063-020beyazl
stock:
type: integer
example: 50
barcode:
type: string
example: ''
option1:
type: object
properties:
name:
type: string
example: Renk
value:
type: string
example: Beyaz
option2:
type: object
properties:
name:
type: string
example: Beden
value:
type: string
example: L
price_1:
type: object
properties:
sale_price:
type: integer
example: 0
list_price:
type: integer
example: 0
price_2:
type: string
example: null
price_3:
type: string
example: null
price_4:
type: string
example: null
price_5:
type: string
example: null
price_6:
type: string
example: null
price_7:
type: string
example: null
price_8:
type: string
example: null
price_9:
type: string
example: null
price_10:
type: string
example: null
links:
type: object
properties:
first:
type: string
example: '/api/v2/products/2/variants?page=1'
last:
type: string
example: '/api/v2/products/2/variants?page=1'
prev:
type: string
example: null
next:
type: string
example: null
meta:
type: object
properties:
current_page:
type: integer
example: 1
from:
type: integer
example: 1
last_page:
type: integer
example: 1
links:
type: array
example:
-
url: null
label: '« Önceki'
active: false
-
url: '/api/v2/products/2/variants?page=1'
label: '1'
active: true
-
url: null
label: 'Sonraki »'
active: false
items:
type: object
properties:
url:
type: string
example: null
label:
type: string
example: '« Önceki'
active:
type: boolean
example: false
path:
type: string
example: /api/v2/products/2/variants
per_page:
type: integer
example: 100
to:
type: integer
example: 3
total:
type: integer
example: 3
401:
description: 'Kimlik Doğrulanmamış'
content:
application/json:
schema:
type: object
example:
status: false
message: Unauthenticated.
properties:
status:
type: boolean
example: false
message:
type: string
example: Unauthenticated.
404:
description: 'Kayıt Bulunamadı'
content:
application/json:
schema:
type: object
example:
status: false
message: 'Kayıt Bulunamadı !'
properties:
status:
type: boolean
example: false
message:
type: string
example: 'Kayıt Bulunamadı !'
tags:
- 'Katalog Yönetimi'
put:
summary: 'Ürün Seçenek Ekle (Varyant)'
operationId: rnSeenekEkleVaryant
description: ''
parameters:
-
in: header
name: Authorization
description: ''
example: 'Bearer {YOUR_AUTH_KEY}'
schema:
type: string
responses:
200:
description: 'İşlem Başarılı'
content:
application/json:
schema:
type: object
example:
data:
id: 21
product_id: 2
stock_code: hgfkzm1-1063-020beyazl
stock: 50
barcode: ''
option1:
name: Renk
value: Beyaz
option2:
name: Beden
value: L
price_1:
sale_price: 0
list_price: 0
price_2: null
price_3: null
price_4: null
price_5: null
price_6: null
price_7: null
price_8: null
price_9: null
price_10: null
properties:
data:
type: object
properties:
id:
type: integer
example: 21
product_id:
type: integer
example: 2
stock_code:
type: string
example: hgfkzm1-1063-020beyazl
stock:
type: integer
example: 50
barcode:
type: string
example: ''
option1:
type: object
properties:
name:
type: string
example: Renk
value:
type: string
example: Beyaz
option2:
type: object
properties:
name:
type: string
example: Beden
value:
type: string
example: L
price_1:
type: object
properties:
sale_price:
type: integer
example: 0
list_price:
type: integer
example: 0
price_2:
type: string
example: null
price_3:
type: string
example: null
price_4:
type: string
example: null
price_5:
type: string
example: null
price_6:
type: string
example: null
price_7:
type: string
example: null
price_8:
type: string
example: null
price_9:
type: string
example: null
price_10:
type: string
example: null
401:
description: 'Kimlik Doğrulanmamış'
content:
application/json:
schema:
type: object
example:
status: false
message: Unauthenticated.
properties:
status:
type: boolean
example: false
message:
type: string
example: Unauthenticated.
404:
description: 'Kayıt Bulunamadı'
content:
application/json:
schema:
type: object
example:
status: false
message: 'Kayıt Bulunamadı !'
properties:
status:
type: boolean
example: false
message:
type: string
example: 'Kayıt Bulunamadı !'
tags:
- 'Katalog Yönetimi'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
stock_code:
type: string
description: 'Varyant stok kodu gönderiniz.'
example: qui
stock:
type: integer
description: 'Varyant stok bilgisi gönderiniz.'
example: 3
barcode:
type: string
description: 'Varyant barkod no gönderiniz.'
example: voluptates
values:
type: array
description: ''
example: null
items:
type: object
properties:
name:
type: string
description: 'Varyant seçenek adı bilgisi gönderiniz.'
example: voluptates
value:
type: string
description: 'Varyant seçenek değer bilgisi gönderiniz.'
example: corrupti
required:
- name
- value
price_1:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: decimal
description: 'Fiyat grubu 1 için satış fiyatı.'
example: '1643'
list_price:
type: decimal
description: 'Fiyat grubu 1 için liste fiyatı.'
example: '3.35'
required:
- sale_price
- list_price
price_2:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: decimal
description: 'Fiyat grubu 2 için satış fiyatı.'
example: '715'
list_price:
type: decimal
description: 'Fiyat grubu 2 için liste fiyatı.'
example: '0331797.4'
required:
- sale_price
price_3:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: decimal
description: 'Fiyat grubu 3 için satış fiyatı.'
example: '048'
list_price:
type: decimal
description: 'Fiyat grubu 3 için liste fiyatı.'
example: '404.54'
required:
- sale_price
price_4:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: decimal
description: 'Fiyat grubu 4 için satış fiyatı.'
example: '2257'
list_price:
type: decimal
description: 'Fiyat grubu 4 için liste fiyatı.'
example: '610'
required:
- sale_price
price_5:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: decimal
description: 'Fiyat grubu 5 için satış fiyatı.'
example: '53'
list_price:
type: string
description: 'Fiyat grubu 5 için liste fiyatı.'
example: '9'
required:
- sale_price
price_6:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: decimal
description: 'Fiyat grubu 6 için satış fiyatı.'
example: '232957478'
list_price:
type: decimal
description: 'Fiyat grubu 6 için liste fiyatı.'
example: '363238.31'
required:
- sale_price
price_7:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: decimal
description: 'Fiyat grubu 7 için satış fiyatı.'
example: '84'
list_price:
type: decimal
description: 'Fiyat grubu 7 için liste fiyatı.'
example: '5'
required:
- sale_price
price_8:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 8 için satış fiyatı.'
example: '1946042.8'
list_price:
type: decimal
description: 'Fiyat grubu 8 için liste fiyatı.'
example: '6944'
required:
- sale_price
price_9:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: decimal
description: 'Fiyat grubu 9 için satış fiyatı.'
example: '2.74'
list_price:
type: decimal
description: 'Fiyat grubu 9 için liste fiyatı.'
example: '4890.2'
required:
- sale_price
price_10:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: decimal
description: 'Fiyat grubu 10 için satış fiyatı.'
example: '2.48'
list_price:
type: decimal
description: 'Fiyat grubu 10 için liste fiyatı.'
example: '3.33'
required:
- sale_price
required:
- stock_code
- stock
- barcode
- values
- price_1
parameters:
-
in: path
name: id
description: 'Ürün Id'
example: 1
required: true
schema:
type: integer
'/api/v2/products/{id}/variants/{variant_id}':
get:
summary: 'Ürün Seçenek Göster (Varyant)'
operationId: rnSeenekGsterVaryant
description: ''
parameters:
-
in: header
name: Authorization
description: ''
example: 'Bearer {YOUR_AUTH_KEY}'
schema:
type: string
responses:
200:
description: 'İşlem Başarılı'
content:
application/json:
schema:
type: object
example:
data:
id: 21
product_id: 2
stock_code: hgfkzm1-1063-020beyazl
stock: 50
barcode: ''
option1:
name: Renk
value: Beyaz
option2:
name: Beden
value: L
price_1:
sale_price: 0
list_price: 0
price_2: null
price_3: null
price_4: null
price_5: null
price_6: null
price_7: null
price_8: null
price_9: null
price_10: null
properties:
data:
type: object
properties:
id:
type: integer
example: 21
product_id:
type: integer
example: 2
stock_code:
type: string
example: hgfkzm1-1063-020beyazl
stock:
type: integer
example: 50
barcode:
type: string
example: ''
option1:
type: object
properties:
name:
type: string
example: Renk
value:
type: string
example: Beyaz
option2:
type: object
properties:
name:
type: string
example: Beden
value:
type: string
example: L
price_1:
type: object
properties:
sale_price:
type: integer
example: 0
list_price:
type: integer
example: 0
price_2:
type: string
example: null
price_3:
type: string
example: null
price_4:
type: string
example: null
price_5:
type: string
example: null
price_6:
type: string
example: null
price_7:
type: string
example: null
price_8:
type: string
example: null
price_9:
type: string
example: null
price_10:
type: string
example: null
401:
description: 'Kimlik Doğrulanmamış'
content:
application/json:
schema:
type: object
example:
status: false
message: Unauthenticated.
properties:
status:
type: boolean
example: false
message:
type: string
example: Unauthenticated.
404:
description: 'Kayıt Bulunamadı'
content:
application/json:
schema:
type: object
example:
status: false
message: 'Kayıt Bulunamadı !'
properties:
status:
type: boolean
example: false
message:
type: string
example: 'Kayıt Bulunamadı !'
tags:
- 'Katalog Yönetimi'
put:
summary: 'Ürün Seçenek Güncelle (Varyant)'
operationId: rnSeenekGncelleVaryant
description: ''
parameters:
-
in: header
name: Authorization
description: ''
example: 'Bearer {YOUR_AUTH_KEY}'
schema:
type: string
responses:
200:
description: 'İşlem Başarılı'
content:
application/json:
schema:
type: object
example:
data:
id: 21
product_id: 2
stock_code: hgfkzm1-1063-020beyazl
stock: 50
barcode: ''
option1:
name: Renk
value: Beyaz
option2:
name: Beden
value: L
price_1:
sale_price: 0
list_price: 0
price_2: null
price_3: null
price_4: null
price_5: null
price_6: null
price_7: null
price_8: null
price_9: null
price_10: null
properties:
data:
type: object
properties:
id:
type: integer
example: 21
product_id:
type: integer
example: 2
stock_code:
type: string
example: hgfkzm1-1063-020beyazl
stock:
type: integer
example: 50
barcode:
type: string
example: ''
option1:
type: object
properties:
name:
type: string
example: Renk
value:
type: string
example: Beyaz
option2:
type: object
properties:
name:
type: string
example: Beden
value:
type: string
example: L
price_1:
type: object
properties:
sale_price:
type: integer
example: 0
list_price:
type: integer
example: 0
price_2:
type: string
example: null
price_3:
type: string
example: null
price_4:
type: string
example: null
price_5:
type: string
example: null
price_6:
type: string
example: null
price_7:
type: string
example: null
price_8:
type: string
example: null
price_9:
type: string
example: null
price_10:
type: string
example: null
401:
description: 'Kimlik Doğrulanmamış'
content:
application/json:
schema:
type: object
example:
status: false
message: Unauthenticated.
properties:
status:
type: boolean
example: false
message:
type: string
example: Unauthenticated.
404:
description: 'Kayıt Bulunamadı'
content:
application/json:
schema:
type: object
example:
status: false
message: 'Kayıt Bulunamadı !'
properties:
status:
type: boolean
example: false
message:
type: string
example: 'Kayıt Bulunamadı !'
tags:
- 'Katalog Yönetimi'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
stock_code:
type: string
description: 'Varyant stok kodu gönderiniz.'
example: animi
stock:
type: integer
description: 'Varyant stok bilgisi gönderiniz.'
example: 5
barcode:
type: string
description: 'Varyant barkod no gönderiniz.'
example: quae
values:
type: array
description: ''
example: null
items:
type: object
properties:
name:
type: string
description: 'Varyant seçenek adı bilgisi gönderiniz.'
example: et
value:
type: string
description: 'Varyant seçenek değer bilgisi gönderiniz.'
example: repellendus
required:
- name
- value
price_1:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 1 için satış fiyatı.'
example: '7178923.84'
list_price:
type: string
description: 'Fiyat grubu 1 için liste fiyatı.'
example: '078547.10'
required:
- sale_price
- list_price
price_2:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 2 için satış fiyatı.'
example: '8'
list_price:
type: string
description: 'Fiyat grubu 2 için liste fiyatı.'
example: '30680.32'
required:
- sale_price
price_3:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 3 için satış fiyatı.'
example: '42'
list_price:
type: string
description: 'Fiyat grubu 3 için liste fiyatı.'
example: '447.3'
required:
- sale_price
price_4:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 4 için satış fiyatı.'
example: '79'
list_price:
type: string
description: 'Fiyat grubu 4 için liste fiyatı.'
example: '31590247.19'
required:
- sale_price
price_5:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 5 için satış fiyatı.'
example: '00'
list_price:
type: string
description: 'Fiyat grubu 5 için liste fiyatı.'
example: '10'
required:
- sale_price
price_6:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 6 için satış fiyatı.'
example: '1.31'
list_price:
type: string
description: 'Fiyat grubu 6 için liste fiyatı.'
example: '1.82'
required:
- sale_price
price_7:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 7 için satış fiyatı.'
example: '09.07'
list_price:
type: string
description: 'Fiyat grubu 7 için liste fiyatı.'
example: '1328016'
required:
- sale_price
price_8:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 8 için satış fiyatı.'
example: '172750.9'
list_price:
type: string
description: 'Fiyat grubu 8 için liste fiyatı.'
example: '8.12'
required:
- sale_price
price_9:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 9 için satış fiyatı.'
example: '1.3'
list_price:
type: string
description: 'Fiyat grubu 9 için liste fiyatı.'
example: '71600'
required:
- sale_price
price_10:
type: array
description: ''
example: null
items:
type: object
properties:
sale_price:
type: string
description: 'Fiyat grubu 10 için satış fiyatı.'
example: '000975.5'
list_price:
type: string
description: 'Fiyat grubu 10 için liste fiyatı.'
example: '4'
required:
- sale_price
required:
- stock_code
- stock
- barcode
delete:
summary: 'Ürün Seçenek Sil (Varyant)'
operationId: rnSeenekSilVaryant
description: ''
parameters:
-
in: header
name: Authorization
description: ''
example: 'Bearer {YOUR_AUTH_KEY}'
schema:
type: string
responses:
200:
description: 'İşlem Başarılı'
content:
application/json:
schema:
type: object
example:
status: true
message: 'İşlem başarılı'
properties:
status:
type: boolean
example: true
message:
type: string
example: 'İşlem başarılı'
401:
description: 'Kimlik Doğrulanmamış'
content:
application/json:
schema:
type: object
example:
status: false
message: Unauthenticated.
properties:
status:
type: boolean
example: false
message:
type: string
example: Unauthenticated.
404:
description: 'Kayıt Bulunamadı'
content:
application/json:
schema:
type: object
example:
status: false
message: 'Kayıt Bulunamadı !'
properties:
status:
type: boolean
example: false
message:
type: string
example: 'Kayıt Bulunamadı !'
tags:
- 'Katalog Yönetimi'
parameters:
-
in: path
name: id
description: 'Ürün id'
example: 13
required: true
schema:
type: integer
-
in: path
name: variant_id
description: 'Varyant id'
example: 1
required: true
schema:
type: integer
'/api/v2/products/{id}/images':
get:
summary: 'Ürün Resimleri'
operationId: rnResimleri
description: 'Ürün Resimleri'
parameters:
-
in: header
name: Authorization
description: ''
example: 'Bearer {YOUR_AUTH_KEY}'
schema:
type: string
responses:
200:
description: 'İşlem Başarılı'
content:
application/json:
schema:
type: object
example:
data:
- 'https://www.app.sopyo.com/images/urunler/sirt-can-5253_1.jpg'
- 'https://www.app.sopyo.com/images/urunler/sirt-can-5253_2.jpg'
properties:
data:
type: array
example:
- 'https://www.app.sopyo.com/images/urunler/sirt-can-5253_1.jpg'
- 'https://www.app.sopyo.com/images/urunler/sirt-can-5253_2.jpg'
items:
type: string
401:
description: 'Kimlik Doğrulanmamış'
content:
application/json:
schema:
type: object
example:
status: false
message: Unauthenticated.
properties:
status:
type: boolean
example: false
message:
type: string
example: Unauthenticated.
404:
description: 'Kayıt Bulunamadı'
content:
application/json:
schema:
type: object
example:
status: false
message: 'Kayıt Bulunamadı !'
properties:
status:
type: boolean
example: false
message:
type: string
example: 'Kayıt Bulunamadı !'
tags:
- 'Katalog Yönetimi'
parameters:
-
in: path
name: id
description: 'Ürün ID'
example: 5
required: true
schema:
type: integer
/api/v2/categories:
get:
summary: 'Kategori Listesi'
operationId: kategoriListesi
description: 'Kategori Listesi
// Örnek filtrelemeler
Marka Listesi
// Örnek filtrelemeler
Sipariş Listesi
// Örnek filtrelemeler