{
  "opencollection": "1.0.0",
  "info": {
    "name": "Qargo TMS API / Accounting Use case / Accounting API",
    "version": "1.2.0"
  },
  "items": [
    {
      "info": {
        "name": "Use case / Accounting",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "List Accounts",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/accounts",
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "Pagination cursor. Mutually exclusive with other query parameters"
              },
              {
                "name": "archived",
                "value": "",
                "type": "query",
                "description": "Filter by archived status. Omit to return all accounts."
              },
              {
                "name": "billing_entity_code",
                "value": "",
                "type": "query",
                "description": "Filter by billing entity code."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Lists accounting codes (GL / nominal codes) for the tenant, with optional filtering and pagination."
        },
        {
          "info": {
            "name": "Retrieve Account",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/accounts/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieves a single accounting code (GL / nominal code) by its ID."
        },
        {
          "info": {
            "name": "List Exchange Rates",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/exchange-rate",
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "Pagination cursor. Mutually exclusive with other query parameters"
              },
              {
                "name": "from_currency",
                "value": "",
                "type": "query",
                "description": "Filter by source currency code (ISO 4217)."
              },
              {
                "name": "to_currency",
                "value": "",
                "type": "query",
                "description": "Filter by target currency code (ISO 4217)."
              },
              {
                "name": "exchange_rate_date:gte",
                "value": "",
                "type": "query",
                "description": "Filter exchange rates on or after this date."
              },
              {
                "name": "exchange_rate_date:lte",
                "value": "",
                "type": "query",
                "description": "Filter exchange rates on or before this date."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieves a list of exchange rates with optional currency and date filters. When filtering by both from_currency and to_currency, results are returned in the requested direction regardless of how they are stored internally."
        },
        {
          "info": {
            "name": "Create An Exchange Rate",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.qargo.com/v1/accounting/exchange-rate",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Creates an exchange rate in Qargo for the given currency pair and date."
        },
        {
          "info": {
            "name": "Retrieve Purchase Credit Note",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/purchase-credit-note/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieve Purchase Credit Note"
        },
        {
          "info": {
            "name": "Update Purchase Credit Note",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.qargo.com/v1/accounting/purchase-credit-note/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update Purchase Credit Note"
        },
        {
          "info": {
            "name": "Retrieve Purchase Credit Note Documents",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/purchase-credit-note/:id/documents",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieve Purchase Credit Note Documents"
        },
        {
          "info": {
            "name": "Report Refund Status For Purchase Credit Note",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.qargo.com/v1/accounting/purchase-credit-note/:id/refund/update-status",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Report Refund Status For Purchase Credit Note"
        },
        {
          "info": {
            "name": "Retrieve Purchase Invoice",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/purchase-invoice/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieve Purchase Invoice"
        },
        {
          "info": {
            "name": "Update Purchase Invoice",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.qargo.com/v1/accounting/purchase-invoice/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update Purchase Invoice"
        },
        {
          "info": {
            "name": "Retrieve Purchase Invoice Documents",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/purchase-invoice/:id/documents",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieve Purchase Invoice Documents"
        },
        {
          "info": {
            "name": "Report Payment Status For Purchase Invoice",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.qargo.com/v1/accounting/purchase-invoice/:id/payment/update-status",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Report Payment Status For Purchase Invoice"
        },
        {
          "info": {
            "name": "Create A Sales Credit Note",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.qargo.com/v1/accounting/sales-credit-note/",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create A Sales Credit Note"
        },
        {
          "info": {
            "name": "Retrieve Sales Credit Note",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/sales-credit-note/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieve Sales Credit Note"
        },
        {
          "info": {
            "name": "Update Credit Note",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.qargo.com/v1/accounting/sales-credit-note/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update Credit Note"
        },
        {
          "info": {
            "name": "Retrieve Sales Credit Note Documents",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/sales-credit-note/:id/documents",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieve Sales Credit Note Documents"
        },
        {
          "info": {
            "name": "Report Refund Status For Sales Credit Note",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.qargo.com/v1/accounting/sales-credit-note/:id/refund/update-status",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Report Refund Status For Sales Credit Note"
        },
        {
          "info": {
            "name": "Create A Sales Invoice",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.qargo.com/v1/accounting/sales-invoice/",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Create A Sales Invoice"
        },
        {
          "info": {
            "name": "Retrieve Sales Invoice",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/sales-invoice/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieve Sales Invoice"
        },
        {
          "info": {
            "name": "Update Sales Invoice",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.qargo.com/v1/accounting/sales-invoice/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Update Sales Invoice"
        },
        {
          "info": {
            "name": "Retrieve Sales Invoice Documents",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/sales-invoice/:id/documents",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieve Sales Invoice Documents"
        },
        {
          "info": {
            "name": "Report Payment Status For Sales Invoice",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.qargo.com/v1/accounting/sales-invoice/:id/payment/update-status",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Report Payment Status For Sales Invoice"
        },
        {
          "info": {
            "name": "List Invoices/Credit Notes To Sync",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/sync-tasks",
            "params": [
              {
                "name": "billing_entity_code",
                "value": "",
                "type": "query",
                "description": "Billing entity code to filter tasks, useful if multiple billing entities are linked to the same integration"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "List Invoices/Credit Notes To Sync"
        },
        {
          "info": {
            "name": "Get Details Of Invoice/Credit Note To Sync",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/sync-tasks/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Get Details Of Invoice/Credit Note To Sync"
        },
        {
          "info": {
            "name": "Report Sync Status For Invoice/Credit Note",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.qargo.com/v1/accounting/sync-tasks/:id/update-status",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Reports the sync status for an invoice/credit note task. No billing_entity_code is required."
        },
        {
          "info": {
            "name": "List Tax Rates",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/tax-rates",
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "Pagination cursor. Mutually exclusive with other query parameters"
              },
              {
                "name": "archived",
                "value": "",
                "type": "query",
                "description": "Filter by archived status. Omit to return all tax rates."
              },
              {
                "name": "billing_entity_code",
                "value": "",
                "type": "query",
                "description": "Filter by billing entity code."
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Lists tax rates for the tenant, with optional filtering and pagination."
        },
        {
          "info": {
            "name": "Retrieve Tax Rate",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/tax-rates/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Retrieves a single tax rate by its ID."
        },
        {
          "info": {
            "name": "Download Document",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/documents/document/:id/download",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              },
              {
                "name": "direct",
                "value": "",
                "type": "query",
                "description": "Query parameter to indicate that the response should contain all the document bytes"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Download a document by its ID. You can choose to download the document directly or stream it."
        },
        {
          "info": {
            "name": "External Billing Document (Invoice/Credit-Note) Update",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.qargo.com/v1/webhook/billing-document-update",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "basic",
              "username": "{{username}}",
              "password": "{{password}}"
            }
          },
          "docs": "Update billing document metadata (invoices, credit notes) from an external accounting system.\n\nThis webhook uses **Basic Auth** (webhook credentials), not the OAuth credentials used for the API.\nContact integrations@qargo.com to request credentials.\n\nUse this endpoint to push document status changes or related metadata updates back to Qargo.\nThis is typically triggered when your external accounting system processes billing documents."
        },
        {
          "info": {
            "name": "Accounting Visibility Event",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.qargo.comhttps://<accounting-visibility-event-receiving-payload>",
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Webhook for updates to orders and trips. Subscribe to this endpoint to receive updates.\n\nNote that both support our canonical VisibilityUpdate schema,\nbut the body can also be a custom mapped format."
        },
        {
          "info": {
            "name": "List Companies (Deprecated)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/company",
            "params": [
              {
                "name": "cursor",
                "value": "",
                "type": "query",
                "description": "Pagination cursor. Mutually exclusive with other query parameters"
              },
              {
                "name": "updated_after",
                "value": "",
                "type": "query",
                "description": "Filter to fetch the companies updated after this time. Format is ISO 8601 YYYY-MM-DDTHH:MM:SSZ"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "(deprecated, use /company instead)"
        },
        {
          "info": {
            "name": "Create Company (Deprecated)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.qargo.com/v1/accounting/company",
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "(deprecated, use /company instead)"
        },
        {
          "info": {
            "name": "Get Company (Deprecated)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/company/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "(deprecated, use /company/{id} instead)"
        },
        {
          "info": {
            "name": "Update Company (Deprecated)",
            "type": "http"
          },
          "http": {
            "method": "PUT",
            "url": "https://api.qargo.com/v1/accounting/company/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "(deprecated, use /company/{id} instead)"
        },
        {
          "info": {
            "name": "Update Company (Deprecated)",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.qargo.com/v1/accounting/company/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "(deprecated, use /company/{id} instead)"
        },
        {
          "info": {
            "name": "Archive Company (Deprecated)",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://api.qargo.com/v1/accounting/company/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "Archive the company. This is a soft-delete: the company record is preserved and its `archived_customer`, `archived_subcontractor`, and `archived_buyer_or_seller` flags are set to `true` so it no longer appears in active lists.(deprecated, use /company/{id} instead)"
        },
        {
          "info": {
            "name": "Retrieve Purchase Invoice (Deprecated)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/purchase_invoice/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "(deprecated, use /purchase-invoice/{id} instead)"
        },
        {
          "info": {
            "name": "Update Purchase Invoice (Deprecated)",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.qargo.com/v1/accounting/purchase_invoice/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "(deprecated, use /purchase-invoice/{id} instead)"
        },
        {
          "info": {
            "name": "Retrieve Purchase Invoice Documents (Deprecated)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/purchase_invoice/:id/documents",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "(deprecated, use /purchase-invoice/{id}/documents instead)"
        },
        {
          "info": {
            "name": "Report Payment Status For Purchase Invoice (Deprecated)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.qargo.com/v1/accounting/purchase_invoice/:id/payment/update-status",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "(deprecated, use /purchase-invoice/{id}/payment/update-status instead)"
        },
        {
          "info": {
            "name": "Retrieve Sales Credit Note (Deprecated)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/sales_credit_note/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "(deprecated, use /sales-credit-note/{id} instead)"
        },
        {
          "info": {
            "name": "Update Credit Note (Deprecated)",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.qargo.com/v1/accounting/sales_credit_note/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "(deprecated, use /sales-credit-note/{id} instead)"
        },
        {
          "info": {
            "name": "Retrieve Sales Credit Note Documents (Deprecated)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/sales_credit_note/:id/documents",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "(deprecated, use /sales-credit-note/{id}/documents instead)"
        },
        {
          "info": {
            "name": "Report Refund Status For Sales Credit Note (Deprecated)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.qargo.com/v1/accounting/sales_credit_note/:id/refund/update-status",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "(deprecated, use /sales-credit-note/{id}/refund/update-status instead)"
        },
        {
          "info": {
            "name": "Retrieve Sales Invoice (Deprecated)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/sales_invoice/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "(deprecated, use /sales-invoice/{id} instead)"
        },
        {
          "info": {
            "name": "Update Sales Invoice (Deprecated)",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://api.qargo.com/v1/accounting/sales_invoice/:id",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "(deprecated, use /sales-invoice/{id} instead)"
        },
        {
          "info": {
            "name": "Retrieve Sales Invoice Documents (Deprecated)",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://api.qargo.com/v1/accounting/sales_invoice/:id/documents",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "(deprecated, use /sales-invoice/{id}/documents instead)"
        },
        {
          "info": {
            "name": "Report Payment Status For Sales Invoice (Deprecated)",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://api.qargo.com/v1/accounting/sales_invoice/:id/payment/update-status",
            "params": [
              {
                "name": "id",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            },
            "auth": {
              "type": "oauth2",
              "flow": "client_credentials",
              "accessTokenUrl": "/v1/auth/token",
              "credentials": {
                "clientId": "{{clientId}}",
                "clientSecret": "{{clientSecret}}"
              }
            }
          },
          "docs": "(deprecated, use /sales-invoice/{id}/payment/update-status instead)"
        }
      ]
    }
  ],
  "bundled": true
}