API reference

Programme rulesPreview

The rules of each vendor's programmes: who qualifies, what each programme pays, how long a registration lasts and when claims are due. Evaluate a deal against them to find the most profitable programme it fits.

List programme rules

GET/program-rulesPreview

Query parameters

connection_idstring
Only objects from this connection.
typestring
One of deal_registration, rebate, mdf, promotion, tier
active_onstring (date)
Only programmes in effect on this date. Defaults to today.
include_remote_databoolean
Include remote_data, the raw values captured from the portal.
limitinteger
Page size.
cursorstring
The next_cursor from the previous page.

Headers

Airstride-Versionstring
The API version, as a date. Defaults to the version pinned on the key. The first version of Open Partnerships is 2026-12-01.

Responses

200
A page of programmes and their rules.
400
Invalid parameters, or a version we do not recognise.
401
Missing or invalid API key.
429
Rate limited. Wait until X-RateLimit-Reset before retrying.
500
Something broke on our side.
Request
curl -X GET "https://app.airstride.ai/api/open-partnerships/program-rules" \
  -H "X-API-Key: $AIRSTRIDE_API_KEY"

Get a programme's rules

GET/program-rules/{program_id}Preview

Path parameters

program_idstringRequired

Query parameters

include_remote_databoolean
Include remote_data, the raw values captured from the portal.

Headers

Airstride-Versionstring
The API version, as a date. Defaults to the version pinned on the key. The first version of Open Partnerships is 2026-12-01.

Responses

200
The programme and its rules.
401
Missing or invalid API key.
404
The resource does not exist, or belongs to another organisation.
429
Rate limited. Wait until X-RateLimit-Reset before retrying.
500
Something broke on our side.
Request
curl -X GET "https://app.airstride.ai/api/open-partnerships/program-rules/{program_id}" \
  -H "X-API-Key: $AIRSTRIDE_API_KEY"

Check which programmes a deal qualifies for

POST/program-rules/evaluatePreview

Evaluates a deal against the programmes on one or more connections and ranks the ones it qualifies for by estimated benefit. Nothing is sent to any portal, so this answers at once and needs no Idempotency-Key. This is the call an AI agent makes to tell a seller whether a deal qualifies before registering it.

Headers

Airstride-Versionstring
The API version, as a date. Defaults to the version pinned on the key. The first version of Open Partnerships is 2026-12-01.

Request body

connection_idsarray of stringRequired
customerCustomerRequired
The end customer the deal is for.
customer.namestringRequired
customer.domainstring or null
customer.countrystring or null
ISO 3166-1 alpha-2 code.
customer.addressobject or null
customer.address.line1string
customer.address.line2string
customer.address.citystring
customer.address.regionstring
customer.address.postal_codestring
customer.contactobject or null
customer.contact.namestring
customer.contact.emailstring (email)
customer.contact.phonestring
opportunityOpportunityRequired
opportunity.namestring or null
opportunity.amountMoneyRequired
opportunity.amount.amountnumberRequired
In major units, so 36000 means 36,000.00.
opportunity.amount.currencystringRequired
ISO 4217 code.
opportunity.expected_close_datestring (date) or null
opportunity.customer_typestring or null
One of new, existing
opportunity.descriptionstring or null
productsarray of ProductLine
products[].skustring or null
The vendor's part number.
products[].descriptionstring or null
products[].quantityintegerRequired
products[].unit_priceMoney or null
products[].unit_price.amountnumberRequired
In major units, so 36000 means 36,000.00.
products[].unit_price.currencystringRequired
ISO 4217 code.

Responses

200
The evaluation.
400
Invalid parameters, or a version we do not recognise.
401
Missing or invalid API key.
404
The resource does not exist, or belongs to another organisation.
422
The request parsed but failed validation. Codes include VALIDATION_FAILED, CAPABILITY_NOT_SUPPORTED, REGISTRATION_NOT_APPROVED and CLAIM_WINDOW_CLOSED.
429
Rate limited. Wait until X-RateLimit-Reset before retrying.
500
Something broke on our side.
Request
curl -X POST "https://app.airstride.ai/api/open-partnerships/program-rules/evaluate" \
  -H "X-API-Key: $AIRSTRIDE_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
  "connection_ids": [
    "conn_8f2kq1"
  ],
  "customer": {
    "name": "Orbit Freight",
    "country": "GB"
  },
  "opportunity": {
    "amount": {
      "amount": 36000,
      "currency": "GBP"
    },
    "expected_close_date": "2027-01-29",
    "customer_type": "new"
  }
}'
Response 200
{
  "recommended_program_id": "prg_Q2c8Vd",
  "results": [
    {
      "program": {
        "id": "prg_Q2c8Vd",
        "name": "Opportunity Incentive"
      },
      "connection_id": "conn_8f2kq1",
      "qualifies": true,
      "rank": 1,
      "estimated_benefit": {
        "amount": 5400,
        "currency": "GBP"
      },
      "unmet_requirements": []
    },
    {
      "program": {
        "id": "prg_7Lw1Ns",
        "name": "Standard Registration"
      },
      "connection_id": "conn_8f2kq1",
      "qualifies": true,
      "rank": 2,
      "estimated_benefit": {
        "amount": 2880,
        "currency": "GBP"
      },
      "unmet_requirements": []
    }
  ]
}