Customer Documentation Portal
  • Docs

›Data Model

Getting Started

  • Welcome
  • Environments
  • Onboarding

Documentation

  • Introduction
  • Data Organisation
  • Authentication
  • Query Language
  • Data Model

    • Data Model
    • Entities
    • Price
    • Price Request
    • Product
    • Product Group
    • Reference
    • Site
    • Survey History
    • Volume
  • Import Endpoints

Tutorials

  • Welcome
  • Excel
  • Authenticating

Price Request Entities

Overview

The Price collection consists of all of the different entities associated with price requests.


Price Request Data Model

The following data model shows the Price Request entity and it's relational links. For the full model, see Data Model.


Data Model


Event

NameDescription
Entity DescriptionAttributes of the core Event entity
Source Schemadbo
Source TablePNEvent
Destination Collection(Endpoint)PriceRequest
Entity TypeEvent
Entity VariantCommon

Event Attribute Details

FieldReference EntityField DescriptionFormatMax Bytes
EventTemplateEventTemplateID of the template used for the eventint4
StartTimeStart time of the event.datetime8
EndTimeEnd time of the event.datetime8
ProcessTimeProcess time of the event.datetime8
InitialEventEventThe ID of the first event in a series of recurring events.uniqueidentifier16
RecurringWhether the event is recurring (0 - no, 1 - yes).bit1
RecurringPeriodRecurring period if the event is recurring - valid values are: 0 (Daily), 1 (Weekly), 2 (Monthly), 3 (Annually).tinyint1
RecurringDaysUsed to represent the days of the week which the event will recur on if RecurringPeriod is Daily. This will be a bitmask interpreted by the code.tinyint1
RecurringCountNumber of times the event will recur.int4
RecurringMonthDayFor monthly events, stores the day of the month on which the event recurs. For non-monthly events, NULL is stored.tinyint1
RecurringMonthWeekFor monthly events, stores the week of the month on which the event recurs (i.e., 1st, 2nd, 3rd, 4th). If this is set, RecurringMonthDay will store an integer 1-7 representing the day of the week the event will recur on. For non-monthly events, NULL is stored.tinyint1
RecurringYearMonthFor annual events, stores the number of the month on which the event recurs. RecurringMonthDay will store the day of that month on which it recurs if this is set. For non-annual events, NULL is stored.tinyint1
HasRecurredFlag to show that an event has recurred.bit1
RecurredCountThe number of time an event has so far recurred.int4
CancelledFlag to show that an event has been cancelled or not.bit1
CancelledTimeThe date and time an event was cancelled.datetime8
SalesRecodedFlag indicating if sales records affected by this event have been recoded.bit1
PriceChangeValue of Price Change initiated by the eventCmoney8
RevertAtEndFlag to set Revert at End of event functinalitybit1
SalesImpactSalesImpactLegacy ID of Sales Impactint4

General Price Change

NameDescription
Entity DescriptionAttributes of the core General Price Change entity
Source Schemadbo
Source TablePNGeneralPriceChange
Destination Collection(Endpoint)PriceRequest
Entity TypeGeneralPriceChange
Entity VariantCommon

General Price Change Attribute Details

FieldReference EntityField DescriptionFormatMax Bytes
EventEventEvent ID for the event the GPC relates to.uniqueidentifier16
NameUser defined name for the general price change.nvarchar200
TypeType ID for the type of the GPC.varchar20
StatusStatus ID for the status of the GPC.tinyint1
ProcessImmediatelyIf set the GPC will process straight away, if not set the GPC will not process until the process start time is reached.bit1
ProcessMinutesNumber of minutes before GPC start time that the GPC should be processed.int4
ReviewIf set the GPC prices will be held for review before being exported.bit1
ReviewEmailRecipientsList of email recipients who will be notified of GPC prices in review.nvarchar1000
EmailSentFlag to show when emails have been sent.bit1
AutoImplementModeSpecifies the auto-implement mode for the GPC.bit1
ExportTimeOptional specified export time.datetime8
ProcessStartTimeThe date and time the GPC processing started.datetime8
ProcessEndTimeThe date and time the GPC processing completed.datetime8
ExportStartTimeThe date and time the GPC price export started.datetime8
ExportEndTimeThe date and time the GPC price export completed.datetime8
GPCByMonthUsed to group GPC's by their start month in the entity navigator.char7
UserUserPriceNet ID of user that created the GPC.uniqueidentifier16
HoldPricesA flag to indicate if GPC prices are held from processing, from export or from start time (see Market Pricing, Set Actual Price GPC, Hold Prices).tinyint1
ValidatePricesFlag to indicate whether the maximum GPC price increase / decrease should be validated.bit1
BypassLimitSurveyAgeFlag to indicate whether the system should ignore the Maximum Price Surve Age After General Price Change setting.bit1

