https://www.refereestore.com/api/v2/orders/count?email=kump1951@aol.com&min_date_created=2020-01-28
1
Get orders
https://www.refereestore.com/api/v2/orders?email=kump1951@aol.com&sort=date_created:desc&page=1&limit=250&min_date_created=2020-01-28
SimpleXMLElement Object
(
[order] => SimpleXMLElement Object
(
[id] => 68519
[customer_id] => 38905
[date_created] => Tue, 28 Jan 2020 18:01:17 +0000
[date_modified] => Tue, 28 Jan 2020 19:10:35 +0000
[date_shipped] => Tue, 28 Jan 2020 19:10:35 +0000
[status_id] => 2
[status] => Shipped
[subtotal_ex_tax] => 59.9500
[subtotal_inc_tax] => 64.1500
[subtotal_tax] => 4.2000
[base_shipping_cost] => 8.0000
[shipping_cost_ex_tax] => 8.0000
[shipping_cost_inc_tax] => 8.5600
[shipping_cost_tax] => 0.5600
[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] => 67.9500
[total_inc_tax] => 72.7100
[total_tax] => 4.7600
[items_total] => 1
[items_shipped] => 1
[payment_method] => Credit Card
[payment_provider_id] => 4v7qmref
[payment_status] => captured
[refunded_amount] => 0.0000
[order_is_digital] => false
[store_credit_amount] => 0.0000
[gift_certificate_amount] => 0.0000
[ip_address] => 97.96.127.234
[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] => 0.0000
[shipping_address_count] => 1
[is_deleted] => false
[ebay_order_id] => 0
[cart_id] => f4205fb6-1c7a-4b0b-9ebd-04078c6458b1
[billing_address] => SimpleXMLElement Object
(
[first_name] => Kay
[last_name] => Smith
[company] => Umpire 03
[street_1] => 411 Southwest 3rd Avenue
[street_2] => SimpleXMLElement Object
(
)
[city] => Mulberry
[state] => Florida
[zip] => 33860
[country] => United States
[country_iso2] => US
[phone] => 8638997926
[email] => kump1951@aol.com
[form_fields] => SimpleXMLElement Object
(
)
)
[is_email_opt_in] => false
[credit_card_type] => NULL
[order_source] => ipad
[channel_id] => 1
[external_source] => SimpleXMLElement Object
(
)
[products] => SimpleXMLElement Object
(
[link] => /orders/68519/products
)
[shipping_addresses] => SimpleXMLElement Object
(
[link] => /orders/68519/shippingaddresses
)
[coupons] => SimpleXMLElement Object
(
[link] => /orders/68519/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] => Shipped
)
)
Array
(
[kump1951@aol.com] => Array
(
[firstName] => Kay
[lastName] => Smith
[totalOrders] => 1
[soccer] => no
[football] => no
[basketball] => no
[baseball] => yes
[hockey] => no
[soccerProduct] =>
[footballProduct] =>
[basketballProduct] =>
[baseballProduct] => SimpleXMLElement Object
(
[0] => Outside Pro Shield Umpire Chest Protector
)
[hockeyProduct] =>
)
)
https://us9.api.mailchimp.com/3.0/lists/39a0b72c1c/members/0ee4ee1cabce35c66b6a55e6d31b839c
Array
(
[httpCode] => 200
[results] => {"id":"0ee4ee1cabce35c66b6a55e6d31b839c","email_address":"kump1951@aol.com","unique_email_id":"58f2650937","web_id":312612981,"email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Kay ","LNAME":"Smith"},"stats":{"avg_open_rate":0,"avg_click_rate":0,"ecommerce_data":{"total_revenue":72.7099999999999937472239253111183643341064453125,"number_of_orders":1,"currency_code":"USD"}},"ip_signup":"","timestamp_signup":"","ip_opt":"159.203.77.64","timestamp_opt":"2020-01-28T20:30:33+00:00","member_rating":2,"last_changed":"2020-01-28T20:30:35+00:00","language":"","vip":false,"email_client":"Yahoo Mail","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/0ee4ee1cabce35c66b6a55e6d31b839c","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/0ee4ee1cabce35c66b6a55e6d31b839c","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/0ee4ee1cabce35c66b6a55e6d31b839c","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/0ee4ee1cabce35c66b6a55e6d31b839c","method":"DELETE"},{"rel":"activity","href":"https://us9.api.mailchimp.com/3.0/lists/39a0b72c1c/members/0ee4ee1cabce35c66b6a55e6d31b839c/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/0ee4ee1cabce35c66b6a55e6d31b839c/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/0ee4ee1cabce35c66b6a55e6d31b839c/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/0ee4ee1cabce35c66b6a55e6d31b839c/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/0ee4ee1cabce35c66b6a55e6d31b839c/actions/delete-permanent","method":"POST"}]}
)
[2020-01-28] kump1951@aol.com already exists in baseball list
https://us9.api.mailchimp.com/3.0/ecommerce/stores/store_94t4k7zofon986r73e62/orders?customer_id=38905
68519-2020-01-28T18:02:31+00:00
https://us9.api.mailchimp.com/3.0/ecommerce/stores/store_94t4k7zofon986r73e62/orders/68519
1Array
(
[id] => 898
[currency_code] => USD
[title] => Outside Pro Shield Umpire Chest Protector
[handle] =>
[url] => https://www.refereestore.com/outside-pro-shield-umpire-chest-protector
[description] =>
- Outside plastic shield to protect chest from impact
- Lightweight soft foam padding with closed cell mesh cover to allow for flexibility and agility
- Makes the inside padding breathable and keeps moisture away from the body
- Extra wide side protection
- Raised shoulder protection with double shoulder caps
- Black
- Model P220 - 13"
- Model P210 - 15" (+ $5)
- Model P200 - 17" (+ $10)
[type] => physical
[vendor] =>
[image_url] => https://cdn11.bigcommerce.com/s-mzx05o3/products/898/images/6309/Outside_Pro_Shield_Umpire_Chest_Protector__56280.1557767057.385.385.jpg?c=2
[variants] => Array
(
[0] => Array
(
[id] => 898
[title] => Outside Pro Shield Umpire Chest Protector
[url] => https://www.refereestore.com/outside-pro-shield-umpire-chest-protector
[sku] => 13: P220, 15: P210, 17: P200
[price] => 59.95
[inventory_quantity] => 1000000
[image_url] => https://cdn11.bigcommerce.com/s-mzx05o3/products/898/images/6309/Outside_Pro_Shield_Umpire_Chest_Protector__56280.1557767057.385.385.jpg?c=2
[backorders] =>
[visibility] => true
)
)
[images] => Array
(
)
[published_at_foreign] => 2016-10-19T16:21:01+00:00
)
https://us9.api.mailchimp.com/3.0/ecommerce/stores/store_aaxvxw3fri17unajztjx/products/
{"id":"898","currency_code":"USD","title":"Outside Pro Shield Umpire Chest Protector","handle":"","url":"https:\/\/www.refereestore.com\/outside-pro-shield-umpire-chest-protector","description":"\r\n- Outside plastic shield to protect chest from impact<\/li>\r\n
- Lightweight soft foam padding with closed cell mesh cover to allow for flexibility and agility<\/li>\r\n
- Makes the inside padding breathable and keeps moisture away from the body<\/li>\r\n
- Extra wide side protection<\/li>\r\n
- Raised shoulder protection with double shoulder caps<\/li>\r\n
- Black<\/li>\r\n
- Model P220 - 13\"<\/li>\r\n
- Model P210 - 15\" (+ $5)<\/li>\r\n
- Model P200 - 17\" (+ $10)<\/li>\r\n<\/ul>","type":"physical","vendor":"","image_url":"https:\/\/cdn11.bigcommerce.com\/s-mzx05o3\/products\/898\/images\/6309\/Outside_Pro_Shield_Umpire_Chest_Protector__56280.1557767057.385.385.jpg?c=2","variants":[{"id":"898","title":"Outside Pro Shield Umpire Chest Protector","url":"https:\/\/www.refereestore.com\/outside-pro-shield-umpire-chest-protector","sku":"13: P220, 15: P210, 17: P200","price":59.95,"inventory_quantity":1000000,"image_url":"https:\/\/cdn11.bigcommerce.com\/s-mzx05o3\/products\/898\/images\/6309\/Outside_Pro_Shield_Umpire_Chest_Protector__56280.1557767057.385.385.jpg?c=2","backorders":"","visibility":"true"}],"images":[],"published_at_foreign":"2016-10-19T16:21:01+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":"d408a4de-4be8-44f6-983e-6dd71ae97435"}
)
https://us9.api.mailchimp.com/3.0/ecommerce/stores/store_aaxvxw3fri17unajztjx/orders/
{"id":"68519","customer":{"id":"38905","email_address":"kump1951@aol.com","opt_in_status":true,"company":"Umpire 03","first_name":"Kay ","last_name":"Smith","orders_count":1,"total_spent":72,"address":{"address1":"","address2":"","city":"Mulberry","province":"","province_code":"","postal_code":"","country":"United States","country_code":""}},"landing_site":"","financial_status":"paid","fulfillment_status":"shipped","currency_code":"USD","order_total":72.71,"discount_total":0,"tax_total":4.76,"shipping_total":8.56,"processed_at_foreign":"2020-01-28T18:01:17+00:00","cancelled_at_foreign":"","updated_at_foreign":"2020-01-28T19:10:35+00:00","shipping_address":{"name":"","address1":"411 Southwest 3rd Avenue","address2":"","city":"Mulberry","province":"Florida","province_code":"","postal_code":"33860","country":"United States","country_code":"US","longitude":0,"latitude":0,"phone":"8638997926","company":""},"billing_address":{"name":"","address1":"411 Southwest 3rd Avenue","address2":"","city":"Mulberry","province":"Florida","province_code":"","postal_code":"33860","country":"United States","country_code":"US","longitude":0,"latitude":0,"phone":"8638997926","company":""},"lines":[{"id":"139082","product_id":"898","product_variant_id":"898","quantity":1,"price":59.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":"1fc6a5d3-f839-4cd6-a843-2fc33629735a"}
)
unsubscribe from socccer list: kump1951@aol.com
https://us9.api.mailchimp.com/3.0/lists/aeb11955e6/members/0ee4ee1cabce35c66b6a55e6d31b839c
{"status":"unsubscribed"}
Array
(
[httpCode] => 200
[results] => {"id":"0ee4ee1cabce35c66b6a55e6d31b839c","email_address":"kump1951@aol.com","unique_email_id":"58f2650937","web_id":312554557,"email_type":"html","status":"unsubscribed","unsubscribe_reason":"N/A (Unsubscribed by admin)","merge_fields":{"FNAME":"Kay ","LNAME":"Smith"},"interests":{"4b8cd626d8":false},"stats":{"avg_open_rate":0.42859999999999998099298181841732002794742584228515625,"avg_click_rate":0,"ecommerce_data":{"total_revenue":72.7099999999999937472239253111183643341064453125,"number_of_orders":1,"currency_code":"USD"}},"ip_signup":"","timestamp_signup":"","ip_opt":"34.213.169.10","timestamp_opt":"2020-01-02T08:52:24+00:00","member_rating":2,"last_changed":"2020-01-28T21:17:52+00:00","language":"","vip":false,"email_client":"Yahoo Mail","location":{"latitude":27.966599999999999681676854379475116729736328125,"longitude":-81.9344999999999998863131622783839702606201171875,"gmtoff":0,"dstoff":0,"country_code":"US","timezone":"863"},"source":"Referee Store","tags_count":0,"tags":[],"list_id":"aeb11955e6","_links":[{"rel":"self","href":"https://us9.api.mailchimp.com/3.0/lists/aeb11955e6/members/0ee4ee1cabce35c66b6a55e6d31b839c","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/0ee4ee1cabce35c66b6a55e6d31b839c","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/0ee4ee1cabce35c66b6a55e6d31b839c","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/0ee4ee1cabce35c66b6a55e6d31b839c","method":"DELETE"},{"rel":"activity","href":"https://us9.api.mailchimp.com/3.0/lists/aeb11955e6/members/0ee4ee1cabce35c66b6a55e6d31b839c/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/0ee4ee1cabce35c66b6a55e6d31b839c/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/0ee4ee1cabce35c66b6a55e6d31b839c/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/0ee4ee1cabce35c66b6a55e6d31b839c/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/0ee4ee1cabce35c66b6a55e6d31b839c/actions/delete-permanent","method":"POST"}]}
)