> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# appmixer.shopify.reports.PaymentsReport

- Component: `appmixer.shopify.reports.PaymentsReport`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.shopify 4.1.0](https://connectors.appmixer.com/connector/appmixer.shopify/4.1.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.shopify/4.1.0/component/appmixer.shopify.reports.PaymentsReport>

Run a payments report over a date range (net and gross payments and transaction count), optionally grouped by day, week or month.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Since (`since`) | text | Start of the reporting period. A ShopifyQL date expression, e.g. -30d, -12m, or an ISO date like 2024-01-01. |
| Until (`until`) | text | End of the reporting period. A ShopifyQL date expression, e.g. today, -1d, or an ISO date. |
| Group By (`groupBy`) | select | Optionally group the results by a time period. When left as None, a single aggregate row is returned. |

## Output ports

### Port `out`

| Field | Type | Description |
| --- | --- | --- |
| Columns (`columns`) | array | - |
| Rows (`rows`) | array | - |
| Row Count (`rowCount`) | integer | - |

## Full metadata (component.json)

```json
{
  "name": "appmixer.shopify.reports.PaymentsReport",
  "description": "Run a payments report over a date range (net and gross payments and transaction count), optionally grouped by day, week or month.",
  "author": "Appmixer <info@appmixer.com>",
  "private": false,
  "auth": {
    "service": "appmixer:shopify",
    "scope": [
      "read_reports"
    ]
  },
  "quota": {
    "manager": "appmixer:shopify",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "since": {
            "type": "string"
          },
          "until": {
            "type": "string"
          },
          "groupBy": {
            "type": "string"
          }
        }
      },
      "inspector": {
        "inputs": {
          "since": {
            "type": "text",
            "label": "Since",
            "index": 0,
            "defaultValue": "-30d",
            "tooltip": "Start of the reporting period. A ShopifyQL date expression, e.g. -30d, -12m, or an ISO date like 2024-01-01."
          },
          "until": {
            "type": "text",
            "label": "Until",
            "index": 1,
            "defaultValue": "today",
            "tooltip": "End of the reporting period. A ShopifyQL date expression, e.g. today, -1d, or an ISO date."
          },
          "groupBy": {
            "type": "select",
            "label": "Group By",
            "index": 2,
            "defaultValue": "none",
            "tooltip": "Optionally group the results by a time period. When left as None, a single aggregate row is returned.",
            "options": [
              {
                "label": "None (totals)",
                "value": "none"
              },
              {
                "label": "Day",
                "value": "day"
              },
              {
                "label": "Week",
                "value": "week"
              },
              {
                "label": "Month",
                "value": "month"
              }
            ]
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out",
      "schema": {
        "type": "object",
        "properties": {
          "columns": {
            "type": "array",
            "title": "Columns",
            "items": {
              "type": "object",
              "properties": {
                "name": {
                  "type": "string",
                  "title": "Name",
                  "example": "net_payments"
                },
                "displayName": {
                  "type": "string",
                  "title": "Display Name",
                  "example": "Net Payments"
                },
                "dataType": {
                  "type": "string",
                  "title": "Data Type",
                  "example": "MONEY"
                }
              }
            },
            "example": [
              {
                "name": "net_payments",
                "displayName": "Net Payments",
                "dataType": "MONEY"
              }
            ]
          },
          "rows": {
            "type": "array",
            "title": "Rows",
            "items": {
              "type": "object"
            },
            "example": [
              {
                "net_payments": "1180.00",
                "gross_payments": "1250.00",
                "transactions": "12"
              }
            ]
          },
          "rowCount": {
            "type": "integer",
            "title": "Row Count",
            "example": 1
          }
        }
      }
    }
  ],
  "icon": "(data URI omitted)"
}
```