Master Price Request

NameDescription
Entity DescriptionAttributes of the core General Price Change entity
Source Schemadbo
Source TablePNMasterPriceRequest
Destination Collection(Endpoint)PriceRequest
Entity TypeMasterPriceRequest
Entity VariantCommon

Master Price Request Attribute Details

FieldReference EntityField DescriptionFormatMax Bytes
OwnSiteOwnSitePriceNet ID of the own site that the request was import for.uniqueidentifier16
PriceRequestTypePriceRequestTypeThis is the type of price request imported and must be one of the values in PNPriceRequestType where CanImport = true.varchar5
SourceThis is the Source of the price request provided by the client.source40
ValidateSecondsThis is the number of validation seconds that are imported as part of the price request.int4
ProcessSecondsThis is the number of process seconds that are imported as part of the price request.int4
ExportTimeThis is the export time data that is imported as part of the price request.datetime8
HasErrorsThis flag shows if any of the records have errors in the error browser. The flag is reset by post import processing if the value is resubmitted or deleted.bit1
SplitDateThis is the date/time that the price request was split into product group price requests.datetime8
ProcessedThe column will identify if the price request has been processed by splitting, because the SplitDate will still be null if the price request doesn't split.bit1

Price Request

NameDescription
Entity DescriptionAttributes of the core Price Request entity
Source Schemadbo
Source TablePNPriceRequest
Destination Collection(Endpoint)PriceRequest
Entity TypePriceRequest
Entity VariantCommon

Price Request Attribute Details

FieldReference EntityField DescriptionFormatMax Bytes
PriceRequestSeqIDUnique ID representing the price request (automatically generated integer number) - this number can be exported to identify a set of proposed prices and it could be returned in an import file to validate whether or not the price(s) have been approved.int4
ScheduleTimeDate and time the price request is due to process. This is normally set to the creation time of the price request, but can hold the processing of the price request until a later time.datetime8
OwnProductGroupProductGroupID of the Own Product Group that the price request was created for.uniqueidentifier16
EventEventID of the event that spawned the price request.uniqueidentifier16
ProcessedIndicates when the price request has been processed through price generation.bit1
OnHoldIndicates an error state during price generation. If this is set it means that price generation could not process the price request at all.bit1
PriceRequestTypePriceRequestTypeID of the price request type.varchar5
UserID of the user who dealt with the price request in SFR.uniqueidentifier16
AutoImplementFlag that allows single requests to be auto implemented (1 - auto implement, 0 - do not auto implement).bit1
PreProcessedIndicates that the price request has completed the pre-processing stage and is now eligible for price generation.bit1
CancelledIndicates that the price request has been cancelled and has no further effect on pricing.bit1
CancelledTimeTime of cancellation.datetime8
PRCancelledStatusIDThree letter code (DTM, EVT, GEN, GPC, LOW, NOM) or NULL.varchar3
GPCReviewUsed when a price request must go to GPC review as a result of user action (save of GPC details when in GPC review), rather than being exported.bit1
PriceRequestValidationStatusIDPrice request validation status.tinyint1
InvalidCategoryThis is a strategy value set by price request validation.bit1
CheckedForLFFlag to determine whether the price request has been checked for lead follow relations.bit1
SFRTxIDTranslation ID of a fixed message that will be used to send PR to SFR, required for LF processing which determines that PRs need to go to SFR before they are priced.int4
StrategyNoteUIDStrategyNotePriceNet ID representing the note that the price request will ultimately produce. Used for PD Type price requests.uniqueidentifier16
InitialisedThis is the date and time that the price request has been processed through the strategy initialisation function.datetime8

