{
  "opencollection": "1.0.0",
  "info": {
    "name": "Fast ACCOUNT_COSTS PAYMENT API",
    "version": "0.1.0"
  },
  "items": [
    {
      "info": {
        "name": "PAYMENT",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create Checkout Session",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.myaltimate.com/payment/checkout",
            "headers": [
              {
                "name": "x-tenant",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Creates a Checkout Session\n:param db: The database session for accessing the database.\n:param auth: The authorization token for the request.\n:return: checkout session url."
        },
        {
          "info": {
            "name": "Get User Credits",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.myaltimate.com/payment/credits",
            "headers": [
              {
                "name": "x-tenant",
                "value": ""
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Fetches the spent and total credits for a user\n:param db: The database session for accessing the database.\n:param tenant: The current tenant\n:param auth: The authorization token for the request.\n:return: UserCreditsResponse."
        },
        {
          "info": {
            "name": "Update User Credits Post Checkout",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.myaltimate.com/payment/checkout/update",
            "headers": [
              {
                "name": "x-tenant",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Updates the user credits post checkout\n:param db: The database session for accessing the database.\n:param tenant: The current tenant\n:param auth: The authorization token for the request.\n:return: StandardResponse."
        },
        {
          "info": {
            "name": "Downgrade Subscription",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.myaltimate.com/payment/downgrade",
            "headers": [
              {
                "name": "x-tenant",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Downgrades the user subscription\n:param db: The database session for accessing the database.\n:param tenant: The current tenant\n:param auth: The authorization token for the request.\n:return: StandardResponse."
        },
        {
          "info": {
            "name": "Downgrade Subscription Feedback",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.myaltimate.com/payment/downgrade/feedback",
            "headers": [
              {
                "name": "x-tenant",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Downgrade Subscription Feedback"
        },
        {
          "info": {
            "name": "Cancel Scheduled Downgrade",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.myaltimate.com/payment/downgrade/cancel",
            "headers": [
              {
                "name": "x-tenant",
                "value": ""
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Cancel Scheduled Downgrade"
        },
        {
          "info": {
            "name": "Get All Plans",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.myaltimate.com/payment/plans/:tenure",
            "headers": [
              {
                "name": "x-tenant",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "tenure",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Fetches the all plans details\n:param db: The database session for accessing the database.\n:param tenant: The current tenant\n:param auth: The authorization token for the request.\n:return: UserCreditsResponse."
        },
        {
          "info": {
            "name": "Subscribe To Free Plan",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.myaltimate.com/payment/create",
            "headers": [
              {
                "name": "x-tenant",
                "value": ""
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Subscribe To Free Plan"
        },
        {
          "info": {
            "name": "Create Enterprise Plan",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.myaltimate.com/payment/enterprise",
            "headers": [
              {
                "name": "x-tenant",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Creates an enterprise plan"
        },
        {
          "info": {
            "name": "Update Enterprise Plan",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.myaltimate.com/payment/enterprise/update",
            "headers": [
              {
                "name": "x-tenant",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update an enterprise plan"
        },
        {
          "info": {
            "name": "Get Token Usage",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.myaltimate.com/payment/token-usage",
            "headers": [
              {
                "name": "x-tenant",
                "value": ""
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Token usage for UI progress bar."
        },
        {
          "info": {
            "name": "Create Wallet Deposit",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.myaltimate.com/payment/wallet/deposit",
            "headers": [
              {
                "name": "x-tenant",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Create a Stripe Checkout session for a one-time wallet deposit."
        },
        {
          "info": {
            "name": "Confirm Wallet Deposit",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.myaltimate.com/payment/wallet/deposit/confirm",
            "headers": [
              {
                "name": "x-tenant",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Confirm a wallet deposit after Stripe Checkout redirect."
        },
        {
          "info": {
            "name": "Get Wallet Info",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.myaltimate.com/payment/wallet",
            "headers": [
              {
                "name": "x-tenant",
                "value": ""
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get wallet state for the UI."
        },
        {
          "info": {
            "name": "Update Wallet Settings",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.myaltimate.com/payment/wallet/settings",
            "headers": [
              {
                "name": "x-tenant",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Update wallet settings. Owner only."
        },
        {
          "info": {
            "name": "Get Wallet Transaction History",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.myaltimate.com/payment/wallet/transactions",
            "headers": [
              {
                "name": "x-tenant",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "limit",
                "value": "",
                "type": "query"
              },
              {
                "name": "offset",
                "value": "",
                "type": "query"
              }
            ],
            "auth": {
              "type": "bearer",
              "token": "{{bearerToken}}"
            }
          },
          "docs": "Get paginated wallet transaction history."
        }
      ]
    }
  ],
  "bundled": true
}