İptal Talebi Oluşturma
Bu eylem ile belirtilen hizmet için API üzerinden iptal talebi oluşturulur.
Method / Endpoint
POST/ {{API_URL}} order/cancel
İstek Parametreleri
| İsim | Zorunlu | Açıklama |
|---|---|---|
| key | Evet | API Key |
| id | Evet | Sipariş ID Numarası |
| reason | İsteğe Bağlı | İptal Etme Sebebi |
| urgency | Evet | İptal önceliği. Olabilecek değerler: period-ending : Hizmetin bitiminde iptal edilir. now: Onaylandığı anda iptal edilir. |
Örnek cURL İsteği
curl --location 'https://example.com/api/reseller/order/cancel' \
--header 'Content-Type: application/json' \
--data '{
"key": "UzZBSlBWeWk0UEcrVWxlU0RjS1B1dz09",
"id": 1,
"reason": "Testing",
"urgency": "now"
}'
Örnek JSON Yanıtı
{
"status": "successful"
}