不是今天。订单的 PUT 请求不允许与 POST(订单创建)相同的字段 - http://developer.bigcommerce.com/api/orders#put-ordersidjson
但是,这将在未来几周内推出。然后,您将能够简单地对捕获的订单执行 PUT 请求以更新“staff_notes”或“customer_message”字段。
但是,如果您想在通过 API 创建订单期间捕获此信息,您已经可以执行以下操作 -
$createFields = array('customer_id'=>0, 'date_created' => 'Tue, 20 Nov 2012 00:00:00 +0000','status_id'=>1,'billing_address' => array( "first_name"=> "Trisha", "last_name"=> "McLaughlin", "company"=> "", "street_1"=> "12345 W Anderson Ln", "street_2"=> "", "city"=> "Austin", "state"=> "Texas", "zip"=> "78757", "country"=> "United States", "country_iso2"=> "US", "phone"=> "", "email"=> "elsie@example.com" ), "shipping_addresses" => array(), "external_source" => "POS", "products" => array(), "staff_notes" => "some notes here" );
print_r(Bigcommerce::createOrder($createFields));