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

Get all Campaigns

HTTP Request

Authorizations

x-api-key
string
header
required

Query Parameters

page
integer

Page number for pagination

limit
integer

Maximum number of results per page

types
enum<string>[]

Campaign types to filter

offerType
enum<string>[]

Type of offer to filter. If not provided, all offers will be returned.

Spreadsheet: Spreadsheet offer type. In this case, links will not be generated automatically. You need to use the POST /affiliate/shorten/url endpoint to generate links by passing the campaign id as a parameter through featureId.

Url: Link offer type. In this case, links will be generated automatically.

organizationId
string

Brand identifier to filter campaigns

organizationIds
string[]

List of brand identifiers to filter campaigns

name
string

Campaign name to search for

isHighlight
boolean

Filter campaigns by highlight status

categories
string[]

List of categories to filter campaigns

status
enum<string>

Campaign status to filter

Available options:
onTime,
expired,
scheduled
period
object

Campaign period filter

Response

200 - application/json

Campaign response

The response is of type object.