zjq123
V2EX  ›  问与答

magento 2 api

  •  
  •   zjq123 · Feb 21, 2020 · 1001 views
    This topic created in 2277 days ago, the information mentioned may be changed or developed.
    有开发 magento2 的没
    想通过 api 给 order 新增 tracking 用了 2 个 api 接口都不行
    salesShipmentTrackRepositoryV1
    salesShipmentRepositoryV1
    我看了下 mysql log 发现 2 个 api 都是执行 update 语句 针对 sales_shipment_track 表
    只有通过后台 sales -> Shipment 对已有 shipment 增加 tracking 才是 insert 语句

    api 是 /swagger
    1 replies    2020-02-21 15:33:12 +08:00
    zjq123
        1
    zjq123  
    OP
       Feb 21, 2020
    salesShipOrderV1
    可以 但要没有创建过 sales_shipment_track 记录
    创建过了 只能用那 2 个 api 更新
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2863 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 10:38 · PVG 18:38 · LAX 03:38 · JFK 06:38
    ♥ Do have faith in what you're doing.