https://www.refereestore.com/api/v2/orders/count?email=clockholic1@gmail.com&min_date_created=2020-01-29
1
Get orders
https://www.refereestore.com/api/v2/orders?email=clockholic1@gmail.com&sort=date_created:desc&page=1&limit=250&min_date_created=2020-01-29
SimpleXMLElement Object
(
[order] => SimpleXMLElement Object
(
[id] => 68543
[customer_id] => 38921
[date_created] => Wed, 29 Jan 2020 00:51:09 +0000
[date_modified] => Wed, 29 Jan 2020 00:51:12 +0000
[date_shipped] => SimpleXMLElement Object
(
)
[status_id] => 11
[status] => Awaiting Fulfillment
[subtotal_ex_tax] => 49.9500
[subtotal_inc_tax] => 53.8250
[subtotal_tax] => 3.1000
[base_shipping_cost] => 5.0000
[shipping_cost_ex_tax] => 5.0000
[shipping_cost_inc_tax] => 5.0000
[shipping_cost_tax] => 0.0000
[shipping_cost_tax_class_id] => 0
[base_handling_cost] => 0.0000
[handling_cost_ex_tax] => 0.0000
[handling_cost_inc_tax] => 0.0000
[handling_cost_tax] => 0.0000
[handling_cost_tax_class_id] => 0
[base_wrapping_cost] => 0.0000
[wrapping_cost_ex_tax] => 0.0000
[wrapping_cost_inc_tax] => 0.0000
[wrapping_cost_tax] => 0.0000
[wrapping_cost_tax_class_id] => 0
[total_ex_tax] => 44.9600
[total_inc_tax] => 48.0600
[total_tax] => 3.1000
[items_total] => 1
[items_shipped] => 0
[payment_method] => Credit Card
[payment_provider_id] => hjvt6he9
[payment_status] => captured
[refunded_amount] => 0.0000
[order_is_digital] => false
[store_credit_amount] => 0.0000
[gift_certificate_amount] => 0.0000
[ip_address] => 138.229.136.253
[geoip_country] => United States
[geoip_country_iso2] => US
[currency_id] => 1
[currency_code] => USD
[currency_exchange_rate] => 1.0000000000
[default_currency_id] => 1
[default_currency_code] => USD
[staff_notes] => SimpleXMLElement Object
(
)
[customer_message] => SimpleXMLElement Object
(
)
[discount_amount] => 0.0000
[coupon_discount] => 9.9900
[shipping_address_count] => 1
[is_deleted] => false
[ebay_order_id] => 0
[cart_id] => aaf6cd3f-309b-4ed0-a8a0-184cc508cb38
[billing_address] => SimpleXMLElement Object
(
[first_name] => Gary
[last_name] => Hathaway
[company] => SimpleXMLElement Object
(
)
[street_1] => 17571 landis dr
[street_2] => SimpleXMLElement Object
(
)
[city] => Victorville
[state] => California
[zip] => 92395
[country] => United States
[country_iso2] => US
[phone] => 7608813668
[email] => clockholic1@gmail.com
[form_fields] => SimpleXMLElement Object
(
)
)
[is_email_opt_in] => false
[credit_card_type] => NULL
[order_source] => www
[channel_id] => 1
[external_source] => SimpleXMLElement Object
(
)
[products] => SimpleXMLElement Object
(
[link] => /orders/68543/products
)
[shipping_addresses] => SimpleXMLElement Object
(
[link] => /orders/68543/shippingaddresses
)
[coupons] => SimpleXMLElement Object
(
[link] => /orders/68543/coupons
)
[external_id] => NULL
[external_merchant_id] => NULL
[tax_provider_id] => AvaTaxProvider
[store_default_currency_code] => USD
[store_default_to_transactional_exchange_rate] => 1.0000000000
[custom_status] => Processing/Awaiting Pick Up
)
)
Array
(
[clockholic1@gmail.com] => Array
(
[firstName] => Gary
[lastName] => Hathaway
[totalOrders] => 1
[soccer] => no
[football] => no
[basketball] => no
[baseball] => yes
[hockey] => no
[soccerProduct] =>
[footballProduct] =>
[basketballProduct] =>
[baseballProduct] => SimpleXMLElement Object
(
[0] => SimpleXMLElement Object
(
)
)
[hockeyProduct] =>
)
)
https://us9.api.mailchimp.com/3.0/lists/39a0b72c1c/members/02678fcfe6f0093eeea1d3b3ee3cdbc0
Array
(
[httpCode] => 200
[results] => {"id":"02678fcfe6f0093eeea1d3b3ee3cdbc0","email_address":"clockholic1@gmail.com","unique_email_id":"2055fb2f1e","web_id":312613085,"email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Gary","LNAME":"Hathaway"},"stats":{"avg_open_rate":0,"avg_click_rate":0,"ecommerce_data":{"total_revenue":48.06000000000000227373675443232059478759765625,"number_of_orders":1,"currency_code":"USD"}},"ip_signup":"","timestamp_signup":"","ip_opt":"159.203.77.64","timestamp_opt":"2020-01-29T16:30:18+00:00","member_rating":2,"last_changed":"2020-01-29T16:30:18+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"source":"Referee Baseball Store","tags_count":0,"tags":[],"list_id":"39a0b72c1c","_links":[{"rel":"self","href":"https://us9.api.mailchimp.com/3.0/lists/39a0b72c1c/members/02678fcfe6f0093eeea1d3b3ee3cdbc0","method":"GET","targetSchema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Response.json"},{"rel":"parent","href":"https://us9.api.mailchimp.com/3.0/lists/39a0b72c1c/members","method":"GET","targetSchema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/CollectionResponse.json","schema":"https://us9.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Members.json"},{"rel":"update","href":"https://us9.api.mailchimp.com/3.0/lists/39a0b72c1c/members/02678fcfe6f0093eeea1d3b3ee3cdbc0","method":"PATCH","targetSchema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Response.json","schema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/PATCH.json"},{"rel":"upsert","href":"https://us9.api.mailchimp.com/3.0/lists/39a0b72c1c/members/02678fcfe6f0093eeea1d3b3ee3cdbc0","method":"PUT","targetSchema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Response.json","schema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/PUT.json"},{"rel":"delete","href":"https://us9.api.mailchimp.com/3.0/lists/39a0b72c1c/members/02678fcfe6f0093eeea1d3b3ee3cdbc0","method":"DELETE"},{"rel":"activity","href":"https://us9.api.mailchimp.com/3.0/lists/39a0b72c1c/members/02678fcfe6f0093eeea1d3b3ee3cdbc0/activity","method":"GET","targetSchema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Activity/Response.json"},{"rel":"goals","href":"https://us9.api.mailchimp.com/3.0/lists/39a0b72c1c/members/02678fcfe6f0093eeea1d3b3ee3cdbc0/goals","method":"GET","targetSchema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Goals/Response.json"},{"rel":"notes","href":"https://us9.api.mailchimp.com/3.0/lists/39a0b72c1c/members/02678fcfe6f0093eeea1d3b3ee3cdbc0/notes","method":"GET","targetSchema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Notes/CollectionResponse.json"},{"rel":"events","href":"https://us9.api.mailchimp.com/3.0/lists/39a0b72c1c/members/02678fcfe6f0093eeea1d3b3ee3cdbc0/events","method":"POST","targetSchema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Events/POST.json"},{"rel":"delete_permanent","href":"https://us9.api.mailchimp.com/3.0/lists/39a0b72c1c/members/02678fcfe6f0093eeea1d3b3ee3cdbc0/actions/delete-permanent","method":"POST"}]}
)
[2020-01-29] clockholic1@gmail.com already exists in baseball list
https://us9.api.mailchimp.com/3.0/ecommerce/stores/store_94t4k7zofon986r73e62/orders?customer_id=38921
68543-2020-01-29T00:49:29+00:00
https://us9.api.mailchimp.com/3.0/ecommerce/stores/store_94t4k7zofon986r73e62/orders/68543
1Array
(
[id] => 856
[currency_code] => USD
[title] => Baseball & Softball Umpire L/S Jacket with Trim
[handle] =>
[url] => https://www.refereestore.com/baseball-softball-umpire-l-s-jacket-with-trim
[description] =>
- "Water Resistant" Micro Fiber
- Half Zip Pullover
- Stand up Collar
- Matching Rib Knit Cuffs
- Fully Lined
- Sized For The Plate
- Available in 5 Trim Combinations:
- Navy with White+Navy/Red Trim
- Navy with White+Navy+Powder Blue Trim
- Black with White+Black Trim
- Black with White+Powder Blue Trim (Major League Style)
- Navy with White Powder Blue Trim (Major League Style) - Not Pictured
- Sizes S-4XL
- Model BBS-320
[type] => physical
[vendor] =>
[image_url] => https://cdn11.bigcommerce.com/s-mzx05o3/products/856/images/3119/homerun-smitty-umpire-equipment-bbs320-long-sleeve-umpire-jacket-inset__22691.1476578845.385.385.jpg?c=2
[variants] => Array
(
[0] => Array
(
[id] => 856
[title] => Baseball & Softball Umpire L/S Jacket with Trim
[url] => https://www.refereestore.com/baseball-softball-umpire-l-s-jacket-with-trim
[sku] => BBS-320
[price] => 49.95
[inventory_quantity] => 1000000
[image_url] => https://cdn11.bigcommerce.com/s-mzx05o3/products/856/images/3119/homerun-smitty-umpire-equipment-bbs320-long-sleeve-umpire-jacket-inset__22691.1476578845.385.385.jpg?c=2
[backorders] =>
[visibility] => true
)
)
[images] => Array
(
)
[published_at_foreign] => 2016-10-15T21:43:26+00:00
)
https://us9.api.mailchimp.com/3.0/ecommerce/stores/store_aaxvxw3fri17unajztjx/products/
{"id":"856","currency_code":"USD","title":"Baseball & Softball Umpire L\/S Jacket with Trim","handle":"","url":"https:\/\/www.refereestore.com\/baseball-softball-umpire-l-s-jacket-with-trim","description":"\r\n- \"Water Resistant\" Micro Fiber<\/li>\r\n
- Half Zip Pullover<\/li>\r\n
- Stand up Collar<\/li>\r\n
- Matching Rib Knit Cuffs<\/li>\r\n
- Fully Lined<\/li>\r\n
- Sized For The Plate<\/li>\r\n
- Available in 5 Trim Combinations: \r\n
\r\n- Navy with White+Navy\/Red Trim<\/li>\r\n
- Navy with White+Navy+Powder Blue Trim<\/li>\r\n
- Black with White+Black Trim<\/li>\r\n
- Black with White+Powder Blue Trim (Major League Style)<\/li>\r\n
- Navy with White Powder Blue Trim (Major League Style) - Not Pictured<\/li>\r\n<\/ul>\r\n<\/li>\r\n
- Sizes S-4XL<\/li>\r\n
- Model BBS-320<\/li>\r\n<\/ul>","type":"physical","vendor":"","image_url":"https:\/\/cdn11.bigcommerce.com\/s-mzx05o3\/products\/856\/images\/3119\/homerun-smitty-umpire-equipment-bbs320-long-sleeve-umpire-jacket-inset__22691.1476578845.385.385.jpg?c=2","variants":[{"id":"856","title":"Baseball & Softball Umpire L\/S Jacket with Trim","url":"https:\/\/www.refereestore.com\/baseball-softball-umpire-l-s-jacket-with-trim","sku":"BBS-320","price":49.95,"inventory_quantity":1000000,"image_url":"https:\/\/cdn11.bigcommerce.com\/s-mzx05o3\/products\/856\/images\/3119\/homerun-smitty-umpire-equipment-bbs320-long-sleeve-umpire-jacket-inset__22691.1476578845.385.385.jpg?c=2","backorders":"","visibility":"true"}],"images":[],"published_at_foreign":"2016-10-15T21:43:26+00:00"}
Array
(
[httpCode] => 400
[results] => {"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"Bad Request","status":400,"detail":"We were unable to process the request. A product with the provided ID already exists in the account.","instance":"864e4b18-4e94-4dca-b8aa-d0c6b2645ba0"}
)
https://us9.api.mailchimp.com/3.0/ecommerce/stores/store_aaxvxw3fri17unajztjx/orders/
{"id":"68543","customer":{"id":"38921","email_address":"clockholic1@gmail.com","opt_in_status":false,"company":"","first_name":"Gary","last_name":"Hathaway","orders_count":1,"total_spent":48,"address":{"address1":"","address2":"","city":"Victorville ","province":"","province_code":"","postal_code":"","country":"United States","country_code":""}},"landing_site":"","financial_status":"paid","fulfillment_status":"pending","currency_code":"USD","order_total":48.06,"discount_total":9.99,"tax_total":3.1,"shipping_total":5,"processed_at_foreign":"2020-01-29T00:51:09+00:00","cancelled_at_foreign":"","updated_at_foreign":"2020-01-29T00:51:12+00:00","shipping_address":{"name":"","address1":"17571 landis dr","address2":"","city":"Victorville ","province":"California","province_code":"","postal_code":"92395","country":"United States","country_code":"US","longitude":0,"latitude":0,"phone":"7608813668","company":""},"billing_address":{"name":"","address1":"17571 landis dr","address2":"","city":"Victorville ","province":"California","province_code":"","postal_code":"92395","country":"United States","country_code":"US","longitude":0,"latitude":0,"phone":"7608813668","company":""},"promos":[{"code":"Arbiter20","amount_discounted":9.99,"type":"percentage"}],"lines":[{"id":"139134","product_id":"856","product_variant_id":"856","quantity":1,"price":49.95,"discount":0}]}
Array
(
[httpCode] => 400
[results] => {"type":"http://developer.mailchimp.com/documentation/mailchimp/guides/error-glossary/","title":"Bad Request","status":400,"detail":"We were unable to process the request. An order with the provided ID already exists in the account.","instance":"7afe08f3-6808-49ae-bada-49339425f027"}
)
unsubscribe from socccer list: clockholic1@gmail.com
https://us9.api.mailchimp.com/3.0/lists/aeb11955e6/members/02678fcfe6f0093eeea1d3b3ee3cdbc0
{"status":"unsubscribed"}
Array
(
[httpCode] => 200
[results] => {"id":"02678fcfe6f0093eeea1d3b3ee3cdbc0","email_address":"clockholic1@gmail.com","unique_email_id":"2055fb2f1e","web_id":312613021,"email_type":"html","status":"unsubscribed","unsubscribe_reason":"N/A (Unsubscribed by admin)","merge_fields":{"FNAME":"Gary","LNAME":"Hathaway"},"interests":{"4b8cd626d8":false},"stats":{"avg_open_rate":0,"avg_click_rate":0,"ecommerce_data":{"total_revenue":48.06000000000000227373675443232059478759765625,"number_of_orders":1,"currency_code":"USD"}},"ip_signup":"","timestamp_signup":"","ip_opt":"34.213.169.10","timestamp_opt":"2020-01-29T00:49:29+00:00","member_rating":2,"last_changed":"2020-01-29T17:16:36+00:00","language":"","vip":false,"email_client":"","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"source":"Referee Store","tags_count":0,"tags":[],"list_id":"aeb11955e6","_links":[{"rel":"self","href":"https://us9.api.mailchimp.com/3.0/lists/aeb11955e6/members/02678fcfe6f0093eeea1d3b3ee3cdbc0","method":"GET","targetSchema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Response.json"},{"rel":"parent","href":"https://us9.api.mailchimp.com/3.0/lists/aeb11955e6/members","method":"GET","targetSchema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/CollectionResponse.json","schema":"https://us9.api.mailchimp.com/schema/3.0/CollectionLinks/Lists/Members.json"},{"rel":"update","href":"https://us9.api.mailchimp.com/3.0/lists/aeb11955e6/members/02678fcfe6f0093eeea1d3b3ee3cdbc0","method":"PATCH","targetSchema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Response.json","schema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/PATCH.json"},{"rel":"upsert","href":"https://us9.api.mailchimp.com/3.0/lists/aeb11955e6/members/02678fcfe6f0093eeea1d3b3ee3cdbc0","method":"PUT","targetSchema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Response.json","schema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/PUT.json"},{"rel":"delete","href":"https://us9.api.mailchimp.com/3.0/lists/aeb11955e6/members/02678fcfe6f0093eeea1d3b3ee3cdbc0","method":"DELETE"},{"rel":"activity","href":"https://us9.api.mailchimp.com/3.0/lists/aeb11955e6/members/02678fcfe6f0093eeea1d3b3ee3cdbc0/activity","method":"GET","targetSchema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Activity/Response.json"},{"rel":"goals","href":"https://us9.api.mailchimp.com/3.0/lists/aeb11955e6/members/02678fcfe6f0093eeea1d3b3ee3cdbc0/goals","method":"GET","targetSchema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Goals/Response.json"},{"rel":"notes","href":"https://us9.api.mailchimp.com/3.0/lists/aeb11955e6/members/02678fcfe6f0093eeea1d3b3ee3cdbc0/notes","method":"GET","targetSchema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Notes/CollectionResponse.json"},{"rel":"events","href":"https://us9.api.mailchimp.com/3.0/lists/aeb11955e6/members/02678fcfe6f0093eeea1d3b3ee3cdbc0/events","method":"POST","targetSchema":"https://us9.api.mailchimp.com/schema/3.0/Definitions/Lists/Members/Events/POST.json"},{"rel":"delete_permanent","href":"https://us9.api.mailchimp.com/3.0/lists/aeb11955e6/members/02678fcfe6f0093eeea1d3b3ee3cdbc0/actions/delete-permanent","method":"POST"}]}
)