{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/nmi/json-schema/nmi-see-your-commission-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/SeeYourCommissionResponse",
  "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": "objectType",
        "properties": {
          "objectType": {
            "type": "string",
            "description": "Type of the returned response object"
          },
          "rowId": {
            "type": "string",
            "description": "The ID for the row."
          },
          "parentAffiliate": {
            "type": "string",
            "description": "The ID of the affiliate directly above the merchant."
          },
          "merchant": {
            "type": "object",
            "properties": {
              "company": {
                "type": "string",
                "description": "Merchant's company name"
              },
              "id": {
                "type": "string",
                "description": "The ID of the merchant"
              },
              "externalIdentifier": {
                "type": "string",
                "description": "A description to further describe or identify the merchant"
              }
            }
          },
          "commission": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string",
                "description": "The name of the commission"
              },
              "mcc": {
                "type": "string",
                "description": "The Merchant Category Code"
              }
            }
          },
          "processor": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The id of the processor"
              },
              "name": {
                "type": "string",
                "description": "The name of the processor"
              }
            }
          },
          "service": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "description": "The id of the service"
              },
              "name": {
                "type": "string",
                "description": "The name of the service"
              }
            }
          },
          "quantity": {
            "type": "string",
            "description": "The quantity of the commission"
          },
          "resale": {
            "type": "object",
            "properties": {
              "objectType": {
                "type": "string",
                "description": "The type of object that was returned as a result of the request"
              },
              "amount": {
                "type": "string",
                "description": "The amount of the resale"
              },
              "currency": {
                "type": "string",
                "description": "The currency of the resale"
              }
            }
          },
          "totalResale": {
            "type": "object",
            "properties": {
              "objectType": {
                "type": "string",
                "description": "The type of object that was returned as a result of the request"
              },
              "amount": {
                "type": "string",
                "description": "The amount of the total resale"
              },
              "currency": {
                "type": "string",
                "description": "The currency of the total resale"
              }
            }
          },
          "cost": {
            "type": "object",
            "properties": {
              "objectType": {
                "type": "string",
                "description": "The type of object that was returned as a result of the request"
              },
              "amount": {
                "type": "string",
                "description": "The amount of the cost"
              },
              "currency": {
                "type": "string",
                "description": "The currency of the cost"
              }
            }
          },
          "totalCost": {
            "type": "object",
            "properties": {
              "objectType": {
                "type": "string",
                "description": "The type of object that was returned as a result of the request"
              },
              "amount": {
                "type": "string",
                "description": "The amount of the total cost"
              },
              "currency": {
                "type": "string",
                "description": "The currency of the total cost"
              }
            }
          },
          "commissionEarned": {
            "type": "object",
            "properties": {
              "objectType": {
                "type": "string",
                "description": "The type of object that was returned as a result of the request"
              },
              "amount": {
                "type": "string",
                "description": "The amount of the commission earned"
              },
              "currency": {
                "type": "string",
                "description": "The currency of the commission earned"
              }
            }
          },
          "recollections": {
            "type": "object",
            "properties": {
              "objectType": {
                "type": "string",
                "description": "The type of object that was returned as a result of the request"
              },
              "amount": {
                "type": "string",
                "description": "The amount of the recollections"
              },
              "currency": {
                "type": "string",
                "description": "The currency of the recollections"
              }
            }
          },
          "returns": {
            "type": "object",
            "properties": {
              "objectType": {
                "type": "string",
                "description": "The type of object that was returned as a result of the request"
              },
              "amount": {
                "type": "string",
                "description": "The amount of the returns"
              },
              "currency": {
                "type": "string",
                "description": "The currency of the returns"
              }
            }
          },
          "totalCommission": {
            "type": "object",
            "properties": {
              "objectType": {
                "type": "string",
                "description": "The type of object that was returned as a result of the request"
              },
              "amount": {
                "type": "string",
                "description": "The amount of the total commission"
              },
              "currency": {
                "type": "string",
                "description": "The currency of the total commission"
              }
            }
          },
          "subAffiliate": {
            "type": "string",
            "description": "The quantity of the commission"
          }
        }
      }
    }
  }
}