Extend and interact with
Commission Factory
Retrieves a single merchant by its ID.
GET https://api.commissionfactory.com/V1/Affiliate/Merchants/[id]?apiKey=[apiKey]
| Name | Type | Description |
|---|---|---|
| id Required |
Integer | The ID of a single merchant to retrieve. |
| apiKey Required |
String | A valid API key that represents an affiliate account. |
| targetUrl Optional |
String | If specified, A valid URL that must begin with the merchant's default campaign URL. More Info |
| uniqueId Optional |
String | If specified, a unique ID to add to the tracking link. More Info |
| uniqueId2 Optional |
String | If specified, a unique ID to add to the tracking link. More Info |
| uniqueId3 Optional |
String | If specified, a unique ID to add to the tracking link. More Info |
| uniqueId4 Optional |
String | If specified, a unique ID to add to the tracking link. More Info |
| Type | Description |
|---|---|
| Merchant | Represents a single merchant. |
| Error | Description |
|---|---|
| 400 Bad Request | One or more parameters could not be parsed correctly. |
| 401 Unauthorised | The API key is missing, invalid, or for a different account type; or the user account has been suspended or closed. |
| 404 Not Found | The requested item could not be found. |
| 429 Too Many Requests | The API call rate limit for the user account has been exceeded. |
| 500 Internal Server Error | An unexpected error occurred while processing your request. |
GET /V1/Affiliate/Merchants/1?apiKey=ABC123 HTTP/1.1 Accept: application/json Host: api.commissionfactory.com
GET /V1/Affiliate/Merchants/1?apiKey=ABC123 HTTP/1.1 Accept: application/xml Host: api.commissionfactory.com
{
"Id": 1,
"DateCreated": "2000-01-01T00:00:00.000",
"DateModified": "2000-01-01T00:00:00.000",
"Name": "Example Pty Ltd",
"AvatarUrl": "https://c.cfjump.com/Avatars/0.png",
"CommissionType": "Percent per Sale",
"CommissionRate": 10.00,
"CommissionMinimum": 5.00,
"CommissionMaximum": 15.00,
"CommissionZero": false,
"Category": "Children Games and Toys",
"Category2": "Sports and Fitness",
"Category3": null,
"NewCategory": "Toys and Games",
"NewCategory2": "Sporting Goods / Indoor Games",
"NewCategory3": null,
"Summary": "Example Pty Ltd sells the best childrens toys.",
"TargetUrl": "https://www.example.com/",
"Status": "Joined",
"TrackingUrl": "https://t.cfjump.com/0/t/1",
"TrackingCode": "<a href=\"https://t.cfjump.com/0/t/1\">Example Pty Ltd</a>",
"TargetMarket": "Australia",
"TargetMarkets": ["Australia"],
"TermsAndConditions": "<p>Affiliates must agree to...</p>"
}
<Merchant xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://api.commissionfactory.com/V1/Affiliate">
<Id>1</Id>
<DateCreated>2000-01-01T00:00:00.000</DateCreated>
<DateModified>2000-01-01T00:00:00.000</DateModified>
<Name>Example Pty Ltd</Name>
<AvatarUrl>https://c.cfjump.com/Avatars/0.png</AvatarUrl>
<CommissionType>Percent per Sale</CommissionType>
<CommissionRate>10.00</CommissionRate>
<CommissionMinimum>5.00</CommissionMinimum>
<CommissionMaximum>15.00</CommissionMaximum>
<CommissionZero>false</CommissionZero>
<Category>Children Games and Toys</Category>
<Category2>Sports and Fitness</Category2>
<Category3 i:nil="true" />
<NewCategory>Toys and Games</NewCategory>
<NewCategory2>Sporting Goods / Indoor Games</NewCategory2>
<NewCategory3 i:nil="true" />
<Summary>Example Pty Ltd sells the best childrens toys.</Summary>
<TargetUrl>https://www.example.com/</TargetUrl>
<Status>Joined</Status>
<TrackingUrl>https://t.cfjump.com/0/t/1</TrackingUrl>
<TrackingCode><a href="https://t.cfjump.com/0/t/1">Example Pty Ltd</a></TrackingCode>
<TargetMarket>Australia</TargetMarket>
<TargetMarkets>
<string>Australia</string>
</TargetMarkets>
<TermsAndConditions><p>Affiliates must agree to...</p></TermsAndConditions>
</Merchant>