{
  "opencollection": "1.0.0",
  "info": {
    "name": "Getpaid Accounts Applications API",
    "version": "v2"
  },
  "items": [
    {
      "info": {
        "name": "Applications",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Create an application",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getpaid.io/v2/applications",
            "headers": [
              {
                "name": "Getpaid-Idempotency-Key",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://auth.getpaid.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create an application initiated by the platform so the seller can start submitting their information. It can be:\n\n- `onboarding`: to create a new account for the seller and start accepting payments.\n- `change_request`: to update an existing seller account with new information.\n\nRelated webhooks:\n\n- [`application_submitted`](#tag/Onboard-sellers-webhooks/operation/application_submitted): sent when an application is submitted by a seller for review.\n- [`application_completed`](#tag/Onboard-sellers"
        },
        {
          "info": {
            "name": "Get an application",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.getpaid.io/v2/applications/:application_id",
            "params": [
              {
                "name": "application_id",
                "value": "",
                "type": "path",
                "description": "The ID of the application to retrieve."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://auth.getpaid.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieve details of an application by its ID. Both `onboarding` and `change_request` applications can be retrieved.\n"
        },
        {
          "info": {
            "name": "Refresh an application",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getpaid.io/v2/applications/:application_id/refresh",
            "headers": [
              {
                "name": "Getpaid-Idempotency-Key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "application_id",
                "value": "",
                "type": "path",
                "description": "The ID of the application to refresh."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://auth.getpaid.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Extends the lifespan of an application so the seller can continue submitting their information. Both `onboarding` and `change_request` applications can be refreshed.\n"
        },
        {
          "info": {
            "name": "Cancel an application",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getpaid.io/v2/applications/:application_id/cancel",
            "headers": [
              {
                "name": "Getpaid-Idempotency-Key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "application_id",
                "value": "",
                "type": "path",
                "description": "The ID of the application to cancel."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://auth.getpaid.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Cancels a duplicate or abandoned application. Both `onboarding` and `change_request` applications can be cancelled.\n\nApplications in `approved`, `completed`, or already `cancelled` status cannot be cancelled and return a validation error.\n\nThe response returns the updated application with `status` set to `cancelled` and the hosted flow cleared. For change requests, cancellation closes the open workflow so a new change request can be created for the same seller account.\n"
        },
        {
          "info": {
            "name": "Query applications",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.getpaid.io/v2/applications/query",
            "headers": [
              {
                "name": "Getpaid-Idempotency-Key",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "https://auth.getpaid.io/oauth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Query applications filtering, sorting and paginating results. Both `onboarding` and `change_request` applications are returned.\n\nSee [Queries](/operate/queries) for more examples and details about pagination and common query patterns.\n"
        }
      ]
    }
  ],
  "bundled": true
}