Welcome‎ > ‎Version 3‎ > ‎Merchant Api‎ > ‎Methods‎ > ‎

Log In

Retrieves a merchant's api keys and merchant id from the system if the posted username and password are valid.

Method: POST /api/v3/merchant/login

Authentication: none
 
Post
Required Form Name Data Type Explanation
Yes
Username string The merchant's username.
Yes
Password
string The merchant's password.

Returns
base response fields
logins - a list of Logins.


Sample Request:

POST http://api.groupcommerce.com/api/v3/merchant/login

Form: username=dev+dailyvoicemerchant%40groupcommerce.com&password=password1


Sample JSON Response:

{
    "errors": [],
    "lastPublished": "/Date(1324597582365)/",
    "success": true,
    "version": "3",
    "metaData": {
        "pageCount": 1,
        "pageNumber": 1,
        "pageSize": 1,
        "totalItems": 1
    },
    "logins": [
        {
            // see Login
        }
    ]
}


Sample XML Response:

<merchantLogins xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
    <errors/>
    <lastPublished>2011-12-22T23:47:15.7075925Z</lastPublished>
    <success>true</success>
    <version>3</version>
    <metaData>
        <pageCount>1</pageCount>
        <pageNumber>1</pageNumber>
        <pageSize>1</pageSize>
        <totalItems>1</totalItems>
    </metaData>
    <logins>
        <!--
see Login -->
    </logins>
</merchantLogins>
Comments