Pizza x402 — Hosting and data retrieval
This information sheet concerns the Pizza x402 takeaway ordering service, provided by Erik Pierre Louis Saunier, sole trader. For questions or data retrieval requests: support@pizzax402.com. A restaurant’s files are delivered through a private channel after the recipient’s authorisation has been verified; this page does not publish any merchant data.
Tables can be scrolled horizontally. With a keyboard, focus the table and use the arrow keys.
Hosting and jurisdictions
The main application and database resources are located in France, in the Paris region. This does not mean that all services, support access or processing remain in France or in the European Economic Area.
| Service | Providers and jurisdictions | Location and chain of providers |
|---|---|---|
| Application, database and document storage | Google Cloud France SARL, France; chain including Google LLC, United States | Main resources in France. Additional locations and providers applicable to the services used are listed in the Google Cloud register. |
| Support and professional email | Google Cloud France SARL, France; Google Workspace chain including Google LLC, United States | Locations and access may extend beyond the EEA; see the Google Workspace register. Email and database processing may take place in different locations. |
| Web interfaces, distribution and protection | Cloudflare, Inc., United States | Global network and chain described in the Cloudflare register. An interface served through this network does not guarantee exclusively European processing. |
| Payment and invoice production | Stripe Payments Europe, Limited, and financial services provided by Stripe Technology Europe, Limited, Ireland; chain including Stripe, LLC, United States | Roles depend on the service and the restaurant’s direct contract with Stripe. Other providers are described in the Stripe register. |
These registers specify the countries and chains applicable to the services concerned. The location of a main resource neither guarantees the location of all international access nor provides an exemption from Pizza x402’s contractual obligations.
Safeguards against international access that conflicts with applicable law
For non-personal data held in the European Union, Pizza x402 limits access to necessary functions, protects communications and documents, and passes the relevant obligations down its chain of providers. Before any disclosure, requests from third-country authorities are reviewed for their legal basis and compatibility with French and EU law. Pizza x402 limits disclosure to what is legally permitted, uses appropriate avenues to challenge requests where necessary, and informs the restaurant in accordance with the law, unless prohibited from doing so. These measures do not guarantee immunity from every legally binding request.
The processing of personal data is covered separately by the contract’s data annex and the applicable data protection information. Transfer mechanisms are distinguished there according to the roles and data flows concerned.
Data retrieval format register
Data retrieval is assisted by support. Originals are not modified. The delivery manifest identifies the files, their coverage, their links and any exceptions; a guide and assistance with reading the files may accompany delivery.
| Data set | Format and structure | Reading and scope |
|---|---|---|
| Original invoices and credit notes | PDF, with document and order references in the inventory | Readable in a standard PDF reader. Documents are not replaced by a simple index. |
| Tax archive | ZIP containing archive.json, reader.go and NOTICE.fr.txt. UTF-8 JSON, format version 1: merchant, sequence and hashes, version, creation, scope, tables, closing records, originals, totals and exceptions. PDFs are base64-encoded in originals[]. | The reader and guide allow independent reading and verification; Pizza x402 can assist the recipient without requiring them to install anything. A separate file allows the integrity of the delivered data to be checked. This ZIP is not the complete service exit package. |
| Manual correction documents | Separate PDFs, with the related request, approval, numbering and inventory | Supplementary file set assembled by support; it accompanies the tax archive and the documents sent for accounting. |
| Current catalogue | JSON: pizzas, components and menu items with their version references | Current data; this file alone does not cover the full history or the full service configuration. |
| Other contract exit data | Historical catalogue, configuration, users and permissions, applicable files and metadata: a structured supplement to be prepared by support, in UTF-8 JSON with a field dictionary | The assisted assembly must be checked for the request concerned. The manifest specifies fields, types, links, dates, scope and legitimate exclusions; no complete self-service export is claimed. |
Secret access credentials, other restaurants’ data, and Pizza x402’s own code or infrastructure are excluded without preventing retrieval of the restaurant’s data.
The contract specifies which data can be retrieved, the transition and retrieval periods, and what happens to copies at the end of those periods. Delivery through a private channel is checked with the recipient; being able to read the data does not imply a commitment to recreate the Pizza x402 software with another provider.
Detailed retrieval structures
The following sections describe the formats in the register and the assisted delivery supplement provided for in the contract. They do not publish any restaurant files.
1. Reading conventions
| Type or convention | Representation |
|---|---|
| JSON | UTF-8 text; objects, arrays, strings, numbers, booleans and null, as defined by JSON (RFC 8259). Field names are case-sensitive. |
string, boolean, integer, object | Respectively a string, a boolean, a JSON integer and a JSON object. Integers in the Go archive may be 64-bit: a reading tool must preserve their precision. |
uuid | A string representing a UUID identifier; retain this string for reconciliation. |
datetime | A string containing the date, time and UTC offset, compatible with RFC 3339; Go dates may include fractional seconds. Serialised SQL dates remain strings with their offset. |
unix-seconds | An integer number of seconds since the Unix epoch, only where explicitly indicated, particularly in evidence from the invoicing provider. |
minor | An integer number of minor monetary units, accompanied by the currency. For EUR, 100 minor units equal 1 euro. Do not treat these values as decimal amounts in euros. |
sha256 | A SHA-256 hash, represented as a 64-character hexadecimal string when a hash is populated. Previous-chain fields may be empty at the start of a chain. |
base64 | A JSON string containing binary bytes encoded in standard base64; decode it before comparing the byte size and hash. |
T[], map<T>, ? | An array of T; an object whose values are of type T; a field that may be absent. null is distinct from an absent field. Uninitialised Go collections may be serialised as null: the dictionary does not turn this case into invented data. |
Identifiers link the files; a storage key or reference is not a public download link. Binary originals are retained without transformation. No automatic conversion to CSV, UBL, CII, Factur-X or PDF/A is claimed.
2. Tax archive — existing format version 1
2.1 Files and envelope
The ZIP container holds exactly archive.json, reader.go and NOTICE.fr.txt. archive.json is the main JSON document. reader.go is a standalone reader and verifier written in Go; the French-language guide explains its use and limitations. An independent JSON witness is supplied separately, without being reconstructed from the database being checked.
Field in archive.json | Type | Meaning |
|---|---|---|
format_version | integer | 1. |
merchant | string | Restaurant identifier. |
sequence, previous_sha256 | integer, string | Package sequence and hash of the previous package. |
software_version, created_at | string, datetime | Software version and package creation snapshot. |
inception | datetime | Start of the declared coverage. |
first_periods | Period[] | Explicit first periods for the closing families. |
scope | string | Value used by the current producer: cumulative_all_merchant_sources; covers the 20 tax data families below, not all SaaS data. |
tables | map<Row[]> | Cumulative source tables for this restaurant only. Every required family is present, including as an empty array. |
closures | Closure[] | JSON snapshots of closing records, not rewritten by the export. |
originals | Original[] | Original documents and their encoded bytes. |
totals | Totals | Monetary checks reconstructed from the sources. |
exceptions | Exception[] | Reconciliation anomalies or limitations to retain with the package. |
2.2 Nested structures
| Structure | Fields and types |
|---|---|
Period | kind: string (day, month, financial_year); start: datetime; end: datetime; timezone: string; financial_year_month: integer; financial_year_day: integer. The time zone and financial year anchor remain explicit. |
Closure | id: string; format_version: integer; merchant: string; period: Period; sequence: integer; previous_sha256: string; software_version: string; created_at: datetime; facts: Fact[]; totals: Totals; perpetual: Totals; exceptions: Exception[]; resolved_prior_exceptions: Exception[]. perpetual contains the cumulative checks. |
Fact | effective_date_basis: string; evidence_sha256?: sha256; key: string; kind: string; order: string; account: string; reference: string; parent?: string; currency: string; amount_minor: minor; effective_at: datetime; observed_at: datetime; taxes?: Tax[]. The effective date and the date the fact became known are not interchangeable. |
Tax | rate_id: string; percentage: string (decimal percentage retained as text); tax_behavior: string; taxable_minor: minor; tax_minor: minor. |
Totals | net_minor: minor; sales_count: integer; sales_minor: minor; refund_count: integer; refunds_minor: minor; document_count: integer; taxes: map<Tax>. The tax breakdown key combines currency/rate/percentage/tax behaviour. Sales and refunds remain distinct populations. |
Original | document: string; key: string; backend: string; bucket?: string; generation?: string; sha256: sha256; size: integer (decoded bytes); bytes: base64. document corresponds to the document identifier in order_documents. key, bucket and generation describe technical provenance without providing storage access. |
Exception | code: string; source: string. |
2.3 Source tables, types and links
Row is a JSON object whose keys are source column names in snake_case. The current producer serialises each SQL row using to_jsonb, without renaming its columns. UUIDs and dates become strings; numbers, booleans, arrays and JSON objects retain their JSON type; a null SQL column produces null. JSON columns such as snapshot, request, content and evidence remain nested objects or arrays, not PDF files. The exact shape of additional columns depends on the software version identified by the package; the business fields and links needed for reading are described below.
All families except merchants carry merchant_id: uuid. Joins retain this identifier and, for objects attached to an order, order_id: uuid. id must not be used to reconcile different restaurants.
Family in tables | Useful data and links |
|---|---|
merchants | One row; id: uuid, display_name, currency_code, locale, time_zone: string, is_accepting_orders: boolean, creation/update dates. id corresponds to merchant. |
orders | id: uuid, order status, currency_code: string, subtotal_minor, total_minor: minor, dates and pickup promises. Parent of line items, payments and documents. |
order_items | id, order_id, catalog_item_id, catalog_item_version_id: uuid; quantity: integer, unit_price_minor, line_total_minor: minor; item name and commercial/tax snapshots. Catalogue references do not imply that the entire catalogue is in this ZIP. |
order_item_supplements | order_item_id, supplement_id, supplement_version_id: uuid, supplement_version_number: integer, supplement_name: string, supplement_unit_price_minor: minor, tax_category_snapshot: string, position: integer. Join to the line item through the order and order_item_id. |
payment_attempts | id, order_id: uuid, provider, provider_account_id, provider_reference, status: string; amount_minor: minor; payment date and date it became known. Unsuccessful attempts remain distinct from successful collections. |
payment_refunds | id, order_id, payment_attempt_id: uuid; provider references and status; amount_minor: minor, currency_code: string, reason, requesting actor, dates; allocation_complete: boolean. Join to the original payment. |
payment_refund_lines | refund_id, order_item_id: uuid, amount_minor: minor, quantity: integer or null. Allocation of a refund to an original line item; an absent quantity is not zero. |
payment_refund_observations | id, order_id, refund_id: uuid; source, source_reference, api_version, provider_status: string, dates and evidence: object. Observation evidence, without any new collection/refund. |
payment_refund_allocations | id, order_id, refund_id: uuid; authority_reference, evidence_reference, result, reason: string; requested_lines: array, observed_at: datetime. Allocation decision, distinct from the movement of money. |
order_documents | id, order_id, payment_attempt_id: uuid, refund_id: uuid or null; kind: string (invoice/credit_note), number, status, provider references; snapshot: object, dates and original document metadata. The credit note references the refund and the original payment. |
order_document_lines | document_id, order_item_id: uuid; invoice_item_id, invoice_line_id: string. Links the document line to the commercial line item. |
order_document_steps | document_id: uuid, name: string, request: object, provider and qualification references. Records of document processing steps, without replacing the PDF. |
order_document_fiscal_evidence | document_id: uuid, provider_account_id, provider_reference, api_version: string, observed_at: datetime, evidence: RetainedFiscalEvidence described below. |
order_document_fiscal_observations | id, document_id: uuid, provider references, api_version, observation_kind: string, content_sha256: sha256, evidence: object, observed_at: datetime. The raw object depends on the observation type: document, lines, rates or validation. |
order_billing_profiles | order_id, version_id: uuid or null, content_digest: string or null, bound_at: datetime, hold_reason: string. Links the order to the version of the restaurant’s billing details. |
merchant_billing_versions | id: uuid, revision: integer, content: object, content_digest: sha256, confirmed_by: uuid, confirmed_at: datetime. Confirmed history of billing details. |
merchant_document_qualifications | id, version_id: uuid, content_digest: sha256, provider/authority/evidence references, result, reasons, rates and qualification or revocation dates. Join to the billing version. |
order_contract_snapshots | order_id, payment_attempt_id: uuid, content: object, content_sha256: sha256, created_at: datetime. Contract snapshot accepted when the order was placed; do not substitute current terms. |
order_status_events | id, order_id: uuid, from_status: string or null, to_status, actor_type: string, actor_id: uuid or null, occurred_at: datetime. History of transitions and their actors. |
fiscal_closure_sources | closure_id: uuid, kind: string, source_key: string, source_sha256: sha256. Links a source fact, by period family, to closures[].id. |
The fields in RetainedFiscalEvidence are: version: integer (=1), currency: string, total_minor, subtotal_excluding_tax_minor, total_excluding_tax_minor: minor, taxes: Tax[], created_at: unix-seconds, effective_at, finalized_at, paid_at: unix-seconds or null, lines: RetainedFiscalLine[], rates: object[] and document: object (retained raw results from the provider). Each RetainedFiscalLine includes provider_line_id, order_item_id, invoice_line_id, invoice_item_id: string, total_minor: minor, taxes: Tax[] and raw: object. Raw content is retained for reconciliation; no new VAT normalisation is claimed.
2.4 Separate witness and reading
The witness JSON includes format_version: integer, merchant: string, latest_archive_sequence: integer, latest_archive_sha256: sha256, covered_from, covered_through: datetime, provider_population: Population[], sales_count, refund_count: integer, sales_minor, refunds_minor: minor, independent_source: string and observed_at: datetime. Each Population includes kind, account, reference, currency: string and amount_minor: minor.
Standalone reading and verification use Go 1.26 or later and its standard library: go run reader.go archive.json <témoin-séparé.json>. Once Go is available, they require no access to the Pizza x402 service, PostgreSQL, Stripe or the Internet. PDFs can be retrieved by decoding originals[].bytes, checking size and sha256. Pizza x402 can assist with this reading without requiring the recipient to install Go. An unresolved exception or the absence of an independent witness must be reported; this format alone proves neither effective independent custody nor overall service compliance.
3. PDFs and document index — existing structures
Originals are application/pdf files downloaded under a name of the form document-<id>.pdf. Their content is not replaced by the index JSON. The owner index is a paginated JSON response: {merchantName: string, documents: OwnerDocument[], nextCursor?: string}. An index by order is {orderId: uuid, pickupLabel: string, paymentStatus: string, refundStatus: string, documents: OwnerDocument[]}.
OwnerDocument includes id, orderId: uuid, kind: string, number?: string, recordedAt: datetime, amountMinor?: minor, currencyCode?: string, pickupLabel: string, pickupWindowStartAt?: datetime, availability: string. id links the index, PDF and archive references; orderId links the order. nextCursor is a pagination continuation, not an archive format or an accounting document.
Manual correction documents are separate PDFs, accompanied by their request, approval, numbering and references to the corrected documents. Their assisted file set must not be presented as automatically incorporated into the tax ZIP by the current code.
4. Current catalogue — existing JSON
Two owner response structures exist: {merchantId: uuid, pizzas: OwnerPizza[], components: Component[]} and {merchantId: uuid, items: OwnerPizza[]}. The first selects pizzas; the second also includes other item categories. These responses are current catalogue reads authenticated for each restaurant; they are not a complete history export.
| Object | Fields and types |
|---|---|
OwnerPizza | id, versionId: uuid; versionNumber: integer; name, description, recipe: string; composition, allergens, additionalAllergens: string[]; priceMinor: minor; currencyCode: string; available, enabled, requiresAgeVerification, publishable: boolean; unavailableReasons, publicationBlockers: string[]; section, kind, alcoholCategory, taxCategory: string; sortOrder: integer; componentIds: uuid[]; imageAssetKey?: string. |
Component | id: uuid; name, displayName: string; kind: string; available, meat, declarationComplete: boolean; allergens?: string[]; meatSpecies?, meatOrigin?: string. The absence of allergens is not a declaration of an empty array. |
componentIds[] corresponds to components[].id. id identifies the stable item; versionId and versionNumber identify the current commercial version. imageAssetKey is a media reference, not the image file itself.
Categories include pizza, beverage, dessert; sections include tomato, cream, soft_drinks, beers, wines, desserts; alcohol categories include none, group_3; tax categories include prepared_food_10, packaged_soft_drink_5_5, takeaway_dessert_5_5, alcohol_20. Values are retained as business codes, with their labels in the guide if necessary.
The public menu model also contains supplements: Supplement[], with id, versionId: uuid, versionNumber: integer, name: string, priceMinor: minor, currencyCode: string, available: boolean. Their presence in the menu does not provide the full supplement history; this is covered by the assisted supplement below.
5. Assisted exit supplement — planned format, not yet generated
Status: planned method for fulfilling contractual data retrieval, to be prepared and verified for the delivery concerned. No complete file, standalone generator, new endpoint or deployment is evidenced. This register describes the planned format; the manifest will subsequently state what was actually delivered and any exceptions. History means data still held within the scope of the contract, without promising to recreate data that no longer exists.
5.1 Planned envelope
The planned format uses a service-data.json file, in UTF-8 JSON, with the following fields. These field names describe the assisted delivery; they are not existing API responses.
| Field | Type and rule |
|---|---|
format | string, planned value pizza-x402-assisted-exit. |
format_version | integer, planned value 1. |
merchant_id | uuid of the restaurant concerned only. |
generated_at, as_of | datetime of preparation and data snapshot. |
software_version | string identifying the software source of the delivery. |
datasets | Dataset[]; families described in 5.2. A covered family with no records is an empty array of rows, not a silently omitted family. |
files | File[]; documents and binary media delivered separately, without a secret access URL. |
exceptions | ExitException[]; precisely identified gaps, legitimate exclusions and limitations. |
A Dataset is {name: string, fields: Field[], primary_key: string[], foreign_keys: ForeignKey[], rows: object[]}. A Field is {name: string, type: string, nullable: boolean, description: string}. The permitted types are string, uuid, integer, boolean, datetime, string[], uuid[], json. A ForeignKey is {fields: string[], target_dataset: string, target_fields: string[]}; positions in the two lists correspond. Keys in rows correspond exactly to fields[].name, without inferring a missing value. The known fields below are required in their family’s dictionary; a nullable field remains explicit as null.
A File is {id: string, path: string, media_type: string, size_bytes: integer, sha256: string, relations: FileRelation[]}; path is relative to the delivered folder, without an absolute path or access identifier. A FileRelation is {dataset: string, key: object, purpose: string}; key uses the documented primary key fields of the data set. The MIME type and extension reflect the actual binary content (for example PDF or image), without an invented conversion. An ExitException is {dataset: string, record_key: object|null, code: string, description: string}; no exception would by itself validate completeness.
5.2 Planned families and business dictionary
The names below use the families already present in the data model. All rows in these families carry merchant_id: uuid, except merchants, which is identified by id. Fields marked nullable would accept null. Source creation/update dates are retained where they exist. This is a projection of business data compatible with the model, not a raw copy of authentication tables.
| Planned family | Business fields documented for the projection and links |
|---|---|
merchants | id: uuid; display_name, currency_code, locale, time_zone: string; is_accepting_orders, alcohol_takeaway_authorized, alcohol_night_authorized: boolean; service_hours_version: integer. Public contact details held: public_phone_e164: string nullable. |
catalog_items | id: uuid; current_version_id: uuid nullable → catalog_item_versions.id; is_enabled: boolean; kind, section: string; sort_order: integer; created_at, updated_at: datetime. |
catalog_item_versions | id, catalog_item_id: uuid → stable item; version_number: integer; name, description, recipe, kind, section, alcohol_category, tax_category: string; composition, additional_allergens: string[]; price_minor: minor; created_by_member_id: uuid nullable; created_at: datetime; image_asset_key: string nullable, to be linked to the delivered media file where it is held and relevant. |
catalog_components | id: uuid; name, display_name, kind: string; is_available, is_meat: boolean; allergens: string[] nullable; meat_species, meat_origin: string nullable; created_at, updated_at: datetime. |
catalog_item_version_components | Composite key catalog_item_version_id, component_id: uuid; position: integer; component_name_snapshot, display_name_snapshot, kind_snapshot: string; allergens_snapshot: string[] nullable; is_meat_snapshot: boolean; meat_species_snapshot, meat_origin_snapshot: string nullable. Links to the item version and component. These snapshots preserve the historical composition. |
catalog_supplements | id: uuid; current_version_id: uuid nullable → catalog_supplement_versions.id; is_enabled, is_available: boolean; sort_order: integer; created_at, updated_at: datetime. |
catalog_supplement_versions | id, supplement_id: uuid → stable supplement; version_number: integer; name, tax_category: string; price_minor: minor; created_at: datetime. The currency remains that of the restaurant. |
component_availability_events | id, component_id, actor_member_id: uuid; previous_available, available: boolean; affected_pizzas: json; occurred_at, undo_until: datetime; undone_at: datetime nullable; reverses_event_id: uuid nullable → earlier event. These events are the changes actually held, not an invented history of every configuration. |
merchant_service_hours | id: uuid; weekday, first_pickup_minute, cutoff_minute, cutoff_day_offset: integer; name: string. The source day ranges from 0 to 6; minutes are counted from midnight, with a separate day offset for the cutoff. The time zone is the restaurant’s. |
merchant_services | id: uuid; state: string; current_delay_minutes, revision: integer; resume_required: boolean; first_possible_pickup_at, planned_closing_at, last_delay_confirmation_at, opened_at, updated_at: datetime; automatically_suspended_at: datetime nullable; occurrence_label: string nullable; occurrence_date: string nullable, calendar date YYYY-MM-DD. This is the service state held, without inventing occurrences that have not been retained. |
merchant_members | id: uuid; email, role: string; created_at: datetime. The role is the stored code, described in the delivery guide; it grants no access at the receiving provider. |
orders_manager_grants | id: uuid; member_id: uuid nullable and invited_by_member_id: uuid → members; name, email, state: string; revision: integer; created_at, invitation_expires_at: datetime; accepted_at, revoked_at: datetime nullable. The known status is pending, active, expired or revoked. |
orders_access_policies | mode: string, revision: integer, owner_code_changed_at: datetime nullable. Does not include the collective code, its derivatives or parameters that could be used to verify a secret. |
merchant_staff_devices | id, owner_id: uuid → member; device_label: string; authorized_at, revoked_at: datetime nullable; revoked_by_member_id: uuid nullable; created_at: datetime. Descriptive inventory and authorisations, without authentication material, sessions or reusable proof of access. |
Documents, correction file sets, media and associated metadata are listed in files and their relations. Billing histories/details and order snapshots already present in the tax archive remain referenced by their identifiers, without being replaced by the current catalogue. Any additional retrievable data actually held and covered by the contract is described in a documented data set using the same schema; its structure is added to this register and its coverage to the delivery. Secrets, tokens, reusable sessions, other restaurants’ data and components belonging to the software itself are excluded from the supplement; this exclusion does not remove the restaurant’s business data.