Extend and interact with
Commission Factory
Retrieves a single banner by its ID.
GET https://api.commissionfactory.com/V1/Merchant/Banners/[id]?apiKey=[apiKey]
| Name | Type | Description |
|---|---|---|
| id Required |
Integer | The ID of a single banner to retrieve. |
| apiKey Required |
String | A valid API key that represents a merchant account. |
| Type | Description |
|---|---|
| Banner | Represents a single banner. |
| 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/Merchant/Banners/1?apiKey=ABC123 HTTP/1.1 Accept: application/json Host: api.commissionfactory.com
GET /V1/Merchant/Banners/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",
"BannerGroupId": 1,
"BannerGroupName": " Default Group",
"BannerGroupTargetUrl": "https://www.example.com/",
"Name": "Banner 1",
"Size": "Wide Skyscraper",
"Width": 160,
"Height": 600,
"ImageUrl": "https://t.cfjump.com/0/a/1",
"AltText": "Banner 1",
"DefaultForSize": true
}
<Banner xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="https://api.commissionfactory.com/V1/Merchant">
<Id>1</Id>
<DateCreated>2000-01-01T00:00:00.000</DateCreated>
<DateModified>2000-01-01T00:00:00.000</DateModified>
<BannerGroupId>1</BannerGroupId>
<BannerGroupName> Default Group</BannerGroupName>
<BannerGroupTargetUrl>https://www.example.com/</BannerGroupTargetUrl>
<Name>Banner 1</Name>
<Size>Wide Skyscraper</Size>
<Width>160</Width>
<Height>600</Height>
<ImageUrl>https://t.cfjump.com/0/a/1</ImageUrl>
<AltText>Banner 1</AltText>
<DefaultForSize>true</DefaultForSize>
</Banner>