https://www.refereestore.com/api/v2/orders/count?email=gham72@gmail.com&min_date_created=2020-01-26
1
Get orders
https://www.refereestore.com/api/v2/orders?email=gham72@gmail.com&sort=date_created:desc&page=1&limit=250&min_date_created=2020-01-26
SimpleXMLElement Object
(
[order] => SimpleXMLElement Object
(
[id] => 68403
[customer_id] => 27818
[date_created] => Sun, 26 Jan 2020 15:36:41 +0000
[date_modified] => Sun, 26 Jan 2020 15:36:45 +0000
[date_shipped] => SimpleXMLElement Object
(
)
[status_id] => 11
[status] => Awaiting Fulfillment
[subtotal_ex_tax] => 48.7100
[subtotal_inc_tax] => 48.7100
[subtotal_tax] => 0.0000
[base_shipping_cost] => 8.0000
[shipping_cost_ex_tax] => 8.0000
[shipping_cost_inc_tax] => 8.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] => 56.7100
[total_inc_tax] => 56.7100
[total_tax] => 0.0000
[items_total] => 1
[items_shipped] => 0
[payment_method] => Credit Card
[payment_provider_id] => gj73qm2e
[payment_status] => captured
[refunded_amount] => 0.0000
[order_is_digital] => false
[store_credit_amount] => 0.0000
[gift_certificate_amount] => 0.0000
[ip_address] => 69.174.160.106
[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] => a7b36a7e-4e57-4f30-8124-56b2a5155032
[billing_address] => SimpleXMLElement Object
(
[first_name] => Gary
[last_name] => Hamilton
[company] => SimpleXMLElement Object
(
)
[street_1] => 576 Galahad Drive
[street_2] => SimpleXMLElement Object
(
)
[city] => Franklin
[state] => Indiana
[zip] => 46131
[country] => United States
[country_iso2] => US
[phone] => 3176940474
[email] => gham72@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/68403/products
)
[shipping_addresses] => SimpleXMLElement Object
(
[link] => /orders/68403/shippingaddresses
)
[coupons] => SimpleXMLElement Object
(
[link] => /orders/68403/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
(
[gham72@gmail.com] => Array
(
[firstName] => Gary
[lastName] => Hamilton
[totalOrders] => 1
[soccer] => no
[football] => no
[basketball] => yes
[baseball] => no
[hockey] => no
[soccerProduct] =>
[footballProduct] =>
[basketballProduct] => SimpleXMLElement Object
(
[0] => Smitty Premium 4-Way Stretch Pleated Pants
)
[baseballProduct] =>
[hockeyProduct] =>
)
)
https://us9.api.mailchimp.com/3.0/lists/1a2f77357d/members/bfc25dfe6abe93fa78f1771d0f25aa30
Array
(
[httpCode] => 200
[results] => {"id":"bfc25dfe6abe93fa78f1771d0f25aa30","email_address":"gham72@gmail.com","unique_email_id":"a8ded1fd96","web_id":312612713,"email_type":"html","status":"subscribed","merge_fields":{"FNAME":"Gary","LNAME":"Hamilton"},"stats":{"avg_open_rate":0,"avg_click_rate":0,"ecommerce_data":{"total_revenue":56.71000000000000085265128291212022304534912109375,"number_of_orders":1,"currency_code":"USD"}},"ip_signup":"","timestamp_signup":"","ip_opt":"159.203.77.64","timestamp_opt":"2020-01-26T21:15:20+00:00","member_rating":2,"last_changed":"2020-01-26T21:15:20+00:00","language":"","vip":false,"email_client":"iPhone","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/bfc25dfe6abe93fa78f1771d0f25aa30","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/bfc25dfe6abe93fa78f1771d0f25aa30","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/bfc25dfe6abe93fa78f1771d0f25aa30","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/bfc25dfe6abe93fa78f1771d0f25aa30","method":"DELETE"},{"rel":"activity","href":"https://us9.api.mailchimp.com/3.0/lists/1a2f77357d/members/bfc25dfe6abe93fa78f1771d0f25aa30/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/bfc25dfe6abe93fa78f1771d0f25aa30/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/bfc25dfe6abe93fa78f1771d0f25aa30/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/bfc25dfe6abe93fa78f1771d0f25aa30/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/bfc25dfe6abe93fa78f1771d0f25aa30/actions/delete-permanent","method":"POST"}]}
)
[2020-01-26] gham72@gmail.com already exists in basketball list
https://us9.api.mailchimp.com/3.0/ecommerce/stores/store_94t4k7zofon986r73e62/orders?customer_id=27818
68403-2020-01-26T15:35:01+00:00
https://us9.api.mailchimp.com/3.0/ecommerce/stores/store_94t4k7zofon986r73e62/orders/68403
1Array
(
[id] => 653
[currency_code] => USD
[title] => Smitty Premium 4-Way Stretch Pleated Pants
[handle] =>
[url] => https://www.refereestore.com/smitty-premium-4-way-stretch-pleated-pants
[description] =>
- Pleated
- Slash Pockets
- Advanced technology lightweight pants
- Breathable and moisture wicking
- Spreads & evaporates moisture picked up off the skin
- Waist sizes 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 40, 42, 44, 46
- Model BKS-281
[type] => physical
[vendor] =>
[image_url] => https://cdn11.bigcommerce.com/s-mzx05o3/products/653/images/7074/287__99621.1577384561.385.385.jpg?c=2
[variants] => Array
(
[0] => Array
(
[id] => 653
[title] => Smitty Premium 4-Way Stretch Pleated Pants
[url] => https://www.refereestore.com/smitty-premium-4-way-stretch-pleated-pants
[sku] => BKS-281
[price] => 64.95
[inventory_quantity] => 1000000
[image_url] => https://cdn11.bigcommerce.com/s-mzx05o3/products/653/images/7074/287__99621.1577384561.385.385.jpg?c=2
[backorders] =>
[visibility] => true
)
)
[images] => Array
(
)
[published_at_foreign] => 2016-03-10T22:51:01+00:00
)
https://us9.api.mailchimp.com/3.0/ecommerce/stores/store_37ijwq5bu6x61zm63ett/products/
{"id":"653","currency_code":"USD","title":"Smitty Premium 4-Way Stretch Pleated Pants","handle":"","url":"https:\/\/www.refereestore.com\/smitty-premium-4-way-stretch-pleated-pants","description":"\r\n- Pleated<\/li>\r\n
- Slash Pockets<\/li>\r\n
- Advanced technology lightweight pants<\/span><\/li>\r\n
- Breathable and moisture wicking<\/span><\/li>\r\n
- Spreads & evaporates moisture picked up off the skin<\/span><\/li>\r\n
- Waist sizes 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 40, 42, 44, 46<\/li>\r\n
- Model BKS-281<\/li>\r\n<\/ul>","type":"physical","vendor":"","image_url":"https:\/\/cdn11.bigcommerce.com\/s-mzx05o3\/products\/653\/images\/7074\/287__99621.1577384561.385.385.jpg?c=2","variants":[{"id":"653","title":"Smitty Premium 4-Way Stretch Pleated Pants","url":"https:\/\/www.refereestore.com\/smitty-premium-4-way-stretch-pleated-pants","sku":"BKS-281","price":64.95,"inventory_quantity":1000000,"image_url":"https:\/\/cdn11.bigcommerce.com\/s-mzx05o3\/products\/653\/images\/7074\/287__99621.1577384561.385.385.jpg?c=2","backorders":"","visibility":"true"}],"images":[],"published_at_foreign":"2016-03-10T22:51: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":"7c4fed74-a589-421a-bbb5-5bb2fd3bf7e0"}
)
https://us9.api.mailchimp.com/3.0/ecommerce/stores/store_37ijwq5bu6x61zm63ett/orders/
{"id":"68403","customer":{"id":"27818","email_address":"gham72@gmail.com","opt_in_status":false,"company":"Out of Bounds Sports Apparel LLC","first_name":"Gary","last_name":"Hamilton","orders_count":14,"total_spent":1294,"address":{"address1":"","address2":"","city":"Franklin","province":"","province_code":"","postal_code":"","country":"United States","country_code":""}},"landing_site":"","financial_status":"paid","fulfillment_status":"pending","currency_code":"USD","order_total":56.71,"discount_total":0,"tax_total":0,"shipping_total":8,"processed_at_foreign":"2020-01-26T15:36:41+00:00","cancelled_at_foreign":"","updated_at_foreign":"2020-01-26T15:36:45+00:00","shipping_address":{"name":"","address1":"576 Galahad Drive","address2":"","city":"Franklin","province":"Indiana","province_code":"","postal_code":"46131","country":"United States","country_code":"US","longitude":0,"latitude":0,"phone":"3176940474","company":""},"billing_address":{"name":"","address1":"576 Galahad Drive","address2":"","city":"Franklin","province":"Indiana","province_code":"","postal_code":"46131","country":"United States","country_code":"US","longitude":0,"latitude":0,"phone":"3176940474","company":""},"lines":[{"id":"138851","product_id":"653","product_variant_id":"653","quantity":1,"price":48.71,"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":"f90f7ea3-08a9-49d3-b2aa-7f4603d8f3e6"}
)
unsubscribe from socccer list: gham72@gmail.com
https://us9.api.mailchimp.com/3.0/lists/aeb11955e6/members/bfc25dfe6abe93fa78f1771d0f25aa30
{"status":"unsubscribed"}
Array
(
[httpCode] => 200
[results] => {"id":"bfc25dfe6abe93fa78f1771d0f25aa30","email_address":"gham72@gmail.com","unique_email_id":"a8ded1fd96","web_id":312191025,"email_type":"html","status":"unsubscribed","unsubscribe_reason":"N/A (Unsubscribed by admin)","merge_fields":{"FNAME":"Gary","LNAME":"Hamilton"},"interests":{"4b8cd626d8":false},"stats":{"avg_open_rate":0,"avg_click_rate":0,"ecommerce_data":{"total_revenue":1294.660000000000081854523159563541412353515625,"number_of_orders":14,"currency_code":"USD"}},"ip_signup":"","timestamp_signup":"","ip_opt":"","timestamp_opt":"2019-04-06T13:08:10+00:00","member_rating":2,"last_changed":"2020-01-27T04:45:30+00:00","language":"","vip":false,"email_client":"iPhone","location":{"latitude":41.69149999999999778310666442848742008209228515625,"longitude":-87.621700000000004138200893066823482513427734375,"gmtoff":0,"dstoff":0,"country_code":"US","timezone":"773"},"source":"Referee Store","tags_count":0,"tags":[],"list_id":"aeb11955e6","_links":[{"rel":"self","href":"https://us9.api.mailchimp.com/3.0/lists/aeb11955e6/members/bfc25dfe6abe93fa78f1771d0f25aa30","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/bfc25dfe6abe93fa78f1771d0f25aa30","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/bfc25dfe6abe93fa78f1771d0f25aa30","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/bfc25dfe6abe93fa78f1771d0f25aa30","method":"DELETE"},{"rel":"activity","href":"https://us9.api.mailchimp.com/3.0/lists/aeb11955e6/members/bfc25dfe6abe93fa78f1771d0f25aa30/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/bfc25dfe6abe93fa78f1771d0f25aa30/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/bfc25dfe6abe93fa78f1771d0f25aa30/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/bfc25dfe6abe93fa78f1771d0f25aa30/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/bfc25dfe6abe93fa78f1771d0f25aa30/actions/delete-permanent","method":"POST"}]}
)