訂單API / 修改訂單狀態

發布日期:2018-10-27
瀏覽次數:1286
  

 

1.1 說明

 
路徑 //www.your_website_domain.com/FeiEdit♐or/api_v1/♌shop/orders/update_order_status/{id}
方法 GET/POST
說明 修改指定ID的訂單狀態。
 
 

1.2 參數

 
名稱 必須 類型 描述
status No string 按照訂單狀態查詢,可以是:pending, on-hold, processing, completed, refunded, failed, and cancelled中的一個。例如:status=pending。
 
 

1.3 返回結果

 
正確結果
返回格式:JSON
{
  "order" : 
    {
 🌊     "completed_at" : "2014-12-10T18:59:30Z",
      "tax_lines" : [],
      "status" : "processing",
      "total" : "100.00",
      "cart_discount" : "0.00",
      "customer_ip" : "127.0.0.1",
      "total_discount" : "0.00",
      "updated_at" : "2017-10-10T๊18:00:00Z",
      "currency" : "RMB",
      "total_shipping" : "0.00",
      "customer_user_agent" :ꦏ "Chrome/31.0.1650.63 Safari/53🐻7.36",
      "line_items" : [
        {
   ♔     &nbs♛p; "product_id" : 101,
          "quantity" 🍬: 1,
          "id" : 1,
      ༒&nಞbsp;   "subtotal" : "100.00",
      &nbs🍷p;   𒆙"tax_class" : null,
          "sku" : "",
 ;   &n🐽bsp;     "total" : ༒"100.00",
      &n♏bsp;  🐈; "name" : "DEMO PRODUCT",
&n🅰bsp;       &n✨bsp; "total_tax" : "0.00"
        }
      ],
      "customer_id" : "1",
      "total_tax" : "0.00",
      "order_number" : "#113",
      "shipping_methods" : "Freeﷺ Shipping",
      "shipping_address" : {
        "city" : "Suzhou",
        "country" : "CN",
        "address_1" : "一條小街",
        "last_name" : "先生",
        "company" : "卡達",
        "postcode" : "12345",
        "address_2" : "",
        "state" : "Jiangsu",
        "first_name" : "董"
      },
      "payment_details" : {
        "method_titl💃e" : "Cheque Payment",
        "method_id" : "che♏que"💎,
        "paid" : false
      },
      "id" : 188,
      "shipping_tax" : "0.00",
      "cart_tax" : "0.00",
      "fee_lines" : [],
      "total_line_item꧑s_quantity" : 1,
      "shipping_lines" : [
        {
    &n﷽bsp;     "method_title" : "Free Shipping"𓂃,
          "id" : 8,
  ꩲ     ;   "method_i🌊d" : "free_shipping",
  &nbs🎶p;       "total" : "0.00"
        }
      ],
      "customer" : {
        "id" : 4,
        "last_order_date" : "2018-10-01T1🌱8:00:00Z",
        "avatar_url" : "",
   ൲     "total_spent" : "0.00"🔯,
   ♈     "created_at" : "2018-10-01T18:ꦍ00:00Z",
        "orders_count" : 0,
        "billing_address" : {
  &🍬nbsp;       "phone" : "123456789",
      🐼    "city" : "S🉐uzhou",
  &💟nbsp♏;       "country" : "CN",
        &ඣnbsp; "address_1" : "大馬路",
          "l💝ast_name" 💃: "先生",
&nbsඣp;         "company" : "卡達",
          "postcode" : "12345"🍰,
   🎶  🙈     "email" : "[email protected]",
 🌞;         "address_2" : "",
  &♔nbsp;       "state" : "Jiang��su",
    &nbsꦚp;     "first_name" : "董"
        },
        ❀"shipping_address" : {
          "city"❀ : "Suzhou",
  &n🌳bsp; 🧔 ;     "country" : "CN",
          "addr𒀰ess_1" : "大馬路",
        &n🎃bsp; "last_name" : "先生",
    &n﷽bsp;    ; "comღpany" : "卡達",
         📖ꦦ; "postcode" : "12345",
      &nbsಞp;   "email" : "demo@example.com",
      &nb🥂sp;   "ad💟dress_2" : "",
          "s🔯tate" : "Jiangsu",
       𓆏   "first_name" : "董"
        },
        "first_name" : "董",
✱     🃏   "username" : "demouser",
        "last_name" : "先生",
    &nbs⭕p;   "last_order_id" : "1",
♋        "email" : "demo@example.com"
      },
      "note" : "",
      "coupon_lines" : [],
      "order_discount" : "0.00",
   ♚🌼   "created_at" : "2018-10-01T18:00:00Z",
      🐎"view_order_url" : "//www.example.com/my-account/view-orꦫder/188",
      "billing_address" : {
      &n🧸bsp;   "phone" : "1234567𒀰89",
          "city" : 𝔍"𒈔Suzhou",
       ꦯ   "country" : "CN",
&n✨bsp;    ;     "address_1" : "大馬路",
       🃏   "last_name" : "先生",
         ไ "company" : "卡達",
 𒆙   &nbs🌳p;     "postcode" : "12345",
&𒊎nbsp;     &nbಞsp;   "email" : "demo@example.com",
   🍒 &nbs🌜p;     "address_2" : "",
    &n𝔉bsp;     "state" : "Jiangsu",
          "first_name" :𒁃 "董"
      }
    }
}
 

1.4 相關API

登錄后即可發表評論,立即登錄.

  API相關文檔