What is a priceCode
?
Question
What is a priceCode
in Subscriptions?
Each
product
has a unique identifier, thesku
.Each
product
could have severalprice
andoffer
and each are identified by anid
; 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