- EnKash Developer Portal Overview
- Payment Gateway
- Payment Gateway Overview
- Payment Gateway Sign Up
- Payment Methods
- Supported Integrations
- Payment Gateway APIs
- Web Integration
- Server to Server Integration
- Test Card Details
- Authorization
- Orders
- Payments
- Refunds
- Settlements
- Split Settlements
- E-Commerce Plugins
- Payment Links
- Payment Button
- Qr Code
- UPI Mandate
- Payment Links
- Bharat Connect (BBPS)
- About Bharat Connect
- B2B Invoicing
- Invoice
- Payment
- Financing
- Onboarding
- cdNote
- Purchase Order
- webhook-invoice
- webhook-payments
- webhook-business-onboarding
- webhook-financing
- webhook-cdNote
- Webhook Purchase Order
- Webhook Send Purchase Order Request
- Webhook Send Purchase Order Response
- Webhook Confirm Purchase Order Request
- Webhook Confirm Purchase Order Response
- Webhook Edit Purchase Order Request
- Webhook Edit Purchase Order Response
- Webhook Status Change Purchase Order Request
- Webhook Status Change Purchase Order Response
- Bill Payments
- Payouts
- Accounts Payable Management Tool
- Account Receivable
- Expense Management
- Loyalty
- Card Management
- Verification Suite
Get Cart for User
Developing
GET
/api/v0/cart
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Query Params
product
stringÂ
required
Example:
VOUCHER
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request GET '/api/v0/cart?product=VOUCHER'
Responses
🟢200Success
application/json
Body
payload
array [object {12}]Â
required
id
integerÂ
optional
ekUserId
stringÂ
optional
productCatalogId
stringÂ
optional
name
stringÂ
optional
logoUrl
stringÂ
optional
items
objectÂ
optional
totalQuantity
integerÂ
optional
totalAmount
integerÂ
optional
totalSavings
integerÂ
optional
termsAndCondition
stringÂ
optional
productConfigs
array [object {6}]Â
optional
howToRedeem
stringÂ
optional
response_code
integerÂ
required
response_message
stringÂ
required
Example
{
"payload": [
{
"id": 2133,
"ekUserId": "EK8IHN4B",
"productCatalogId": "PC235129857G58ZX",
"name": "Myntra Test",
"logoUrl": "https://imagedelivery.net/7zckf4ay8vHyPu-s4kSwMA/1ed1458b-5541-4f25-d5a3-67f18db42800/public",
"items": {
"PCN724771408NCGasd": {
"productConfigId": "PCN724771408NCGasd",
"mrp": 100,
"sellRate": 100,
"enkashDiscount": 0,
"savings": 0,
"quantity": 2,
"total": 200
}
},
"totalQuantity": 2,
"totalAmount": 200,
"totalSavings": 0,
"termsAndCondition": "This is Sample Test Product",
"productConfigs": [
{
"productConfigId": "PCN155416196E3971",
"mrp": 250,
"sellRate": 250,
"enkashDiscount": 0,
"maxQuantity": 30,
"customAmountEnabled": false
},
{
"productConfigId": "PCN907270990HasdK26M",
"mrp": 1000,
"sellRate": 1000,
"enkashDiscount": 0,
"maxQuantity": 30,
"customAmountEnabled": false
},
{
"productConfigId": "PCN724771408NCGasd",
"mrp": 100,
"sellRate": 100,
"enkashDiscount": 0,
"maxQuantity": 30,
"customAmountEnabled": false
},
{
"productConfigId": "PCN5915678VIB1A121",
"mrp": 500,
"sellRate": 500,
"enkashDiscount": 0,
"maxQuantity": 30,
"customAmountEnabled": false
}
],
"howToRedeem": "This is Sample Test Product"
}
],
"response_code": 0,
"response_message": "Success"
}
Modified at 2024-09-02 11:58:39