API

Bonus ekle veya düş

POST/api/crm/v2/clients_bonuses.addv2
operationId: clientsBonuses.add

Manuel bonus ekleme (type=accrual) veya bonus çekme (type=withdraw) işlemini gerçekleştirir: mode=one ile — phone_format_id ve phone_number üzerinden tek bir müşteriye, mode=all ile — gerekirse gender filtresiyle tüm ağ müşterilerine uygulanır. Tarihler, satış noktasının saat dilimine göre UTC'ye çevrilir. Sistem otomasyonu etkin olduğunda kullanılamaz; müşterinin bonusları etkin olmalıdır. Toplu ekleme işlemi, işlem yapılamayan telefonlar için not_accrualed_for_phones döndürür.

Yetkilendirme

api-token + language + role

İstek gövdesi application/json

object
modestringzorunlu

Değerler:oneall

typestringzorunlu

Değerler:accrualwithdraw

chain_idintegerzorunlu

Örnek: 7124

date_availablestring (DataTimeFormat)

Örnek: 17:45 06/05/2024

date_expirationstring (DataTimeFormat)

Örnek: 17:45 06/05/2024

descriptionstring

type=accrual için

sumnumberzorunlu

Örnek: 125.5

phone_format_idinteger (PhoneFormatId)

Ülke kodu: 1-🇷🇺(+7|8), 2-🇦🇿(+994|0), 3-🇧🇾(+375|80), 4-🇰🇿(+7|8), 6-🇷🇸(+381|0), 7-🇹🇷(+90|0), 8-🇺🇦(+380|0), 9-🇵🇹(+351|0), 10-🇰🇬(+996|0), 11-🇺🇸(+1), 12-🇫🇷(+33|0), 13-🇲🇩(+373|0), 15-🇪🇪(+372), 18-🇬🇪(+995), 19-🇺🇿(+998), 22-🇵🇱(+48|0), 23-🇹🇯(+992|8), 25-🇷🇴(+40|0), 44-🇨🇭(+41|0)

Örnek: 1

phone_numberstring

mode=one için

Örnek: 999-999-99-99

genderstring

mode=all için

Değerler:manwoman

Yanıtlar

OK

object
statusstringzorunlu

Değerler:successerror

Örnek: success

dataobject