API reference

Deal registrations

Register deals with vendors, follow them to approval, and extend them before they expire. Registrations made directly in the portal appear here too, with origin: portal.

Register a deal

POST/deal-registrationsRuns as a job

Registers a deal with the vendor behind connection_id.

Name the programme with program_id, or leave it out and Airstride evaluates the deal against every programme on the connection and registers it in the one that pays most. Either way, program_selection on the result shows which programmes were considered and why the chosen one won.

Returns 202 with the registration in pending. It moves to submitted once it is in the portal, then to approved or rejected when the vendor decides. Approval brings the vendor's deal ID and expiry date.

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.
Idempotency-KeystringRequired
A unique value per logical write, such as a UUID. Required on every write. Retry with the same key and the same body after a timeout or network error; you get the original response, never a second registration or a second claim.

Request body

connection_idstringRequired
external_idstring
Your ID for the deal, such as the CRM opportunity ID. Returned on every read and webhook.
program_idstring
Register in this programme. Leave it out to let Airstride choose the most profitable programme the deal qualifies for.
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.
on_behalf_ofOnBehalfOf
For distributors registering for a reseller they serve. Identifies the reseller in the vendor's portal. Requires a connection whose portal allows registration on behalf of another partner.
on_behalf_of.partner_namestringRequired
on_behalf_of.partner_remote_idstring or null
The reseller's partner ID in the vendor's portal, if known.
on_behalf_of.contact_emailstring (email) or null
notesstring
vendor_fieldsVendorFields
Portal-specific fields outside the common model. On write, the keys a connection accepts and requires are described by vendor_fields in its capabilities. On read, the portal-specific values Airstride captured, already parsed.

Responses

202
Accepted. The registration is pending and a job is running.
400
Invalid parameters, or a version we do not recognise.
401
Missing or invalid API key.
403
The key is valid but cannot do this. Includes a key without the Open Partnerships permission (FORBIDDEN) and a connection whose admin did not grant the scope this call needs (SCOPE_NOT_GRANTED).
404
The resource does not exist, or belongs to another organisation.
409
The request conflicts with the current state. Codes include IDEMPOTENCY_KEY_REUSED, CONNECTION_NEEDS_REAUTH, CONNECTION_DISCONNECTED, CONNECTION_EXISTS and JOB_ALREADY_RUNNING.
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/deal-registrations" \
  -H "X-API-Key: $AIRSTRIDE_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "connection_id": "conn_8f2kq1",
  "external_id": "006Hs00001Orbit",
  "customer": {
    "name": "Orbit Freight",
    "domain": "orbitfreight.example",
    "country": "GB",
    "contact": {
      "name": "Sam Patel",
      "email": "sam.patel@orbitfreight.example"
    }
  },
  "opportunity": {
    "name": "Orbit Freight network refresh",
    "amount": {
      "amount": 36000,
      "currency": "GBP"
    },
    "expected_close_date": "2027-01-29",
    "customer_type": "new"
  },
  "products": [
    {
      "sku": "C9300-48P-E",
      "description": "48-port switch",
      "quantity": 4
    }
  ],
  "vendor_fields": {
    "industry_vertical": "Transportation"
  }
}'
Response 202
{
  "id": "dr_9Wc2Fj",
  "connection_id": "conn_8f2kq1",
  "portal": {
    "id": "portal_cisco",
    "name": "Cisco",
    "kind": "vendor"
  },
  "status": "pending",
  "origin": "api",
  "external_id": "006Hs00001Orbit",
  "vendor_deal_id": null,
  "program": null,
  "program_selection": null,
  "customer": {
    "name": "Orbit Freight",
    "domain": "orbitfreight.example",
    "country": "GB"
  },
  "opportunity": {
    "name": "Orbit Freight network refresh",
    "amount": {
      "amount": 36000,
      "currency": "GBP"
    },
    "expected_close_date": "2027-01-29",
    "customer_type": "new"
  },
  "products": [
    {
      "sku": "C9300-48P-E",
      "description": "48-port switch",
      "quantity": 4
    }
  ],
  "submitted_at": null,
  "decided_at": null,
  "expires_at": null,
  "rejection_reason": null,
  "extension": null,
  "vendor_fields": {
    "industry_vertical": "Transportation"
  },
  "job": {
    "id": "job_1Mx8Tq",
    "status": "queued"
  },
  "remote_id": null,
  "remote_status": null,
  "last_synced_at": null,
  "created_at": "2026-11-24T10:30:00Z",
  "updated_at": "2026-11-24T10:30:00Z"
}

List deal registrations

GET/deal-registrations

Query parameters

