2013-04-03 43 views
0

我正在尝试使用BigCommerce APIBigCommerce中创建订单的新货件。在BigCommerce中创建货件时使用哪种日期格式

我传递的所有参数是这样的:

{ 
    "order_address_id":8, 
    "tracking_number":"", 
    "order_date":"Thu, 28 Mar 2013 11:17:22 +0000"," <—I have problem here 
    items": 
     [ 
      {"order_product_id":44,"quantity":8}, 
      {"order_product_id":39,"quantity":0}, 
      {"order_product_id":39,"quantity":0}        
     ], 
    "comments":"" 
} 

什么我得到的回应是这样的:

[{"status":400,"message":"The field 'order_date' is not supported by this resource."}] 

谁能告诉我什么是传递'order_date的正确方法'参数的值?

回答

1

这似乎是一个文档和控制台错误。我相信order_date字段不可访问。现在应该修好了。

http://developer.bigcommerce.com/api/orders/shipments

https://developer.bigcommerce.com/console

当你创建一个货,你不应该能够修改order_date的领域,因为它是与订单创建关联。希望这可以帮助。谢谢!

+0

Yaa ...你说得对..但是田地有多快消失了? 你是谁更新页面UI?谢谢:)) –

+1

是的。我做到了。 :) 感谢您的反馈。 – Saran

+0

嗨Saran,任何访问Bigcommerce的API控制台的方式? –

相关问题