@blezgo/api-sdk 0.1.2 → 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (138) hide show
  1. package/dist/account/generated.d.ts +183 -183
  2. package/dist/account/generated.d.ts.map +1 -1
  3. package/dist/activity/generated.d.ts +82 -82
  4. package/dist/activity/generated.d.ts.map +1 -1
  5. package/dist/addon/generated.d.ts +88 -88
  6. package/dist/addon/generated.d.ts.map +1 -1
  7. package/dist/admin/generated.d.ts +42 -42
  8. package/dist/admin/generated.d.ts.map +1 -1
  9. package/dist/affiliate/generated.d.ts +97 -98
  10. package/dist/affiliate/generated.d.ts.map +1 -1
  11. package/dist/analytics/generated.d.ts +27 -27
  12. package/dist/analytics/generated.d.ts.map +1 -1
  13. package/dist/announcements/generated.d.ts +118 -118
  14. package/dist/announcements/generated.d.ts.map +1 -1
  15. package/dist/apikeys/generated.d.ts +46 -46
  16. package/dist/apikeys/generated.d.ts.map +1 -1
  17. package/dist/assistance/generated.d.ts +24 -24
  18. package/dist/assistance/generated.d.ts.map +1 -1
  19. package/dist/authentication/generated.d.ts +73 -73
  20. package/dist/authentication/generated.d.ts.map +1 -1
  21. package/dist/blog/generated.d.ts +142 -142
  22. package/dist/blog/generated.d.ts.map +1 -1
  23. package/dist/bundle/generated.d.ts +124 -124
  24. package/dist/bundle/generated.d.ts.map +1 -1
  25. package/dist/cache/generated.d.ts +32 -32
  26. package/dist/cache/generated.d.ts.map +1 -1
  27. package/dist/calendar/generated.d.ts +59 -59
  28. package/dist/calendar/generated.d.ts.map +1 -1
  29. package/dist/campaigns/generated.d.ts +151 -151
  30. package/dist/campaigns/generated.d.ts.map +1 -1
  31. package/dist/cart/generated.d.ts +41 -41
  32. package/dist/cart/generated.d.ts.map +1 -1
  33. package/dist/changelog/generated.d.ts +90 -90
  34. package/dist/changelog/generated.d.ts.map +1 -1
  35. package/dist/channel/generated.d.ts +256 -256
  36. package/dist/channel/generated.d.ts.map +1 -1
  37. package/dist/company/generated.d.ts +73 -73
  38. package/dist/company/generated.d.ts.map +1 -1
  39. package/dist/conference/generated.d.ts +160 -160
  40. package/dist/conference/generated.d.ts.map +1 -1
  41. package/dist/config/generated.d.ts +57 -57
  42. package/dist/config/generated.d.ts.map +1 -1
  43. package/dist/content/generated.d.ts +620 -620
  44. package/dist/content/generated.d.ts.map +1 -1
  45. package/dist/cookies/generated.d.ts +85 -85
  46. package/dist/cookies/generated.d.ts.map +1 -1
  47. package/dist/courses/generated.d.ts +381 -381
  48. package/dist/courses/generated.d.ts.map +1 -1
  49. package/dist/custom/generated.d.ts +103 -103
  50. package/dist/custom/generated.d.ts.map +1 -1
  51. package/dist/dashboard/generated.d.ts +148 -148
  52. package/dist/dashboard/generated.d.ts.map +1 -1
  53. package/dist/elasticsearch/generated.d.ts +37 -37
  54. package/dist/elasticsearch/generated.d.ts.map +1 -1
  55. package/dist/enrollments/generated.d.ts +21 -21
  56. package/dist/enrollments/generated.d.ts.map +1 -1
  57. package/dist/errors/generated.d.ts +21 -21
  58. package/dist/errors/generated.d.ts.map +1 -1
  59. package/dist/eventconfig/generated.d.ts +88 -88
  60. package/dist/eventconfig/generated.d.ts.map +1 -1
  61. package/dist/funnels/generated.d.ts +124 -125
  62. package/dist/funnels/generated.d.ts.map +1 -1
  63. package/dist/gamification/generated.d.ts +151 -151
  64. package/dist/gamification/generated.d.ts.map +1 -1
  65. package/dist/impersonation/generated.d.ts +33 -33
  66. package/dist/impersonation/generated.d.ts.map +1 -1
  67. package/dist/inbox/generated.d.ts +154 -154
  68. package/dist/inbox/generated.d.ts.map +1 -1
  69. package/dist/internal/generated.d.ts +21 -21
  70. package/dist/internal/generated.d.ts.map +1 -1
  71. package/dist/internationalization/generated.d.ts +23 -23
  72. package/dist/internationalization/generated.d.ts.map +1 -1
  73. package/dist/invitations/generated.d.ts +107 -107
  74. package/dist/invitations/generated.d.ts.map +1 -1
  75. package/dist/meetings/generated.d.ts +332 -332
  76. package/dist/meetings/generated.d.ts.map +1 -1
  77. package/dist/metas/generated.d.ts +200 -200
  78. package/dist/metas/generated.d.ts.map +1 -1
  79. package/dist/notification/generated.d.ts +279 -279
  80. package/dist/notification/generated.d.ts.map +1 -1
  81. package/dist/notifications/generated.d.ts +21 -21
  82. package/dist/notifications/generated.d.ts.map +1 -1
  83. package/dist/onboarding/generated.d.ts +95 -95
  84. package/dist/onboarding/generated.d.ts.map +1 -1
  85. package/dist/packages/generated.d.ts +77 -77
  86. package/dist/packages/generated.d.ts.map +1 -1
  87. package/dist/payments/generated.d.ts +628 -631
  88. package/dist/payments/generated.d.ts.map +1 -1
  89. package/dist/payouts/generated.d.ts +21 -21
  90. package/dist/payouts/generated.d.ts.map +1 -1
  91. package/dist/plans/generated.d.ts +405 -405
  92. package/dist/plans/generated.d.ts.map +1 -1
  93. package/dist/pricing/generated.d.ts +75 -75
  94. package/dist/pricing/generated.d.ts.map +1 -1
  95. package/dist/products/generated.d.ts +420 -420
  96. package/dist/products/generated.d.ts.map +1 -1
  97. package/dist/profile/generated.d.ts +310 -310
  98. package/dist/profile/generated.d.ts.map +1 -1
  99. package/dist/reasons/generated.d.ts +64 -64
  100. package/dist/reasons/generated.d.ts.map +1 -1
  101. package/dist/registration/generated.d.ts +163 -163
  102. package/dist/registration/generated.d.ts.map +1 -1
  103. package/dist/reviews/generated.d.ts +47 -47
  104. package/dist/reviews/generated.d.ts.map +1 -1
  105. package/dist/role/generated.d.ts +944 -446
  106. package/dist/role/generated.d.ts.map +1 -1
  107. package/dist/scheduling/generated.d.ts +76 -76
  108. package/dist/scheduling/generated.d.ts.map +1 -1
  109. package/dist/services/generated.d.ts +1119 -1119
  110. package/dist/services/generated.d.ts.map +1 -1
  111. package/dist/sessions/generated.d.ts +313 -313
  112. package/dist/sessions/generated.d.ts.map +1 -1
  113. package/dist/spaces/generated.d.ts +340 -340
  114. package/dist/spaces/generated.d.ts.map +1 -1
  115. package/dist/storefront/generated.d.ts +21 -21
  116. package/dist/storefront/generated.d.ts.map +1 -1
  117. package/dist/support/generated.d.ts +1624 -1624
  118. package/dist/support/generated.d.ts.map +1 -1
  119. package/dist/sync/generated.d.ts +176 -176
  120. package/dist/sync/generated.d.ts.map +1 -1
  121. package/dist/tenant/generated.d.ts +487 -487
  122. package/dist/tenant/generated.d.ts.map +1 -1
  123. package/dist/testimonials/generated.d.ts +86 -86
  124. package/dist/testimonials/generated.d.ts.map +1 -1
  125. package/dist/tests/generated.d.ts +456 -456
  126. package/dist/tests/generated.d.ts.map +1 -1
  127. package/dist/tokens/generated.d.ts +54 -54
  128. package/dist/tokens/generated.d.ts.map +1 -1
  129. package/dist/uploads/generated.d.ts +65 -65
  130. package/dist/uploads/generated.d.ts.map +1 -1
  131. package/dist/upsell/generated.d.ts +105 -105
  132. package/dist/upsell/generated.d.ts.map +1 -1
  133. package/dist/user/generated.d.ts +272 -527
  134. package/dist/user/generated.d.ts.map +1 -1
  135. package/dist/webinars/generated.d.ts +260 -260
  136. package/dist/webinars/generated.d.ts.map +1 -1
  137. package/package.json +1 -1
  138. package/test-commit.txt +1 -0
