Vendor API

Reps send you customers through Ascend. You report each sale back, and Ascend pays the rep’s incentive.

How it works

  1. A rep fills in the rep form for one of your products. Ascend creates a deal and gives the customer an Ascend Customer ID.
  2. You fetch the new forms: the customer’s details, the answers to your questions, the customer_id, product_id and deal_id.
  3. If you set the price (vendor-set pricing), send it back. The rep sees it and proposes it to the customer.
  4. For every transaction, send an event with the same product_id and customer_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.

FieldWhat to send
product_idThe Ascend Product ID from the form. Required.
customer_idThe Ascend Customer ID from the form. Required.
transaction_numberYour 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_centsThe transaction amount in cents, for example 10000 for $100. Required. Use a negative amount for a refund.
event_idThe 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_confirmationOptional: 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

Errors

Every error has a JSON body: {"error": "what to fix"}.

StatusMeaning
400A field is missing or wrong, or event_id isn’t one of the product’s COGS events.
401Missing or unknown reporting key.
404No deal for this product_id and customer_id (or deal_id). Use the IDs from /forms.
413The body is over 12 KB.
429Too many requests. Wait a minute and retry.
503Ascend is briefly unavailable. Retry with the same body; the transaction number keeps it from counting twice.

Machine-readable: openapi.json. Questions: support@ascend.inc