Loading...
Loading...
Compare original and translation side by side
| File | When to use |
|---|---|
| Six-field cheat sheet, association directions, portal caveats for invoices/subscriptions/orders/carts. |
| 文件 | 使用场景 |
|---|---|
| 六字段速查表、关联操作指南、发票/订阅/订单/购物车的门户注意事项。 |
bulk-operations/SKILL.mdbulk-operations/resources/json-patterns.mdhubspot <command> --helpproductsline_itemsquotesinvoicessubscriptionshubspot properties list --type <type>hubspot properties get --type <type> --name <property>options[].valueinvoicessubscriptionsorderscartsobjectTypeIdhubspot objects typesobjects searchlistinvoices-readsubscriptions-readDRAFTbulk-operations/SKILL.mdbulk-operations/resources/json-patterns.mdhubspot <command> --helpproductsline_itemsquotesinvoicessubscriptionshubspot properties list --type <type>hubspot properties get --type <type> --name <property>options[].valuehubspot objects typesinvoicessubscriptionsorderscartsobjectTypeIdinvoices-readsubscriptions-readobjects searchlistDRAFThubspot objects create --type products \
--property name="Enterprise License" \
--property price=12000 \
--property hs_sku=ENT-001recurringbillingfrequencyhubspot properties get --type products --name recurringbillingfrequency --format json | jq -r '.options[].value'{"properties":{...}}hubspot objects create --type products --dry-runhubspot objects create --type products \
--property name="Enterprise License" \
--property price=12000 \
--property hs_sku=ENT-001recurringbillingfrequencyhubspot properties get --type products --name recurringbillingfrequency --format json | jq -r '.options[].value'{"properties":{...}}hubspot objects create --type products --dry-runobjects createDEAL_ID=12345objects createDEAL_ID=12345
Discount handling — `discount` is the writable percentage (`10` = 10% off). `hs_total_discount` is HubSpot-computed; do not set it. Verify with `hubspot properties get --type line_items --name hs_total_discount` (look for `modificationMetadata.readOnlyValue:true`) before relying on this in a portal you don't own.
Promote a quote out of `DRAFT` when ready to share:
```bash
hubspot objects update --type quotes <quote_id> --property hs_status=APPROVAL_NOT_NEEDEDhs_statushubspot properties get --type quotes --name hs_status --format json | jq -r '.options[].value'
折扣处理——`discount`为可设置的百分比(`10`即打9折)。`hs_total_discount`由HubSpot计算生成;请勿手动设置。在非您所有的门户中使用此属性前,请通过`hubspot properties get --type line_items --name hs_total_discount`验证(查看`modificationMetadata.readOnlyValue:true`)。
准备好分享报价时,将其从`DRAFT`状态升级:
```bash
hubspot objects update --type quotes <quote_id> --property hs_status=APPROVAL_NOT_NEEDEDhs_statushubspot properties get --type quotes --name hs_status --format json | jq -r '.options[].value'hs_invoice_statusundefinedhs_invoice_statusundefined
Verify the status enum the same way: `hubspot properties get --type invoices --name hs_invoice_status --format json | jq -r '.options[].value'`.
同样请验证状态枚举值:`hubspot properties get --type invoices --name hs_invoice_status --format json | jq -r '.options[].value'`。hs_subscription_statusACTIVECANCELLEDPAST_DUEhubspot properties get --type subscriptions --name hs_subscription_status --format json \
| jq -r '.options[].value'hs_subscription_statusACTIVECANCELLEDPAST_DUEhubspot properties get --type subscriptions --name hs_subscription_status --format json \
| jq -r '.options[].value'undefinedundefinedinvoicessubscriptionsorderscartsobjects deleteexport HUBSPOT_ACCESS_TOKEN=<token>bulk-operations/SKILL.mdhs_total_discountdiscountinvoicessubscriptionsorderscartsobjects deleteexport HUBSPOT_ACCESS_TOKEN=<token>bulk-operations/SKILL.mdhs_total_discountdiscount