This extension makes Zendesk work seamlessly with Magento to enable stores to deliver great customer support. Features include:
- Enable Single Sign-on with Zendesk
- Create support tickets without leaving Magento
- Display relevant support tickets on order & customer dashboards
- Create support tickets from Contact Us requests
- Easily add a feedback tab to your site
The latest stable version of the extension can be installed via the Magento Connect marketplace.
The extension provides its own custom RESTful API, which is intended to be used by the Magento Zendesk App. The custom API allows for a consistent interface across all Magento versions, regardless of whether they support XML-RPC, SOAP or REST interfaces, and provides exactly the data that the app requires.
The base URL of the API is http://your_site_base_url/zendesk/api/
.
The API can be enabled in the Zendesk settings page in the Magento admin panel. Using it requires a token to be generated and be sent to the API in an Authorization
header:
Authorization: Token token="your token goes here"
You may receive the following errors from any of the API calls:
-
401 Not authorised
Authentication token is not valid.
-
403 API access disabled
API access has been disabled in the Magento admin panel. It will need to be enabled before using the API.
-
404 Resource does not exist
The requested resource was not found.
All API methods return content as JSON objects following the format set out in the method definitions below.
Will return customer information for the customer with the provided email address. If no customer record exists but orders have been placed then the email is treated as a guest and only the orders they have placed are returned. If no customer record exists and there are no orders using the email then a 404 error is returned.
Note that Magento allows scoping customers either globally or per website. If set to be scoped per website then this method will return the first customer which matches the email address, regardless of the website they belong to.
Response Format
Guest customers only have the guest
and orders
keys returned.
Name | Type | Comment |
---|---|---|
guest | boolean | Whether the customer is a guest (no customer record) or has a full customer record |
id | integer | Internal Magento ID for the customer |
name | string | Customer's full name |
string | Customer's email address | |
active | boolean | Whether the customer is marked as active in Magento |
admin_url | string | URL to access the customer detail in the Magento admin panel |
created | string | Date and time the customer record was created |
dob | string | Date of birth |
addresses | array | List of addresses recorded on the customer account |
orders | array | List of orders placed by the customer (see the `orders` method for details) |
Will return details of an individual order based on the Magento order increment ID, which usually takes the form 100000321.
Response Format
Name | Type | Comment |
---|---|---|
id | string | The order ID displayed to the customer |
status | string | Current order status (e.g. Pending, Processing, Complete) |
created | string | Date and time the order was created |
updated | string | Date and time the order was last updated |
customer | object | Has the keys:
|
store | string | Magento store that the order was placed in |
total | string | Total value of the order |
currency | string | Currency code (e.g. AUD, USD) |
items | array | List of items on the order; each item has the keys:
|
admin_url | string | URL to access the order in the Magento admin panel |
Will return either a single Magento admin user, or a list of users if the user_id
argument is left out. Admin user accounts have access to the admin panel and are different to customer accounts.
Parameters
Argument | Default | Comment |
---|---|---|
page_size | 100 | Number of results to be returned |
offset | 0 | Page number to return, based on `page_size` |
sort | given_name | Attribute to sort by |
Response Format
Name | Type | Comment |
---|---|---|
id | string | Internal ID for the user |
given_name | string | User's first name |
family_name | string | User's surname |
username | string | Username used to log in to the Magento admin panel |
string | User's email address | |
active | boolean | Whether the user is enabled and can log in |
role | string | User's role; used for ACLs in Magento |
During development you may wish to clear out the configuration for the Magento extension. All settings are stored in the core_config_data
table of the Magento database and can be removed with an SQL query:
DELETE FROM `core_config_data` WHERE `path` LIKE 'zendesk/%';
Improvements to the extension are always welcome. To contribute, please submit detailed Pull Requests.
Please submit bug reports to Zendesk.
Copyright 2012, Zendesk Inc. Licensed under the Apache License Version 2.0.