且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Magento API订单ID与增量ID

更新时间:2023-11-29 23:51:40

我使用magento API已有将近一年的时间,可以向您保证,您唯一需要使用的ID是order_increment_id.它用作order.info调用中的主要ID.发票和货运API也是如此-它们还使用适当的增量ID作为主要ID.

I've been working with magento API for almost a year now and can assure you that the only ID you need to use is the order_increment_id. It is used as the main ID in the order.info call. The same is true for the invoice and shipment APIs - they also use the appropriate increment id as the main one.

order_id(我认为与entity_id相同)是用于将所有eav表连接在一起的sales_order表中的主键.它在magento内部使用,但是使用API​​无需担心.

The order_id, which I believe is the same as entity_id, is the primary key in the sales_order table used to join all the eav tables together. It is used internally in magento, but working with the API you needn't worry about it.