Wired Plus API Documentation
Raise a Technical Question with the Support TeamAPI v1 Guide
Account
Automation
Contacts
- Create New Contact
- Update Contact
- Bulk Contact Update
- Archive Contact
- Bulk Archive Contact
- Bulk Suppress Contact
- Unsubscribe Contact
- Resubscribe Contact
- Resubscribe Contact To List
- Suppress Contact
- Get Contacts
- Get New Contacts
- Get Updated Contacts
- Get Contact By Id
- Get Contact By UID
- Get Contact By Email
- Get Contacts In List
- Get Contacts For Campaign
- Get Lists for a Contact
- Get Unsubscribed Contacts
- Get Unsubscribed Contacts In List
- Get Suppressed Contacts
- Delete Contact
Dynamic Rows
Lists
- Create New List
- Update List
- Delete List
- Get List Detail By ID
- Get Active Lists
- Bulk Assign Contacts To List
- Get Contacts In List
- Delete Contact From List
- Bulk Delete Contacts From List
Campaigns
- Get Campaigns
- Get Campaign By Id
- Get Campaign Activities
- Get Campaign Contacts
- Get Campaign Contact Replies
- Get Campaign Contact Send Status
- Get Campaign Event
- Send Trigger Campaign To Contacts
- Send Trigger Campaign To DynamicRows
Transactional Emails
Lead Score
Products
- Get Products
- Get Product
- Create/Update Product
- Delete Product
- Bulk Create/Update Products
- Get Stock Updates
- Create Stock Update
Carts
Orders
- Get Orders
- Get Order
- Create/Update Order
- Delete Order
- Update Order Status
- Bulk Create/Update Orders
- Get Order Events
- Get Order Event
- Create/Update Order Event
Custom Fields
GET GetCarts
Get a list of carts in the system.
This feature must be enabled for your account.
Input and output parameters
Input Parameter Name | Type/Info |
contact_id | Show carts by contact. |
cart_update_from | Filter by cart's update date, format: yyyy-mm-dd hh:mm:ss. |
cart_create_from | Filter by cart's create date, format: yyyy-mm-dd hh:mm:ss |
confirmed_is_abandoned | Filter by abandoned carts, 1|0 |
select | Number of records to return, maximum 500. |
skip | Number of records to skip |
sort | How to sort the results, options: update_date_asc | update_date_desc | create_date_asc | create_date_desc | cart_update_date_asc | cart_update_date_desc | cart_create_date_asc | cart_create_date_desc |
Outputs: | |
cart_lines - array of cart products assigned.
custom_fields - Custom fields for the cart. |
Examples
Curl
curl --request GET \
--url https://api.wiredplus.com/v1/GetCarts \
--header 'content-type: application/json;'
PHP
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => "https://api.wiredplus.com/v1/GetCarts",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"content-type: application/json;"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
jQuery
var settings = {
"async": true,
"crossDomain": true,
"url": "https://api.wiredplus.com/v1/GetCarts?confirmed_is_abandoned=1",
"method": "GET",
"headers": {},
"processData": false,
"contentType": false,
"mimeType": "application/json"
}
$.ajax(settings).done(function (response) {
console.log(response);
});
Result Format JSON
[
{
"id": "abc",
"api_integration": "IntegrationName",
"api_resource": "cart",
"api_reference_id": "1234",
"recover_cart_url": "https://yoursite.com/path/to/contact-cart",
"contact_id": "999",
"order_id": "999",
"external_order_id": "abc-1020",
"create_date": "2019-12-11 13:01:22",
"update_date": "2020-01-10 08:42:27",
"cart_create_date": "2019-12-11 13:00:00",
"cart_update_date": "2020-01-10 08:42:27",
"confirmed_is_abandoned": 0,
"date_confirmed_is_abandoned": null,
"is_active": true,
"total": 21.00,
"total_inc_tax": 27.00,
"iso_currency_code": "GBR",
"abandoned_total": "1.00",
"abandoned_total_with_discount": "2.00",
"abandoned_total_discount": "3.00",
"customer_email": "foo@bar.com",
"customer_firstname": "Foo",
"customer_lastname": "Bar",
"customer_gender": "Male",
"customer_telephone": "1122334455",
"customer_mobile": "5544332211",
"customer_dob": "1992-02-01",
"customer_is_guest": false,
"customer_notes": null,
"billing_first_name": "Foo",
"billing_last_name": "Bar",
"billing_address1": "Unit 2",
"billing_address2": "Kestrel Court",
"billing_city": "Hapton",
"billing_county": "Lancashire",
"billing_post_code": "BB11 5NA",
"billing_country": "United Kingdom",
"shipping_first_name": "Foo",
"shipping_last_name": "Bar",
"shipping_address1": "Unit 2",
"shipping_address2": "Kestrel Court",
"shipping_city": "Hapton",
"shipping_county": "Lancashire",
"shipping_post_code": "BB11 5NA",
"shipping_country": "United Kingdom",
"cart_lines": [
{
"id": "xyz",
"cart_id": "abc",
"create_date": "2019-12-11 13:01:22",
"update_date": "2020-01-10 08:42:27",
"cart_line_id": 20,
"product_id": "aaabb1122",
"product_sku": "aabb-1122",
"product_name": "My product",
"product_description": "Details about my product",
"tax_percent": 20.00,
"product_price_tax": 2.00,
"product_original_price": 7.00,
"product_price": 7.00,
"product_price_inc_tax": 9.00,
"quantity": 3,
"row_total": 21.00,
"row_total_inc_tax": 28.00,
"abandoned_row_total": 0.00,
"abandoned_row_total_with_discount": 0.00,
"abandoned_row_total_discount": 0.00
}
],
"custom_fields":{
"Favourite Colour": "Red"
}
},
{
"id": "abc",
"api_integration": "IntegrationName",
"api_resource": "cart",
"api_reference_id": "1234",
"contact_id": "999",
"recover_cart_url": "https://yoursite.com/path/to/contact-cart",
"order_id": "999",
"external_order_id": "abc-1020",
"create_date": "2019-12-11 13:01:22",
"update_date": "2020-01-10 08:42:27",
"cart_create_date": "2019-12-11 13:00:00",
"cart_update_date": "2020-01-10 08:42:27",
"confirmed_is_abandoned": 0,
"date_confirmed_is_abandoned": null,
"is_active": true,
"total": 21.00,
"total_inc_tax": 27.00,
"iso_currency_code": "GBR",
"abandoned_total": "1.00",
"abandoned_total_with_discount": "2.00",
"abandoned_total_discount": "3.00",
"customer_email": "foo@bar.com",
"customer_firstname": "Foo",
"customer_lastname": "Bar",
"customer_gender": "Male",
"customer_telephone": "1122334455",
"customer_mobile": "5544332211",
"customer_dob": "1992-02-01",
"customer_is_guest": false,
"customer_notes": null,
"billing_first_name": "Foo",
"billing_last_name": "Bar",
"billing_address1": "Unit 2",
"billing_address2": "Kestrel Court",
"billing_city": "Hapton",
"billing_county": "Lancashire",
"billing_post_code": "BB11 5NA",
"billing_country": "United Kingdom",
"shipping_first_name": "Foo",
"shipping_last_name": "Bar",
"shipping_address1": "Unit 2",
"shipping_address2": "Kestrel Court",
"shipping_city": "Hapton",
"shipping_county": "Lancashire",
"shipping_post_code": "BB11 5NA",
"shipping_country": "United Kingdom",
"cart_lines": [
{
"id": "xyz",
"cart_id": "abc",
"create_date": "2019-12-11 13:01:22",
"update_date": "2020-01-10 08:42:27",
"cart_line_id": 20,
"product_id": "aaabb1122",
"product_sku": "aabb-1122",
"product_name": "My product",
"product_description": "Details about my product",
"tax_percent": 20.00,
"product_price_tax": 2.00,
"product_original_price": 7.00,
"product_price": 7.00,
"product_price_inc_tax": 9.00,
"quantity": 3,
"row_total": 21.00,
"row_total_inc_tax": 28.00,
"abandoned_row_total": 1.11,
"abandoned_row_total_with_discount": 2.22,
"abandoned_row_total_discount": 3.33
}
],
"custom_fields":{
"Favorite Colour": "Blue"
}
}
]