Vendor API
Reps send you customers through Ascend. You report each sale back, and Ascend pays the rep’s incentive.
How it works
- A rep fills in the rep form for one of your products. Ascend creates a deal and gives the customer an Ascend Customer ID.
- You fetch the new forms: the customer’s details, the answers to your questions, the
customer_id,product_idanddeal_id. - If you set the price (vendor-set pricing), send it back. The rep sees it and proposes it to the customer.
- For every transaction, send an event with the same
product_idandcustomer_id.
Your key
Create your reporting key in the vendor workspace under API keys. Send it on every request, from your server only:
Authorization: Bearer asc_report_…
Base URL: https://app.ascend.inc/api/vendor/reporting/
New customers: GET /forms
Returns every rep form you haven’t reported a sale on yet, oldest first. Poll it, for example every few minutes.
curl https://app.ascend.inc/api/vendor/reporting/forms \
-H "Authorization: Bearer $ASCEND_KEY"
{ "forms": [ {
"deal_id": "6b1f…", "product_id": "d180…", "product": "Small Business Insurance",
"customer_id": "a3fc…",
"customer": { "full_name": "Ana Ruiz", "email": "ana@example.com", "phone": "+15125550100",
"address": "12 Main St, Austin, TX", "dob": "1984-02-11", "customer_type": "Small business" },
"pricing_mode": "vendor_set", "sale_price": null,
"answers": [ { "question": "Years in business", "answer": "6" } ],
"rep": "Diego Alvarez", "sent_at": "2026-11-28T15:04:00Z"
} ] }
Keep the customer_id and product_id with the customer in your system. You send them back on every event.
Send a price: POST /price
For vendor-set products only. Send deal_id (or product_id and customer_id) and the price: cents, percent or both, plus an optional short note the rep sees. Sending again replaces the price.
curl https://app.ascend.inc/api/vendor/reporting/price \
-H "Authorization: Bearer $ASCEND_KEY" -H "Content-Type: application/json" \
-d '{"deal_id":"6b1f…","sale_price":{"cents":3000,"note":"$10,000 coverage at $30/month"}}'
Reply: 200 with {"status":"saved","deal_id":…,"sale_price":…}.
Report a sale: POST /events
One request per transaction.
| Field | What to send |
|---|---|
product_id | The Ascend Product ID from the form. Required. |
customer_id | The Ascend Customer ID from the form. Required. |
transaction_number | Your own reference, unique across your transactions (1–160 characters). Required. A number Ascend has already seen is ignored as a duplicate, so retries are safe. |
transaction_amount_cents | The transaction amount in cents, for example 10000 for $100. Required. Use a negative amount for a refund. |
event_id | The name of one of the product’s COGS events, exactly as on the product (for example "Sign up", "Amex", "Chargeback"). Leave it out, or send "base", for a plain transaction at the base cost. |
cogs_confirmation | Optional: the COGS you applied, {"cents": 215} or {"percent": 2.15} of the amount. When you send it, Ascend uses it instead of the product’s COGS terms. |
curl https://app.ascend.inc/api/vendor/reporting/events \
-H "Authorization: Bearer $ASCEND_KEY" -H "Content-Type: application/json" \
-d '{"product_id":"d180…","customer_id":"a3fc…","transaction_number":"T-1001",
"transaction_amount_cents":10000,"event_id":"Amex","cogs_confirmation":{"cents":215}}'
Reply: 202 with {"status":"recorded", …} and the deal’s new totals, or 200 with {"status":"duplicate"} for a transaction number Ascend already has.
How Ascend counts
- COGS for a transaction is the product’s base cost plus the named event’s cost (they add up). Each cost is a flat $, a % of the transaction amount, or both; a $ range counts its middle. Your
cogs_confirmationreplaces this when you send it. - Sale price is the price on the deal: the rep’s agreed price, or the one you posted. Until there is one, the transaction amount counts as the price.
- Incentive: a flat $ counts once per deal, on its first sale; % of volume uses the transaction amount; % of delta uses the sale price minus COGS for the transaction.
- Ascend fee: a flat $ counts once per deal; a % is of the transaction’s incentive.
- The first event with an amount of zero or more marks the deal and the rep’s match sold, and the form leaves
/forms. - Deals keep the terms they were made with, even if you change the product later.
Errors
Every error has a JSON body: {"error": "what to fix"}.
| Status | Meaning |
|---|---|
400 | A field is missing or wrong, or event_id isn’t one of the product’s COGS events. |
401 | Missing or unknown reporting key. |
404 | No deal for this product_id and customer_id (or deal_id). Use the IDs from /forms. |
413 | The body is over 12 KB. |
429 | Too many requests. Wait a minute and retry. |
503 | Ascend is briefly unavailable. Retry with the same body; the transaction number keeps it from counting twice. |
Machine-readable: openapi.json. Questions: support@ascend.inc