{
  "opencollection": "1.0.0",
  "info": {
    "name": "Vic.ai Accounts Credit Confirmations API",
    "version": "v10.40.4"
  },
  "request": {
    "auth": {
      "type": "bearer",
      "token": "{{bearerToken}}"
    }
  },
  "items": [
    {
      "info": {
        "name": "Credit Confirmations",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Confirm a credit",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.no.stage.vic.ai/v0/credits/:id/confirm",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The id of the credit."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Confirms a single credit by setting the `confirmedAt` timestamp and\noptionally setting a `remoteId`. This is used to mark a credit as\nconfirmed in an external system.\n"
        },
        {
          "info": {
            "name": "Bulk confirm credits",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.no.stage.vic.ai/v0/credits/confirm",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Bulk confirms multiple credits in a single request. Each credit in the\nrequest body must include an `id`, `confirmedAt` timestamp, and\noptionally a `remoteId`.\n\nIf a credit is not found, the entire bulk confirmation is aborted.\n"
        },
        {
          "info": {
            "name": "Mark credit as failed",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.no.stage.vic.ai/v0/credits/:id/fail",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The id of the credit."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Marks a credit as having a remote error by setting the `remoteErroredAt`\ntimestamp and `remoteError` message. Optionally sets a `remoteId`. This\nclears any existing `confirmedAt` timestamp.\n\n**Note**: When providing an error, please provide a clear error message\nthat the user can understand.\n"
        },
        {
          "info": {
            "name": "Bulk fail credits",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.no.stage.vic.ai/v0/credits/fail",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Bulk marks multiple credits as having remote errors in a single request.\nEach credit in the request body must include an `id`, `remoteErroredAt`\ntimestamp, `remoteError` message, and optionally a `remoteId`.\n\n**Note**: When providing an error, please provide a clear error message\nthat the user can understand.\n\nIf a credit is not found, the entire bulk operation is aborted.\n"
        },
        {
          "info": {
            "name": "Confirm a credit",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.no.stage.vic.ai/v2/companies/:company_id/credits/:id/confirm",
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "The ID of the company"
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The id of the credit."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Confirms a single credit by setting the `confirmed_at` timestamp and\noptionally setting a `remote_id`. This is used to mark a credit as\nconfirmed in an external system.\n"
        },
        {
          "info": {
            "name": "Bulk confirm credits",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.no.stage.vic.ai/v2/companies/:company_id/credits/confirm",
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "The ID of the company"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Bulk confirms multiple credits in a single request. Each credit in the\nrequest body must include an `id`, `confirmed_at` timestamp, and\noptionally a `remote_id`.\n\nIf a credit is not found, the entire bulk confirmation is aborted.\n"
        },
        {
          "info": {
            "name": "Mark credit as failed",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.no.stage.vic.ai/v2/companies/:company_id/credits/:id/fail",
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "The ID of the company"
              },
              {
                "name": "id",
                "value": "",
                "type": "path",
                "description": "The id of the credit."
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Marks a credit as having a remote error by setting the `remote_errored_at`\ntimestamp and `remote_error` message. Optionally sets a `remote_id`. This\nclears any existing `confirmed_at` timestamp.\n\n**Note**: When providing an error, please provide a clear error message\nthat the user can understand.\n"
        },
        {
          "info": {
            "name": "Bulk fail credits",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.no.stage.vic.ai/v2/companies/:company_id/credits/fail",
            "params": [
              {
                "name": "company_id",
                "value": "",
                "type": "path",
                "description": "The ID of the company"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Bulk marks multiple credits as having remote errors in a single request.\nEach credit in the request body must include an `id`, `remote_errored_at`\ntimestamp, `remote_error` message, and optionally a `remote_id`.\n\n**Note**: When providing an error, please provide a clear error message\nthat the user can understand.\n\nIf a credit is not found, the entire bulk operation is aborted.\n"
        }
      ]
    }
  ],
  "bundled": true
}