query

posPaymentModeRoutes

Get available payment methods on the payment page for POS, specifying the aggregator for each option, such as 'CARD powered by Juspay' and 'QR powered by Razorpay'.
Arguments
amount
Int!
Required
Payable amount.
cartId
String!
Required
Identifier of the cart.
checkoutMode
String!
Required
Option to checkout for self or for others.
orderType
String!
Required
The order type of shipment HomeDelivery - If the customer wants the order home-delivered PickAtStore - If the customer wants the handover of an order at the store itself.
pincode
String!
Required
The PIN Code of the destination address, e.g. 400059.
cardreference
String
Card reference id of user's debit or credit card.
refresh
Boolean
Select `true` to remove temporary cache files on payment gateway and replace with the latest one.
userDetails
String
URLencoded JSON containing details of an anonymous user.
Response
payment_options
PaymentOptionDetails!
Required
Payment option and flow object.
success
Boolean!
Required
Response is successful or not.
payment_breakup
JSON
Payment Breakup for advance payment.
advance_payment
[AdvancePaymentObject]
Advance Payment Array.
Query
1query posPaymentModeRoutes(
2 $amount: Int!
3 $cartId: String!
4 $checkoutMode: String!
5 $orderType: String!
6 $pincode: String!
7 $cardreference: String
8 $refresh: Boolean
9 $userDetails: String
10) {
11 posPaymentModeRoutes(
12 amount: $amount
13 cartId: $cartId
14 checkoutMode: $checkoutMode
15 orderType: $orderType
16 pincode: $pincode
17 cardreference: $cardreference
18 refresh: $refresh
19 userDetails: $userDetails
20 ) {
21 success
22 payment_breakup
23 advance_payment {
24 name
25 display_priority
26 payment_mode_id
27 display_name
28 }
29 }
30}
Try it
Input Variables
1{
2 "amount": 42,
3 "cartId": "cartId",
4 "checkoutMode": "checkoutMode",
5 "orderType": "orderType",
6 "pincode": "pincode",
7 "cardreference": "cardreference",
8 "refresh": true,
9 "userDetails": "userDetails"
10}
Response
1{
2 "posPaymentModeRoutes": {
3 "success": true,
4 "payment_breakup": {},
5 "advance_payment": [
6 {
7 "name": "A name",
8 "display_priority": 42,
9 "payment_mode_id": 42,
10 "display_name": "display_name"
11 }
12 ]
13 }
14}