{
  "openapi": "3.0.1",
  "info": {
    "title": "Metraskeld Quote Intelligence",
    "description": "Compare 2–5 supplier quotes, audit pricing, detect missing items and identify potential savings. Structured decision intelligence for AI agents, procurement teams and automated workflows. API & MCP integration. No automatic purchasing.",
    "version": "0.37",
    "x-build-id": "yn63khQJIWCsOImSV"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hushed_saddlebag~metraskeld-quote-intelligence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hushed_saddlebag-metraskeld-quote-intelligence",
        "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/hushed_saddlebag~metraskeld-quote-intelligence/runs": {
      "post": {
        "operationId": "runs-sync-hushed_saddlebag-metraskeld-quote-intelligence",
        "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/hushed_saddlebag~metraskeld-quote-intelligence/run-sync": {
      "post": {
        "operationId": "run-sync-hushed_saddlebag-metraskeld-quote-intelligence",
        "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",
        "required": [
          "demande",
          "devis"
        ],
        "properties": {
          "demande": {
            "title": "Purchase request",
            "required": [
              "devise",
              "tva_recuperable",
              "lignes"
            ],
            "type": "object",
            "description": "Purchase request with exact references, quantities, units and currency. Replace the fictional sample with verified values.",
            "properties": {
              "client": {
                "type": "string",
                "description": "Declared source text.",
                "minLength": 1,
                "maxLength": 200,
                "title": "Client"
              },
              "devise": {
                "type": "string",
                "description": "Same declared currency for every offer; no conversion.",
                "enum": [
                  "EUR",
                  "USD",
                  "GBP"
                ],
                "title": "Devise"
              },
              "tva_recuperable": {
                "description": "Only recoverable VAT B2B purchases supported.",
                "title": "Tva recuperable",
                "type": "boolean"
              },
              "lignes": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "reference": {
                      "type": "string",
                      "description": "Exact product reference, ASCII; do not substitute.",
                      "pattern": "^[A-Za-z0-9][A-Za-z0-9._/-]{1,63}$",
                      "title": "Reference"
                    },
                    "description": {
                      "type": "string",
                      "description": "Declared source text.",
                      "minLength": 1,
                      "maxLength": 200,
                      "title": "Description"
                    },
                    "quantite": {
                      "type": "string",
                      "description": "Exact nonnegative decimal string, dot separator, maximum four decimals. Do not estimate.",
                      "pattern": "^(0|[1-9][0-9]{0,12})(\\.[0-9]{1,4})?$",
                      "maxLength": 18,
                      "title": "Quantite"
                    },
                    "unite": {
                      "type": "string",
                      "description": "Declared unit; no implicit conversions.",
                      "enum": [
                        "piece",
                        "kg",
                        "m",
                        "m2",
                        "l",
                        "lot"
                      ],
                      "title": "Unite"
                    }
                  },
                  "required": [
                    "reference",
                    "description",
                    "quantite",
                    "unite"
                  ],
                  "additionalProperties": false
                },
                "minItems": 1,
                "maxItems": 100,
                "title": "Lignes",
                "description": "Lignes"
              }
            },
            "additionalProperties": false
          },
          "devis": {
            "title": "Supplier quotations",
            "minItems": 2,
            "maxItems": 5,
            "type": "array",
            "description": "Two to five structured supplier quotes in the same currency. Replace the fictional sample. Use UNKNOWN for explicitly unknown supported fields; never invent zero.",
            "items": {
              "type": "object",
              "properties": {
                "fournisseur": {
                  "type": "string",
                  "description": "Declared source text.",
                  "minLength": 1,
                  "maxLength": 200,
                  "title": "Fournisseur"
                },
                "devis_id": {
                  "type": "string",
                  "description": "Declared source text.",
                  "minLength": 1,
                  "maxLength": 200,
                  "title": "Devis id"
                },
                "date": {
                  "type": "string",
                  "description": "ISO calendar date as printed on the quote.",
                  "title": "Date"
                },
                "valable_jusquau": {
                  "type": "string",
                  "description": "ISO calendar date as printed on the quote.",
                  "title": "Valable jusquau"
                },
                "devise": {
                  "type": "string",
                  "description": "Same declared currency for every offer; no conversion.",
                  "enum": [
                    "EUR",
                    "USD",
                    "GBP"
                  ],
                  "title": "Devise"
                },
                "livraison_ht": {
                  "type": "string",
                  "description": "Exact nonnegative decimal string, dot separator, maximum four decimals. Do not estimate. Use UNKNOWN for explicitly unknown value; never invent zero.",
                  "pattern": "(?:^(0|[1-9][0-9]{0,12})(\\.[0-9]{1,4})?$)|^UNKNOWN$",
                  "maxLength": 18,
                  "title": "Livraison ht"
                },
                "delai_jours": {
                  "type": "string",
                  "description": "Confirmed days as integer string, or null. Use UNKNOWN for explicitly unknown value; never invent zero.",
                  "pattern": "(?:^[0-9]{1,4}$)|^UNKNOWN$",
                  "title": "Delai jours",
                  "maxLength": 18
                },
                "total_ht_annonce": {
                  "type": "string",
                  "description": "Exact nonnegative decimal string, dot separator, maximum four decimals. Do not estimate. Use UNKNOWN for explicitly unknown value; never invent zero.",
                  "pattern": "(?:^(0|[1-9][0-9]{0,12})(\\.[0-9]{1,4})?$)|^UNKNOWN$",
                  "maxLength": 18,
                  "title": "Total ht annonce"
                },
                "remise_non_prise_en_compte": {
                  "type": "boolean",
                  "description": "True if any pricing term is unmodelled or unclear; never assume false.",
                  "title": "Remise non prise en compte"
                },
                "remise_globale_pourcent": {
                  "type": "string",
                  "description": "Exact nonnegative decimal string, dot separator, maximum four decimals. Do not estimate.",
                  "pattern": "^(0|[1-9][0-9]{0,12})(\\.[0-9]{1,4})?$",
                  "maxLength": 18,
                  "title": "Remise globale pourcent"
                },
                "lignes": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "reference": {
                        "type": "string",
                        "description": "Exact product reference, ASCII; do not substitute.",
                        "pattern": "^[A-Za-z0-9][A-Za-z0-9._/-]{1,63}$",
                        "title": "Reference"
                      },
                      "description": {
                        "type": "string",
                        "description": "Declared source text.",
                        "minLength": 1,
                        "maxLength": 200,
                        "title": "Description"
                      },
                      "quantite": {
                        "type": "string",
                        "description": "Exact nonnegative decimal string, dot separator, maximum four decimals. Do not estimate.",
                        "pattern": "^(0|[1-9][0-9]{0,12})(\\.[0-9]{1,4})?$",
                        "maxLength": 18,
                        "title": "Quantite"
                      },
                      "unite": {
                        "type": "string",
                        "description": "Declared unit; no implicit conversions.",
                        "enum": [
                          "piece",
                          "kg",
                          "m",
                          "m2",
                          "l",
                          "lot"
                        ],
                        "title": "Unite"
                      },
                      "prix_unitaire_ht": {
                        "type": "string",
                        "description": "Exact nonnegative decimal string, dot separator, maximum four decimals. Do not estimate.",
                        "pattern": "^(0|[1-9][0-9]{0,12})(\\.[0-9]{1,4})?$",
                        "maxLength": 18,
                        "title": "Prix unitaire ht"
                      },
                      "total_ligne_ht_annonce": {
                        "type": "string",
                        "description": "Exact nonnegative decimal string, dot separator, maximum four decimals. Do not estimate. Use UNKNOWN if not provided.",
                        "pattern": "(?:^(0|[1-9][0-9]{0,12})(\\.[0-9]{1,4})?$)|^UNKNOWN$",
                        "maxLength": 18,
                        "title": "Total ligne ht annonce"
                      },
                      "remise_pourcent": {
                        "type": "string",
                        "description": "Exact nonnegative decimal string, dot separator, maximum four decimals. Do not estimate.",
                        "pattern": "^(0|[1-9][0-9]{0,12})(\\.[0-9]{1,4})?$",
                        "maxLength": 18,
                        "title": "Remise pourcent"
                      }
                    },
                    "required": [
                      "reference",
                      "quantite",
                      "unite",
                      "prix_unitaire_ht"
                    ],
                    "additionalProperties": false
                  },
                  "minItems": 1,
                  "maxItems": 100,
                  "title": "Lignes",
                  "description": "Lignes"
                }
              },
              "required": [
                "fournisseur",
                "devis_id",
                "date",
                "valable_jusquau",
                "devise",
                "livraison_ht",
                "remise_non_prise_en_compte",
                "lignes"
              ],
              "additionalProperties": false
            }
          },
          "response_language": {
            "title": "Response language",
            "enum": [
              "fr",
              "en",
              "de",
              "es",
              "it",
              "ar"
            ],
            "type": "string",
            "description": "Optional human-readable summary and clarification language. Stable machine codes and amounts are unchanged."
          },
          "supplier_languages": {
            "title": "Supplier language preferences",
            "type": "object",
            "description": "Optional object mapping original 1-based offer indexes (strings) to fr/en/de/es/it/ar. Explicit preference overrides recognized document format.",
            "properties": {
              "1": {
                "type": "string",
                "description": "Optional human-readable summary and clarification language. Stable machine codes and amounts are unchanged.",
                "enum": [
                  "fr",
                  "en",
                  "de",
                  "es",
                  "it",
                  "ar"
                ],
                "title": "Offer 1",
                "editor": "select",
                "enumTitles": [
                  "French",
                  "English",
                  "German",
                  "Spanish",
                  "Italian",
                  "Arabic"
                ]
              },
              "2": {
                "type": "string",
                "description": "Optional human-readable summary and clarification language. Stable machine codes and amounts are unchanged.",
                "enum": [
                  "fr",
                  "en",
                  "de",
                  "es",
                  "it",
                  "ar"
                ],
                "title": "Offer 2",
                "editor": "select",
                "enumTitles": [
                  "French",
                  "English",
                  "German",
                  "Spanish",
                  "Italian",
                  "Arabic"
                ]
              },
              "3": {
                "type": "string",
                "description": "Optional human-readable summary and clarification language. Stable machine codes and amounts are unchanged.",
                "enum": [
                  "fr",
                  "en",
                  "de",
                  "es",
                  "it",
                  "ar"
                ],
                "title": "Offer 3",
                "editor": "select",
                "enumTitles": [
                  "French",
                  "English",
                  "German",
                  "Spanish",
                  "Italian",
                  "Arabic"
                ]
              },
              "4": {
                "type": "string",
                "description": "Optional human-readable summary and clarification language. Stable machine codes and amounts are unchanged.",
                "enum": [
                  "fr",
                  "en",
                  "de",
                  "es",
                  "it",
                  "ar"
                ],
                "title": "Offer 4",
                "editor": "select",
                "enumTitles": [
                  "French",
                  "English",
                  "German",
                  "Spanish",
                  "Italian",
                  "Arabic"
                ]
              },
              "5": {
                "type": "string",
                "description": "Optional human-readable summary and clarification language. Stable machine codes and amounts are unchanged.",
                "enum": [
                  "fr",
                  "en",
                  "de",
                  "es",
                  "it",
                  "ar"
                ],
                "title": "Offer 5",
                "editor": "select",
                "enumTitles": [
                  "French",
                  "English",
                  "German",
                  "Spanish",
                  "Italian",
                  "Arabic"
                ]
              }
            },
            "additionalProperties": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}