Partner Data Projection Enabled contract

List immutable sale and refund facts

Returns sale-time price, tax, tender, catalog descriptor, product-measurement, and compliance snapshots. Current catalog or policy data is never substituted for historical facts; pre-snapshot rows are explicitly marked LEGACY_UNVERIFIABLE.

Runtime status: unavailable. This is a source contract, not a live access or availability guarantee. Learn more
GET/partner/data/v1/sales

Authority

Profile
location-client-id+api-key
Data class
partner_operational
Required operation
listPartnerDataSales
Subject scopes
No subject scopes declared for this operation.
clientId security scheme
{
  "type": "apiKey",
  "in": "header",
  "name": "X-SMOKESTACK-Client-ID",
  "description": "Public, high-entropy location client identifier issued by SMOKESTACK."
}
apiKey security scheme
{
  "type": "apiKey",
  "in": "header",
  "name": "X-SMOKESTACK-API-Key",
  "description": "Secret location API key shown only at issuance or rotation."
}

Request

Request parameters
ParameterLocationRequirementSchema
changedAfter

queryOptional{"type":"string","format":"date-time"}
changedBefore

queryOptional{"type":"string","format":"date-time"}
limit

queryOptional{"type":"integer","minimum":1,"maximum":500,"default":100}
cursor

queryOptional{"type":"string","pattern":"^[A-Za-z0-9._~-]{32,4096}$"}
smokestack-api-version

headerRequired{"type":"string","const":"2026-08-07"}
x-smokestack-client-id

headerRequired{"type":"string"}
x-smokestack-api-key

headerRequired{"type":"string"}
x-request-id

headerOptional{"type":"string"}
x-correlation-id

headerOptional{"type":"string"}

Idempotency

This read-only contract does not declare a keyed replay policy. Do not assume a mutation replay guarantee.

Request examples

Templates for your server, not browser code. Replace every placeholder and use your approved origin. For requests with a body, construct request.json / requestBody / request_body from the schema.

# Replace placeholders using your approved server-side integration.
curl --request GET 'https://partner-api.invalid/partner/data/v1/sales' \
  --header 'smokestack-api-version: 2026-08-07' \
  --header 'x-smokestack-client-id: <X_SMOKESTACK_CLIENT_ID>' \
  --header 'x-smokestack-api-key: <X_SMOKESTACK_API_KEY>'

Responses

