---
updatedAt: 2026-05-28T21:41:44.000Z
agentTools:
  projectIndex: https://hq.docs.netevia.com/llms.txt
---

# MASD1001 Daily MAS Detail Export

Returns a daily CSV report with a line-by-line breakdown of card brand fees, interchange costs, plan fees, and discounts for each merchant, enabling granular daily reconciliation of processing charges.

## MASD1001 Daily MAS Detail Export

The MASD1001 file is a Merchant Accounting System (MAS) daily detail report. It provides a row-per-fee-line breakdown of all fees and charges assessed against each merchant for a given settlement day across four categories: Card Brand Fees, Interchange, Individual Plan, and Discount. This is the primary file for daily fee reconciliation and margin analysis.

### Endpoint

`GET /download/YYYYMMDD/MASD1001`

### Authentication

Basic HTTP Authentication required.
Encode `username:password` in Base64 and pass in the Authorization header:

```
Authorization: Basic {base64(username:password)}
```

### When to use

Use this file daily to reconcile processing fees per merchant and monitor processor margin. Sum the `Total` column per `MID` to derive the net processor margin for the day. Cross-reference `Interchange` rows against the card brands' published interchange tables to verify correct program qualification. Compare daily totals with the monthly MASM1001 to confirm period-end accuracy.

### Query Parameters

None. The file is identified by the date path segment (`YYYYMMDD`) and delivered via SFTP.

### Response

**200 OK** — Returns CSV content (with header row) with the following columns:

| Column         | Type    | Description                                                                          |
| -------------- | ------- | ------------------------------------------------------------------------------------ |
| `MID`          | string  | Merchant identifier                                                                  |
| `Association`  | string  | Internal association or bank group code                                              |
| `Group`        | string  | Processing group code                                                                |
| `Category`     | string  | Fee category: `Card Brand Fees`, `Interchange`, `Individual Plan`, or `Discount`     |
| `Fee`          | string  | Specific fee name, prefixed by network (`VS-`, `MC-`, `AM-`, `DS-`)                  |
| `Number`       | integer | Transaction count tied to this fee line (0 for most assessment and interchange rows) |
| `Amount`       | decimal | Dollar volume tied to `Number` (0.00 if not applicable)                              |
| `SalesNumber`  | integer | Number of sales transactions that drove this fee                                     |
| `SalesAmount`  | decimal | Total sales volume in dollars this fee is calculated against                         |
| `CreditNumber` | integer | Number of credit/refund transactions in this fee line                                |
| `CreditAmount` | decimal | Total dollar value of credits/refunds                                                |
| `Income`       | decimal | Revenue recognized by the processor on this fee line                                 |
| `FeesPaid`     | decimal | Amount remitted to the card network                                                  |
| `Expense`      | decimal | Cost incurred by the processor                                                       |
| `Total`        | decimal | Net result: `Income − Expense`; negative = net cost to processor                     |

**Fee Category Descriptions:**

| Category          | Description                                                                 |
| ----------------- | --------------------------------------------------------------------------- |
| `Card Brand Fees` | Assessment and network fees charged by card brands on processed volume      |
| `Interchange`     | Interchange costs passed through from the issuing bank via the card network |
| `Individual Plan` | Per-merchant plan fees for outgoing sales/credits under negotiated pricing  |
| `Discount`        | Discount rate lines per card type; often `0.00` when bundled into plan fees |

```csv
MID,Association,Group,Category,Fee,Number,Amount,SalesNumber,SalesAmount,CreditNumber,CreditAmount,Income,FeesPaid,Expense,Total
9180000000001234,2100,33000,Card Brand Fees,VS-ASSMNT DEBIT,0,0.00,80,2079.00,0,0.00,2.70,0.00,2.70,0.00
9180000000001234,2100,33000,Card Brand Fees,VS-VS TRANSMFEE,0,0.00,95,2511.08,0,0.00,0.24,0.00,0.24,0.00
9180000000001234,2100,33000,Card Brand Fees,MC-Assessments,0,0.00,8,178.16,0,0.00,0.03,0.00,0.05,-0.02
9180000000001234,2100,33000,Card Brand Fees,AM-Assessments,0,0.00,3,168.64,0,0.00,0.00,0.00,0.17,-0.17
9180000000001234,2100,33000,Interchange,VS CPS Retail Check DB,0,0.00,8,841.52,0,0.00,7.93,0.00,7.93,0.00
9180000000001234,2100,33000,Interchange,MC Merit3 DB,0,0.00,1,208.38,0,0.00,2.34,0.00,2.34,0.00
9180000000001234,2100,33000,Individual Plan,VS-Sales Outg,0,0.00,2,351.46,0,0.00,0.18,0.00,0.00,0.00
9180000000001234,2100,33000,Discount,VS,0,0.00,2,351.46,0,0.00,0.00,0.00,0.00,0.00
```

### Error Codes

| Code | When it happens                                  |
| ---- | ------------------------------------------------ |
| 400  | Malformed date format in URL path                |
| 401  | Invalid or missing Basic Auth credentials        |
| 403  | User does not have permission for this operation |
| 404  | No MASD1001 file found for the specified date    |
| 500  | Internal server error                            |

