Created
November 22, 2013 04:16
-
-
Save willyum/7594795 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
>> api = o.website.connect | |
=> #<BigCommerce::Api:0x7f0a6b7b8078 @connection=#<BigCommerce::Connection:0x7f0a6b7b7fd8 @configuration={:username=>"admin", :store_url=>"https://store-q1sd.mybigcommerce.com", :api_key=>"d896ca78aa59ba5ff298a08919ff31f765d72ef2"}>> | |
>> bo = api.get_order o.store_id | |
=> {"staff_notes"=>"", "ip_address"=>"108.162.13.146", "refunded_amount"=>"0.0000", "wrapping_cost_tax_class_id"=>3, "wrapping_cost_inc_tax"=>"0.0000", "handling_cost_inc_tax"=>"3.0000", "subtotal_inc_tax"=>"1951.7100", "date_created"=>"Thu, 21 Nov 2013 14:53:32 +0000", "coupon_discount"=>"0.0000", "currency_code"=>"USD", "geoip_country_iso2"=>"US", "payment_provider_id"=>"5709131489", "items_shipped"=>0, "total_ex_tax"=>"1966.2700", "wrapping_cost_tax"=>"0.0000", "shipping_cost_tax"=>"0.0000", "date_shipped"=>"", "customer_id"=>50, "products"=>{"url"=>"https://www.sportsmanslogistics.com/api/v2/orders/13221/products.json", "resource"=>"/orders/13221/products"}, "shipping_address_count"=>1, "currency_exchange_rate"=>"1.0000000000", "store_credit_amount"=>"0.0000", "total_inc_tax"=>"1966.2700", "coupons"=>{"url"=>"https://www.sportsmanslogistics.com/api/v2/orders/13221/coupons.json", "resource"=>"/orders/13221/coupons"}, "order_source"=>"www", "default_currency_id"=>1, "payment_status"=>"captured", "wrapping_cost_ex_tax"=>"0.0000", "handling_cost_tax_class_id"=>2, "base_shipping_cost"=>"11.5600", "discount_amount"=>"0.0000", "payment_method"=>"Credit Card", "items_total"=>1, "handling_cost_ex_tax"=>"3.0000", "date_modified"=>"Thu, 21 Nov 2013 15:54:04 +0000", "id"=>13221, "billing_address"=>{"email"=>"masterofmastering@gmx.com", "country_iso2"=>"US", "state"=>"New York", "city"=>"Forest Hills", "zip"=>"11375", "company"=>"", "phone"=>"9172162091", "country"=>"United States", "last_name"=>"Trabulsy", "street_2"=>"", "street_1"=>"70-25 Yellowstone Blvd", "first_name"=>"Michael"}, "customer_message"=>"", "default_currency_code"=>"USD", "gift_certificate_amount"=>"0.0000", "shipping_cost_tax_class_id"=>2, "shipping_cost_inc_tax"=>"11.5600", "status_id"=>6, "shipping_addresses"=>{"url"=>"https://www.sportsmanslogistics.com/api/v2/orders/13221/shippingaddresses.json", "resource"=>"/orders/13221/shippingaddresses"}, "external_source"=>nil, "order_is_digital"=>false, "total_tax"=>"0.0000", "handling_cost_tax"=>"0.0000", "base_handling_cost"=>"0.0000", "subtotal_ex_tax"=>"1951.7100", "ebay_order_id"=>"0", "is_deleted"=>false, "currency_id"=>1, "geoip_country"=>"United States", "base_wrapping_cost"=>"0.0000", "shipping_cost_ex_tax"=>"11.5600", "subtotal_tax"=>"0.0000", "status"=>"Declined"} | |
>> y bo | |
--- | |
staff_notes: "" | |
ip_address: 108.162.13.146 | |
refunded_amount: "0.0000" | |
wrapping_cost_tax_class_id: 3 | |
wrapping_cost_inc_tax: "0.0000" | |
handling_cost_inc_tax: "3.0000" | |
subtotal_inc_tax: "1951.7100" | |
date_created: Thu, 21 Nov 2013 14:53:32 +0000 | |
coupon_discount: "0.0000" | |
currency_code: USD | |
geoip_country_iso2: US | |
payment_provider_id: "5709131489" | |
items_shipped: 0 | |
total_ex_tax: "1966.2700" | |
wrapping_cost_tax: "0.0000" | |
shipping_cost_tax: "0.0000" | |
date_shipped: "" | |
customer_id: 50 | |
products: | |
url: https://www.sportsmanslogistics.com/api/v2/orders/13221/products.json | |
resource: /orders/13221/products | |
shipping_address_count: 1 | |
currency_exchange_rate: "1.0000000000" | |
store_credit_amount: "0.0000" | |
total_inc_tax: "1966.2700" | |
coupons: | |
url: https://www.sportsmanslogistics.com/api/v2/orders/13221/coupons.json | |
resource: /orders/13221/coupons | |
order_source: www | |
default_currency_id: 1 | |
payment_status: captured | |
wrapping_cost_ex_tax: "0.0000" | |
handling_cost_tax_class_id: 2 | |
base_shipping_cost: "11.5600" | |
discount_amount: "0.0000" | |
payment_method: Credit Card | |
items_total: 1 | |
handling_cost_ex_tax: "3.0000" | |
date_modified: Thu, 21 Nov 2013 15:54:04 +0000 | |
id: 13221 | |
billing_address: | |
email: masterofmastering@gmx.com | |
country_iso2: US | |
state: New York | |
city: Forest Hills | |
zip: "11375" | |
company: "" | |
phone: "9172162091" | |
country: United States | |
last_name: Trabulsy | |
street_2: "" | |
street_1: 70-25 Yellowstone Blvd | |
first_name: Michael | |
customer_message: "" | |
default_currency_code: USD | |
gift_certificate_amount: "0.0000" | |
shipping_cost_tax_class_id: 2 | |
shipping_cost_inc_tax: "11.5600" | |
status_id: 6 | |
shipping_addresses: | |
url: https://www.sportsmanslogistics.com/api/v2/orders/13221/shippingaddresses.json | |
resource: /orders/13221/shippingaddresses | |
external_source: | |
order_is_digital: false | |
total_tax: "0.0000" | |
handling_cost_tax: "0.0000" | |
base_handling_cost: "0.0000" | |
subtotal_ex_tax: "1951.7100" | |
ebay_order_id: "0" | |
is_deleted: false | |
currency_id: 1 | |
geoip_country: United States | |
base_wrapping_cost: "0.0000" | |
shipping_cost_ex_tax: "11.5600" | |
subtotal_tax: "0.0000" | |
status: Declined |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment