Internal demo12pm-partner
Partner Console

Partner price book

ตั้ง offer, version และ level จากฝั่ง partner แล้วส่งให้ 12pm-api validate, activate และเก็บ audit ก่อนนำไปใช้ใน checkout preview

API contractc8da6eb

partner-configured offer levels submitted to 12pm-api for validation, activation, preview, and audit

OfferSINGLE-001Pending validation
Save draftWaiting

current rowVersion read

Mappings3

MVP-supported

Authority12pm-api

pricing, validation, audit

Kitchen production

Production summary

2026-08-20 · svcday_INTERNAL_DEMO_2026_08_20

Loading

Loading production summary from 12pm-api.

GET /v1/partner/service-days/svcday_INTERNAL_DEMO_2026_08_20/production-summaryNot refreshed yet
Draft offer workspace

Single meal

DRAFT

optional for ordinary draft save; lifecycle actions keep audit reason

Save draft contractAwaiting API read

Reading the editable draft version from 12pm-api.

PATCH requires editableDraftVersionId + latestDraftVersion.rowVersion
Revision contractWaiting

Revision waits for active immutable readback from 12pm-api.

POST revise waits for active immutable source version
Lifecycle actionsLoading

Reading lifecycle state from 12pm-api.

save -> validate -> activate -> GET readback
Partner-configurable levels

Single-order level

ONE_TIME + INDIVIDUAL_PURCHASE
Purchase mappingONE_TIME + INDIVIDUAL_PURCHASE
ConditionPartner-defined minimum quantity
Price shapeConfigured unit price
Qualifying basisORDER_QUANTITY
CalculationHIGHEST_ELIGIBLE_ALL_UNITS
unit priceminimum qualifying quantity
Validation queue

Backend-owned checks

M1 API

required code, name, purchase mode, price shape, validity, and scope

level conditions match the selected MVP purchase mapping

unsupported mapping stays blocked before activation

lifecycle actions keep audit reason, while ordinary draft save can use an optional note

1

Draft

editable

Partner Price Admin

Create or revise offer version
2

Validate with 12pm-api

reviewable

Partner Price Admin

Run contract validation
3

Activate version

active

Partner Price Admin

Make current version available to checkout preview
4

Commercial Owner override

audited

Platform Commercial Owner

Override, revise, or deactivate with reason
Audit trail

Version trace

MVP price book
Endpoint sequenceGET /v1/partner/offersPOST /v1/partner/offersPATCH /v1/partner/offers/{offerId}/versions/{versionId}POST /v1/partner/offers/{offerId}/versions/{versionId}/validatePOST /v1/partner/offers/{offerId}/versions/{versionId}/activatePOST /v1/partner/offers/{offerId}/versions/{versionId}/revise
Audit fieldsactorreasontimestampimpactIdempotencyIdempotency-Key: 12pm-partner:save-draft:single-001Idempotency-Key: 12pm-partner:validate-version:single-001Idempotency-Key: 12pm-partner:activate-version:single-001Idempotency-Key: 12pm-partner:revise-version:single-001
Blocked in MVPPACKAGE + GROUP_CONTEXTdiscount stackingautomated repricing/refundarbitrary pricing scripts