### Common Mistakes

* Summing `Income` across all rows without deducting `Expense` — always use `Total` (`Income − Expense`) for net margin calculations.
* Expecting `Number` and `Amount` to be populated on standard fee rows — these columns are `0` and `0.00` for assessment and interchange lines; use `SalesNumber` / `SalesAmount` instead.
* Confusing `Discount` rows with `0.00` values as errors — when the discount is bundled into the `Individual Plan` rows, `Discount` lines legitimately carry zero values.
* Not cross-referencing `Interchange` program names against card network tables — incorrect interchange qualification results in a different fee code than expected.
* Comparing daily MASD1001 totals directly to monthly statements — use the MASM1001 monthly file for period-end reconciliation.

### Related Endpoints

* `GET /download/YYYYMMDD/MASM1001` — monthly MAS summary with BET rows and no `FeesPaid` column
* `GET /download/YYYYMMDD/Transactions` — transaction detail that drives interchange qualification
* `GET /download/YYYYMMDD/ACH` — ACH deposit amounts funded to merchants

### Example

```bash
curl -X GET "https://hq.staging.netevia.dev/download/20260528/MASD1001" \
  -H "Authorization: Basic $(echo -n 'username:password' | base64)"
```

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "download",
    "title": "Netevia HQ | Export Data Documentation",
    "description": "Netevia HQ | Export Data Documentation"
  },
  "paths": {
    "/download/YYYYMMDD/MASD1001": {
      "get": {
        "tags": [
          "ExportData"
        ],
        "operationId": "ExportData_MASD1001",
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/MASD1001RowModel"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/MASD1001RowModel"
                }
              },
              "application/xml": {
                "schema": {
                  "$ref": "#/components/schemas/MASD1001RowModel"
                }
              },
              "text/xml": {
                "schema": {
                  "$ref": "#/components/schemas/MASD1001RowModel"
                }
              },
              "id": {
                "examples": {
                  "response": {
                    "value": 0
                  }
                }
              },
              "mid": {
                "examples": {
                  "response": {
                    "value": 9180000000004242
                  }
                }
              },
              "association": {
                "examples": {
                  "response": {
                    "value": 0
                  }
                }
              },
              "group": {
                "examples": {
                  "response": {
                    "value": 0
                  }
                }
              },
              "number": {
                "examples": {
                  "response": {
                    "value": 0
                  }
                }
              },
              "amount": {
                "examples": {
                  "response": {
                    "value": 0
                  }
                }
              },
              "salesNumber": {
                "examples": {
                  "response": {
                    "value": 0
                  }
                }
              },
              "salesAmount": {
                "examples": {
                  "response": {
                    "value": 0
                  }
                }
              },
              "creditNumber": {
                "examples": {
                  "response": {
                    "value": 0
                  }
                }
              },
              "creditAmount": {
                "examples": {
                  "response": {
                    "value": 0
                  }
                }
              },
              "income": {
                "examples": {
                  "response": {
                    "value": 0
                  }
                }
              },
              "feesPaid": {
                "examples": {
                  "response": {
                    "value": 0
                  }
                }
              },
              "expense": {
                "examples": {
                  "response": {
                    "value": 0
                  }
                }
              },
              "total": {
                "examples": {
                  "response": {
                    "value": 0
                  }
                }
              }
            }
          }
        },
        "summary": "MASD1001 Daily MAS Detail Export",
        "description": "Returns a daily CSV report with a line-by-line breakdown of card brand fees, interchange costs, plan fees, and discounts for each merchant, enabling granular daily reconciliation of processing charges."
      }
    }
  },
  "security": [
    {
      "Basic": []
    }
  ],
  "servers": [
    {
      "url": "https://hq.staging.netevia.dev"
    }
  ],
  "components": {
    "securitySchemes": {
      "Basic": {
        "type": "http",
        "description": "Basic HTTP Authentication",
        "scheme": "basic"
      }
    },
    "schemas": {
      "MASD1001RowModel": {
        "type": "object",
        "properties": {
          "id": {
            "format": "int32",
            "type": "integer"
          },
          "mid": {
            "format": "int64",
            "type": "integer"
          },
          "association": {
            "format": "int32",
            "type": "integer"
          },
          "group": {
            "format": "int32",
            "type": "integer"
          },
          "rowGroup": {
            "type": "string"
          },
          "fee": {
            "type": "string"
          },
          "number": {
            "format": "int32",
            "type": "integer"
          },
          "amount": {
            "format": "double",
            "type": "number"
          },
          "salesNumber": {
            "format": "int32",
            "type": "integer"
          },
          "salesAmount": {
            "format": "double",
            "type": "number"
          },
          "creditNumber": {
            "format": "int32",
            "type": "integer"
          },
          "creditAmount": {
            "format": "double",
            "type": "number"
          },
          "income": {
            "format": "double",
            "type": "number"
          },
          "feesPaid": {
            "format": "double",
            "type": "number"
          },
          "expense": {
            "format": "double",
            "type": "number"
          },
          "total": {
            "format": "double",
            "type": "number"
          }
        }
      }
    }
  }
}
```