Skip to main content
GET
/
affiliate
/
campaigns
/
{id}
cURL
curl --request GET \
  --url https://api-beta.lomadee.com.br/affiliate/campaigns/{id} \
  --header 'x-api-key: <api-key>'
{
  "data": {
    "id": "<string>",
    "name": "<string>",
    "period": {
      "startAt": "<string>",
      "endAt": "<string>"
    },
    "type": "<string>",
    "offerType": "Spreadsheet",
    "categories": [
      "<string>"
    ],
    "description": "<string>",
    "code": "<string>",
    "url": "<string>",
    "organizationId": "<string>",
    "isHighlight": true,
    "status": "onTime",
    "createdAt": "<string>",
    "channels": [
      {
        "id": "<string>",
        "name": "<string>",
        "availableChannel": {
          "id": "<string>",
          "name": "<string>"
        },
        "shortUrls": [
          "<string>"
        ],
        "message": "<string>"
      }
    ],
    "mediaKit": {
      "banners": [
        "<string>"
      ],
      "emailMarketing": "<unknown>"
    }
  },
  "meta": {
    "total": 123,
    "page": 123,
    "limit": 123,
    "totalPages": 123
  }
}

Get a Campaign

Returns a single campaign based on the ID supplied.

HTTP Request

Campaign Status Field

The campaign response includes a status field that is automatically calculated based on the period:
StatusDescription
onTimeActive campaign within period
expiredCampaign expired (period.endAt has passed)
scheduledCampaign scheduled (period.startAt not arrived)

Authorizations

x-api-key
string
header
required

Path Parameters

id
string
required

ID of campaign to return

Response

Campaign response

data
object
meta
object