Aksiyonlar
Bu sayfada Labs API ERP Sipariş Aktarımı, ERP Ürün, Fiyat, Stok servisine ait metodlar hakkında detaylı açıklama ve örnek veriler bulunmaktadır.
POST/v1/action/orders-erp-transfer
ERP Sipariş Aktarımı
Request
POST
/v1/action/orders-erp-transfercurl --location --request POST 'https://api.labsoffice.com/v1/action/orders-erp-transfer' \
--header 'Authorization: Bearer {API_TOKEN}'
--header 'Content-Type: application/json' \
--data-raw '{
"orderIds":[
"3572228",
"3572151",
"3572139"
]
}'
Response
{
"status": "success",
"message": "Sipariş ERP aktarım işlemi tamamlandı",
"data": {
"transferred": ["3572265","3572265"],
"not_transferred": [
{
"id": "35722658",
"error": "Sipariş bulunamadı."
},
{
"id": "357215651",
"error": "Sipariş bulunamadı."
},
{
"id": "356572139",
"error": "Sipariş bulunamadı."
}
]
}
}
POST/v1/action/products-erp-sync
ERP Ürün Çekme (sync)
Request
POST
/v1/action/products-erp-synccurl --location --request POST 'https://api.labsoffice.com/v1/action/products-erp-sync' \
--header 'Authorization: Bearer {API_TOKEN}'
--header 'Content-Type: application/json' \
Response
{
"status": "success",
"message": "Ürün içe aktarma işlemi başlatıldı"
}
POST/v1/action/products-price-erp-sync
ERP Fiyat Çekme (sync)
Request
POST
/v1/action/products-price-erp-synccurl --location --request POST 'https://api.labsoffice.com/v1/action/products-price-erp-sync' \
--header 'Authorization: Bearer {API_TOKEN}'
--header 'Content-Type: application/json' \
Response
{
"status": "success",
"message": "Fiyat içe aktarma işlemi başlatıldı."
}
POST/v1/action/products-qty-erp-sync
ERP Adet Çekme (sync)
Request
POST
/v1/action/products-qty-erp-synccurl --location --request POST 'https://api.labsoffice.com/v1/action/products-qty-erp-sync' \
--header 'Authorization: Bearer {API_TOKEN}'
--header 'Content-Type: application/json' \
Response
{
"status": "success",
"message": "Stok güncelleme işlemi başlatıldı"
}