200 Successful location-scoped response.
{
  "description": "Successful location-scoped response.",
  "headers": {
    "SMOKESTACK-API-Version": {
      "description": "The negotiated compatible contract revision.",
      "schema": {
        "type": "string",
        "const": "2026-08-07"
      }
    },
    "X-Request-ID": {
      "description": "Request identifier.",
      "schema": {
        "type": "string"
      }
    },
    "X-Correlation-ID": {
      "description": "End-to-end correlation identifier.",
      "schema": {
        "type": "string"
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/PartnerDataSalesResponse"
      }
    }
  }
}
400 Invalid request or cursor.
{
  "description": "Invalid request or cursor.",
  "headers": {
    "SMOKESTACK-API-Version": {
      "description": "The negotiated compatible contract revision.",
      "schema": {
        "type": "string",
        "const": "2026-08-07"
      }
    },
    "X-Request-ID": {
      "description": "Request identifier.",
      "schema": {
        "type": "string"
      }
    },
    "X-Correlation-ID": {
      "description": "End-to-end correlation identifier.",
      "schema": {
        "type": "string"
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/PartnerDataError"
      }
    }
  }
}
401 Client authentication required.
{
  "description": "Client authentication required.",
  "headers": {
    "SMOKESTACK-API-Version": {
      "description": "The negotiated compatible contract revision.",
      "schema": {
        "type": "string",
        "const": "2026-08-07"
      }
    },
    "X-Request-ID": {
      "description": "Request identifier.",
      "schema": {
        "type": "string"
      }
    },
    "X-Correlation-ID": {
      "description": "End-to-end correlation identifier.",
      "schema": {
        "type": "string"
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/PartnerDataError"
      }
    }
  }
}
403 The location credential does not permit this data set.
{
  "description": "The location credential does not permit this data set.",
  "headers": {
    "SMOKESTACK-API-Version": {
      "description": "The negotiated compatible contract revision.",
      "schema": {
        "type": "string",
        "const": "2026-08-07"
      }
    },
    "X-Request-ID": {
      "description": "Request identifier.",
      "schema": {
        "type": "string"
      }
    },
    "X-Correlation-ID": {
      "description": "End-to-end correlation identifier.",
      "schema": {
        "type": "string"
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/PartnerDataError"
      }
    }
  }
}
406 Unsupported contract revision.
{
  "description": "Unsupported contract revision.",
  "headers": {
    "SMOKESTACK-API-Version": {
      "description": "The negotiated compatible contract revision.",
      "schema": {
        "type": "string",
        "const": "2026-08-07"
      }
    },
    "X-Request-ID": {
      "description": "Request identifier.",
      "schema": {
        "type": "string"
      }
    },
    "X-Correlation-ID": {
      "description": "End-to-end correlation identifier.",
      "schema": {
        "type": "string"
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/PartnerDataError"
      }
    }
  }
}
429 Rate limit exceeded.
{
  "description": "Rate limit exceeded.",
  "headers": {
    "SMOKESTACK-API-Version": {
      "description": "The negotiated compatible contract revision.",
      "schema": {
        "type": "string",
        "const": "2026-08-07"
      }
    },
    "X-Request-ID": {
      "description": "Request identifier.",
      "schema": {
        "type": "string"
      }
    },
    "X-Correlation-ID": {
      "description": "End-to-end correlation identifier.",
      "schema": {
        "type": "string"
      }
    },
    "Retry-After": {
      "schema": {
        "type": "integer"
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/PartnerDataError"
      }
    }
  }
}
500 Unexpected internal error.
{
  "description": "Unexpected internal error.",
  "headers": {
    "SMOKESTACK-API-Version": {
      "description": "The negotiated compatible contract revision.",
      "schema": {
        "type": "string",
        "const": "2026-08-07"
      }
    },
    "X-Request-ID": {
      "description": "Request identifier.",
      "schema": {
        "type": "string"
      }
    },
    "X-Correlation-ID": {
      "description": "End-to-end correlation identifier.",
      "schema": {
        "type": "string"
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/PartnerDataError"
      }
    }
  }
}
503 Authoritative dependency unavailable.
{
  "description": "Authoritative dependency unavailable.",
  "headers": {
    "SMOKESTACK-API-Version": {
      "description": "The negotiated compatible contract revision.",
      "schema": {
        "type": "string",
        "const": "2026-08-07"
      }
    },
    "X-Request-ID": {
      "description": "Request identifier.",
      "schema": {
        "type": "string"
      }
    },
    "X-Correlation-ID": {
      "description": "End-to-end correlation identifier.",
      "schema": {
        "type": "string"
      }
    }
  },
  "content": {
    "application/json": {
      "schema": {
        "$ref": "#/components/schemas/PartnerDataError"
      }
    }
  }
}

Referenced schemas

Only schemas reachable from this operation are shown. The revision-pinned OpenAPI download includes their complete definitions.

