{
  "x402Version": 2,
  "resources": [
    {
      "resource": "https://api.documents.example/v1/invoice-ocr",
      "type": "http",
      "x402Version": 2,
      "accepts": [
        {
          "scheme": "exact",
          "network": "stellar:testnet",
          "asset": "CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC",
          "amount": "15000",
          "payTo": "GDQNY3PBOJOKYZSRMK2S7LHHGWZIUISD4QORETLMXEWXBI7KFZZMKTL3",
          "maxTimeoutSeconds": 120,
          "extra": {}
        }
      ],
      "lastUpdated": "2026-08-16T08:52:45.930Z",
      "description": "Optical character recognition tuned for the Brazilian nota fiscal layout. Extracts issuer, recipient, line items, tax breakdown and the 44-digit access key from a scanned invoice.",
      "serviceName": "Invoice OCR",
      "tags": [
        "ocr",
        "invoice",
        "documents",
        "tax",
        "extraction"
      ],
      "iconUrl": "https://cdn.stellarsight.build/icons/ocr.svg",
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "http",
              "method": "POST",
              "bodyType": "json",
              "body": {
                "imageUrl": "https://files.example/invoice.pdf",
                "language": "pt"
              },
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "imageUrl": {
                    "type": "string",
                    "description": "Publicly reachable URL of the invoice image or PDF to process."
                  },
                  "language": {
                    "type": "string",
                    "description": "Document language hint used to select the OCR model."
                  }
                },
                "required": [
                  "imageUrl"
                ]
              }
            },
            "output": {
              "type": "json",
              "format": "invoice",
              "example": {
                "accessKey": "35260812345678000190550010000000011000000017",
                "total": "1284.90"
              }
            }
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object",
            "properties": {
              "imageUrl": {
                "type": "string",
                "description": "Publicly reachable URL of the invoice image or PDF to process."
              },
              "language": {
                "type": "string",
                "description": "Document language hint used to select the OCR model."
              }
            },
            "required": [
              "imageUrl"
            ]
          }
        }
      },
      "id": "https://api.documents.example/v1/invoice-ocr",
      "network": "stellar:testnet",
      "scheme": "exact",
      "payTo": "GDQNY3PBOJOKYZSRMK2S7LHHGWZIUISD4QORETLMXEWXBI7KFZZMKTL3",
      "asset": "CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC",
      "maxAmountRequired": "15000",
      "input": {
        "type": "http",
        "method": "POST",
        "bodyType": "json",
        "body": {
          "imageUrl": "https://files.example/invoice.pdf",
          "language": "pt"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "imageUrl": {
              "type": "string",
              "description": "Publicly reachable URL of the invoice image or PDF to process."
            },
            "language": {
              "type": "string",
              "description": "Document language hint used to select the OCR model."
            }
          },
          "required": [
            "imageUrl"
          ]
        }
      },
      "output": {
        "type": "json",
        "format": "invoice",
        "example": {
          "accessKey": "35260812345678000190550010000000011000000017",
          "total": "1284.90"
        }
      },
      "seeded": true,
      "lastSeenAt": 1786870365930,
      "firstSeenAt": 1786870365930,
      "settlements": 0,
      "_score": 0.7735,
      "_explain": {
        "query": [
          "invoic",
          "ocr"
        ],
        "bm25": 9.2079,
        "bm25Norm": 0.6055,
        "terms": [
          {
            "term": "invoic",
            "tf": 11,
            "df": 2,
            "idf": 2.5177,
            "contribution": 4.7271,
            "fields": [
              "serviceName",
              "description",
              "tags",
              "params",
              "outputFormat",
              "url"
            ]
          },
          {
            "term": "ocr",
            "tf": 8,
            "df": 2,
            "idf": 2.5177,
            "contribution": 4.4808,
            "fields": [
              "serviceName",
              "tags",
              "params",
              "url"
            ]
          }
        ],
        "matchedFields": [
          "serviceName",
          "description",
          "tags",
          "params",
          "outputFormat",
          "url"
        ],
        "quality": {
          "completeness": 1,
          "completenessDetail": {
            "description": 1,
            "outputSchema": 1,
            "paramDocs": 1,
            "tags": 1,
            "iconUrl": 1
          },
          "popularity": 0,
          "settlements": 0,
          "recency": 0.9612,
          "ageDays": 0.8
        },
        "parts": {
          "relevance": 0.6055,
          "completeness": 0.12,
          "popularity": 0,
          "recency": 0.0481
        },
        "weights": {
          "relevance": 1,
          "completeness": 0.12,
          "popularity": 0.08,
          "recency": 0.05,
          "k1": 1.2,
          "b": 0.75,
          "fieldWeights": {
            "serviceName": 3,
            "description": 2,
            "tags": 2,
            "params": 2,
            "outputFormat": 1,
            "url": 1
          }
        }
      }
    },
    {
      "resource": "https://stellarsight.xyz/v1/ocr/nota-fiscal",
      "type": "http",
      "x402Version": 2,
      "accepts": [
        {
          "scheme": "exact",
          "network": "stellar:testnet",
          "asset": "CAYCPWN5YZEHKPGZOXGU3O7R2Q5H7LT7SZ45YIO26VMFM47VBUHOGPO2",
          "amount": "500000",
          "payTo": "GCWHOZD7PS6EJOJ3EEGDVWPWQKU7RCKRK6WTTQPI5Q3TGX7XLH7GKG3O",
          "maxTimeoutSeconds": 120,
          "extra": {}
        }
      ],
      "lastUpdated": "2026-08-17T03:13:29.752Z",
      "description": "Invoice OCR — Brazilian electronic invoice (NF-e), returning structured line items and totals.",
      "serviceName": "stellarsight-ocr",
      "tags": [
        "ocr",
        "invoice",
        "nfe",
        "brazil",
        "document"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {},
            "output": {
              "type": "json"
            }
          }
        }
      },
      "id": "https://stellarsight.xyz/v1/ocr/nota-fiscal",
      "network": "stellar:testnet",
      "scheme": "exact",
      "payTo": "GCWHOZD7PS6EJOJ3EEGDVWPWQKU7RCKRK6WTTQPI5Q3TGX7XLH7GKG3O",
      "asset": "CAYCPWN5YZEHKPGZOXGU3O7R2Q5H7LT7SZ45YIO26VMFM47VBUHOGPO2",
      "maxAmountRequired": "500000",
      "input": {},
      "output": {
        "type": "json"
      },
      "lastSeenAt": 1786936409752,
      "firstSeenAt": 1786936409752,
      "settlements": 1,
      "_score": 0.7454,
      "_explain": {
        "query": [
          "invoic",
          "ocr"
        ],
        "bm25": 9.6657,
        "bm25Norm": 0.617,
        "terms": [
          {
            "term": "ocr",
            "tf": 8,
            "df": 2,
            "idf": 2.5177,
            "contribution": 4.921,
            "fields": [
              "serviceName",
              "description",
              "tags",
              "url"
            ]
          },
          {
            "term": "invoic",
            "tf": 6,
            "df": 2,
            "idf": 2.5177,
            "contribution": 4.7446,
            "fields": [
              "description",
              "tags"
            ]
          }
        ],
        "matchedFields": [
          "description",
          "tags",
          "serviceName",
          "url"
        ],
        "quality": {
          "completeness": 0.6,
          "completenessDetail": {
            "description": 1,
            "outputSchema": 0,
            "paramDocs": 1,
            "tags": 1,
            "iconUrl": 0
          },
          "popularity": 0.0814,
          "settlements": 1,
          "recency": 0.9982,
          "ageDays": 0.04
        },
        "parts": {
          "relevance": 0.617,
          "completeness": 0.072,
          "popularity": 0.0065,
          "recency": 0.0499
        },
        "weights": {
          "relevance": 1,
          "completeness": 0.12,
          "popularity": 0.08,
          "recency": 0.05,
          "k1": 1.2,
          "b": 0.75,
          "fieldWeights": {
            "serviceName": 3,
            "description": 2,
            "tags": 2,
            "params": 2,
            "outputFormat": 1,
            "url": 1
          }
        }
      }
    }
  ],
  "items": [
    {
      "resource": "https://api.documents.example/v1/invoice-ocr",
      "type": "http",
      "x402Version": 2,
      "accepts": [
        {
          "scheme": "exact",
          "network": "stellar:testnet",
          "asset": "CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC",
          "amount": "15000",
          "payTo": "GDQNY3PBOJOKYZSRMK2S7LHHGWZIUISD4QORETLMXEWXBI7KFZZMKTL3",
          "maxTimeoutSeconds": 120,
          "extra": {}
        }
      ],
      "lastUpdated": "2026-08-16T08:52:45.930Z",
      "description": "Optical character recognition tuned for the Brazilian nota fiscal layout. Extracts issuer, recipient, line items, tax breakdown and the 44-digit access key from a scanned invoice.",
      "serviceName": "Invoice OCR",
      "tags": [
        "ocr",
        "invoice",
        "documents",
        "tax",
        "extraction"
      ],
      "iconUrl": "https://cdn.stellarsight.build/icons/ocr.svg",
      "extensions": {
        "bazaar": {
          "info": {
            "input": {
              "type": "http",
              "method": "POST",
              "bodyType": "json",
              "body": {
                "imageUrl": "https://files.example/invoice.pdf",
                "language": "pt"
              },
              "schema": {
                "$schema": "https://json-schema.org/draft/2020-12/schema",
                "type": "object",
                "properties": {
                  "imageUrl": {
                    "type": "string",
                    "description": "Publicly reachable URL of the invoice image or PDF to process."
                  },
                  "language": {
                    "type": "string",
                    "description": "Document language hint used to select the OCR model."
                  }
                },
                "required": [
                  "imageUrl"
                ]
              }
            },
            "output": {
              "type": "json",
              "format": "invoice",
              "example": {
                "accessKey": "35260812345678000190550010000000011000000017",
                "total": "1284.90"
              }
            }
          },
          "schema": {
            "$schema": "https://json-schema.org/draft/2020-12/schema",
            "type": "object",
            "properties": {
              "imageUrl": {
                "type": "string",
                "description": "Publicly reachable URL of the invoice image or PDF to process."
              },
              "language": {
                "type": "string",
                "description": "Document language hint used to select the OCR model."
              }
            },
            "required": [
              "imageUrl"
            ]
          }
        }
      },
      "id": "https://api.documents.example/v1/invoice-ocr",
      "network": "stellar:testnet",
      "scheme": "exact",
      "payTo": "GDQNY3PBOJOKYZSRMK2S7LHHGWZIUISD4QORETLMXEWXBI7KFZZMKTL3",
      "asset": "CDLZFC3SYJYDZT7K67VZ75HPJVIEUVNIXF47ZG2FB2RMQQVU2HHGCYSC",
      "maxAmountRequired": "15000",
      "input": {
        "type": "http",
        "method": "POST",
        "bodyType": "json",
        "body": {
          "imageUrl": "https://files.example/invoice.pdf",
          "language": "pt"
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "type": "object",
          "properties": {
            "imageUrl": {
              "type": "string",
              "description": "Publicly reachable URL of the invoice image or PDF to process."
            },
            "language": {
              "type": "string",
              "description": "Document language hint used to select the OCR model."
            }
          },
          "required": [
            "imageUrl"
          ]
        }
      },
      "output": {
        "type": "json",
        "format": "invoice",
        "example": {
          "accessKey": "35260812345678000190550010000000011000000017",
          "total": "1284.90"
        }
      },
      "seeded": true,
      "lastSeenAt": 1786870365930,
      "firstSeenAt": 1786870365930,
      "settlements": 0,
      "_score": 0.7735,
      "_explain": {
        "query": [
          "invoic",
          "ocr"
        ],
        "bm25": 9.2079,
        "bm25Norm": 0.6055,
        "terms": [
          {
            "term": "invoic",
            "tf": 11,
            "df": 2,
            "idf": 2.5177,
            "contribution": 4.7271,
            "fields": [
              "serviceName",
              "description",
              "tags",
              "params",
              "outputFormat",
              "url"
            ]
          },
          {
            "term": "ocr",
            "tf": 8,
            "df": 2,
            "idf": 2.5177,
            "contribution": 4.4808,
            "fields": [
              "serviceName",
              "tags",
              "params",
              "url"
            ]
          }
        ],
        "matchedFields": [
          "serviceName",
          "description",
          "tags",
          "params",
          "outputFormat",
          "url"
        ],
        "quality": {
          "completeness": 1,
          "completenessDetail": {
            "description": 1,
            "outputSchema": 1,
            "paramDocs": 1,
            "tags": 1,
            "iconUrl": 1
          },
          "popularity": 0,
          "settlements": 0,
          "recency": 0.9612,
          "ageDays": 0.8
        },
        "parts": {
          "relevance": 0.6055,
          "completeness": 0.12,
          "popularity": 0,
          "recency": 0.0481
        },
        "weights": {
          "relevance": 1,
          "completeness": 0.12,
          "popularity": 0.08,
          "recency": 0.05,
          "k1": 1.2,
          "b": 0.75,
          "fieldWeights": {
            "serviceName": 3,
            "description": 2,
            "tags": 2,
            "params": 2,
            "outputFormat": 1,
            "url": 1
          }
        }
      }
    },
    {
      "resource": "https://stellarsight.xyz/v1/ocr/nota-fiscal",
      "type": "http",
      "x402Version": 2,
      "accepts": [
        {
          "scheme": "exact",
          "network": "stellar:testnet",
          "asset": "CAYCPWN5YZEHKPGZOXGU3O7R2Q5H7LT7SZ45YIO26VMFM47VBUHOGPO2",
          "amount": "500000",
          "payTo": "GCWHOZD7PS6EJOJ3EEGDVWPWQKU7RCKRK6WTTQPI5Q3TGX7XLH7GKG3O",
          "maxTimeoutSeconds": 120,
          "extra": {}
        }
      ],
      "lastUpdated": "2026-08-17T03:13:29.752Z",
      "description": "Invoice OCR — Brazilian electronic invoice (NF-e), returning structured line items and totals.",
      "serviceName": "stellarsight-ocr",
      "tags": [
        "ocr",
        "invoice",
        "nfe",
        "brazil",
        "document"
      ],
      "extensions": {
        "bazaar": {
          "info": {
            "input": {},
            "output": {
              "type": "json"
            }
          }
        }
      },
      "id": "https://stellarsight.xyz/v1/ocr/nota-fiscal",
      "network": "stellar:testnet",
      "scheme": "exact",
      "payTo": "GCWHOZD7PS6EJOJ3EEGDVWPWQKU7RCKRK6WTTQPI5Q3TGX7XLH7GKG3O",
      "asset": "CAYCPWN5YZEHKPGZOXGU3O7R2Q5H7LT7SZ45YIO26VMFM47VBUHOGPO2",
      "maxAmountRequired": "500000",
      "input": {},
      "output": {
        "type": "json"
      },
      "lastSeenAt": 1786936409752,
      "firstSeenAt": 1786936409752,
      "settlements": 1,
      "_score": 0.7454,
      "_explain": {
        "query": [
          "invoic",
          "ocr"
        ],
        "bm25": 9.6657,
        "bm25Norm": 0.617,
        "terms": [
          {
            "term": "ocr",
            "tf": 8,
            "df": 2,
            "idf": 2.5177,
            "contribution": 4.921,
            "fields": [
              "serviceName",
              "description",
              "tags",
              "url"
            ]
          },
          {
            "term": "invoic",
            "tf": 6,
            "df": 2,
            "idf": 2.5177,
            "contribution": 4.7446,
            "fields": [
              "description",
              "tags"
            ]
          }
        ],
        "matchedFields": [
          "description",
          "tags",
          "serviceName",
          "url"
        ],
        "quality": {
          "completeness": 0.6,
          "completenessDetail": {
            "description": 1,
            "outputSchema": 0,
            "paramDocs": 1,
            "tags": 1,
            "iconUrl": 0
          },
          "popularity": 0.0814,
          "settlements": 1,
          "recency": 0.9982,
          "ageDays": 0.04
        },
        "parts": {
          "relevance": 0.617,
          "completeness": 0.072,
          "popularity": 0.0065,
          "recency": 0.0499
        },
        "weights": {
          "relevance": 1,
          "completeness": 0.12,
          "popularity": 0.08,
          "recency": 0.05,
          "k1": 1.2,
          "b": 0.75,
          "fieldWeights": {
            "serviceName": 3,
            "description": 2,
            "tags": 2,
            "params": 2,
            "outputFormat": 1,
            "url": 1
          }
        }
      }
    }
  ],
  "partialResults": false,
  "pagination": {
    "limit": 20,
    "cursor": null
  },
  "total": 2
}