@@ -634,54 +634,6 @@ export interface paths {
634
634
  patch?: never;
635
635
  trace?: never;
636
636
  };
637
- "/v1/orders/{order_id}": {
638
- parameters: {
639
- query?: never;
640
- header?: never;
641
- path?: never;
642
- cookie?: never;
643
- };
644
- /**
645
- * Get Order
646
- * @description Get full details of a specific order.
647
- *
648
- * **For**: Users viewing their order details
649
- * **Purpose**: Retrieve complete order information including items, pricing, status, and payment details
650
- *
651
- * **Flow**:
652
- * 1. Validates order exists and belongs to authenticated user
653
- * 2. Fetches order details (status, amounts, dates)
654
- * 3. Fetches all order items with product details
655
- * 4. Includes payment information if available
656
- * 5. Includes coupon details if applied
657
- * 6. Returns complete order object
658
- *
659
- * **Path Parameters**: order_id (order identifier)
660
- * **Authentication**: User authentication required (no guest access for this endpoint)
661
- * **Headers**:
662
- * - Authorization: Bearer <token>
663
- *
664
- * **Response**: Complete order object with:
665
- * - Order details (id, status, amounts, dates)
666
- * - Order items (products, quantities, prices)
667
- * - Payment information
668
- * - Coupon details (if applied)
669
- * - Shipping/billing information
670
- *
671
- * **Validation**:
672
- * - Order must exist
673
- * - Order must belong to authenticated user
674
- * - Guest access not allowed (user_id required)
675
- */
676
- get: operations["getOrder"];
677
- put?: never;
678
- post?: never;
679
- delete?: never;
680
- options?: never;
681
- head?: never;
682
- patch?: never;
683
- trace?: never;
684
- };
685
637
  "/v1/orders/admin": {
686
638
  parameters: {
687
639
  query?: never;
@@ -714,7 +666,6 @@ export interface paths {
714
666
  * **Authentication**: Admin only (api_access permission)
715
667
  * **Headers**:
716
668
  * - Authorization: Bearer <admin_token>
717
- * - X-Api-Key: <api_key>
718
669
  *
719
670
  * **Response**: Paginated list of all orders with:
720
671
  * - orders: Array of order summaries with user info
@@ -764,7 +715,6 @@ export interface paths {
764
715
  * **Authentication**: Admin only (api_access permission)
765
716
  * **Headers**:
766
717
  * - Authorization: Bearer <admin_token>
767
- * - X-Api-Key: <api_key>
768
718
  *
769
719
  * **Response**: Complete order object with:
770
720
  * - Order details (id, status, amounts, dates)
@@ -788,6 +738,54 @@ export interface paths {
788
738
  patch?: never;
789
739
  trace?: never;
790
740
  };
741
+ "/v1/orders/{order_id}": {
742
+ parameters: {
743
+ query?: never;
744
+ header?: never;
745
+ path?: never;
746
+ cookie?: never;
747
+ };
748
+ /**
749
+ * Get Order
750
+ * @description Get full details of a specific order.
751
+ *
752
+ * **For**: Users viewing their order details
753
+ * **Purpose**: Retrieve complete order information including items, pricing, status, and payment details
754
+ *
755
+ * **Flow**:
756
+ * 1. Validates order exists and belongs to authenticated user
757
+ * 2. Fetches order details (status, amounts, dates)
758
+ * 3. Fetches all order items with product details
759
+ * 4. Includes payment information if available
760
+ * 5. Includes coupon details if applied
761
+ * 6. Returns complete order object
762
+ *
763
+ * **Path Parameters**: order_id (order identifier)
764
+ * **Authentication**: User authentication required (no guest access for this endpoint)
765
+ * **Headers**:
766
+ * - Authorization: Bearer <token>
767
+ *
768
+ * **Response**: Complete order object with:
769
+ * - Order details (id, status, amounts, dates)
770
+ * - Order items (products, quantities, prices)
771
+ * - Payment information
772
+ * - Coupon details (if applied)
773
+ * - Shipping/billing information
774
+ *
775
+ * **Validation**:
776
+ * - Order must exist
777
+ * - Order must belong to authenticated user
778
+ * - Guest access not allowed (user_id required)
779
+ */
780
+ get: operations["getOrder"];
781
+ put?: never;
782
+ post?: never;
783
+ delete?: never;
784
+ options?: never;
785
+ head?: never;
786
+ patch?: never;
787
+ trace?: never;
788
+ };
791
789
  "/v1/orders/admin/{order_id}/status": {
792
790
  parameters: {
793
791
  query?: never;
@@ -838,7 +836,6 @@ export interface paths {
838
836
  * **Authentication**: Admin only (api_access permission)
839
837
  * **Headers**:
840
838
  * - Authorization: Bearer <admin_token>
841
- * - X-Api-Key: <api_key>
842
839
  *
843
840
  * **Response**: Order ID and updated status
844
841
  * **Validation**:
@@ -1012,7 +1009,7 @@ export interface paths {
1012
1009
  patch?: never;
1013
1010
  trace?: never;
1014
1011
  };
1015
- "/v1/payments/transactions/{payment_id}": {
1012
+ "/v1/payments/transactions/export": {
1016
1013
  parameters: {
1017
1014
  query?: never;
1018
1015
  header?: never;
@@ -1020,16 +1017,17 @@ export interface paths {
1020
1017
  cookie?: never;
1021
1018
  };
1022
1019
  /**
1023
- * Get Transaction
1024
- * @description Get single transaction details.
1020
+ * Export Transactions
1021
+ * @description Export transactions to CSV.
1025
1022
  *
1026
- * **For**: Users viewing specific payment details
1027
- * **Purpose**: Returns detailed information about a payment
1023
+ * **For**: Users exporting their payment history
1024
+ * **Purpose**: Generates CSV export of transactions
1028
1025
  *
1029
1026
  * **Authentication**: Required (JWT token)
1030
1027
  * **Headers**: Authorization: Bearer <token>
1028
+ * **Query Params**: ?start_date=2025-01-01&end_date=2025-12-31&format=csv
1031
1029
  */
1032
- get: operations["getTransaction"];
1030
+ get: operations["listTransactionExports"];
1033
1031
  put?: never;
1034
1032
  post?: never;
1035
1033
  delete?: never;
@@ -1038,7 +1036,7 @@ export interface paths {
1038
1036
  patch?: never;
1039
1037
  trace?: never;
1040
1038
  };
1041
- "/v1/payments/transactions/export": {
1039
+ "/v1/payments/transactions/{payment_id}": {
1042
1040
  parameters: {
1043
1041
  query?: never;
1044
1042
  header?: never;
@@ -1046,17 +1044,16 @@ export interface paths {
1046
1044
  cookie?: never;
1047
1045
  };
1048
1046
  /**
1049
- * Export Transactions
1050
- * @description Export transactions to CSV.
1047
+ * Get Transaction
1048
+ * @description Get single transaction details.
1051
1049
  *
1052
- * **For**: Users exporting their payment history
1053
- * **Purpose**: Generates CSV export of transactions
1050
+ * **For**: Users viewing specific payment details
1051
+ * **Purpose**: Returns detailed information about a payment
1054
1052
  *
1055
1053
  * **Authentication**: Required (JWT token)
1056
1054
  * **Headers**: Authorization: Bearer <token>
1057
- * **Query Params**: ?start_date=2025-01-01&end_date=2025-12-31&format=csv
1058
1055
  */
1059
- get: operations["listTransactionExports"];
1056
+ get: operations["getTransaction"];
1060
1057
  put?: never;
1061
1058
  post?: never;
1062
1059
  delete?: never;
@@ -1528,7 +1525,7 @@ export interface paths {
1528
1525
  *
1529
1526
  * **Required Fields**: payment_id, company_id
1530
1527
  * **Authentication**: Required (JWT token with admin permissions)
1531
- * **Headers**: Authorization: Bearer <token>, X-Api-Key: <api_key>
1528
+ * **Headers**: Authorization: Bearer {token}
1532
1529
  * **Note**: Leave refund_amount as null for full refund
1533
1530
  */
1534
1531
  post: operations["createRefund"];
@@ -3244,37 +3241,6 @@ export interface paths {
3244
3241
  export type webhooks = Record<string, never>;
3245
3242
  export interface components {
3246
3243
  schemas: {
3247
- /** WalletCreditDebitRequest */
3248
- WalletCreditDebitRequest: {
3249
- /**
3250
- * User Id
3251
- * @description User ID to credit/debit
3252
- */
3253
- user_id: number;
3254
- /**
3255
- * Amount
3256
- * @description Amount to credit/debit
3257
- */
3258
- amount: number;
3259
- /**
3260
- * Currency
3261
- * @description Currency code (e.g., USD)
3262
- */
3263
- currency: string;
3264
- /**
3265
- * Reason
3266
- * @description Reason for credit/debit
3267
- */
3268
- reason: string;
3269
- };
3270
- StandardResponse_MergeCartResponseData_: {
3271
- [key: string]: unknown;
3272
- };
3273
- /**
3274
- * PriceType
3275
- * @enum {string}
3276
- */
3277
- PriceType: "free" | "subscription" | "onetime" | "emi";
3278
3244
  /** ProcessRefundRequest */
3279
3245
  ProcessRefundRequest: {
3280
3246
  /**
@@ -3298,146 +3264,179 @@ export interface components {
3298
3264
  */
3299
3265
  reason?: string | null;
3300
3266
  };
3301
- ErrorResponse: {
3302
- /** @example about:blank */
3303
- type?: string;
3304
- /** @example GENERIC_ERROR */
3305
- code?: string;
3306
- /** @example Client Error */
3307
- title?: string;
3308
- /** @example 400 */
3309
- status?: number;
3310
- /** @example An error occurred */
3311
- detail?: string;
3312
- /** @example /v1/cart/items */
3313
- instance?: string;
3314
- extensions?: components["schemas"]["Extensions"];
3315
- };
3316
- StandardResponse_DeleteCartItemResponseData_: {
3317
- [key: string]: unknown;
3267
+ InvalidParam: {
3268
+ /** @example items[0].quantity */
3269
+ field?: string;
3270
+ /** @example Input should be greater than or equal to 1 */
3271
+ error?: string;
3318
3272
  };
3319
- /** VerifyPaymentRequest */
3320
- VerifyPaymentRequest: {
3321
- /**
3322
- * Payment Id
3323
- * @description Blezgo payment ID
3324
- */
3325
- payment_id: string;
3273
+ /** InitPaymentRequest */
3274
+ InitPaymentRequest: {
3326
3275
  /**
3327
- * Gateway Payment Id
3328
- * @description Gateway payment/transaction ID
3276
+ * Order Id
3277
+ * @description Order ID (external order_id like ord_xxx)
3329
3278
  */
3330
- gateway_payment_id?: string | null;
3331
- };
3332
- /** AddPaymentMethodRequest */
3333
- AddPaymentMethodRequest: {
3279
+ order_id: string;
3334
3280
  /**
3335
- * Payment Method Token
3336
- * @description Payment method token from gateway
3281
+ * Company Id
3282
+ * @description Company ID
3337
3283
  */
3338
- payment_method_token: string;
3284
+ company_id: number;
3339
3285
  /**
3340
3286
  * Gateway
3341
- * @description Payment gateway (stripe, razorpay, etc)
3287
+ * @description Payment gateway (stripe, razorpay, paypal, etc)
3342
3288
  */
3343
3289
  gateway: string;
3344
- };
3345
- /**
3346
- * GuestDetails
3347
- * @description Guest customer details for checkout
3348
- */
3349
- GuestDetails: {
3350
- /**
3351
- * Email
3352
- * @description Guest email address
3353
- */
3354
- email: string;
3355
3290
  /**
3356
- * Mobile Isd Code
3357
- * @description Mobile country code (e.g., +91, +1)
3291
+ * Payment Method Id
3292
+ * @description Saved payment method ID (optional)
3358
3293
  */
3359
- mobile_isd_code: string;
3294
+ payment_method_id?: string | null;
3360
3295
  /**
3361
- * Mobile No
3362
- * @description Mobile number
3296
+ * Save Payment Method
3297
+ * @description Save this payment method for future use
3298
+ * @default false
3363
3299
  */
3364
- mobile_no: string;
3300
+ save_payment_method: boolean;
3365
3301
  /**
3366
- * First Name
3367
- * @description Guest first name
3302
+ * Coupon Code
3303
+ * @description Coupon code to apply (optional)
3368
3304
  */
3369
- first_name: string;
3305
+ coupon_code?: string | null;
3370
3306
  /**
3371
- * Last Name
3372
- * @description Guest last name
3307
+ * Return Url
3308
+ * @description URL to redirect after payment
3373
3309
  */
3374
- last_name: string;
3310
+ return_url?: string | null;
3311
+ };
3312
+ /**
3313
+ * CouponAdminCreateRequest
3314
+ * @description Admin-specific coupon creation request with optional owner parameter.
3315
+ * Allows admins to create coupons on behalf of other users.
3316
+ */
3317
+ CouponAdminCreateRequest: {
3318
+ /** Coupon Name */
3319
+ coupon_name: string;
3320
+ /** Coupon Code */
3321
+ coupon_code: string;
3322
+ /** Duration */
3323
+ duration?: string | null;
3375
3324
  /**
3376
- * Address Line1
3377
- * @description Street address, PO box, company name
3325
+ * Duration In Months
3326
+ * @default 0
3378
3327
  */
3379
- address_line1?: string | null;
3380
- /**
3381
- * Address Line2
3382
- * @description Apartment, suite, unit, building, floor, etc.
3328
+ duration_in_months: number;
3329
+ /** Amount Off */
3330
+ amount_off?: number | null;
3331
+ /** Currency */
3332
+ currency?: string | null;
3333
+ /** Percent Off */
3334
+ percent_off?: number | null;
3335
+ /**
3336
+ * Redeem From
3337
+ * @description Coupon valid from datetime (YYYY-MM-DD HH:MM:SS)
3383
3338
  */
3384
- address_line2?: string | null;
3339
+ redeem_from?: string | null;
3385
3340
  /**
3386
- * City
3387
- * @description City, district, suburb, town, or village
3341
+ * Redeem By
3342
+ * @description Coupon expiry datetime (YYYY-MM-DD HH:MM:SS)
3388
3343
  */
3389
- city?: string | null;
3344
+ redeem_by?: string | null;
3390
3345
  /**
3391
- * State
3392
- * @description State, province, prefecture, or region
3346
+ * Max Redemptions
3347
+ * @default 0
3393
3348
  */
3394
- state?: string | null;
3349
+ max_redemptions: number;
3395
3350
  /**
3396
- * Postal Code
3397
- * @description ZIP or postal code
3351
+ * Site Wide
3352
+ * @default true
3398
3353
  */
3399
- postal_code?: string | null;
3354
+ site_wide: boolean;
3355
+ /** Applies To */
3356
+ applies_to?: {
3357
+ [key: string]: unknown;
3358
+ } | null;
3359
+ /** Coupon Data */
3360
+ coupon_data?: {
3361
+ [key: string]: unknown;
3362
+ } | null;
3363
+ /** Company Id */
3364
+ company_id: number;
3365
+ /** Applicable Gateways */
3366
+ applicable_gateways: string[];
3367
+ /** Min Order Amount */
3368
+ min_order_amount?: number | null;
3400
3369
  /**
3401
- * Country
3402
- * @description Two-letter country code (ISO 3166-1 alpha-2, e.g., IN, US, GB)
3370
+ * Owner
3371
+ * @description User ID who will own the coupon (defaults to creator if not specified)
3403
3372
  */
3404
- country?: string | null;
3373
+ owner?: number | null;
3374
+ };
3375
+ /** VerifyPaymentRequest */
3376
+ VerifyPaymentRequest: {
3377
+ /**
3378
+ * Payment Id
3379
+ * @description Blezgo payment ID
3380
+ */
3381
+ payment_id: string;
3382
+ /**
3383
+ * Gateway Payment Id
3384
+ * @description Gateway payment/transaction ID
3385
+ */
3386
+ gateway_payment_id?: string | null;
3405
3387
  };
3406
3388
  /**
3407
- * InitiateTopupRequest
3408
- * @description Request model for initiating wallet top-up
3409
- *
3410
- * Example:
3411
- * {
3412
- * "amount": 1000.00,
3413
- * "company_id": 5
3389
+ * @example {
3390
+ * "status": "success",
3391
+ * "message": "Operation successful",
3392
+ * "message_code": "api_suc_20001",
3393
+ * "data": {},
3394
+ * "metadata": {
3395
+ * "timestamp": "2026-03-26T10:00:00.000Z",
3396
+ * "requestId": "07e22004-cb60-4dfc-bc9c-b6f99664dca1",
3397
+ * "traceId": "a9f1204c-bb82-41de-b234-7c3a9e120000",
3398
+ * "version": "v1",
3399
+ * "executionTime": 42,
3400
+ * "language": "en-US"
3401
+ * }
3414
3402
  * }
3415
3403
  */
3416
- InitiateTopupRequest: {
3404
+ StandardResponse: {
3405
+ /** @example success */
3406
+ status?: string;
3407
+ data?: Record<string, never> | null;
3408
+ /** @example Operation successful */
3409
+ message?: string | null;
3410
+ /** @example api_suc_20001 */
3411
+ message_code?: string | null;
3412
+ metadata?: Record<string, never> | null;
3413
+ error?: components["schemas"]["ErrorResponse"];
3414
+ };
3415
+ StandardResponse_DeleteCartItemResponseData_: {
3416
+ [key: string]: unknown;
3417
+ };
3418
+ /** CancelSubscriptionRequest */
3419
+ CancelSubscriptionRequest: {
3417
3420
  /**
3418
- * Amount
3419
- * @description Top-up amount (must be positive)
3421
+ * Cancel At Period End
3422
+ * @description Cancel at end of billing period
3423
+ * @default true
3420
3424
  */
3421
- amount: number;
3425
+ cancel_at_period_end: boolean;
3422
3426
  /**
3423
- * Company Id
3424
- * @description Company ID
3427
+ * Reason
3428
+ * @description Cancellation reason
3425
3429
  */
3426
- company_id: number;
3427
- };
3428
- StandardResponse_ClearCartResponseData_: {
3429
- [key: string]: unknown;
3430
+ reason?: string | null;
3430
3431
  };
3431
3432
  /**
3432
- * CouponAdminCreateRequest
3433
- * @description Admin-specific coupon creation request with optional owner parameter.
3434
- * Allows admins to create coupons on behalf of other users.
3433
+ * CouponBulkCreateRequest
3434
+ * @description Bulk coupon creation request - coupon_code is NOT required (auto-generated).
3435
+ * Used for creating multiple coupons with a shared prefix and rules.
3435
3436
  */
3436
- CouponAdminCreateRequest: {
3437
+ CouponBulkCreateRequest: {
3437
3438
  /** Coupon Name */
3438
3439
  coupon_name: string;
3439
- /** Coupon Code */
3440
- coupon_code: string;
3441
3440
  /** Duration */
3442
3441
  duration?: string | null;
3443
3442
  /**
@@ -3491,40 +3490,38 @@ export interface components {
3491
3490
  */
3492
3491
  owner?: number | null;
3493
3492
  };
3494
- /** CartItem */
3495
- CartItem: {
3496
- /** Product Id */
3497
- product_id: number;
3498
- /** Product Pricing Id */
3499
- product_pricing_id?: number | null;
3493
+ /** CartUpdateRequest */
3494
+ CartUpdateRequest: {
3495
+ /** Quantity */
3496
+ quantity: number;
3497
+ };
3498
+ /**
3499
+ * PriceType
3500
+ * @enum {string}
3501
+ */
3502
+ PriceType: "free" | "subscription" | "onetime" | "emi";
3503
+ /** CartItemRequest */
3504
+ CartItemRequest: {
3505
+ /** Items */
3506
+ items: components["schemas"]["CartItem"][];
3507
+ };
3508
+ /** UpdateOrderStatusRequest */
3509
+ UpdateOrderStatusRequest: {
3510
+ /** Status */
3511
+ status: string;
3512
+ };
3513
+ /** AddPaymentMethodRequest */
3514
+ AddPaymentMethodRequest: {
3500
3515
  /**
3501
- * Sub Product Id
3502
- * @default 0
3516
+ * Payment Method Token
3517
+ * @description Payment method token from gateway
3503
3518
  */
3504
- sub_product_id: number | null;
3519
+ payment_method_token: string;
3505
3520
  /**
3506
- * Quantity
3507
- * @default 1
3521
+ * Gateway
3522
+ * @description Payment gateway (stripe, razorpay, etc)
3508
3523
  */
3509
- quantity: number | null;
3510
- };
3511
- /** GuestCheckRequest */
3512
- GuestCheckRequest: {
3513
- /** Email */
3514
- email: string;
3515
- /** Mobile Isd Code */
3516
- mobile_isd_code: string;
3517
- /** Mobile No */
3518
- mobile_no: string;
3519
- };
3520
- Extensions: {
3521
- /** @example GENERIC_ERROR */
3522
- message_code?: string;
3523
- /** @example [] */
3524
- invalid_params?: components["schemas"]["InvalidParam"][];
3525
- extra_data?: Record<string, never> | null;
3526
- /** @example Detailed debug information */
3527
- debug?: string | null;
3524
+ gateway: string;
3528
3525
  };
3529
3526
  /** PriceUpdateRequest */
3530
3527
  PriceUpdateRequest: {
@@ -3541,93 +3538,117 @@ export interface components {
3541
3538
  /** Compare Price */
3542
3539
  compare_price?: number | null;
3543
3540
  };
3544
- InvalidParam: {
3545
- /** @example items[0].quantity */
3546
- field?: string;
3547
- /** @example Input should be greater than or equal to 1 */
3548
- error?: string;
3541
+ StandardResponse_CartItemDetail_: {
3542
+ [key: string]: unknown;
3543
+ };
3544
+ Extensions: {
3545
+ /** @example GENERIC_ERROR */
3546
+ message_code?: string;
3547
+ /** @example [] */
3548
+ invalid_params?: components["schemas"]["InvalidParam"][];
3549
+ extra_data?: Record<string, never> | null;
3550
+ /** @example Detailed debug information */
3551
+ debug?: string | null;
3549
3552
  };
3550
3553
  StandardResponse_CartItemResponseData_: {
3551
3554
  [key: string]: unknown;
3552
3555
  };
3553
- /** CartUpdateRequest */
3554
- CartUpdateRequest: {
3555
- /** Quantity */
3556
- quantity: number;
3557
- };
3558
- /** PriceRequest */
3559
- PriceRequest: {
3556
+ /** CreateSubscriptionRequest */
3557
+ CreateSubscriptionRequest: {
3560
3558
  /**
3561
- * Company Id
3562
- * @description Company ID for gateway configuration
3563
- * @example 1
3559
+ * Order Id
3560
+ * @description Order ID (external ord_xxx format)
3564
3561
  */
3565
- company_id: number;
3562
+ order_id: string;
3566
3563
  /**
3567
- * Product Id
3568
- * @example 132
3564
+ * Company Id
3565
+ * @description Company ID
3569
3566
  */
3570
- product_id: number;
3571
- /** @example subscription */
3572
- price_type: components["schemas"]["PriceType"];
3567
+ company_id: number;
3573
3568
  /**
3574
- * Amount
3575
- * @example 52
3569
+ * Gateway
3570
+ * @description Payment gateway (stripe, razorpay, etc)
3576
3571
  */
3577
- amount: number;
3578
- /** @example USD */
3579
- currency: components["schemas"]["Currency"];
3572
+ gateway: string;
3580
3573
  /**
3581
- * Gateway
3582
- * @example stripe
3574
+ * Payment Method Id
3575
+ * @description Saved payment method ID (optional)
3583
3576
  */
3584
- gateway?: string | null;
3577
+ payment_method_id?: string | null;
3585
3578
  /**
3586
- * Is Live
3579
+ * Save Payment Method
3580
+ * @description Save this payment method for future use
3587
3581
  * @default false
3588
- * @example false
3589
3582
  */
3590
- is_live: boolean;
3591
- /** @example month */
3592
- interval?: components["schemas"]["Interval"] | null;
3583
+ save_payment_method: boolean;
3593
3584
  /**
3594
- * Interval Count
3595
- * @example 1
3585
+ * Coupon Code
3586
+ * @description Coupon code to apply (optional)
3596
3587
  */
3597
- interval_count?: number | null;
3588
+ coupon_code?: string | null;
3598
3589
  /**
3599
- * Trial Period Days
3600
- * @default 0
3601
- * @example 0
3590
+ * Return Url
3591
+ * @description URL to redirect after payment
3602
3592
  */
3603
- trial_period_days: number | null;
3593
+ return_url?: string | null;
3594
+ };
3595
+ /** GenerateInvoiceRequest */
3596
+ GenerateInvoiceRequest: {
3604
3597
  /**
3605
- * Initial Amount
3606
- * @example 0
3598
+ * Order Id
3599
+ * @description Order ID
3607
3600
  */
3608
- initial_amount?: number | null;
3601
+ order_id: number;
3609
3602
  /**
3610
- * Compare Price
3611
- * @example 0
3603
+ * Company Id
3604
+ * @description Company ID
3612
3605
  */
3613
- compare_price?: number | null;
3606
+ company_id: number;
3607
+ };
3608
+ ErrorResponse: {
3609
+ /** @example about:blank */
3610
+ type?: string;
3611
+ /** @example GENERIC_ERROR */
3612
+ code?: string;
3613
+ /** @example Client Error */
3614
+ title?: string;
3615
+ /** @example 400 */
3616
+ status?: number;
3617
+ /** @example An error occurred */
3618
+ detail?: string;
3619
+ /** @example /v1/cart/items */
3620
+ instance?: string;
3621
+ extensions?: components["schemas"]["Extensions"];
3622
+ };
3623
+ StandardResponse_MergeCartResponseData_: {
3624
+ [key: string]: unknown;
3625
+ };
3626
+ /** GuestCheckRequest */
3627
+ GuestCheckRequest: {
3628
+ /** Email */
3629
+ email: string;
3630
+ /** Mobile Isd Code */
3631
+ mobile_isd_code: string;
3632
+ /** Mobile No */
3633
+ mobile_no: string;
3634
+ };
3635
+ /** WalletPaymentRequest */
3636
+ WalletPaymentRequest: {
3614
3637
  /**
3615
- * Object Id
3616
- * @example 0
3638
+ * Amount
3639
+ * @description Payment amount
3617
3640
  */
3618
- object_id?: number | null;
3641
+ amount: number;
3619
3642
  /**
3620
- * Module Id
3621
- * @example 0
3643
+ * Currency
3644
+ * @description Currency code (e.g., USD)
3622
3645
  */
3623
- module_id?: number | null;
3646
+ currency: string;
3624
3647
  /**
3625
- * Requires Payment Method Upfront
3626
- * @description False=Gateway-managed trial (send trial to gateway), True=App-managed trial (don't send trial to gateway)
3627
- * @default false
3628
- * @example false
3648
+ * Order Id
3649
+ * @description Order ID from order_tbl
3629
3650
  */
3630
- requires_payment_method_upfront: boolean;
3651
+ order_id: string;
3631
3652
  };
3632
3653
  /** CouponUpdateRequest */
3633
3654
  CouponUpdateRequest: {
@@ -3670,26 +3691,6 @@ export interface components {
3670
3691
  /** Min Order Amount */
3671
3692
  min_order_amount?: number | null;
3672
3693
  };
3673
- /** CartItemRequest */
3674
- CartItemRequest: {
3675
- /** Items */
3676
- items: components["schemas"]["CartItem"][];
3677
- };
3678
- /** AttachGuestDetailsRequest */
3679
- AttachGuestDetailsRequest: {
3680
- guest_details: components["schemas"]["GuestDetails"];
3681
- };
3682
- /** BuyNowRequest */
3683
- BuyNowRequest: {
3684
- /** Company Id */
3685
- company_id: number;
3686
- /** Product Id */
3687
- product_id: number;
3688
- /** Product Pricing Id */
3689
- product_pricing_id: number;
3690
- /** Quantity */
3691
- quantity: number;
3692
- };
3693
3694
  /** CouponValidateRequest */
3694
3695
  CouponValidateRequest: {
3695
3696
  /** Coupon Code */
@@ -3710,203 +3711,194 @@ export interface components {
3710
3711
  */
3711
3712
  test_mode: boolean;
3712
3713
  };
3713
- /** SavePaymentMethodRequest */
3714
- SavePaymentMethodRequest: {
3714
+ /** PriceRequest */
3715
+ PriceRequest: {
3716
+ /**
3717
+ * Company Id
3718
+ * @description Company ID for gateway configuration
3719
+ * @example 1
3720
+ */
3721
+ company_id: number;
3722
+ /**
3723
+ * Product Id
3724
+ * @example 132
3725
+ */
3726
+ product_id: number;
3727
+ /** @example subscription */
3728
+ price_type: components["schemas"]["PriceType"];
3729
+ /**
3730
+ * Amount
3731
+ * @example 52
3732
+ */
3733
+ amount: number;
3734
+ /** @example USD */
3735
+ currency: components["schemas"]["Currency"];
3715
3736
  /**
3716
3737
  * Gateway
3717
- * @description Payment gateway (stripe, razorpay, etc)
3738
+ * @example stripe
3718
3739
  */
3719
- gateway: string;
3740
+ gateway?: string | null;
3720
3741
  /**
3721
- * Gateway Payment Method Id
3722
- * @description Gateway payment method token/ID
3742
+ * Is Live
3743
+ * @default false
3744
+ * @example false
3723
3745
  */
3724
- gateway_payment_method_id: string;
3746
+ is_live: boolean;
3747
+ /** @example month */
3748
+ interval?: components["schemas"]["Interval"] | null;
3725
3749
  /**
3726
- * Card Last4
3727
- * @description Last 4 digits of card
3750
+ * Interval Count
3751
+ * @example 1
3728
3752
  */
3729
- card_last4?: string | null;
3753
+ interval_count?: number | null;
3730
3754
  /**
3731
- * Card Brand
3732
- * @description Card brand (Visa, Mastercard, etc)
3755
+ * Trial Period Days
3756
+ * @default 0
3757
+ * @example 0
3733
3758
  */
3734
- card_brand?: string | null;
3759
+ trial_period_days: number | null;
3735
3760
  /**
3736
- * Card Exp Month
3737
- * @description Card expiry month (1-12)
3761
+ * Initial Amount
3762
+ * @example 0
3738
3763
  */
3739
- card_exp_month?: number | null;
3764
+ initial_amount?: number | null;
3740
3765
  /**
3741
- * Card Exp Year
3742
- * @description Card expiry year (YYYY)
3766
+ * Compare Price
3767
+ * @example 0
3743
3768
  */
3744
- card_exp_year?: number | null;
3769
+ compare_price?: number | null;
3745
3770
  /**
3746
- * Billing Name
3747
- * @description Billing name
3771
+ * Object Id
3772
+ * @example 0
3748
3773
  */
3749
- billing_name?: string | null;
3774
+ object_id?: number | null;
3750
3775
  /**
3751
- * Billing Email
3752
- * @description Billing email
3776
+ * Module Id
3777
+ * @example 0
3753
3778
  */
3754
- billing_email?: string | null;
3779
+ module_id?: number | null;
3755
3780
  /**
3756
- * Is Default
3757
- * @description Set as default payment method
3781
+ * Requires Payment Method Upfront
3782
+ * @description False=Gateway-managed trial (send trial to gateway), True=App-managed trial (don't send trial to gateway)
3758
3783
  * @default false
3784
+ * @example false
3759
3785
  */
3760
- is_default: boolean;
3786
+ requires_payment_method_upfront: boolean;
3761
3787
  };
3762
3788
  /**
3763
- * CouponBulkCreateRequest
3764
- * @description Bulk coupon creation request - coupon_code is NOT required (auto-generated).
3765
- * Used for creating multiple coupons with a shared prefix and rules.
3789
+ * GuestDetails
3790
+ * @description Guest customer details for checkout
3766
3791
  */
3767
- CouponBulkCreateRequest: {
3768
- /** Coupon Name */
3769
- coupon_name: string;
3770
- /** Duration */
3771
- duration?: string | null;
3792
+ GuestDetails: {
3772
3793
  /**
3773
- * Duration In Months
3774
- * @default 0
3794
+ * Email
3795
+ * @description Guest email address
3775
3796
  */
3776
- duration_in_months: number;
3777
- /** Amount Off */
3778
- amount_off?: number | null;
3779
- /** Currency */
3780
- currency?: string | null;
3781
- /** Percent Off */
3782
- percent_off?: number | null;
3797
+ email: string;
3783
3798
  /**
3784
- * Redeem From
3785
- * @description Coupon valid from datetime (YYYY-MM-DD HH:MM:SS)
3799
+ * Mobile Isd Code
3800
+ * @description Mobile country code (e.g., +91, +1)
3786
3801
  */
3787
- redeem_from?: string | null;
3802
+ mobile_isd_code: string;
3788
3803
  /**
3789
- * Redeem By
3790
- * @description Coupon expiry datetime (YYYY-MM-DD HH:MM:SS)
3804
+ * Mobile No
3805
+ * @description Mobile number
3791
3806
  */
3792
- redeem_by?: string | null;
3807
+ mobile_no: string;
3793
3808
  /**
3794
- * Max Redemptions
3795
- * @default 0
3809
+ * First Name
3810
+ * @description Guest first name
3796
3811
  */
3797
- max_redemptions: number;
3812
+ first_name: string;
3798
3813
  /**
3799
- * Site Wide
3800
- * @default true
3814
+ * Last Name
3815
+ * @description Guest last name
3801
3816
  */
3802
- site_wide: boolean;
3803
- /** Applies To */
3804
- applies_to?: {
3805
- [key: string]: unknown;
3806
- } | null;
3807
- /** Coupon Data */
3808
- coupon_data?: {
3809
- [key: string]: unknown;
3810
- } | null;
3811
- /** Company Id */
3812
- company_id: number;
3813
- /** Applicable Gateways */
3814
- applicable_gateways: string[];
3815
- /** Min Order Amount */
3816
- min_order_amount?: number | null;
3817
+ last_name: string;
3817
3818
  /**
3818
- * Owner
3819
- * @description User ID who will own the coupon (defaults to creator if not specified)
3819
+ * Address Line1
3820
+ * @description Street address, PO box, company name
3820
3821
  */
3821
- owner?: number | null;
3822
- };
3823
- /** SendInvoiceRequest */
3824
- SendInvoiceRequest: {
3822
+ address_line1?: string | null;
3825
3823
  /**
3826
- * Recipient Email
3827
- * @description Email address to send invoice
3824
+ * Address Line2
3825
+ * @description Apartment, suite, unit, building, floor, etc.
3828
3826
  */
3829
- recipient_email: string;
3830
- };
3831
- /** OfflinePaymentRequest */
3832
- OfflinePaymentRequest: {
3827
+ address_line2?: string | null;
3833
3828
  /**
3834
- * Amount
3835
- * @description Payment amount
3829
+ * City
3830
+ * @description City, district, suburb, town, or village
3836
3831
  */
3837
- amount: number;
3832
+ city?: string | null;
3838
3833
  /**
3839
- * Currency
3840
- * @description Currency code (e.g., USD)
3834
+ * State
3835
+ * @description State, province, prefecture, or region
3841
3836
  */
3842
- currency: string;
3837
+ state?: string | null;
3843
3838
  /**
3844
- * Company Id
3845
- * @description Company ID
3839
+ * Postal Code
3840
+ * @description ZIP or postal code
3846
3841
  */
3847
- company_id: number;
3842
+ postal_code?: string | null;
3848
3843
  /**
3849
- * Order Id
3850
- * @description Order ID
3844
+ * Country
3845
+ * @description Two-letter country code (ISO 3166-1 alpha-2, e.g., IN, US, GB)
3851
3846
  */
3852
- order_id: string;
3847
+ country?: string | null;
3853
3848
  };
3854
- /** CouponCreateRequest */
3855
- CouponCreateRequest: {
3856
- /** Coupon Name */
3857
- coupon_name: string;
3858
- /** Coupon Code */
3859
- coupon_code: string;
3860
- /** Duration */
3861
- duration?: string | null;
3862
- /**
3863
- * Duration In Months
3864
- * @default 0
3865
- */
3866
- duration_in_months: number;
3867
- /** Amount Off */
3868
- amount_off?: number | null;
3869
- /** Currency */
3870
- currency?: string | null;
3871
- /** Percent Off */
3872
- percent_off?: number | null;
3849
+ /**
3850
+ * Interval
3851
+ * @enum {string}
3852
+ */
3853
+ Interval: "day" | "week" | "month" | "year";
3854
+ /** AttachGuestDetailsRequest */
3855
+ AttachGuestDetailsRequest: {
3856
+ guest_details: components["schemas"]["GuestDetails"];
3857
+ };
3858
+ /** OrderCreateRequest */
3859
+ OrderCreateRequest: {
3860
+ /** Company Id */
3861
+ company_id: number;
3873
3862
  /**
3874
- * Redeem From
3875
- * @description Coupon valid from datetime (YYYY-MM-DD HH:MM:SS)
3863
+ * Recovery Token
3864
+ * @description Cart recovery token from abandoned cart email link (enables recovery attribution)
3876
3865
  */
3877
- redeem_from?: string | null;
3866
+ recovery_token?: string | null;
3867
+ };
3868
+ /** SendInvoiceRequest */
3869
+ SendInvoiceRequest: {
3878
3870
  /**
3879
- * Redeem By
3880
- * @description Coupon expiry datetime (YYYY-MM-DD HH:MM:SS)
3871
+ * Recipient Email
3872
+ * @description Email address to send invoice
3881
3873
  */
3882
- redeem_by?: string | null;
3874
+ recipient_email: string;
3875
+ };
3876
+ StandardResponse_CartResponseData_: {
3877
+ [key: string]: unknown;
3878
+ };
3879
+ /** CancelOfflineOrderRequest */
3880
+ CancelOfflineOrderRequest: {
3883
3881
  /**
3884
- * Max Redemptions
3885
- * @default 0
3882
+ * User Remark
3883
+ * @description User remark for cancellation
3886
3884
  */
3887
- max_redemptions: number;
3885
+ user_remark?: string | null;
3888
3886
  /**
3889
- * Site Wide
3890
- * @default true
3887
+ * Admin Remark
3888
+ * @description Admin remark for cancellation
3891
3889
  */
3892
- site_wide: boolean;
3893
- /** Applies To */
3894
- applies_to?: {
3895
- [key: string]: unknown;
3896
- } | null;
3897
- /** Coupon Data */
3898
- coupon_data?: {
3899
- [key: string]: unknown;
3900
- } | null;
3890
+ admin_remark?: string | null;
3891
+ };
3892
+ /** BuyNowRequest */
3893
+ BuyNowRequest: {
3901
3894
  /** Company Id */
3902
3895
  company_id: number;
3903
- /** Applicable Gateways */
3904
- applicable_gateways: string[];
3905
- /** Min Order Amount */
3906
- min_order_amount?: number | null;
3907
- };
3908
- StandardResponse_CartResponseData_: {
3909
- [key: string]: unknown;
3896
+ /** Product Id */
3897
+ product_id: number;
3898
+ /** Product Pricing Id */
3899
+ product_pricing_id: number;
3900
+ /** Quantity */
3901
+ quantity: number;
3910
3902
  };
3911
3903
  /** OfflineStatusUpdateRequest */
3912
3904
  OfflineStatusUpdateRequest: {
@@ -3926,153 +3918,83 @@ export interface components {
3926
3918
  */
3927
3919
  user_remark?: string | null;
3928
3920
  };
3929
- /**
3930
- * Interval
3931
- * @enum {string}
3932
- */
3933
- Interval: "day" | "week" | "month" | "year";
3934
- /** GenerateInvoiceRequest */
3935
- GenerateInvoiceRequest: {
3936
- /**
3937
- * Order Id
3938
- * @description Order ID
3939
- */
3940
- order_id: number;
3921
+ /** OfflinePaymentRequest */
3922
+ OfflinePaymentRequest: {
3941
3923
  /**
3942
- * Company Id
3943
- * @description Company ID
3924
+ * Amount
3925
+ * @description Payment amount
3944
3926
  */
3945
- company_id: number;
3946
- };
3947
- /** CreateSubscriptionRequest */
3948
- CreateSubscriptionRequest: {
3927
+ amount: number;
3949
3928
  /**
3950
- * Order Id
3951
- * @description Order ID (external ord_xxx format)
3929
+ * Currency
3930
+ * @description Currency code (e.g., USD)
3952
3931
  */
3953
- order_id: string;
3932
+ currency: string;
3954
3933
  /**
3955
3934
  * Company Id
3956
3935
  * @description Company ID
3957
3936
  */
3958
3937
  company_id: number;
3959
- /**
3960
- * Gateway
3961
- * @description Payment gateway (stripe, razorpay, etc)
3962
- */
3963
- gateway: string;
3964
- /**
3965
- * Payment Method Id
3966
- * @description Saved payment method ID (optional)
3967
- */
3968
- payment_method_id?: string | null;
3969
- /**
3970
- * Save Payment Method
3971
- * @description Save this payment method for future use
3972
- * @default false
3973
- */
3974
- save_payment_method: boolean;
3975
- /**
3976
- * Coupon Code
3977
- * @description Coupon code to apply (optional)
3978
- */
3979
- coupon_code?: string | null;
3980
- /**
3981
- * Return Url
3982
- * @description URL to redirect after payment
3983
- */
3984
- return_url?: string | null;
3985
- };
3986
- /** InitPaymentRequest */
3987
- InitPaymentRequest: {
3988
3938
  /**
3989
3939
  * Order Id
3990
- * @description Order ID (external order_id like ord_xxx)
3940
+ * @description Order ID
3991
3941
  */
3992
3942
  order_id: string;
3993
- /**
3994
- * Company Id
3995
- * @description Company ID
3996
- */
3997
- company_id: number;
3998
- /**
3999
- * Gateway
4000
- * @description Payment gateway (stripe, razorpay, paypal, etc)
4001
- */
4002
- gateway: string;
4003
- /**
4004
- * Payment Method Id
4005
- * @description Saved payment method ID (optional)
4006
- */
4007
- payment_method_id?: string | null;
4008
- /**
4009
- * Save Payment Method
4010
- * @description Save this payment method for future use
4011
- * @default false
4012
- */
4013
- save_payment_method: boolean;
4014
- /**
4015
- * Coupon Code
4016
- * @description Coupon code to apply (optional)
4017
- */
4018
- coupon_code?: string | null;
4019
- /**
4020
- * Return Url
4021
- * @description URL to redirect after payment
4022
- */
4023
- return_url?: string | null;
4024
3943
  };
4025
- /** CancelOfflineOrderRequest */
4026
- CancelOfflineOrderRequest: {
4027
- /**
4028
- * User Remark
4029
- * @description User remark for cancellation
4030
- */
4031
- user_remark?: string | null;
3944
+ /** CouponCreateRequest */
3945
+ CouponCreateRequest: {
3946
+ /** Coupon Name */
3947
+ coupon_name: string;
3948
+ /** Coupon Code */
3949
+ coupon_code: string;
3950
+ /** Duration */
3951
+ duration?: string | null;
4032
3952
  /**
4033
- * Admin Remark
4034
- * @description Admin remark for cancellation
3953
+ * Duration In Months
3954
+ * @default 0
4035
3955
  */
4036
- admin_remark?: string | null;
4037
- };
4038
- /** UpdateOrderStatusRequest */
4039
- UpdateOrderStatusRequest: {
4040
- /** Status */
4041
- status: string;
4042
- };
4043
- /** WalletPaymentRequest */
4044
- WalletPaymentRequest: {
3956
+ duration_in_months: number;
3957
+ /** Amount Off */
3958
+ amount_off?: number | null;
3959
+ /** Currency */
3960
+ currency?: string | null;
3961
+ /** Percent Off */
3962
+ percent_off?: number | null;
4045
3963
  /**
4046
- * Amount
4047
- * @description Payment amount
3964
+ * Redeem From
3965
+ * @description Coupon valid from datetime (YYYY-MM-DD HH:MM:SS)
4048
3966
  */
4049
- amount: number;
3967
+ redeem_from?: string | null;
4050
3968
  /**
4051
- * Currency
4052
- * @description Currency code (e.g., USD)
3969
+ * Redeem By
3970
+ * @description Coupon expiry datetime (YYYY-MM-DD HH:MM:SS)
4053
3971
  */
4054
- currency: string;
3972
+ redeem_by?: string | null;
4055
3973
  /**
4056
- * Order Id
4057
- * @description Order ID from order_tbl
3974
+ * Max Redemptions
3975
+ * @default 0
4058
3976
  */
4059
- order_id: string;
4060
- };
4061
- /** OrderCreateRequest */
4062
- OrderCreateRequest: {
4063
- /** Company Id */
4064
- company_id: number;
3977
+ max_redemptions: number;
4065
3978
  /**
4066
- * Recovery Token
4067
- * @description Cart recovery token from abandoned cart email link (enables recovery attribution)
3979
+ * Site Wide
3980
+ * @default true
4068
3981
  */
4069
- recovery_token?: string | null;
3982
+ site_wide: boolean;
3983
+ /** Applies To */
3984
+ applies_to?: {
3985
+ [key: string]: unknown;
3986
+ } | null;
3987
+ /** Coupon Data */
3988
+ coupon_data?: {
3989
+ [key: string]: unknown;
3990
+ } | null;
3991
+ /** Company Id */
3992
+ company_id: number;
3993
+ /** Applicable Gateways */
3994
+ applicable_gateways: string[];
3995
+ /** Min Order Amount */
3996
+ min_order_amount?: number | null;
4070
3997
  };
4071
- /**
4072
- * Currency
4073
- * @enum {string}
4074
- */
4075
- Currency: "USD" | "INR" | "EUR" | "GBP";
4076
3998
  /**
4077
3999
  * SyncCustomerRequest
4078
4000
  * @description Request to sync customer to payment gateway
@@ -4100,50 +4022,38 @@ export interface components {
4100
4022
  */
4101
4023
  force_create: boolean;
4102
4024
  };
4025
+ /** ApplyCouponRequest */
4026
+ ApplyCouponRequest: {
4027
+ /** Coupon Code */
4028
+ coupon_code: string;
4029
+ };
4103
4030
  /**
4104
- * @example {
4105
- * "status": "success",
4106
- * "message": "Operation successful",
4107
- * "message_code": "api_suc_20001",
4108
- * "data": {},
4109
- * "metadata": {
4110
- * "timestamp": "2026-03-26T10:00:00.000Z",
4111
- * "requestId": "07e22004-cb60-4dfc-bc9c-b6f99664dca1",
4112
- * "traceId": "a9f1204c-bb82-41de-b234-7c3a9e120000",
4113
- * "version": "v1",
4114
- * "executionTime": 42,
4115
- * "language": "en-US"
4116
- * }
4031
+ * InitiateTopupRequest
4032
+ * @description Request model for initiating wallet top-up
4033
+ *
4034
+ * Example:
4035
+ * {
4036
+ * "amount": 1000.00,
4037
+ * "company_id": 5
4117
4038
  * }
4118
4039
  */
4119
- StandardResponse: {
4120
- /** @example success */
4121
- status?: string;
4122
- data?: Record<string, never> | null;
4123
- /** @example Operation successful */
4124
- message?: string | null;
4125
- /** @example api_suc_20001 */
4126
- message_code?: string | null;
4127
- metadata?: Record<string, never> | null;
4128
- error?: components["schemas"]["ErrorResponse"];
4129
- };
4130
- /** CancelSubscriptionRequest */
4131
- CancelSubscriptionRequest: {
4040
+ InitiateTopupRequest: {
4132
4041
  /**
4133
- * Cancel At Period End
4134
- * @description Cancel at end of billing period
4135
- * @default true
4042
+ * Amount
4043
+ * @description Top-up amount (must be positive)
4136
4044
  */
4137
- cancel_at_period_end: boolean;
4045
+ amount: number;
4138
4046
  /**
4139
- * Reason
4140
- * @description Cancellation reason
4047
+ * Company Id
4048
+ * @description Company ID
4141
4049
  */
4142
- reason?: string | null;
4143
- };
4144
- StandardResponse_CartItemDetail_: {
4145
- [key: string]: unknown;
4050
+ company_id: number;
4146
4051
  };
4052
+ /**
4053
+ * Currency
4054
+ * @enum {string}
4055
+ */
4056
+ Currency: "USD" | "INR" | "EUR" | "GBP";
4147
4057
  /** AdminStatusVerifyRequest */
4148
4058
  AdminStatusVerifyRequest: {
4149
4059
  /**
@@ -4157,10 +4067,97 @@ export interface components {
4157
4067
  */
4158
4068
  admin_remark?: string | null;
4159
4069
  };
4160
- /** ApplyCouponRequest */
4161
- ApplyCouponRequest: {
4162
- /** Coupon Code */
4163
- coupon_code: string;
4070
+ /** WalletCreditDebitRequest */
4071
+ WalletCreditDebitRequest: {
4072
+ /**
4073
+ * User Id
4074
+ * @description User ID to credit/debit
4075
+ */
4076
+ user_id: number;
4077
+ /**
4078
+ * Amount
4079
+ * @description Amount to credit/debit
4080
+ */
4081
+ amount: number;
4082
+ /**
4083
+ * Currency
4084
+ * @description Currency code (e.g., USD)
4085
+ */
4086
+ currency: string;
4087
+ /**
4088
+ * Reason
4089
+ * @description Reason for credit/debit
4090
+ */
4091
+ reason: string;
4092
+ };
4093
+ StandardResponse_ClearCartResponseData_: {
4094
+ [key: string]: unknown;
4095
+ };
4096
+ /** CartItem */
4097
+ CartItem: {
4098
+ /** Product Id */
4099
+ product_id: number;
4100
+ /** Product Pricing Id */
4101
+ product_pricing_id?: number | null;
4102
+ /**
4103
+ * Sub Product Id
4104
+ * @default 0
4105
+ */
4106
+ sub_product_id: number | null;
4107
+ /**
4108
+ * Quantity
4109
+ * @default 1
4110
+ */
4111
+ quantity: number | null;
4112
+ };
4113
+ /** SavePaymentMethodRequest */
4114
+ SavePaymentMethodRequest: {
4115
+ /**
4116
+ * Gateway
4117
+ * @description Payment gateway (stripe, razorpay, etc)
4118
+ */
4119
+ gateway: string;
4120
+ /**
4121
+ * Gateway Payment Method Id
4122
+ * @description Gateway payment method token/ID
4123
+ */
4124
+ gateway_payment_method_id: string;
4125
+ /**
4126
+ * Card Last4
4127
+ * @description Last 4 digits of card
4128
+ */
4129
+ card_last4?: string | null;
4130
+ /**
4131
+ * Card Brand
4132
+ * @description Card brand (Visa, Mastercard, etc)
4133
+ */
4134
+ card_brand?: string | null;
4135
+ /**
4136
+ * Card Exp Month
4137
+ * @description Card expiry month (1-12)
4138
+ */
4139
+ card_exp_month?: number | null;
4140
+ /**
4141
+ * Card Exp Year
4142
+ * @description Card expiry year (YYYY)
4143
+ */
4144
+ card_exp_year?: number | null;
4145
+ /**
4146
+ * Billing Name
4147
+ * @description Billing name
4148
+ */
4149
+ billing_name?: string | null;
4150
+ /**
4151
+ * Billing Email
4152
+ * @description Billing email
4153
+ */
4154
+ billing_email?: string | null;
4155
+ /**
4156
+ * Is Default
4157
+ * @description Set as default payment method
4158
+ * @default false
4159
+ */
4160
+ is_default: boolean;
4164
4161
  };
4165
4162
  };
4166
4163
  responses: never;
@@ -7618,16 +7615,16 @@ export interface operations {
7618
7615
  };
7619
7616
  };
7620
7617
  };
7621
- getOrder: {
7618
+ adminListOrders: {
7622
7619
  parameters: {
7623
- query?: never;
7620
+ query?: {
7621
+ page?: number;
7622
+ limit?: number;
7623
+ };
7624
7624
  header?: {
7625
7625
  authorization?: string | null;
7626
- "X-Guest-Session-ID"?: string | null;
7627
- };
7628
- path: {
7629
- order_id: string;
7630
7626
  };
7627
+ path?: never;
7631
7628
  cookie?: never;
7632
7629
  };
7633
7630
  requestBody?: never;
@@ -7820,16 +7817,15 @@ export interface operations {
7820
7817
  };
7821
7818
  };
7822
7819
  };
7823
- adminListOrders: {
7820
+ adminGetOrder: {
7824
7821
  parameters: {
7825
- query?: {
7826
- page?: number;
7827
- limit?: number;
7828
- };
7822
+ query?: never;
7829
7823
  header?: {
7830
7824
  authorization?: string | null;
7831
7825
  };
7832
- path?: never;
7826
+ path: {
7827
+ order_id: string;
7828
+ };
7833
7829
  cookie?: never;
7834
7830
  };
7835
7831
  requestBody?: never;
@@ -8022,11 +8018,12 @@ export interface operations {
8022
8018
  };
8023
8019
  };
8024
8020
  };
8025
- adminGetOrder: {
8021
+ getOrder: {
8026
8022
  parameters: {
8027
8023
  query?: never;
8028
8024
  header?: {
8029
8025
  authorization?: string | null;
8026
+ "X-Guest-Session-ID"?: string | null;
8030
8027
  };
8031
8028
  path: {
8032
8029
  order_id: string;
@@ -9439,15 +9436,17 @@ export interface operations {
9439
9436
  };
9440
9437
  };
9441
9438
  };
9442
- getTransaction: {
9439
+ listTransactionExports: {
9443
9440
  parameters: {
9444
- query?: never;
9441
+ query?: {
9442
+ start_date?: string | null;
9443
+ end_date?: string | null;
9444
+ format?: string;
9445
+ };
9445
9446
  header?: {
9446
9447
  authorization?: string | null;
9447
9448
  };
9448
- path: {
9449
- payment_id: string;
9450
- };
9449
+ path?: never;
9451
9450
  cookie?: never;
9452
9451
  };
9453
9452
  requestBody?: never;
@@ -9640,17 +9639,15 @@ export interface operations {
9640
9639
  };
9641
9640
  };
9642
9641
  };
9643
- listTransactionExports: {
9642
+ getTransaction: {
9644
9643
  parameters: {
9645
- query?: {
9646
- start_date?: string | null;
9647
- end_date?: string | null;
9648
- format?: string;
9649
- };
9644
+ query?: never;
9650
9645
  header?: {
9651
9646
  authorization?: string | null;
9652
9647
  };
9653
- path?: never;
9648
+ path: {
9649
+ payment_id: string;
9650
+ };
9654
9651
  cookie?: never;
9655
9652
  };
9656
9653
  requestBody?: never;