Aktif Yap

Bu metod PttAVM mağazanızda bulunan ürünlerinizi aktif/pasif yapmanıza olanak tanır.

Endpoint Bilgileri

  • URL: https://integration-api.pttavm.com/api/v1/products/{productId}/status
  • HTTP Metodu: PUT
  • Content-Type: application/json
  • header : Api-Key zorunlu
  • header : access-token zorunlu
  • header : Content-Type: application/json

Örnek Servis İsteği

curl 'https://integration-api.pttavm.com/api/v1/products/{productId}/status' \
  --request PUT \
  --header 'Api-Key: ' \
  --header 'Access-Token: ' \
  --header 'Content-Type: application/json' \
  --data '{
  "isActive": true
}'

Örnek Servis Cevabı


{
  "success": true,
  "errorMessage": null,
  "errorCode": null
}
Parametre Tür Açıklama
isActive boolean Ürünün aktiflik bilgisi (True:Aktif , False:Pasif).
productId integer Ürün id bilgisi, Zorunlu alan.

Response Parametreleri

Parametre Tür Açıklama
success boolean İşlemin başarılı olduğunu ifade eder.
errorMessage string Hata mesaı
errorCode string Hata kodu