{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nmi/json-schema/nmi-see-merchant-billing-response-schema.json",
  "title": "Response",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/nmi-billing-commission-api-openapi.yml#/components/schemas/SeeMerchantBillingResponse",
  "type": "object",
  "properties": {
    "objectType": {
      "type": "string",
      "enum": [
        "serviceConfig"
      ],
      "description": "The type of object that was returned as a result of the request."
    },
    "reportId": {
      "type": "number",
      "description": "The ID of the report."
    },
    "offset": {
      "type": "number",
      "description": "The first N skipped results."
    },
    "maxResults": {
      "type": "number",
      "description": "The max number results."
    },
    "totalResults": {
      "type": "number",
      "description": "The total number of results."
    },
    "hasMore": {
      "type": "boolean",
      "description": "If are there more results for the search."
    },
    "links": {
      "type": "array",
      "description": "Links for querying results.",
      "items": {
        "type": "object",
        "properties": {
          "first": {
            "type": "string",
            "description": "First page of query results."
          },
          "last": {
            "type": "string",
            "description": "Last page of query results."
          },
          "next": {
            "type": "string",
            "description": "Next page of current query results."
          },
          "previous": {
            "type": "string",
            "description": "Previous page of current query results."
          }
        }
      }
    },
    "results": {
      "type": "array",
      "description": "Results for the search.",
      "items": {
        "type": "object",
        "properties": {
          "objectType": {
            "type": "string",
            "description": "Type of the returned response object"
          },
          "rowId": {
            "type": "string",
            "description": "The ID for the row."
          },
          "merchantId": {
            "type": "string",
            "description": "The merchant's Gateway ID."
          },
          "affiliateId": {
            "type": "string",
            "description": "Affiliate ID. To get user information for a sub-affiliate account, pass in `affiliateId` instead of `merchantId`."
          },
          "quantity": {
            "type": "string",
            "description": "Quantity"
          },
          "serviceId": {
            "type": "string",
            "description": "The ID of the service."
          },
          "processorId": {
            "type": "string",
            "description": "The ID of the payment processor."
          },
          "fee": {
            "type": "object",
            "description": "Response variables specifically related to fees.",
            "properties": {
              "feeType": {
                "type": "string",
                "description": "The type of the fee."
              },
              "name": {
                "type": "string",
                "description": "The name of the fee."
              },
              "description": {
                "type": "string",
                "description": "The description of the fee."
              },
              "serviceId": {
                "type": "string",
                "description": "The ID of the fee service."
              }
            }
          },
          "cost": {
            "type": "object",
            "description": "Response variables specifically related to cost.",
            "properties": {
              "objectType": {
                "type": "string",
                "description": "The type of cost object that was returned as a result of the request."
              },
              "amount": {
                "type": "string",
                "description": "The amount of the cost object."
              },
              "currency": {
                "type": "string",
                "description": "The currency of the cost object."
              }
            }
          },
          "total": {
            "type": "object",
            "description": "Response variables specifically related to total.",
            "properties": {
              "objectType": {
                "type": "string",
                "description": "The type of total object that was returned as a result of the request."
              },
              "amount": {
                "type": "string",
                "description": "The amoount of the total object."
              },
              "currrency": {
                "type": "string",
                "description": "The currency of the total object."
              }
            }
          }
        }
      }
    }
  }
}