Bu metod PttAVM mağazanızda bulunan ürünlerinizi aktif/pasif yapmanıza olanak tanır.
https://integration-api.pttavm.com/api/v1/products/{productId}/statusPUTapplication/jsonApi-Key zorunluaccess-token zorunluContent-Type: application/jsoncurl '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
}'
{
"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. |
| Parametre | Tür | Açıklama |
|---|---|---|
| success | boolean | İşlemin başarılı olduğunu ifade eder. |
| errorMessage | string | Hata mesaı |
| errorCode | string | Hata kodu |