commercetools · JSON-LD Context

Commercetools Context

JSON-LD context defining the semantic vocabulary for Commercetools from commercetools.

0 Classes 13 Properties 5 Namespaces
View Context View on GitHub

Namespaces

ct: https://api.commercetools.com/ontology#
schema: https://schema.org/
xsd: http://www.w3.org/2001/XMLSchema#
dcterms: http://purl.org/dc/terms/
skos: http://www.w3.org/2004/02/skos/core#

Properties

Property Type Container
Product
ProductVariant
Category
Order
Cart
Customer
Payment
InventoryEntry
Store
Money
Address
LineItem
Subscription

JSON-LD Document

Raw ↑
{
  "@context": {
    "@version": 1.1,
    "ct": "https://api.commercetools.com/ontology#",
    "schema": "https://schema.org/",
    "xsd": "http://www.w3.org/2001/XMLSchema#",
    "dcterms": "http://purl.org/dc/terms/",
    "skos": "http://www.w3.org/2004/02/skos/core#",

    "Product": {
      "@id": "ct:Product",
      "@context": {
        "id": "@id",
        "key": "ct:key",
        "productType": {
          "@id": "ct:productType",
          "@type": "@id"
        },
        "masterData": "ct:masterData",
        "taxCategory": {
          "@id": "ct:taxCategory",
          "@type": "@id"
        },
        "state": {
          "@id": "ct:state",
          "@type": "@id"
        },
        "priceMode": "ct:priceMode",
        "createdAt": {
          "@id": "dcterms:created",
          "@type": "xsd:dateTime"
        },
        "lastModifiedAt": {
          "@id": "dcterms:modified",
          "@type": "xsd:dateTime"
        }
      }
    },

    "ProductVariant": {
      "@id": "ct:ProductVariant",
      "@context": {
        "sku": "ct:sku",
        "key": "ct:key",
        "prices": {
          "@id": "ct:prices",
          "@container": "@set"
        },
        "attributes": {
          "@id": "ct:attributes",
          "@container": "@set"
        },
        "images": {
          "@id": "ct:images",
          "@container": "@set"
        }
      }
    },

    "Category": {
      "@id": "ct:Category",
      "@context": {
        "id": "@id",
        "key": "ct:key",
        "name": {
          "@id": "schema:name"
        },
        "slug": "ct:slug",
        "description": {
          "@id": "schema:description"
        },
        "parent": {
          "@id": "ct:parent",
          "@type": "@id"
        },
        "ancestors": {
          "@id": "ct:ancestors",
          "@type": "@id",
          "@container": "@set"
        },
        "orderHint": "ct:orderHint",
        "metaTitle": "ct:metaTitle",
        "metaDescription": "ct:metaDescription",
        "createdAt": {
          "@id": "dcterms:created",
          "@type": "xsd:dateTime"
        },
        "lastModifiedAt": {
          "@id": "dcterms:modified",
          "@type": "xsd:dateTime"
        }
      }
    },

    "Order": {
      "@id": "ct:Order",
      "@context": {
        "id": "@id",
        "orderNumber": "ct:orderNumber",
        "purchaseOrderNumber": "ct:purchaseOrderNumber",
        "customerId": "ct:customerId",
        "customerEmail": {
          "@id": "schema:email"
        },
        "customerGroup": {
          "@id": "ct:customerGroup",
          "@type": "@id"
        },
        "orderState": "ct:orderState",
        "shipmentState": "ct:shipmentState",
        "paymentState": "ct:paymentState",
        "totalPrice": "ct:totalPrice",
        "taxedPrice": "ct:taxedPrice",
        "billingAddress": {
          "@id": "schema:billingAddress",
          "@type": "schema:PostalAddress"
        },
        "shippingAddress": {
          "@id": "schema:deliveryAddress",
          "@type": "schema:PostalAddress"
        },
        "lineItems": {
          "@id": "ct:lineItems",
          "@container": "@set"
        },
        "customLineItems": {
          "@id": "ct:customLineItems",
          "@container": "@set"
        },
        "deliveries": {
          "@id": "ct:deliveries",
          "@container": "@set"
        },
        "returnInfo": {
          "@id": "ct:returnInfo",
          "@container": "@set"
        },
        "store": {
          "@id": "ct:store",
          "@type": "@id"
        },
        "businessUnit": {
          "@id": "ct:businessUnit",
          "@type": "@id"
        },
        "createdAt": {
          "@id": "dcterms:created",
          "@type": "xsd:dateTime"
        },
        "lastModifiedAt": {
          "@id": "dcterms:modified",
          "@type": "xsd:dateTime"
        },
        "completedAt": {
          "@id": "ct:completedAt",
          "@type": "xsd:dateTime"
        }
      }
    },

    "Cart": {
      "@id": "ct:Cart",
      "@context": {
        "id": "@id",
        "key": "ct:key",
        "customerId": "ct:customerId",
        "customerEmail": {
          "@id": "schema:email"
        },
        "cartState": "ct:cartState",
        "totalPrice": "ct:totalPrice",
        "taxedPrice": "ct:taxedPrice",
        "billingAddress": {
          "@id": "schema:billingAddress",
          "@type": "schema:PostalAddress"
        },
        "shippingAddress": {
          "@id": "schema:deliveryAddress",
          "@type": "schema:PostalAddress"
        },
        "lineItems": {
          "@id": "ct:lineItems",
          "@container": "@set"
        },
        "taxMode": "ct:taxMode",
        "inventoryMode": "ct:inventoryMode",
        "store": {
          "@id": "ct:store",
          "@type": "@id"
        },
        "createdAt": {
          "@id": "dcterms:created",
          "@type": "xsd:dateTime"
        },
        "lastModifiedAt": {
          "@id": "dcterms:modified",
          "@type": "xsd:dateTime"
        }
      }
    },

    "Customer": {
      "@id": "ct:Customer",
      "@context": {
        "id": "@id",
        "key": "ct:key",
        "email": {
          "@id": "schema:email"
        },
        "firstName": {
          "@id": "schema:givenName"
        },
        "lastName": {
          "@id": "schema:familyName"
        },
        "dateOfBirth": {
          "@id": "schema:birthDate",
          "@type": "xsd:date"
        },
        "isEmailVerified": "ct:isEmailVerified",
        "customerGroup": {
          "@id": "ct:customerGroup",
          "@type": "@id"
        },
        "addresses": {
          "@id": "schema:address",
          "@type": "schema:PostalAddress",
          "@container": "@set"
        },
        "stores": {
          "@id": "ct:stores",
          "@type": "@id",
          "@container": "@set"
        },
        "createdAt": {
          "@id": "dcterms:created",
          "@type": "xsd:dateTime"
        },
        "lastModifiedAt": {
          "@id": "dcterms:modified",
          "@type": "xsd:dateTime"
        }
      }
    },

    "Payment": {
      "@id": "ct:Payment",
      "@context": {
        "id": "@id",
        "key": "ct:key",
        "customer": {
          "@id": "ct:customer",
          "@type": "@id"
        },
        "interfaceId": "ct:interfaceId",
        "amountPlanned": "ct:amountPlanned",
        "paymentMethodInfo": "ct:paymentMethodInfo",
        "paymentStatus": "ct:paymentStatus",
        "transactions": {
          "@id": "ct:transactions",
          "@container": "@set"
        },
        "createdAt": {
          "@id": "dcterms:created",
          "@type": "xsd:dateTime"
        },
        "lastModifiedAt": {
          "@id": "dcterms:modified",
          "@type": "xsd:dateTime"
        }
      }
    },

    "InventoryEntry": {
      "@id": "ct:InventoryEntry",
      "@context": {
        "id": "@id",
        "key": "ct:key",
        "sku": "ct:sku",
        "supplyChannel": {
          "@id": "ct:supplyChannel",
          "@type": "@id"
        },
        "quantityOnStock": "ct:quantityOnStock",
        "availableQuantity": "ct:availableQuantity",
        "restockableInDays": "ct:restockableInDays",
        "expectedDelivery": {
          "@id": "ct:expectedDelivery",
          "@type": "xsd:dateTime"
        },
        "createdAt": {
          "@id": "dcterms:created",
          "@type": "xsd:dateTime"
        },
        "lastModifiedAt": {
          "@id": "dcterms:modified",
          "@type": "xsd:dateTime"
        }
      }
    },

    "Store": {
      "@id": "ct:Store",
      "@context": {
        "id": "@id",
        "key": "ct:key",
        "name": {
          "@id": "schema:name"
        },
        "languages": {
          "@id": "ct:languages",
          "@container": "@set"
        },
        "countries": {
          "@id": "ct:countries",
          "@container": "@set"
        },
        "distributionChannels": {
          "@id": "ct:distributionChannels",
          "@type": "@id",
          "@container": "@set"
        },
        "supplyChannels": {
          "@id": "ct:supplyChannels",
          "@type": "@id",
          "@container": "@set"
        },
        "productSelections": {
          "@id": "ct:productSelections",
          "@container": "@set"
        },
        "createdAt": {
          "@id": "dcterms:created",
          "@type": "xsd:dateTime"
        },
        "lastModifiedAt": {
          "@id": "dcterms:modified",
          "@type": "xsd:dateTime"
        }
      }
    },

    "Money": {
      "@id": "ct:Money",
      "@context": {
        "currencyCode": "ct:currencyCode",
        "centAmount": "ct:centAmount",
        "fractionDigits": "ct:fractionDigits"
      }
    },

    "Address": {
      "@id": "schema:PostalAddress",
      "@context": {
        "country": {
          "@id": "schema:addressCountry"
        },
        "firstName": {
          "@id": "schema:givenName"
        },
        "lastName": {
          "@id": "schema:familyName"
        },
        "streetName": {
          "@id": "schema:streetAddress"
        },
        "city": {
          "@id": "schema:addressLocality"
        },
        "postalCode": {
          "@id": "schema:postalCode"
        },
        "region": {
          "@id": "schema:addressRegion"
        },
        "email": {
          "@id": "schema:email"
        },
        "phone": {
          "@id": "schema:telephone"
        }
      }
    },

    "LineItem": {
      "@id": "ct:LineItem",
      "@context": {
        "productId": {
          "@id": "ct:product",
          "@type": "@id"
        },
        "name": {
          "@id": "schema:name"
        },
        "quantity": {
          "@id": "schema:amount"
        },
        "totalPrice": "ct:totalPrice",
        "lineItemMode": "ct:lineItemMode",
        "priceMode": "ct:priceMode"
      }
    },

    "Subscription": {
      "@id": "ct:Subscription",
      "@context": {
        "id": "@id",
        "key": "ct:key",
        "destination": "ct:destination",
        "messages": {
          "@id": "ct:messages",
          "@container": "@set"
        },
        "changes": {
          "@id": "ct:changes",
          "@container": "@set"
        },
        "format": "ct:format",
        "status": "ct:status",
        "createdAt": {
          "@id": "dcterms:created",
          "@type": "xsd:dateTime"
        },
        "lastModifiedAt": {
          "@id": "dcterms:modified",
          "@type": "xsd:dateTime"
        }
      }
    }
  }
}