Price Request Review

NameDescription
Entity DescriptionAttributes of the core Price Request Review entity
Source Schemadbo
Source TablePNPriceRequestReview
Destination Collection(Endpoint)PriceRequest
Entity TypePriceRequestReview
Entity VariantCommon

Price Request Review Attribute Details

FieldReference EntityField DescriptionFormatMax Bytes
PriceRequestUIDPriceRequestUnique ID representing the price request review record.uniqueidentifier16
StartTimeDate and time the price request was put into review.datetime8
EndTimeDate and time the price request exited from review.datetime8

Price Request Type

NameDescription
Entity DescriptionAttributes of the core Price Request Review entity
Source Schemadbo
Source TablePNPriceRequestType
Destination Collection(Endpoint)PriceRequest
Entity TypePriceRequestType
Entity VariantCommon

Price Request Type Attribute Details

FieldReference EntityField DescriptionFormatMax Bytes
PriceRequestTypeIDUnique ID representing the price request type.varchar5
TxIDTranslation ID to display a user friendly description of the price request type.int4
DescriptionInternal description of the price request type.varchar100
SystemIndicates that this type of price request cannot be chosen by the user as the basis of custom pricing (i.e. Event Profiles).bit1
PrecedenceDefines the priority of processing for price request types. The lower the precedence, the higher the priority. This allows the system to chose which price request to process where more than one exists for the same product group.tinyint1
PricingProfileTypeIDPriceNet ID of a pricing profile type that the price request type will generate prices by.varchar3
CanImportThis flag determines if the Price Request is a valid Type that can be imported via the price request import channel.bit1
CanSplitThis flag determines if the Price Request is a valid Type that can be split after the price request has imported.bit1
CanValidateThis is a flag to identify if the price request type is checked by price request validation.bit1
CanWriteToFileFlag to identify whether the price request type can be exported to file. By default, the answer is "1", meaning it can be exported.bit1
RatingThis defines how important a price request type is in relation to other price request types as far as "battling" is concerned, the higher the number the higher the priority.int4

Price Request State

NameDescription
Entity DescriptionAttributes of the core Price Request State entity
Source Schemadbo
Source TablePNPriceRequestState
Destination Collection(Endpoint)PriceRequest
Entity TypePriceRequestState
Entity VariantCommon

Price Request State Attribute Details

FieldReference EntityField DescriptionFormatMax Bytes
PriceRequestPriceRequestThe ID of the Price Requests that have exported.int4
PriceRequestIDlegacy identifieruniqueidentifier16
PRSStatusIDPriceNet ID representing the status of the PriceRequest.tinyint1
StateThe state identifying if the prices have been acknowledged (OK is acknowledged).nvarchar50
NotesNotes that can be set against the price request review item.nvarchar2000
ExportTimeThis is the date that the prices were re-exported.datetime8
ReadyToExportIf the user closes the prices on the pricing page, this flag determines that the prices are ready to export again.bit1
ExportedThis flag determines if the prices have been exported following a receipt failure.bit1
RejectedIf the user rejects the prices on the pricing page, this flag determines that the prices are closed.bit1
ApplyUserID of the user that closed/rejected the prices on the pricing page.niqueidnetifier16
ApplyTimeThis is the date/time that the user that closed/rejected the prices on the pricing page.datetime8
ProcessedThis flag determines if the imported record has been processed.bit1

Proposed Price Audit

NameDescription
Entity DescriptionAttributes of the core General Price Change entity
Source Schemadbo
Source TablePNProposedPriceAudot
Destination Collection(Endpoint)PriceRequest
Entity TypeProposedPriceAudit
Entity VariantCommon

Proposed Price Audit Attribute Details

