{
  "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-09-30T16:45:20.855Z",
      "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": 1790786720855,
      "firstSeenAt": 1790786720855,
      "settlements": 0,
      "_score": 0.7736,
      "_explain": {
        "query": [
          "invoic",
          "ocr"
        ],
        "bm25": 9.2126,
        "bm25Norm": 0.6056,
        "terms": [
          {
            "term": "invoic",
            "tf": 11,
            "df": 2,
            "idf": 2.5177,
            "contribution": 4.7292,
            "fields": [
              "serviceName",
              "description",
              "tags",
              "params",
              "outputFormat",
              "url"
            ]
          },
          {
            "term": "ocr",
            "tf": 8,
            "df": 2,
            "idf": 2.5177,
            "contribution": 4.4834,
            "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.6056,
          "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-09-30T12:56:30.395Z",
      "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": {
              "type": "http",
              "bodyType": "json",
              "body": {
                "imageUrl": "https://example.com/invoice.png",
                "language": "pt-BR"
              },
              "method": "POST"
            },
            "output": {
              "type": "json",
              "example": {
                "documentType": "NFe",
                "accessKey": "35240612345678000199550010000012341000012345",
                "issuer": {
                  "name": "Example Trading Ltd",
                  "taxId": "12.345.678/0001-99"
                },
                "total": 1234.56,
                "currency": "BRL",
                "lineItems": [
                  {
                    "description": "Item A",
                    "quantity": 2,
                    "unitPrice": 100,
                    "total": 200
                  }
                ],
                "confidence": 0.97
              }
            }
          }
        }
      },
      "id": "https://stellarsight.xyz/v1/ocr/nota-fiscal",
      "network": "stellar:testnet",
      "scheme": "exact",
      "payTo": "GCWHOZD7PS6EJOJ3EEGDVWPWQKU7RCKRK6WTTQPI5Q3TGX7XLH7GKG3O",
      "asset": "CAYCPWN5YZEHKPGZOXGU3O7R2Q5H7LT7SZ45YIO26VMFM47VBUHOGPO2",
      "maxAmountRequired": "500000",
      "input": {
        "type": "http",
        "bodyType": "json",
        "body": {
          "imageUrl": "https://example.com/invoice.png",
          "language": "pt-BR"
        },
        "method": "POST"
      },
      "output": {
        "type": "json",
        "example": {
          "documentType": "NFe",
          "accessKey": "35240612345678000199550010000012341000012345",
          "issuer": {
            "name": "Example Trading Ltd",
            "taxId": "12.345.678/0001-99"
          },
          "total": 1234.56,
          "currency": "BRL",
          "lineItems": [
            {
              "description": "Item A",
              "quantity": 2,
              "unitPrice": 100,
              "total": 200
            }
          ],
          "confidence": 0.97
        }
      },
      "lastSeenAt": 1790772990395,
      "firstSeenAt": 1790772990395,
      "settlements": 1,
      "_score": 0.7403,
      "_explain": {
        "query": [
          "invoic",
          "ocr"
        ],
        "bm25": 9.5503,
        "bm25Norm": 0.6142,
        "terms": [
          {
            "term": "ocr",
            "tf": 8,
            "df": 2,
            "idf": 2.5177,
            "contribution": 4.8695,
            "fields": [
              "serviceName",
              "description",
              "tags",
              "url"
            ]
          },
          {
            "term": "invoic",
            "tf": 6,
            "df": 2,
            "idf": 2.5177,
            "contribution": 4.6809,
            "fields": [
              "description",
              "tags"
            ]
          }
        ],
        "matchedFields": [
          "description",
          "tags",
          "serviceName",
          "url"
        ],
        "quality": {
          "completeness": 0.6,
          "completenessDetail": {
            "description": 1,
            "outputSchema": 1,
            "paramDocs": 0,
            "tags": 1,
            "iconUrl": 0
          },
          "popularity": 0.0814,
          "settlements": 1,
          "recency": 0.9536,
          "ageDays": 0.96
        },
        "parts": {
          "relevance": 0.6142,
          "completeness": 0.072,
          "popularity": 0.0065,
          "recency": 0.0477
        },
        "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-09-30T16:45:20.855Z",
      "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": 1790786720855,
      "firstSeenAt": 1790786720855,
      "settlements": 0,
      "_score": 0.7736,
      "_explain": {
        "query": [
          "invoic",
          "ocr"
        ],
        "bm25": 9.2126,
        "bm25Norm": 0.6056,
        "terms": [
          {
            "term": "invoic",
            "tf": 11,
            "df": 2,
            "idf": 2.5177,
            "contribution": 4.7292,
            "fields": [
              "serviceName",
              "description",
              "tags",
              "params",
              "outputFormat",
              "url"
            ]
          },
          {
            "term": "ocr",
            "tf": 8,
            "df": 2,
            "idf": 2.5177,
            "contribution": 4.4834,
            "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.6056,
          "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-09-30T12:56:30.395Z",
      "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": {
              "type": "http",
              "bodyType": "json",
              "body": {
                "imageUrl": "https://example.com/invoice.png",
                "language": "pt-BR"
              },
              "method": "POST"
            },
            "output": {
              "type": "json",
              "example": {
                "documentType": "NFe",
                "accessKey": "35240612345678000199550010000012341000012345",
                "issuer": {
                  "name": "Example Trading Ltd",
                  "taxId": "12.345.678/0001-99"
                },
                "total": 1234.56,
                "currency": "BRL",
                "lineItems": [
                  {
                    "description": "Item A",
                    "quantity": 2,
                    "unitPrice": 100,
                    "total": 200
                  }
                ],
                "confidence": 0.97
              }
            }
          }
        }
      },
      "id": "https://stellarsight.xyz/v1/ocr/nota-fiscal",
      "network": "stellar:testnet",
      "scheme": "exact",
      "payTo": "GCWHOZD7PS6EJOJ3EEGDVWPWQKU7RCKRK6WTTQPI5Q3TGX7XLH7GKG3O",
      "asset": "CAYCPWN5YZEHKPGZOXGU3O7R2Q5H7LT7SZ45YIO26VMFM47VBUHOGPO2",
      "maxAmountRequired": "500000",
      "input": {
        "type": "http",
        "bodyType": "json",
        "body": {
          "imageUrl": "https://example.com/invoice.png",
          "language": "pt-BR"
        },
        "method": "POST"
      },
      "output": {
        "type": "json",
        "example": {
          "documentType": "NFe",
          "accessKey": "35240612345678000199550010000012341000012345",
          "issuer": {
            "name": "Example Trading Ltd",
            "taxId": "12.345.678/0001-99"
          },
          "total": 1234.56,
          "currency": "BRL",
          "lineItems": [
            {
              "description": "Item A",
              "quantity": 2,
              "unitPrice": 100,
              "total": 200
            }
          ],
          "confidence": 0.97
        }
      },
      "lastSeenAt": 1790772990395,
      "firstSeenAt": 1790772990395,
      "settlements": 1,
      "_score": 0.7403,
      "_explain": {
        "query": [
          "invoic",
          "ocr"
        ],
        "bm25": 9.5503,
        "bm25Norm": 0.6142,
        "terms": [
          {
            "term": "ocr",
            "tf": 8,
            "df": 2,
            "idf": 2.5177,
            "contribution": 4.8695,
            "fields": [
              "serviceName",
              "description",
              "tags",
              "url"
            ]
          },
          {
            "term": "invoic",
            "tf": 6,
            "df": 2,
            "idf": 2.5177,
            "contribution": 4.6809,
            "fields": [
              "description",
              "tags"
            ]
          }
        ],
        "matchedFields": [
          "description",
          "tags",
          "serviceName",
          "url"
        ],
        "quality": {
          "completeness": 0.6,
          "completenessDetail": {
            "description": 1,
            "outputSchema": 1,
            "paramDocs": 0,
            "tags": 1,
            "iconUrl": 0
          },
          "popularity": 0.0814,
          "settlements": 1,
          "recency": 0.9536,
          "ageDays": 0.96
        },
        "parts": {
          "relevance": 0.6142,
          "completeness": 0.072,
          "popularity": 0.0065,
          "recency": 0.0477
        },
        "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
}
