{
  "openapi": "3.0.1",
  "info": {
    "title": "EU CBAM 50-Tonne Check & VSME Supplier Data Shield",
    "description": "CBAM calculator for customs brokers and importers: 50-tonne threshold tracker, official default values vs actual emissions, certificate cost and savings, 2027 quarterly holding, plus VSME/VS supplier data (Scope 1-2, B1-B11) and value-chain cap check of customer ESG questionnaires.",
    "version": "0.1",
    "x-build-id": "4YrI316UwiMNf4yyd"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/translucent_wire~eu-cbam-vsme-compliance-shield/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-translucent_wire-eu-cbam-vsme-compliance-shield",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/translucent_wire~eu-cbam-vsme-compliance-shield/runs": {
      "post": {
        "operationId": "runs-sync-translucent_wire-eu-cbam-vsme-compliance-shield",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/translucent_wire~eu-cbam-vsme-compliance-shield/run-sync": {
      "post": {
        "operationId": "run-sync-translucent_wire-eu-cbam-vsme-compliance-shield",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "shipments": {
            "title": "CBAM shipments (any number of importers)",
            "type": "array",
            "description": "One object per import: importerName, cnCode (8 digits best), netMassTonnes, originCountryIso (2 letters), importDate (YYYY-MM-DD). Optional: shipmentRef, supplierName, actualSpecificEmissionsTCO2PerTonne and actualSefaTCO2PerTonne (from the producer's verified report), foreignCarbonPricePaidEUR (total carbon price paid abroad for this shipment)."
          },
          "reportingYear": {
            "title": "Reporting year",
            "minimum": 2026,
            "maximum": 2034,
            "type": "integer",
            "description": "Year of import. Leave empty to take it from the first import date. Sets the mark-up (10 % in 2026) and the CBAM factor (97.5 % in 2026)."
          },
          "certificatePriceEUR": {
            "title": "Certificate price (EUR) override",
            "type": "string",
            "description": "Leave empty to use the Commission's published 2026 quarterly prices (Q1 75.36, Q2 75.28, Q3 82.32; later quarters use the latest). Enter a number to test another price."
          },
          "cscf": {
            "title": "Cross-sectoral correction factor",
            "type": "string",
            "description": "Commission value for the year (1.0 in Guidance No. 4 for 2026-2030; check Implementing Decision (EU) 2026/1862). Change only if you have a different official value.",
            "default": "1.0"
          },
          "companies": {
            "title": "Supplier companies (VS / VSME data)",
            "type": "array",
            "description": "One object per company: companyName, employeeCount, countryIso, annualTurnover, currency, electricityKwh, renewableElectricityPct, fuels [{fuelType: diesel, petrol, lpg, natural_gas, heating_oil or coal; quantity; unit: litres, kWh, MWh, m3, kg or tonnes}], workplaceAccidentsCount, hoursWorked, trainingHoursTotal, optional waterWithdrawalM3, wasteTonnes, gridFactorKgPerKwh, requestingCompanyName and clientQuestionnaireItems (the questions a customer sent)."
          },
          "maxReports": {
            "title": "Maximum branded packs",
            "minimum": 0,
            "maximum": 500,
            "type": "integer",
            "description": "Branded print-ready HTML packs to create: one per importer (CBAM check, quarterly holding, supplier data-request letters) or per company (B1-B11 table, questionnaire check, response notice). Each pack is a paid event; 0 = figures only.",
            "default": 0
          },
          "brandName": {
            "title": "Your company name",
            "type": "string",
            "description": "Shown on the packs (e.g. your customs brokerage or consultancy)."
          },
          "brandLogoUrl": {
            "title": "Your logo URL (https)",
            "type": "string",
            "description": "Public https link to your logo image."
          },
          "brandColor": {
            "title": "Your brand colour",
            "type": "string",
            "description": "Hex colour like #1d4ed8."
          },
          "brandContact": {
            "title": "Your contact line",
            "type": "string",
            "description": "For example: Anna Weber, Weber Customs, anna@webercustoms.eu"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}