|
| 1 | +{ |
| 2 | + "data": { |
| 3 | + "id": 963, |
| 4 | + "parent_id": 0, |
| 5 | + "is_editable": true, |
| 6 | + "needs_payment": true, |
| 7 | + "needs_processing": true, |
| 8 | + "number": "963", |
| 9 | + "status": "processing", |
| 10 | + "order_key": "abc123", |
| 11 | + "currency": "USD", |
| 12 | + "date_created_gmt": "2018-04-03T23:05:12", |
| 13 | + "date_modified_gmt": "2018-04-03T23:05:14", |
| 14 | + "discount_total": "30.00", |
| 15 | + "discount_tax": "1.20", |
| 16 | + "shipping_total": "0.00", |
| 17 | + "shipping_tax": "0.00", |
| 18 | + "cart_tax": "1.20", |
| 19 | + "total": "31.20", |
| 20 | + "total_tax": "1.20", |
| 21 | + "customer_id": 11, |
| 22 | + "customer_note": "", |
| 23 | + "billing": { |
| 24 | + "first_name": "Johnny", |
| 25 | + "last_name": "Appleseed", |
| 26 | + "company": "", |
| 27 | + "address_1": "234 70th Street", |
| 28 | + "address_2": "", |
| 29 | + "city": "Niagara Falls", |
| 30 | + "state": "NY", |
| 31 | + "postcode": "14304", |
| 32 | + "country": "US", |
| 33 | + |
| 34 | + "phone": "333-333-3333" |
| 35 | + }, |
| 36 | + "shipping": { |
| 37 | + "first_name": "Johnny", |
| 38 | + "last_name": "Appleseed", |
| 39 | + "company": "", |
| 40 | + "address_1": "234 70th Street", |
| 41 | + "address_2": "", |
| 42 | + "city": "Niagara Falls", |
| 43 | + "state": "NY", |
| 44 | + "postcode": "14304", |
| 45 | + "country": "US", |
| 46 | + |
| 47 | + "phone": "333-333-3333" |
| 48 | + }, |
| 49 | + "shipping_lines": [ |
| 50 | + { |
| 51 | + "id": 123, |
| 52 | + "method_title": "International Priority Mail Express Flat Rate", |
| 53 | + "method_id": "usps", |
| 54 | + "instance_id": "5", |
| 55 | + "total": "133.00", |
| 56 | + "total_tax": "0.00", |
| 57 | + "taxes": [ |
| 58 | + { |
| 59 | + "id": "1", |
| 60 | + "total": "0.62125", |
| 61 | + "subtotal": "" |
| 62 | + } |
| 63 | + ], |
| 64 | + "meta_data": [ |
| 65 | + { |
| 66 | + "id": 1307, |
| 67 | + "key": "Package 1", |
| 68 | + "value": "1 × 1 × 1 (in) 4lbs × 1" |
| 69 | + }, |
| 70 | + { |
| 71 | + "id": 1308, |
| 72 | + "key": "Package 2", |
| 73 | + "value": "1 × 1 × 1 (in) 1lbs × 1" |
| 74 | + } |
| 75 | + ] |
| 76 | + } |
| 77 | + ], |
| 78 | + "fee_lines": [ |
| 79 | + { |
| 80 | + "id": 60, |
| 81 | + "name": "$125.50 fee", |
| 82 | + "tax_class": "", |
| 83 | + "tax_status": "taxable", |
| 84 | + "amount": "125.5", |
| 85 | + "total": "125.50", |
| 86 | + "total_tax": "0.00", |
| 87 | + "taxes": [], |
| 88 | + "meta_data": [] |
| 89 | + } |
| 90 | + ], |
| 91 | + "tax_lines": [ |
| 92 | + { |
| 93 | + "id": 1330, |
| 94 | + "rate_code": "US-NY-STATE-2", |
| 95 | + "rate_id": 6, |
| 96 | + "label": "State", |
| 97 | + "compound": true, |
| 98 | + "tax_total": "7.71", |
| 99 | + "shipping_tax_total": "0.00", |
| 100 | + "rate_percent": 4.5, |
| 101 | + "meta_data": [] |
| 102 | + } |
| 103 | + ], |
| 104 | + "payment_method": "stripe", |
| 105 | + "payment_method_title": "Credit Card (Stripe)", |
| 106 | + "payment_url": "http://www.automattic.com", |
| 107 | + "date_paid_gmt": "2018-04-03T23:05:14", |
| 108 | + "date_completed_gmt": null, |
| 109 | + "line_items": [ |
| 110 | + { |
| 111 | + "id": 890, |
| 112 | + "name": "Fruits Basket (Mix & Match Product)", |
| 113 | + "product_id": 52, |
| 114 | + "variation_id": 0, |
| 115 | + "quantity": 2, |
| 116 | + "tax_class": "", |
| 117 | + "subtotal": "50.00", |
| 118 | + "subtotal_tax": "2.00", |
| 119 | + "total": "30.00", |
| 120 | + "total_tax": "1.20", |
| 121 | + "taxes": [ |
| 122 | + { |
| 123 | + "id": 1, |
| 124 | + "total": "1.2", |
| 125 | + "subtotal": "2" |
| 126 | + } |
| 127 | + ], |
| 128 | + "meta_data": [], |
| 129 | + "sku": 123, |
| 130 | + "price": 30 |
| 131 | + }, |
| 132 | + { |
| 133 | + "id": 891, |
| 134 | + "name": "Fruits Bundle", |
| 135 | + "product_id": 234, |
| 136 | + "variation_id": 0, |
| 137 | + "quantity": 1.5, |
| 138 | + "tax_class": "", |
| 139 | + "subtotal": "10.00", |
| 140 | + "subtotal_tax": "0.40", |
| 141 | + "total": "0.00", |
| 142 | + "total_tax": "0.00", |
| 143 | + "taxes": [ |
| 144 | + { |
| 145 | + "id": 1, |
| 146 | + "total": "0", |
| 147 | + "subtotal": "0.4" |
| 148 | + } |
| 149 | + ], |
| 150 | + "meta_data": [], |
| 151 | + "sku": "5555-A", |
| 152 | + "price": 0.00 |
| 153 | + } |
| 154 | + ], |
| 155 | + "coupon_lines": [ |
| 156 | + { |
| 157 | + "id": 894, |
| 158 | + "code": "30$off", |
| 159 | + "discount": "30", |
| 160 | + "discount_tax": "1.2", |
| 161 | + "meta_data": [ |
| 162 | + { |
| 163 | + "id": 6515, |
| 164 | + "key": "coupon_data", |
| 165 | + "value": { |
| 166 | + "id": 673, |
| 167 | + "code": "30$off", |
| 168 | + "amount": "30", |
| 169 | + "date_created": { |
| 170 | + "date": "2017-10-29 18:20:07.000000", |
| 171 | + "timezone_type": 3, |
| 172 | + "timezone": "America/New_York" |
| 173 | + }, |
| 174 | + "date_modified": { |
| 175 | + "date": "2017-10-29 18:20:07.000000", |
| 176 | + "timezone_type": 3, |
| 177 | + "timezone": "America/New_York" |
| 178 | + }, |
| 179 | + "date_expires": null, |
| 180 | + "discount_type": "fixed_cart", |
| 181 | + "description": "", |
| 182 | + "usage_count": 2, |
| 183 | + "individual_use": false, |
| 184 | + "product_ids": [], |
| 185 | + "excluded_product_ids": [], |
| 186 | + "usage_limit": 0, |
| 187 | + "usage_limit_per_user": 0, |
| 188 | + "limit_usage_to_x_items": null, |
| 189 | + "free_shipping": false, |
| 190 | + "product_categories": [], |
| 191 | + "excluded_product_categories": [], |
| 192 | + "exclude_sale_items": false, |
| 193 | + "minimum_amount": "", |
| 194 | + "maximum_amount": "", |
| 195 | + "email_restrictions": [], |
| 196 | + "used_by": [ |
| 197 | + "1", |
| 198 | + "1" |
| 199 | + ], |
| 200 | + "virtual": false, |
| 201 | + "meta_data": [] |
| 202 | + } |
| 203 | + } |
| 204 | + ] |
| 205 | + } |
| 206 | + ] |
| 207 | + } |
| 208 | +} |
| 209 | + |
0 commit comments