Request a quote from a distributor
POST/quotesRuns as a job
Sends a quote request to the distributor behind connection_id, with the vendor's deal ID attached so the special price is applied.
Pass deal_registration_id for a registration made through this API, and Airstride attaches its vendor_deal_id. Pass vendor_deal_id directly for a registration made elsewhere. A quote request whose registration is not approved is rejected with 422, so a standard price is never returned by mistake.
Returns 202 with the quote in pending. quote.priced arrives when the distributor has priced every line.
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- The distributor's connection.
external_idstring- Your ID for the quote.
deal_registration_idstring- A registration made through this API. Must be
approved. vendor_deal_idstring- A vendor deal ID for a registration made elsewhere.
vendor_portal_idstring- The vendor the deal ID belongs to. Required with
vendor_deal_id. currencystringRequiredcustomerCustomer- The end customer the deal is for.
customer.namestringRequiredcustomer.domainstring or nullcustomer.countrystring or null- ISO 3166-1 alpha-2 code.
customer.addressobject or nullcustomer.address.line1stringcustomer.address.line2stringcustomer.address.citystringcustomer.address.regionstringcustomer.address.postal_codestringcustomer.contactobject or nullcustomer.contact.namestringcustomer.contact.emailstring (email)customer.contact.phonestringlinesarray of QuoteLineCreateRequiredlines[].skustring- The vendor's part number.
lines[].distributor_skustring- The distributor's own part number, if you have it.
lines[].descriptionstringlines[].quantityintegerRequirednotesstringvendor_fieldsVendorFields- Portal-specific fields outside the common model. On write, the keys a connection accepts and requires are described by
vendor_fieldsin its capabilities. On read, the portal-specific values Airstride captured, already parsed.
Responses
- 202
- Accepted. The quote is
pendingand 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_EXISTSandJOB_ALREADY_RUNNING. - 422
- The request parsed but failed validation. Codes include
VALIDATION_FAILED,CAPABILITY_NOT_SUPPORTED,REGISTRATION_NOT_APPROVEDandCLAIM_WINDOW_CLOSED. - 429
- Rate limited. Wait until
X-RateLimit-Resetbefore retrying. - 500
- Something broke on our side.
curl -X POST "https://app.airstride.ai/api/open-partnerships/quotes" \
-H "X-API-Key: $AIRSTRIDE_API_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"connection_id": "conn_2Dk7Rb",
"external_id": "Q-2291",
"deal_registration_id": "dr_9Wc2Fj",
"currency": "GBP",
"customer": {
"name": "Orbit Freight",
"country": "GB"
},
"lines": [
{
"sku": "C9300-48P-E",
"quantity": 4
}
]
}'