# What is a priceCode?

Source: https://docs.arcxp.com/en/knowledge-articles/subscriptions/what-is-a-pricecode-.html

## Question

What is a `priceCode` in Subscriptions?

- Each `product` has a unique identifier, the `sku`.
- Each `product` could have several `price` and `offer` and each are identified by an `id`; each offer could have several products & prices.

## Answer

The `priceCode` is a unique identifier per `price` which is created automatically when a new `price` is created.

Example code:

```
"items": [
    {
      "sku": "string",
      "quantity": 0,
      "shortDescription": "string",
      "name": "string",
      "price": 0,
      "tax": 0,
      "subtotal": 0,
      "total": 0,
      "priceCode": "string",
      "eventId": 0,
      "ownerClientId": "string",
      "attributes": [
        {
          "name": "attribute 1",
          "label": "string",
          "value": "value 1",
          "dataType": "String,Bool,Number,DateTime,ArcEntityReference,Object,Enum,Assets",
          "dataTypeId": 0,
          "visible": true,
          "configuration": {
            "enums": [
              "string"
            ]
          }
        }
      ],
      "gift": true
    }
  ]
```

For more information about each of these identifiers and their relationships, see the following document: [Getting Started with Offers in Arc XP](https://arcxp.service-now.com/kb%5Fview.do?sysparm%5Farticle=KB0010171&sysparm%5Frank=2&sysparm%5FtsqueryId=a46dfbfd47116510d0cba8b5536d43a5)

## More information

| [Getting Started with Offers in Arc XP](https://arcxp.service-now.com/kb%5Fview.do?sysparm%5Farticle=KB0010171&sysparm%5Frank=2&sysparm%5FtsqueryId=a46dfbfd47116510d0cba8b5536d43a5) |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
