Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Promotions API

List promotions of a listing

get
/channels/{channel_id}/mappings/{mapping_id}/promotions

List the promotions of a mapped Airbnb listing: every promotion type, whether it can be enabled, is enabled, or has expired.

For Airbnb channel connections; other channels receive 403 Forbidden. A mapping that is not one of the channel connection's listing mappings receives 404 Not Found.

Authorizations
user-api-keystringRequired

API key for programmatic access, sent in the user-api-key header.

Path parameters
channel_idstring · uuidRequired

Channel connection ID.

Example: 716305c4-561a-4561-a187-7f5b8aeb5920
mapping_idstring · uuidRequired

Mapping ID — see rate_plans[].id of the channel connection.

Example: 716305c4-561a-4561-a187-7f5b8aeb5920
Responses
200

The request has succeeded.

application/json

A plain data-array envelope without pagination — used by reference/dictionary endpoints.

get/channels/{channel_id}/mappings/{mapping_id}/promotions
GET /api/v1/channels/{channel_id}/mappings/{mapping_id}/promotions HTTP/1.1
Host: app.channex.io
user-api-key: YOUR_API_KEY
Accept: */*
{
  "data": [
    {
      "type": "promotion",
      "attributes": {
        "type": "NEW_LISTING_PROMOTION",
        "status": "AVAILABLE",
        "blackout_dates_allowed": false,
        "blackout_dates": [],
        "blackout_dates_quota": null,
        "discount": "20.00"
      }
    },
    {
      "type": "promotion",
      "attributes": {
        "type": "HIGH_RATED_GUEST_DISCOUNT",
        "status": "ONGOING",
        "blackout_dates_allowed": true,
        "blackout_dates": [
          "2026-12-30",
          "2026-12-31"
        ],
        "blackout_dates_quota": {
          "2026": {
            "dates_used_count": 2,
            "dates_available_count": 28
          },
          "2027": {
            "dates_used_count": 0,
            "dates_available_count": 30
          },
          "2028": {
            "dates_used_count": 0,
            "dates_available_count": 30
          }
        },
        "discount": "15.00"
      }
    },
    {
      "type": "promotion",
      "attributes": {
        "type": "MOBILE_ONLY_DISCOUNT",
        "status": "AVAILABLE",
        "blackout_dates_allowed": true,
        "blackout_dates": [],
        "blackout_dates_quota": {
          "2026": {
            "dates_used_count": 0,
            "dates_available_count": 30
          },
          "2027": {
            "dates_used_count": 0,
            "dates_available_count": 30
          },
          "2028": {
            "dates_used_count": 0,
            "dates_available_count": 30
          }
        },
        "discount": "10.00"
      }
    }
  ]
}

Enable a promotion on a listing

post
/channels/{channel_id}/mappings/{mapping_id}/promotions/enable

Enable a promotion on a mapped Airbnb listing. blackout_dates replaces the dates the promotion holds, and an empty list clears them; without it, the promotion is enabled with the dates it already holds. The response reports the promotion as ONGOING.

Enabling a promotion that is already ONGOING returns it unchanged and leaves its dates as they are: to change them, update the promotion. An EXPIRED promotion cannot be enabled.

A refusal is answered with 422 Unprocessable Entity, details keyed by what it concerns: blackout_dates (one message per refused date, naming the date), type when the type is unknown or the promotion cannot be enabled, or promotion for any other reason, a refusal by Airbnb included.

Authorizations
user-api-keystringRequired

API key for programmatic access, sent in the user-api-key header.

Path parameters
channel_idstring · uuidRequired

Channel connection ID.

Example: 716305c4-561a-4561-a187-7f5b8aeb5920
mapping_idstring · uuidRequired

Mapping ID — see rate_plans[].id of the channel connection.

Example: 716305c4-561a-4561-a187-7f5b8aeb5920
Body

Request body of the promotion enable action.

Responses
200

The request has succeeded.

application/json

JSON:API document wrapping a single resource.

post/channels/{channel_id}/mappings/{mapping_id}/promotions/enable
POST /api/v1/channels/{channel_id}/mappings/{mapping_id}/promotions/enable HTTP/1.1
Host: app.channex.io
user-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 82

{
  "promotion": {
    "type": "HIGH_RATED_GUEST_DISCOUNT",
    "blackout_dates": [
      "2026-12-31"
    ]
  }
}
{
  "data": {
    "type": "promotion",
    "attributes": {
      "type": "HIGH_RATED_GUEST_DISCOUNT",
      "status": "ONGOING",
      "blackout_dates_allowed": true,
      "blackout_dates": [
        "2026-12-31"
      ],
      "blackout_dates_quota": {
        "2026": {
          "dates_used_count": 1,
          "dates_available_count": 29
        },
        "2027": {
          "dates_used_count": 0,
          "dates_available_count": 30
        },
        "2028": {
          "dates_used_count": 0,
          "dates_available_count": 30
        }
      },
      "discount": "15.00"
    }
  }
}

Disable a promotion on a listing

post
/channels/{channel_id}/mappings/{mapping_id}/promotions/disable

Disable a promotion on a mapped Airbnb listing. The response reports the promotion as AVAILABLE again; disabling a promotion that is not ONGOING returns it unchanged. The promotion keeps its blackout dates, and enabling it again without blackout_dates applies them.

A refusal is answered with 422 Unprocessable Entity, details keyed by type when the type is missing or unknown, or promotion for any other reason, a refusal by Airbnb included.

Authorizations
user-api-keystringRequired

API key for programmatic access, sent in the user-api-key header.

Path parameters
channel_idstring · uuidRequired

Channel connection ID.

Example: 716305c4-561a-4561-a187-7f5b8aeb5920
mapping_idstring · uuidRequired

Mapping ID — see rate_plans[].id of the channel connection.

Example: 716305c4-561a-4561-a187-7f5b8aeb5920
Body

Request body of the promotion disable action.

Responses
200

The request has succeeded.

application/json

JSON:API document wrapping a single resource.

post/channels/{channel_id}/mappings/{mapping_id}/promotions/disable
POST /api/v1/channels/{channel_id}/mappings/{mapping_id}/promotions/disable HTTP/1.1
Host: app.channex.io
user-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 50

{
  "promotion": {
    "type": "HIGH_RATED_GUEST_DISCOUNT"
  }
}
{
  "data": {
    "type": "promotion",
    "attributes": {
      "type": "HIGH_RATED_GUEST_DISCOUNT",
      "status": "AVAILABLE",
      "blackout_dates_allowed": true,
      "blackout_dates": [
        "2026-12-31"
      ],
      "blackout_dates_quota": {
        "2026": {
          "dates_used_count": 1,
          "dates_available_count": 29
        },
        "2027": {
          "dates_used_count": 0,
          "dates_available_count": 30
        },
        "2028": {
          "dates_used_count": 0,
          "dates_available_count": 30
        }
      },
      "discount": "15.00"
    }
  }
}

Update a promotion of a listing

put
/channels/{channel_id}/mappings/{mapping_id}/promotions

Replace the blackout dates of a promotion of a mapped Airbnb listing; an empty list clears them. Only a promotion whose blackout_dates_allowed is true can be updated. The dates of an AVAILABLE promotion are stored without enabling it and apply once it is enabled; an EXPIRED promotion cannot be updated.

A refusal is answered with 422 Unprocessable Entity, details keyed by what it concerns: blackout_dates (one message per refused date, naming the date), type when the type is unknown or the promotion cannot be updated, or promotion for any other reason, a refusal by Airbnb included.

Authorizations
user-api-keystringRequired

API key for programmatic access, sent in the user-api-key header.

Path parameters
channel_idstring · uuidRequired

Channel connection ID.

Example: 716305c4-561a-4561-a187-7f5b8aeb5920
mapping_idstring · uuidRequired

Mapping ID — see rate_plans[].id of the channel connection.

Example: 716305c4-561a-4561-a187-7f5b8aeb5920
Body

Request body of the promotion update.

Responses
200

The request has succeeded.

application/json

JSON:API document wrapping a single resource.

put/channels/{channel_id}/mappings/{mapping_id}/promotions
PUT /api/v1/channels/{channel_id}/mappings/{mapping_id}/promotions HTTP/1.1
Host: app.channex.io
user-api-key: YOUR_API_KEY
Content-Type: application/json
Accept: */*
Content-Length: 95

{
  "promotion": {
    "type": "HIGH_RATED_GUEST_DISCOUNT",
    "blackout_dates": [
      "2026-12-30",
      "2026-12-31"
    ]
  }
}
{
  "data": {
    "type": "promotion",
    "attributes": {
      "type": "HIGH_RATED_GUEST_DISCOUNT",
      "status": "ONGOING",
      "blackout_dates_allowed": true,
      "blackout_dates": [
        "2026-12-30",
        "2026-12-31"
      ],
      "blackout_dates_quota": {
        "2026": {
          "dates_used_count": 2,
          "dates_available_count": 28
        },
        "2027": {
          "dates_used_count": 0,
          "dates_available_count": 30
        },
        "2028": {
          "dates_used_count": 0,
          "dates_available_count": 30
        }
      },
      "discount": "15.00"
    }
  }
}

Last updated