Type Code
SHP01T202
EntityTypeId: 24
Published Version
1
Approved: 1
Published Source
Effective EntityType
Review: Approved
Published 摘要
Effective Definition
Active
API Exposed
Source Query
RootTableName: SHP01T202
RootAlias: M
Active Aliases: M
DefaultWhere: (none)
Review 資訊
Submitted
N/A
Reviewed
N/A
Comment
N/A
API 測試(Try it out)
GET
GET
/metadata/projection-data
依已發佈 metadata 組來源 SQL 查讀取複本(ReadReplicaDb),欄位別名=AttributeCode。
| 參數 | 位置 | 型別 | 必填 | 說明 |
|---|---|---|---|---|
| entityName | query | string | 必填 | EntityType 的 TypeCode,此處=SHP01T202。 |
| json | query | object | 必填 | 等值過濾條件 JSON 物件,至少一個條件;key 限下方 active 欄位的 AttributeCode。 |
| version | query | string | 選填 | 指定發佈版本;留空=最新 active 版本。歷史版本需填該版號。 |
可過濾 / 回傳欄位(active attributes)
| AttributeCode | DataType | Flags |
|---|---|---|
| ShoppingCartItemId | string | PK Required |
| ShoppingCartId | string | Required |
| Sku | string | Required |
| MaterialsID | string | Required |
| Name | string | Required |
| AttributesJson | string | |
| UnitPrice | decimal | Required |
| Currency | string | Required |
| Quantity | int | Required |
| Discount | decimal | Required |
| Tax | decimal | Required |
| LineTotal | decimal | Required |
必須是 JSON 物件,至少一個條件;key 僅限上方 active 欄位的 AttributeCode。
Request URL
curl
Response
(按 Execute 後顯示回傳結果)
Attributes
| Code | Name | DataType | Flags |
|---|---|---|---|
| AttributesJson | AttributesJson | string | Active |
| Currency | Currency | string | Required Active |
| Discount | Discount | decimal | Required Active |
| LineTotal | LineTotal | decimal | Required Active |
| MaterialsID | MaterialsID | string | Required Active |
| Name | Name | string | Required Active |
| Quantity | Quantity | int | Required Active |
| ShoppingCartId | ShoppingCartId | string | Required Active |
| ShoppingCartItemId | ShoppingCartItemId | string | PK Required Active |
| Sku | Sku | string | Required Active |
| Tax | Tax | decimal | Required Active |
| UnitPrice | UnitPrice | decimal | Required Active |