https://www.refereestore.com/api/v2/orders/count?email=keriag2000@yahoo.com&min_date_created=2020-01-27
1
Get orders
https://www.refereestore.com/api/v2/orders?email=keriag2000@yahoo.com&sort=date_created:desc&page=1&limit=250&min_date_created=2020-01-27
SimpleXMLElement Object
(
[order] => SimpleXMLElement Object
(
[id] => 68496
[customer_id] => 31005
[date_created] => Tue, 28 Jan 2020 02:41:20 +0000
[date_modified] => Tue, 28 Jan 2020 02:41:25 +0000
[date_shipped] => SimpleXMLElement Object
(
)
[status_id] => 11
[status] => Awaiting Fulfillment
[subtotal_ex_tax] => 47.9500
[subtotal_inc_tax] => 50.1625
[subtotal_tax] => 1.7700
[base_shipping_cost] => 8.0000
[shipping_cost_ex_tax] => 8.0000
[shipping_cost_inc_tax] => 8.3700
[shipping_cost_tax] => 0.3700
[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] => 46.3600
[total_inc_tax] => 48.5000
[total_tax] => 2.1400
[items_total] => 1
[items_shipped] => 0
[payment_method] => Credit Card
[payment_provider_id] => 15ymhy00
[payment_status] => captured
[refunded_amount] => 0.0000
[order_is_digital] => false
[store_credit_amount] => 0.0000
[gift_certificate_amount] => 0.0000
[ip_address] => 68.132.124.205
[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.5900
[shipping_address_count] => 1
[is_deleted] => false
[ebay_order_id] => 0
[cart_id] => 91317e20-b39a-4242-b364-4e4261598e82
[billing_address] => SimpleXMLElement Object
(
[first_name] => Keri
[last_name] => Gardner
[company] => SimpleXMLElement Object
(
)
[street_1] => 22 Hastings St
[street_2] => SimpleXMLElement Object
(
)
[city] => Dix Hills
[state] => New York
[zip] => 11746
[country] => United States
[country_iso2] => US
[phone] => 3472668179
[email] => keriag2000@yahoo.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/68496/products
)
[shipping_addresses] => SimpleXMLElement Object
(
[link] => /orders/68496/shippingaddresses
)
[coupons] => SimpleXMLElement Object
(
[link] => /orders/68496/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
(
[keriag2000@yahoo.com] => Array
(
[firstName] => Keri
[lastName] => Gardner
[totalOrders] => 1
[soccer] => no
[football] => no
[basketball] => yes
[baseball] => no
[hockey] => no
[soccerProduct] =>
[footballProduct] =>
[basketballProduct] => SimpleXMLElement Object
(
[0] => SimpleXMLElement Object
(
)
)
[baseballProduct] =>
[hockeyProduct] =>
)
)
https://us9.api.mailchimp.com/3.0/lists/1a2f77357d/members/f7e89ce7a3987895d6b6adfa33ed24d9
Array
(
[httpCode] => 200
[results] => {"id":"f7e89ce7a3987895d6b6adfa33ed24d9","email_address":"keriag2000@yahoo.com","unique_email_id":"fd6a1a2375","web_id":312612873,"email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Keri","LNAME":"Gardner"},"stats":{"avg_open_rate":0,"avg_click_rate":0,"ecommerce_data":{"total_revenue":48.5,"number_of_orders":1,"currency_code":"USD"}},"ip_signup":"","timestamp_signup":"","ip_opt":"159.203.77.64","timestamp_opt":"2020-01-28T03:45:30+00:00","member_rating":2,"last_changed":"2020-01-28T03:45:31+00:00","language":"","vip":false,"email_client":"Yahoo Mail","location":{"latitude":0,"longitude":0,"gmtoff":0,"dstoff":0,"country_code":"","timezone":""},"source":"Referee Basketball Store","tags_count":0,"tags":[],"list_id":"1a2f77357d","_links":[{"rel":"self","href":"https://us9.api.mailchimp.com/3.0/lists/1a2f77357d/members/f7e89ce7a3987895d6b6adfa33ed24d9","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/1a2f77357d/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/1a2f77357d/members/f7e89ce7a3987895d6b6adfa33ed24d9","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/1a2f77357d/members/f7e89ce7a3987895d6b6adfa33ed24d9","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/1a2f77357d/members/f7e89ce7a3987895d6b6adfa33ed24d9","method":"DELETE"},{"rel":"activity","href":"https://us9.api.mailchimp.com/3.0/lists/1a2f77357d/members/f7e89ce7a3987895d6b6adfa33ed24d9/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/1a2f77357d/members/f7e89ce7a3987895d6b6adfa33ed24d9/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/1a2f77357d/members/f7e89ce7a3987895d6b6adfa33ed24d9/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/1a2f77357d/members/f7e89ce7a3987895d6b6adfa33ed24d9/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/1a2f77357d/members/f7e89ce7a3987895d6b6adfa33ed24d9/actions/delete-permanent","method":"POST"}]}
)
[2020-01-27] keriag2000@yahoo.com already exists in basketball list
https://us9.api.mailchimp.com/3.0/ecommerce/stores/store_94t4k7zofon986r73e62/orders?customer_id=31005
68496-2020-01-28T02:42:18+00:00
https://us9.api.mailchimp.com/3.0/ecommerce/stores/store_94t4k7zofon986r73e62/orders/68496
1Array
(
[id] => 945
[currency_code] => USD
[title] => Black & White PRO Shirt with Sublimated Flag
[handle] =>
[url] => https://www.refereestore.com/black-white-pro-shirt-with-sublimated-flag
[description] =>
- MADE IN USA
- 100% Performance Mesh Polyester Fabric
- White Border USA Flag on Left Sleeve
- Black Rib Knit V-Neck Collar and Sleeve Ends
- Available in sizes from Small to 4XL
- Model USA200
- Sizing Chart
[type] => physical
[vendor] =>
[image_url] => https://cdn11.bigcommerce.com/s-mzx05o3/products/945/images/6274/Black_White_PRO_Shirt_with_Sublimated_Flag__27967.1557518828.385.385.jpg?c=2
[variants] => Array
(
[0] => Array
(
[id] => 945
[title] => Black & White PRO Shirt with Sublimated Flag
[url] => https://www.refereestore.com/black-white-pro-shirt-with-sublimated-flag
[sku] => USA200
[price] => 47.95
[inventory_quantity] => 1000000
[image_url] => https://cdn11.bigcommerce.com/s-mzx05o3/products/945/images/6274/Black_White_PRO_Shirt_with_Sublimated_Flag__27967.1557518828.385.385.jpg?c=2
[backorders] =>
[visibility] => true
)
)
[images] => Array
(
)
[published_at_foreign] => 2016-11-05T17:34:26+00:00
)
https://us9.api.mailchimp.com/3.0/ecommerce/stores/store_37ijwq5bu6x61zm63ett/products/
{"id":"945","currency_code":"USD","title":"Black & White PRO Shirt with Sublimated Flag","handle":"","url":"https:\/\/www.refereestore.com\/black-white-pro-shirt-with-sublimated-flag","description":"\r\n- MADE IN USA<\/span>
<\/span><\/li>\r\n- 100% Performance Mesh Polyester <\/span>Fabric<\/span><\/li>\r\n
- White Border USA Flag on Left Sleeve<\/span><\/li>\r\n
- Black Rib Knit V-Neck Collar and Sleeve Ends<\/span><\/li>\r\n
- Available in sizes from Small to 4XL<\/span><\/li>\r\n
- Model USA200<\/span><\/li>\r\n
- Sizing Chart<\/span><\/a><\/li>\r\n<\/ul>","type":"physical","vendor":"","image_url":"https:\/\/cdn11.bigcommerce.com\/s-mzx05o3\/products\/945\/images\/6274\/Black_White_PRO_Shirt_with_Sublimated_Flag__27967.1557518828.385.385.jpg?c=2","variants":[{"id":"945","title":"Black & White PRO Shirt with Sublimated Flag","url":"https:\/\/www.refereestore.com\/black-white-pro-shirt-with-sublimated-flag","sku":"USA200","price":47.95,"inventory_quantity":1000000,"image_url":"https:\/\/cdn11.bigcommerce.com\/s-mzx05o3\/products\/945\/images\/6274\/Black_White_PRO_Shirt_with_Sublimated_Flag__27967.1557518828.385.385.jpg?c=2","backorders":"","visibility":"true"}],"images":[],"published_at_foreign":"2016-11-05T17:34: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":"3794b40a-b385-4c87-bbb8-7f8332b03841"}
)
https://us9.api.mailchimp.com/3.0/ecommerce/stores/store_37ijwq5bu6x61zm63ett/orders/
{"id":"68496","customer":{"id":"31005","email_address":"keriag2000@yahoo.com","opt_in_status":false,"company":"","first_name":"Keri","last_name":"Gardner","orders_count":2,"total_spent":210,"address":{"address1":"","address2":"","city":"Dix Hills","province":"","province_code":"","postal_code":"","country":"United States","country_code":""}},"landing_site":"","financial_status":"paid","fulfillment_status":"pending","currency_code":"USD","order_total":48.5,"discount_total":9.59,"tax_total":2.14,"shipping_total":8.37,"processed_at_foreign":"2020-01-28T02:41:20+00:00","cancelled_at_foreign":"","updated_at_foreign":"2020-01-28T02:41:25+00:00","shipping_address":{"name":"","address1":"22 Hastings St","address2":"","city":"Dix Hills","province":"New York","province_code":"","postal_code":"11746","country":"United States","country_code":"US","longitude":0,"latitude":0,"phone":"3472668179","company":""},"billing_address":{"name":"","address1":"22 Hastings St","address2":"","city":"Dix Hills","province":"New York","province_code":"","postal_code":"11746","country":"United States","country_code":"US","longitude":0,"latitude":0,"phone":"3472668179","company":""},"promos":[{"code":"Arbiter20","amount_discounted":9.59,"type":"percentage"}],"lines":[{"id":"139037","product_id":"945","product_variant_id":"945","quantity":1,"price":47.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":"bf842d4c-367e-4ba0-b56a-a34d06bcbe54"}
)
unsubscribe from socccer list: keriag2000@yahoo.com
https://us9.api.mailchimp.com/3.0/lists/aeb11955e6/members/f7e89ce7a3987895d6b6adfa33ed24d9
{"status":"unsubscribed"}
Array
(
[httpCode] => 200
[results] => {"id":"f7e89ce7a3987895d6b6adfa33ed24d9","email_address":"keriag2000@yahoo.com","unique_email_id":"fd6a1a2375","web_id":312199525,"email_type":"html","status":"unsubscribed","unsubscribe_reason":"N/A (Unsubscribed by admin)","merge_fields":{"FNAME":"Keri","LNAME":"Gardner"},"interests":{"4b8cd626d8":false},"stats":{"avg_open_rate":0,"avg_click_rate":0,"ecommerce_data":{"total_revenue":210.6200000000000045474735088646411895751953125,"number_of_orders":2,"currency_code":"USD"}},"ip_signup":"","timestamp_signup":"","ip_opt":"","timestamp_opt":"2019-04-21T16:28:13+00:00","member_rating":2,"last_changed":"2020-01-28T05:00:00+00:00","language":"","vip":false,"email_client":"Yahoo Mail","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/f7e89ce7a3987895d6b6adfa33ed24d9","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/f7e89ce7a3987895d6b6adfa33ed24d9","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/f7e89ce7a3987895d6b6adfa33ed24d9","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/f7e89ce7a3987895d6b6adfa33ed24d9","method":"DELETE"},{"rel":"activity","href":"https://us9.api.mailchimp.com/3.0/lists/aeb11955e6/members/f7e89ce7a3987895d6b6adfa33ed24d9/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/f7e89ce7a3987895d6b6adfa33ed24d9/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/f7e89ce7a3987895d6b6adfa33ed24d9/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/f7e89ce7a3987895d6b6adfa33ed24d9/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/f7e89ce7a3987895d6b6adfa33ed24d9/actions/delete-permanent","method":"POST"}]}
)