Uber · Schema

OrderReceipt

Ride-SharingRidesTaxisTransportationFood DeliveryDeliveryLogistics

Properties

Name Type Description
order_id string Unique order identifier.
store_name string Name of the restaurant.
placed_at string Time the order was placed.
items array
subtotal number Order subtotal before fees.
delivery_fee number Delivery fee amount.
total number Total amount charged.
currency_code string ISO 4217 currency code.
View JSON Schema on GitHub

JSON Schema

uber-orderreceipt-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/OrderReceipt",
  "title": "OrderReceipt",
  "type": "object",
  "properties": {
    "order_id": {
      "type": "string",
      "description": "Unique order identifier."
    },
    "store_name": {
      "type": "string",
      "description": "Name of the restaurant."
    },
    "placed_at": {
      "type": "string",
      "format": "date-time",
      "description": "Time the order was placed."
    },
    "items": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "quantity": {
            "type": "integer"
          },
          "price": {
            "type": "number"
          }
        }
      }
    },
    "subtotal": {
      "type": "number",
      "description": "Order subtotal before fees."
    },
    "delivery_fee": {
      "type": "number",
      "description": "Delivery fee amount."
    },
    "total": {
      "type": "number",
      "description": "Total amount charged."
    },
    "currency_code": {
      "type": "string",
      "description": "ISO 4217 currency code."
    }
  }
}