Type Code
SHP01T201
EntityTypeId: 23
Published Version
1
Approved: 1
Published Source
Effective EntityType
Review: Approved
Published 摘要
Effective Definition
Active
API Exposed
Source Query
RootTableName: SHP01T201
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,此處=SHP01T201。 |
| json | query | object | 必填 | 等值過濾條件 JSON 物件,至少一個條件;key 限下方 active 欄位的 AttributeCode。 |
| version | query | string | 選填 | 指定發佈版本;留空=最新 active 版本。歷史版本需填該版號。 |
可過濾 / 回傳欄位(active attributes)
| AttributeCode | DataType | Flags |
|---|---|---|
| ShoppingCartId | string | PK Required |
| CompanyId | string | Required |
| ClientId | string | |
| Currency | string | Required |
| Subtotal | decimal | Required |
| DiscountTotal | decimal | Required |
| TaxTotal | decimal | Required |
| ShippingTotal | decimal | Required |
| GrandTotal | decimal | Required |
| Status | string | Required |
| Source | string | |
| Locale | string | |
| ExpiredAt | datetime | |
| VisitorId | string |
必須是 JSON 物件,至少一個條件;key 僅限上方 active 欄位的 AttributeCode。
Request URL
curl
Response
(按 Execute 後顯示回傳結果)
Attributes
| Code | Name | DataType | Flags |
|---|---|---|---|
| ClientId | ClientId | string | Active |
| CompanyId | CompanyId | string | Required Active |
| Currency | Currency | string | Required Active |
| DiscountTotal | DiscountTotal | decimal | Required Active |
| ExpiredAt | ExpiredAt | datetime | Active |
| GrandTotal | GrandTotal | decimal | Required Active |
| Locale | Locale | string | Active |
| ShippingTotal | ShippingTotal | decimal | Required Active |
| ShoppingCartId | ShoppingCartId | string | PK Required Active |
| Source | Source | string | Active |
| Status | Status | string | Required Active |
| Subtotal | Subtotal | decimal | Required Active |
| TaxTotal | TaxTotal | decimal | Required Active |
| VisitorId | VisitorId | string | Active |