FieldReference EntityField DescriptionFormatMax Bytes
ProposedPricePriceUnique identifier for the Proposed Price associated to this recorduniqueidentifier16
AuditDataXML Data with PriceRequest Audit DetailsXMLN/A
BinaryDataBinary Code associateds to Proposed Price Audit recordvarbinary(max)null
ManualPriceTrue or False Flag for Manual pricebit1

Proposed Price State

NameDescription
Entity DescriptionAttributes of the core Proposed Price State entity
Source Schemadbo
Source TablePNProposedPriceState
Destination Collection(Endpoint)PriceRequest
Entity TypeProposedPriceState
Entity VariantCommon

Proposed Price State Attribute Details

FieldReference EntityField DescriptionFormatMax Bytes
ProposedPriceProposedPricePriceNet ID of the proposed price the state relates to.uniqueidentifier16
ActionIDAction Code, valid values are: EXPACC (Export accept), EXPREJ (Export Reject), SFRAPP (Sites for review approved) and SFRJEJ (Sites for review reject).char6
PriceThe price supplied for approval.money8
PreviousPriceThe value of the proposed price prior to the approval action.money8
SourceThe source of the price approval.nvarchar50
NotesTime the record was created/last updated.nvarchar2000
ProcessedFlag to determine if the record has been processed by the post import processing step.bit1

Restoration

NameDescription
Entity DescriptionRestoration reference data entity
Source Schemadbo
Source TablePNRestoration
Destination Collection(Endpoint)PriceRequest
Entity TypeRestoration
Entity VariantCommon

Restoration Attributes

FieldReference EntityField DescriptionFormatMax Bytes
actualEndTimeActual end time of restorationdatetime8
inRestorationTrue/False flag to idneifty if an Own Site is in Restorationbit1
OwnProductGroupUnique identifier for the product group associated to this restoration recorduniqueidentifer16
postRestorationHandledTrue or False flag indicationg if Post Restoration handling was performedbit1
scheduledEndTimescheduled/expected End Time of restorationdatetime8
wasGPCTrue/False flag if Restoration instance was created as a result of a GPCbit1

Restoration Competitor

NameDescription
Entity DescriptionRestoration competitor reference data entity
Source Schemadbo
Source TablePNRestorationcompetitor
Destination Collection(Endpoint)PriceRequest
Entity TypeRestorationcompetitor
Entity VariantCommon

Restoration Competitor Attributes

FieldReference EntityField DescriptionFormatMax Bytes
ownProductgroupUnique identifier for the ownProductgroup associated to the recorduniqueidentifier16
ownSitecompetitorUnique identifier for the ownSitecompetitor associated to the recorduniqueidentifier16
triggerIncreaseTrigger value for triggering restorationmoney8
deltaDelta value for restorationmoney8
dropTosfrTrue/False flag for action to take when price dropsbit1
isTriggerTrue/False flag to denote if a competitor is a restoration triggerbit1

Strategy Note

NameDescription
Entity DescriptionAttributes of the core Strategy Note entity
Source Schemadbo
Source TablePNStrategyNote
Destination Collection(Endpoint)PriceRequest
Entity TypeStrategyNote
Entity VariantCommon

Strategy Note Attribute Details

FieldReference EntityField DescriptionFormatMax Byte
ContentThe actual note related to a strategynvarchar(max)1-4000
← PriceProduct →
  • Overview
    • Price Request Data Model
  • Event
    • Event Attribute Details
  • General Price Change
    • General Price Change Attribute Details
  • Master Price Request
    • Master Price Request Attribute Details
  • Price Request
    • Price Request Attribute Details
  • Price Request Review
    • Price Request Review Attribute Details
  • Price Request Type
    • Price Request Type Attribute Details
  • Price Request State
    • Price Request State Attribute Details
  • Proposed Price Audit
    • Proposed Price Audit Attribute Details
  • Proposed Price State
    • Proposed Price State Attribute Details
  • Restoration
    • Restoration Attributes
  • Restoration Competitor
    • Restoration Competitor Attributes
  • Strategy Note
    • Strategy Note Attribute Details
Copyright © 2024 Kalibrate Technologies Limited