Skip to main content

What is a priceCode?

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

More information