Payment

Create a Stripe SetupIntent for adding a payment method

Changed on

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.

post/v1/stripe/payment-methods/setup

Request

  • Base URL
    https://console-api-sandbox.akash.network
  • URL
    https://console-api-sandbox.akash.network/v1/stripe/payment-methods/setup
  • Auth
    • HTTP bearer
    • or API key in header x-api-key

Query parameters

cardOnly'true' | 'false'

Set to true to allow only a card on the SetupIntent. By default it also allows Link.

Example:true

Headers

x-organization-idstring

Id or slug of the organization the request runs in. Defaults to the organization used last, or the caller's personal one. Answers 403 organization_forbidden when the caller is not a member, and 400 organization_mismatch when it names another organization than the API key's.

x-project-idstring uuid

Id of a project of the active organization to limit the request to. Answers 403 project_forbidden when the caller cannot reach the project, or the API key is limited to another one.

Response

SetupIntent created successfully with client secret

Changes

    • info

      added the new optional query request parameter cardOnly

    • info

      added the new optional header request parameter x-organization-id

    • info

      added the new optional header request parameter x-project-id

    • info

      added the non-success response with the status