Date campanie cupoane - celdotro/marketplace GitHub Wiki
- Datele aferente unei campanii de cupoane
celmarket\Campaigns\CampaignsInfo
getCouponCampaign
- metoda: Coupons
- actiune: getCouponCampaign
- campaignId = ID-ul campaniei
Un obiect cu urmatoarele atribute
- details = detalii
- description = descrierea campaniei
- discountType = tipul de discount
- value = valoarea cuponului
- minOrder = comanda minima
- totalUtilize = numarul total de utilizari
- userUtilize = numarul total de utilizatori pe utilizator
- dateStart = data de inceput
- dateEnd = data de sfarsit
- domainRestriction = restrictie pe domeniu
- productRestrictions = restrictii pe produs
- active = este activa
- name = numele campaniei
- restrictions = restrictii
- category = restrictii categorie -> array
- manufacturer = producator -> array
- product = produse -> array
- coupons = cupoane -> array
- (element din array) = cupon
- coupon_id = ID-ul cuponului
- campaign_id = ID-ul campaniei
- coupon_code = codul cuponului
- status = statusul cuponului
- added = data adaugarii
- custom_amount = suma personalizata
- custom_expire = expirare personalizata
- customers_restriction = restrictii clienti
- customers_id = ID-ul clientului
- uses = utilizari
- (element din array) = cupon
https://github.com/celdotro/marketplace_examples/blob/master/Campaigns/10.getCouponCampaign.php
{
"request": {
"campaignId": 1
},
"response": {
"details": {
"description": "X",
"discountType": "X",
"value": 1,
"minOrder": 1,
"totalUtilize": 1,
"userUtilize": 1,
"dateStart": "X",
"dateEnd": "X",
"domainRestriction": "X",
"productRestrictions":[],
"active": 0,
"name": "X"
},
"restrictions": {
"category": [],
"manufacturer": [],
"product": []
},
"coupons":[
{
"coupon_id": 1,
"campaign_id": 1,
"coupon_code": "X",
"status": 0,
"added": "X",
"custom_amount": 1,
"custom_expire": "X",
"customers_restriction": 0,
"customers_id": 0,
"uses": 1
}
]
}
}