connection_idstring
Only objects from this connection.
statusstring
Filter by one or more statuses, comma separated.
originstring
api if the object was created through this API. portal if Airstride found it in the portal, for example a registration a seller made by hand.One of api, portal
external_idstring
Your own ID for the deal, as sent on create.
vendor_deal_idstring
expires_beforestring (date)
Registrations that expire before this date. Use it to find registrations to extend.
updated_afterstring (date-time)
Only objects changed after this time. Use it for incremental sync.
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 deal registrations.
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/deal-registrations" \
  -H "X-API-Key: $AIRSTRIDE_API_KEY"

Get a deal registration

GET/deal-registrations/{deal_registration_id}

Path parameters

deal_registration_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 deal registration.
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/deal-registrations/{deal_registration_id}" \
  -H "X-API-Key: $AIRSTRIDE_API_KEY"
Response 200
{
  "id": "dr_9Wc2Fj",
  "connection_id": "conn_8f2kq1",
  "portal": {
    "id": "portal_cisco",
    "name": "Cisco",
    "kind": "vendor"
  },
  "status": "approved",
  "origin": "api",
  "external_id": "006Hs00001Orbit",
  "vendor_deal_id": "DR-48213",
  "program": {
    "id": "prg_Q2c8Vd",
    "name": "Opportunity Incentive"
  },
  "program_selection": {
    "strategy": "most_profitable",
    "reason": "Qualifies for two programs. Opportunity Incentive pays the higher discount on a new customer.",
    "considered": [
      {
        "program": {
          "id": "prg_Q2c8Vd",
          "name": "Opportunity Incentive"
        },
        "qualifies": true,
        "estimated_benefit": {
          "amount": 5400,
          "currency": "GBP"
        }
      },
      {
        "program": {
          "id": "prg_7Lw1Ns",
          "name": "Standard Registration"
        },
        "qualifies": true,
        "estimated_benefit": {
          "amount": 2880,
          "currency": "GBP"
        }
      }
    ]
  },
  "customer": {
    "name": "Orbit Freight",
    "domain": "orbitfreight.example",
    "country": "GB"
  },
  "opportunity": {
    "name": "Orbit Freight network refresh",
    "amount": {
      "amount": 36000,
      "currency": "GBP"
    },
    "expected_close_date": "2027-01-29",
    "customer_type": "new"
  },
  "products": [
    {
      "sku": "C9300-48P-E",
      "description": "48-port switch",
      "quantity": 4
    }
  ],
  "submitted_at": "2026-11-24T10:31:34Z",
  "decided_at": "2026-11-26T10:41:00Z",
  "expires_at": "2027-02-22",
  "rejection_reason": null,
  "extension": null,
  "vendor_fields": {
    "industry_vertical": "Transportation"
  },
  "job": {
    "id": "job_1Mx8Tq",
    "status": "succeeded"
  },
  "remote_id": "48213",
  "remote_status": "Approved",
  "last_synced_at": "2026-11-26T10:41:30Z",
  "created_at": "2026-11-24T10:30:00Z",
  "updated_at": "2026-11-26T10:41:30Z"
}

Extend a deal registration

POST/deal-registrations/{deal_registration_id}/extendRuns as a job

Asks the vendor to extend an approved registration before it expires. Check deal_registrations.extend in the connection's capabilities first: not every programme allows extensions. Returns 202; the registration's extension.status becomes requested, and a deal_registration.extended webhook carries the new expires_at when the vendor agrees.

Path parameters

deal_registration_idstringRequired

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.
Idempotency-KeystringRequired
A unique value per logical write, such as a UUID. Required on every write. Retry with the same key and the same body after a timeout or network error; you get the original response, never a second registration or a second claim.

Request body (optional)

requested_untilstring (date)
The expiry date to ask for. Leave it out to ask for the longest extension the programme allows.
reasonstring

Responses

202
Accepted. The extension request is running as a job.
401
Missing or invalid API key.
404
The resource does not exist, or belongs to another organisation.
409
The request conflicts with the current state. Codes include IDEMPOTENCY_KEY_REUSED, CONNECTION_NEEDS_REAUTH, CONNECTION_DISCONNECTED, CONNECTION_EXISTS and JOB_ALREADY_RUNNING.
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/deal-registrations/{deal_registration_id}/extend" \
  -H "X-API-Key: $AIRSTRIDE_API_KEY" \
  -H "Idempotency-Key: $(uuidgen)" \
  -H "Content-Type: application/json" \
  -d '{
  "requested_until": "2027-05-22",
  "reason": "Customer moved the purchase into their next financial quarter."
}'