query

promotionPaymentOffers

List top 5 payment offers available for current product.
Arguments
Cart id of the user cart.
uid
Int
Cart uid of the user cart.
Response
success
Boolean
Success flag of get payment offers API response.
List of promotions data which are applicable on cart/product.
Query
1query promotionPaymentOffers($id: String, $uid: Int) {
2 promotionPaymentOffers(id: $id, uid: $uid) {
3 success
4 promotions {
5 application_id
6 buy_rules
7 calculate_on
8 description
9 discount_rules
10 id
11 offer_text
12 promotion_group
13 promotion_type
14 promotion_name
15 }
16 }
17}
Try it
Input Variables
1{
2 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
3 "uid": 42
4}
Response
1{
2 "promotionPaymentOffers": {
3 "success": true,
4 "promotions": [
5 {
6 "application_id": "application_id",
7 "buy_rules": {},
8 "calculate_on": "calculate_on",
9 "description": "A description",
10 "discount_rules": {},
11 "id": "08a16b83-9094-4e89-8c05-2ccadd5c1c7e",
12 "offer_text": "offer_text",
13 "promotion_group": "promotion_group",
14 "promotion_type": "promotion_type",
15 "promotion_name": "promotion_name"
16 }
17 ]
18 }
19}