PartnerDataSalesResponse
{
  "type": "object",
  "properties": {
    "data": {
      "type": "array",
      "items": {
        "allOf": [
          {
            "type": "object",
            "properties": {
              "saleId": {
                "type": "string",
                "format": "uuid"
              },
              "locationId": {
                "type": "string",
                "format": "uuid"
              },
              "kind": {
                "type": "string",
                "enum": [
                  "SALE",
                  "REFUND",
                  "EXCHANGE"
                ]
              },
              "status": {
                "type": "string",
                "enum": [
                  "COMPLETED",
                  "VOIDED"
                ]
              },
              "originalSaleId": {
                "type": "string",
                "format": "uuid"
              },
              "customerRef": {
                "type": "string",
                "pattern": "^[A-Za-z0-9._:~-]{1,256}$"
              },
              "occurredAt": {
                "type": "string",
                "format": "date-time"
              },
              "changedAt": {
                "type": "string",
                "format": "date-time"
              },
              "amounts": {
                "type": "object",
                "properties": {
                  "subtotal": {
                    "type": "object",
                    "properties": {
                      "amountMinor": {
                        "type": "integer"
                      },
                      "currency": {
                        "type": "string",
                        "enum": [
                          "USD"
                        ]
                      }
                    },
                    "required": [
                      "amountMinor",
                      "currency"
                    ]
                  },
                  "exciseTax": {
                    "type": "object",
                    "properties": {
                      "amountMinor": {
                        "type": "integer"
                      },
                      "currency": {
                        "type": "string",
                        "enum": [
                          "USD"
                        ]
                      }
                    },
                    "required": [
                      "amountMinor",
                      "currency"
                    ]
                  },
                  "salesTax": {
                    "type": "object",
                    "properties": {
                      "amountMinor": {
                        "type": "integer"
                      },
                      "currency": {
                        "type": "string",
                        "enum": [
                          "USD"
                        ]
                      }
                    },
                    "required": [
                      "amountMinor",
                      "currency"
                    ]
                  },
                  "total": {
                    "type": "object",
                    "properties": {
                      "amountMinor": {
                        "type": "integer"
                      },
                      "currency": {
                        "type": "string",
                        "enum": [
                          "USD"
                        ]
                      }
                    },
                    "required": [
                      "amountMinor",
                      "currency"
                    ]
                  }
                },
                "required": [
                  "subtotal",
                  "exciseTax",
                  "salesTax",
                  "total"
                ]
              },
              "compliance": {
                "oneOf": [
                  {
                    "type": "object",
                    "properties": {
                      "evidenceStatus": {
                        "type": "string",
                        "enum": [
                          "VERIFIED"
                        ]
                      },
                      "gramsEquivalent": {
                        "type": "string",
                        "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]{1,3})?$"
                      },
                      "unitsEquivalent": {
                        "type": "string",
                        "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]{1,3})?$"
                      },
                      "decisionId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "rulesetDigest": {
                        "type": "string",
                        "pattern": "^canon2:sha256:[0-9a-f]{64}$"
                      }
                    },
                    "required": [
                      "evidenceStatus",
                      "gramsEquivalent",
                      "decisionId",
                      "rulesetDigest"
                    ]
                  },
                  {
                    "type": "object",
                    "properties": {
                      "evidenceStatus": {
                        "type": "string",
                        "enum": [
                          "LEGACY_UNVERIFIABLE"
                        ]
                      },
                      "gramsEquivalent": {
                        "type": "string",
                        "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]{1,3})?$"
                      },
                      "unitsEquivalent": {
                        "type": "string",
                        "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]{1,3})?$"
                      },
                      "decisionId": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 256
                      },
                      "rulesetDigest": {
                        "type": "string",
                        "pattern": "^canon2:sha256:[0-9a-f]{64}$"
                      }
                    },
                    "required": [
                      "evidenceStatus"
                    ]
                  }
                ]
              },
              "lines": {
                "type": "array",
                "items": {
                  "oneOf": [
                    {
                      "type": "object",
                      "properties": {
                        "lineId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "productId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "variantId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "packageId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "regulatoryIdentifier": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "productType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "quantity": {
                          "type": "integer"
                        },
                        "unitPrice": {
                          "type": "object",
                          "properties": {
                            "amountMinor": {
                              "type": "integer"
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "USD"
                              ]
                            }
                          },
                          "required": [
                            "amountMinor",
                            "currency"
                          ]
                        },
                        "discount": {
                          "type": "object",
                          "properties": {
                            "amountMinor": {
                              "type": "integer"
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "USD"
                              ]
                            }
                          },
                          "required": [
                            "amountMinor",
                            "currency"
                          ]
                        },
                        "loyaltyApplied": {
                          "type": "object",
                          "properties": {
                            "amountMinor": {
                              "type": "integer"
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "USD"
                              ]
                            }
                          },
                          "required": [
                            "amountMinor",
                            "currency"
                          ]
                        },
                        "exciseTax": {
                          "type": "object",
                          "properties": {
                            "amountMinor": {
                              "type": "integer"
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "USD"
                              ]
                            }
                          },
                          "required": [
                            "amountMinor",
                            "currency"
                          ]
                        },
                        "salesTax": {
                          "type": "object",
                          "properties": {
                            "amountMinor": {
                              "type": "integer"
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "USD"
                              ]
                            }
                          },
                          "required": [
                            "amountMinor",
                            "currency"
                          ]
                        },
                        "lineTotal": {
                          "type": "object",
                          "properties": {
                            "amountMinor": {
                              "type": "integer"
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "USD"
                              ]
                            }
                          },
                          "required": [
                            "amountMinor",
                            "currency"
                          ]
                        },
                        "netWeight": {
                          "type": "object",
                          "properties": {
                            "value": {
                              "type": "string",
                              "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]{1,3})?$"
                            },
                            "unit": {
                              "type": "string",
                              "enum": [
                                "g",
                                "mg",
                                "oz",
                                "lb",
                                "ml",
                                "each"
                              ]
                            },
                            "basis": {
                              "type": "string",
                              "enum": [
                                "product_mass",
                                "thc_mass"
                              ]
                            }
                          },
                          "required": [
                            "value",
                            "unit",
                            "basis"
                          ]
                        },
                        "catalogEvidenceStatus": {
                          "type": "string",
                          "enum": [
                            "VERIFIED"
                          ]
                        },
                        "sku": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 300
                        },
                        "category": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        }
                      },
                      "required": [
                        "lineId",
                        "productId",
                        "quantity",
                        "unitPrice",
                        "discount",
                        "loyaltyApplied",
                        "exciseTax",
                        "salesTax",
                        "lineTotal",
                        "catalogEvidenceStatus",
                        "sku",
                        "name",
                        "category"
                      ]
                    },
                    {
                      "type": "object",
                      "properties": {
                        "lineId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "productId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "variantId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "packageId": {
                          "type": "string",
                          "format": "uuid"
                        },
                        "regulatoryIdentifier": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "productType": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        },
                        "quantity": {
                          "type": "integer"
                        },
                        "unitPrice": {
                          "type": "object",
                          "properties": {
                            "amountMinor": {
                              "type": "integer"
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "USD"
                              ]
                            }
                          },
                          "required": [
                            "amountMinor",
                            "currency"
                          ]
                        },
                        "discount": {
                          "type": "object",
                          "properties": {
                            "amountMinor": {
                              "type": "integer"
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "USD"
                              ]
                            }
                          },
                          "required": [
                            "amountMinor",
                            "currency"
                          ]
                        },
                        "loyaltyApplied": {
                          "type": "object",
                          "properties": {
                            "amountMinor": {
                              "type": "integer"
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "USD"
                              ]
                            }
                          },
                          "required": [
                            "amountMinor",
                            "currency"
                          ]
                        },
                        "exciseTax": {
                          "type": "object",
                          "properties": {
                            "amountMinor": {
                              "type": "integer"
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "USD"
                              ]
                            }
                          },
                          "required": [
                            "amountMinor",
                            "currency"
                          ]
                        },
                        "salesTax": {
                          "type": "object",
                          "properties": {
                            "amountMinor": {
                              "type": "integer"
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "USD"
                              ]
                            }
                          },
                          "required": [
                            "amountMinor",
                            "currency"
                          ]
                        },
                        "lineTotal": {
                          "type": "object",
                          "properties": {
                            "amountMinor": {
                              "type": "integer"
                            },
                            "currency": {
                              "type": "string",
                              "enum": [
                                "USD"
                              ]
                            }
                          },
                          "required": [
                            "amountMinor",
                            "currency"
                          ]
                        },
                        "netWeight": {
                          "type": "object",
                          "properties": {
                            "value": {
                              "type": "string",
                              "pattern": "^-?(0|[1-9][0-9]*)(\\.[0-9]{1,3})?$"
                            },
                            "unit": {
                              "type": "string",
                              "enum": [
                                "g",
                                "mg",
                                "oz",
                                "lb",
                                "ml",
                                "each"
                              ]
                            },
                            "basis": {
                              "type": "string",
                              "enum": [
                                "product_mass",
                                "thc_mass"
                              ]
                            }
                          },
                          "required": [
                            "value",
                            "unit",
                            "basis"
                          ]
                        },
                        "catalogEvidenceStatus": {
                          "type": "string",
                          "enum": [
                            "LEGACY_UNVERIFIABLE"
                          ]
                        },
                        "sku": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 256
                        },
                        "name": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 300
                        },
                        "category": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 200
                        }
                      },
                      "required": [
                        "lineId",
                        "productId",
                        "quantity",
                        "unitPrice",
                        "discount",
                        "loyaltyApplied",
                        "exciseTax",
                        "salesTax",
                        "lineTotal",
                        "catalogEvidenceStatus"
                      ]
                    }
                  ]
                }
              },
              "tenders": {
                "type": "array",
                "items": {
                  "type": "object",
                  "properties": {
                    "tenderId": {
                      "type": "string",
                      "format": "uuid"
                    },
                    "type": {
                      "type": "string",
                      "enum": [
                        "CASH",
                        "CARD",
                        "GIFT_CARD",
                        "STORE_CREDIT",
                        "OTHER"
                      ]
                    },
                    "amount": {
                      "type": "object",
                      "properties": {
                        "amountMinor": {
                          "type": "integer"
                        },
                        "currency": {
                          "type": "string",
                          "enum": [
                            "USD"
                          ]
                        }
                      },
                      "required": [
                        "amountMinor",
                        "currency"
                      ]
                    }
                  },
                  "required": [
                    "tenderId",
                    "type",
                    "amount"
                  ]
                }
              }
            },
            "required": [
              "saleId",
              "locationId",
              "kind",
              "status",
              "customerRef",
              "occurredAt",
              "changedAt",
              "amounts",
              "compliance",
              "lines",
              "tenders"
            ]
          },
          {
            "oneOf": [
              {
                "type": "object",
                "properties": {
                  "audienceEvidenceStatus": {
                    "type": "string",
                    "enum": [
                      "VERIFIED"
                    ]
                  },
                  "audience": {
                    "type": "string",
                    "enum": [
                      "REC",
                      "MED"
                    ]
                  }
                },
                "required": [
                  "audienceEvidenceStatus",
                  "audience"
                ]
              },
              {
                "type": "object",
                "properties": {
                  "audienceEvidenceStatus": {
                    "type": "string",
                    "enum": [
                      "LEGACY_UNVERIFIABLE"
                    ]
                  },
                  "audience": {
                    "type": "string",
                    "enum": [
                      "REC",
                      "MED"
                    ]
                  }
                },
                "required": [
                  "audienceEvidenceStatus"
                ]
              }
            ]
          }
        ]
      }
    },
    "page": {
      "type": "object",
      "properties": {
        "nextCursor": {
          "type": "string",
          "pattern": "^[A-Za-z0-9._~-]{32,4096}$"
        },
        "cursorExpiresAt": {
          "type": "string",
          "format": "date-time"
        }
      }
    },
    "meta": {
      "type": "object",
      "properties": {
        "requestId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9._:~-]{1,256}$"
        },
        "correlationId": {
          "type": "string",
          "pattern": "^[A-Za-z0-9._:~-]{1,256}$"
        },
        "apiVersion": {
          "type": "string",
          "enum": [
            "2026-08-07"
          ]
        },
        "generatedAt": {
          "type": "string",
          "format": "date-time"
        },
        "syncCheckpoint": {
          "type": "string",
          "format": "date-time"
        },
        "customerReferenceVersion": {
          "type": "string",
          "enum": [
            "hmac-sha256-v1"
          ]
        },
        "dataset": {
          "type": "string",
          "enum": [
            "locations",
            "sales",
            "products",
            "inventory",
            "customer_compliance"
          ]
        },
        "syncOverlapSeconds": {
          "type": "number",
          "enum": [
            300
          ]
        }
      },
      "required": [
        "requestId",
        "correlationId",
        "apiVersion",
        "generatedAt",
        "syncCheckpoint",
        "customerReferenceVersion",
        "dataset",
        "syncOverlapSeconds"
      ]
    }
  },
  "required": [
    "data",
    "page",
    "meta"
  ]
}
PartnerDataError
{
  "type": "object",
  "properties": {
    "code": {
      "type": "string",
      "enum": [
        "invalid_request",
        "authentication_required",
        "permission_denied",
        "api_version_not_supported",
        "invalid_cursor",
        "rate_limited",
        "upstream_unavailable",
        "internal_error"
      ]
    },
    "message": {
      "type": "string",
      "minLength": 1,
      "maxLength": 500
    },
    "requestId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9._:~-]{1,256}$"
    },
    "correlationId": {
      "type": "string",
      "pattern": "^[A-Za-z0-9._:~-]{1,256}$"
    },
    "retryable": {
      "type": "boolean"
    },
    "details": {
      "type": "object",
      "additionalProperties": {}
    }
  },
  "required": [
    "code",
    "message",
    "requestId",
    "correlationId",
    "retryable"
  ]
}