---
updatedAt: 2026-05-07T08:44:49.000Z
agentTools:
  projectIndex: https://docs.placer.ai/llms.txt
---

# Retail Sales Transactions Trends Report

The Transaction Trend presents the total number of transactions generated at the venues in your report over time. You can compare the venue's transaction trend against its category or chain average.<br/><br/>
<b>Note</b>: Retail sales data currently excludes online transactions and only pertains to sales in brick and mortar locations. Transactions which occurred using the Buy Now Pick Up In Store option may be reflected in the data, depending on the retailer concerned. In the event that Retail Sales data is not available for the report’s entire date range the response will provide the exact dates for which the data applies.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "papi",
    "description": "Placer Public API",
    "version": "0.1-oas3"
  },
  "servers": [
    {
      "url": "https://papi.placer.ai",
      "x-amazon-apigateway-endpoint-configuration": {
        "disableExecuteApiEndpoint": true
      }
    }
  ],
  "paths": {
    "/v1/reports/retail-sales/transaction-trends": {
      "post": {
        "summary": "Retail Sales Transactions Trends Report",
        "tags": [
          "Retail Sales Reports"
        ],
        "description": "The Transaction Trend presents the total number of transactions generated at the venues in your report over time. You can compare the venue's transaction trend against its category or chain average.<br/><br/>\n<b>Note</b>: Retail sales data currently excludes online transactions and only pertains to sales in brick and mortar locations. Transactions which occurred using the Buy Now Pick Up In Store option may be reflected in the data, depending on the retailer concerned. In the event that Retail Sales data is not available for the report’s entire date range the response will provide the exact dates for which the data applies.",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/TransactionTrendRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "200 response",
            "headers": {
              "Access-Control-Allow-Origin": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Methods": {
                "schema": {
                  "type": "string"
                }
              },
              "Access-Control-Allow-Headers": {
                "schema": {
                  "type": "string"
                }
              },
              "x-api-key": {
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TransactionTrendResponse"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/400_bad_request"
          },
          "403": {
            "$ref": "#/components/responses/403"
          },
          "500": {
            "$ref": "#/components/responses/500"
          }
        },
        "security": [
          {
            "api_key": []
          }
        ],
        "x-amazon-apigateway-integration": {
          "type": "aws_proxy",
          "httpMethod": "POST",
          "uri": "${reports_lambda}",
          "passthroughBehavior": "when_no_match",
          "timeoutInMillis": 29000
        }
      }
    }
  },
  "components": {
    "schemas": {
      "TransactionTrendRequest": {
        "title": "Transaction Trend Request",
        "allOf": [
          {
            "$ref": "#/components/schemas/DatesIdParams"
          },
          {
            "type": "object",
            "properties": {
              "compareType": {
                "$ref": "#/components/schemas/TransactionTrendCompareType"
              },
              "granularity": {
                "$ref": "#/components/schemas/SalesTrendGranularity"
              }
            }
          }
        ]
      },
      "TransactionTrendResponse": {
        "title": "Transaction Trend Response",
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseResponse"
          },
          {
            "type": "object",
            "properties": {
              "data": {
                "allOf": [
                  {
                    "$ref": "#/components/schemas/DatesIdParams"
                  },
                  {
                    "type": "object",
                    "properties": {
                      "compareType": {
                        "allOf": [
                          {
                            "$ref": "#/components/schemas/TransactionTrendCompareType"
                          },
                          {
                            "description": "Will be presented if requested."
                          }
                        ]
                      },
                      "granularity": {
                        "$ref": "#/components/schemas/SalesTrendGranularity"
                      },
                      "trend": {
                        "type": "object",
                        "properties": {
                          "bins": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "example": [
                              "2022-08-01",
                              "2022-09-01",
                              "2022-10-01"
                            ],
                            "description": "Presents the transactions trends for the requested POI during the requested period based on the selected granularity."
                          },
                          "values": {
                            "type": "array",
                            "items": {
                              "type": "number"
                            },
                            "example": [
                              138915.39,
                              139320.64,
                              136581.83
                            ],
                            "description": "Presents the sales transactions in bins based on the requested granularity (e.g. in <b>month</b> granularity each bin will present the first date of the month, for <b>day</b> granularity each bin will present each day of the report date range)"
                          }
                        }
                      },
                      "compare": {
                        "nullable": true,
                        "type": "object",
                        "properties": {
                          "bins": {
                            "type": "array",
                            "items": {
                              "type": "string"
                            },
                            "example": [
                              "2022-08-01",
                              "2022-09-01",
                              "2022-10-01"
                            ],
                            "description": "Presents the sales transactions in bins based on the requested granularity (e.g. in <b>month</b> granularity each bin will present the first date of the month, for <b>day</b> granularity each bin will present each day of the report date range)"
                          },
                          "values": {
                            "type": "array",
                            "items": {
                              "type": "number"
                            },
                            "example": [
                              138915.39,
                              139320.64,
                              136581.83
                            ],
                            "description": "Correlated sales info values to the bins array"
                          }
                        }
                      }
                    }
                  }
                ]
              }
            }
          }
        ]
      },
      "DatesIdParams": {
        "title": "Base Report Request",
        "type": "object",
        "required": [
          "startDate",
          "endDate",
          "apiId"
        ],
        "properties": {
          "startDate": {
            "$ref": "#/components/schemas/StartDate"
          },
          "endDate": {
            "$ref": "#/components/schemas/EndDate"
          },
          "apiId": {
            "$ref": "#/components/schemas/ApiId"
          }
        }
      },
      "BaseResponse": {
        "title": "Base Response",
        "type": "object",
        "required": [
          "requestId"
        ],
        "properties": {
          "requestId": {
            "$ref": "#/components/schemas/RequestId"
          }
        }
      },
      "BaseError": {
        "title": "BaseError",
        "type": "object",
        "required": [
          "code",
          "details",
          "message"
        ],
        "properties": {
          "message": {
            "type": "string",
            "description": "Detail error message",
            "example": "Internal server error"
          },
          "details": {
            "type": "string",
            "example": "GENERAL_ERROR",
            "description": "Brief error message"
          },
          "code": {
            "type": "integer",
            "example": 5000,
            "description": "Status Code"
          },
          "requestId": {
            "$ref": "#/components/schemas/RequestId"
          }
        }
      },
      "ErrorBadRequest": {
        "title": "ErrorBadRequest",
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseError"
          },
          {
            "type": "object",
            "example": {
              "code": 2000,
              "message": "Validation error. Field `startDate` is required",
              "details": "BAD_REQUEST",
              "requestId": "cfe57f50-fb64-11eb-8760-acde48001122:cfe56fce-fb64-11eb-8760-acde48001122"
            }
          }
        ]
      },
      "ErrPermissionDenied": {
        "title": "ErrPermissionDenied",
        "type": "object",
        "allOf": [
          {
            "$ref": "#/components/schemas/BaseError"
          },
          {
            "type": "object",
            "example": {
              "code": 1008,
              "details": "PERMISSION_DENIED",
              "message": "You don't have permission to perform this action",
              "requestId": "cfe57f50-fb64-11eb-8760-acde48001122:cfe56fce-fb64-11eb-8760-acde48001122"
            }
          }
        ]
      },
      "StartDate": {
        "type": "string",
        "format": "date",
        "description": "Queried data start date. Format YYYY-MM-DD",
        "example": "2020-12-01"
      },
      "EndDate": {
        "type": "string",
        "format": "date",
        "description": "Queried data end date. Format YYYY-MM-DD",
        "example": "2021-05-31"
      },
      "SalesTrendGranularity": {
        "description": "The aggregation of data requested for the report. Can be one of month, week or day.",
        "enum": [
          "day",
          "week",
          "month"
        ],
        "example": "month",
        "default": "month"
      },
      "TransactionTrendCompareType": {
        "description": "The chain or category trend to compare with<br/> <ul> <li>None</il> <li>avg_chain_in_state</li> <li>avg_chain_nationwide</li> <li>avg_category_in_state</li> <li>avg_category_nationwide</li> </ul>",
        "enum": [
          "avg_chain_in_state",
          "avg_chain_nationwide",
          "avg_category_in_state",
          "avg_category_nationwide"
        ],
        "nullable": true,
        "example": "avg_chain_in_state"
      },
      "ApiId": {
        "type": "string",
        "example": "venue:7d55054520e387813d764b03",
        "description": "Placer API Entity Id"
      },
      "RequestId": {
        "type": "string",
        "example": "a760dc398f68814d2c967e972e2bd438",
        "description": "Request ID that can be used for tracing"
      }
    },
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "x-api-key",
        "in": "header"
      }
    },
    "responses": {
      "403": {
        "description": "403 Permission Denied",
        "headers": {
          "Access-Control-Allow-Origin": {
            "schema": {
              "type": "string"
            }
          },
          "Access-Control-Allow-Methods": {
            "schema": {
              "type": "string"
            }
          },
          "Access-Control-Allow-Headers": {
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrPermissionDenied"
            }
          }
        }
      },
      "500": {
        "description": "500 Internal Server Error",
        "headers": {
          "Access-Control-Allow-Origin": {
            "schema": {
              "type": "string"
            }
          },
          "Access-Control-Allow-Methods": {
            "schema": {
              "type": "string"
            }
          },
          "Access-Control-Allow-Headers": {
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/BaseError"
            }
          }
        }
      },
      "400_bad_request": {
        "description": "400 Bad Request",
        "headers": {
          "Access-Control-Allow-Origin": {
            "schema": {
              "type": "string"
            }
          },
          "Access-Control-Allow-Methods": {
            "schema": {
              "type": "string"
            }
          },
          "Access-Control-Allow-Headers": {
            "schema": {
              "type": "string"
            }
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorBadRequest"
            }
          }
        }
      }
    }
  }
}
```