{
  "opencollection": "1.0.0",
  "info": {
    "name": "AKASH - gRPC Gateway docs Addresses Payment API",
    "version": "1.0.0"
  },
  "items": [
    {
      "info": {
        "name": "Payment",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Get available Stripe pricing options",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/stripe/prices"
          },
          "docs": "Retrieves the list of available pricing options for wallet top-ups, including custom amounts and standard pricing tiers"
        },
        {
          "info": {
            "name": "Apply a coupon to the current user",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/stripe/coupons/apply",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Apply a coupon to the current user"
        },
        {
          "info": {
            "name": "Update customer organization",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "{{baseUrl}}/v1/stripe/customers/organization",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the organization/business name for the current user's Stripe customer account"
        },
        {
          "info": {
            "name": "Create a Stripe SetupIntent for adding a payment method",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/stripe/payment-methods/setup"
          },
          "docs": "Creates a Stripe SetupIntent that allows users to securely add payment methods to their account. The SetupIntent provides a client secret that can be used with Stripe's frontend SDKs to collect payment method details."
        },
        {
          "info": {
            "name": "Get the default payment method for the current user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/stripe/payment-methods/default"
          },
          "docs": "Retrieves the default payment method associated with the current user's account, including card details, validation status, and billing information."
        },
        {
          "info": {
            "name": "Marks a payment method as the default.",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/stripe/payment-methods/default",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Marks a payment method as the default."
        },
        {
          "info": {
            "name": "Get all payment methods for the current user",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/stripe/payment-methods"
          },
          "docs": "Retrieves all saved payment methods associated with the current user's account, including card details, validation status, and billing information."
        },
        {
          "info": {
            "name": "Remove a payment method",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "{{baseUrl}}/v1/stripe/payment-methods/:paymentMethodId",
            "params": [
              {
                "name": "paymentMethodId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Permanently removes a saved payment method from the user's account. This action cannot be undone."
        },
        {
          "info": {
            "name": "Validates a payment method after 3D Secure authentication",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/stripe/payment-methods/validate",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Completes the validation process for a payment method that required 3D Secure authentication. This endpoint should be called after the user completes the 3D Secure challenge."
        },
        {
          "info": {
            "name": "Confirm a payment using a saved payment method",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "{{baseUrl}}/v1/stripe/transactions/confirm",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Processes a payment using a previously saved payment method. This endpoint handles wallet top-ups and may require 3D Secure authentication for certain payment methods or amounts."
        },
        {
          "info": {
            "name": "Get transaction history for the current customer",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/stripe/transactions",
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "startingAfter",
                "value": "",
                "type": "query"
              },
              {
                "name": "endingBefore",
                "value": "",
                "type": "query"
              },
              {
                "name": "startDate",
                "value": "",
                "type": "query"
              },
              {
                "name": "endDate",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Get transaction history for the current customer"
        },
        {
          "info": {
            "name": "Export transaction history as CSV for the current customer",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "{{baseUrl}}/v1/stripe/transactions/export",
            "params": [
              {
                "name": "timezone",
                "value": "",
                "type": "query"
              },
              {
                "name": "startDate",
                "value": "",
                "type": "query"
              },
              {
                "name": "endDate",
                "value": "",
                "type": "query"
              }
            ]
          },
          "docs": "Export transaction history as CSV for the current customer"
        }
      ]
    }
  ],
  "bundled": true
}