Docs menu

Referrals API endpoint

Reject a referral held for review

Rejects a review-required referral without granting credits.

POSTadmin or apiKey1 credit/requestReferralsreferrals.adminReferralRejectRequestDocreferrals.adminReferralReviewResponseDoc/admin/referrals/{id}/reject

Overview

Rejects a review-required referral without granting credits.

Request schema

NameInTypeRequiredEnumExampleDescription
x-api-keyheaderstringYesAdmin API key
idpathstringYesReferral attribution id
requestbodyobjectNoReject reason

Authentication

Admin endpoints require an Admin JWT through the console proxy or an Admin API key where documented. Non-admin plans receive 403.

Billing

Endpoint usage is metered in credits. The plan prices, included credits, limits, and overage rates below match the active backend billing configuration.

Credit cost
1 credit/request
Charged response
Successful 2xx responses
PlanPriceIncluded creditsDaily capRate limitOverage
Free$0/mo2,000500 daily credits5/minNo overage
Starter$9/mo20,0005,000 daily credits15/min$0.75/1,000 overage credits when enabled
Growth$29/mo100,00025,000 daily credits45/min$0.45/1,000 overage credits when enabled
Pro$79/mo400,000No daily cap120/min$0.30/1,000 overage credits
Business$199/mo1,200,000No daily cap300/min$0.20/1,000 overage credits
Enterprise$499/mo5,000,000No daily cap1,000/min$0.12/1,000 overage credits

Infrastructure behavior

This endpoint is executed through Crawlora's managed scraping infrastructure.

  • Proxy strategy: managed automatically where needed
  • Browser rendering: enabled for supported targets that require rendered HTML or JavaScript execution
  • Browser cluster: supported dynamic workloads can be routed through distributed browser instances
  • Retry behavior: automatic retry/fallback may be used depending on endpoint type
  • Challenge handling: challenged pages or unusable upstream HTML are detected and surfaced clearly when they cannot be used
  • Billing: credits are charged only for successful 2xx responses
  • Observability: responses include request context where available

Response behavior

- Marks the attribution as `rejected`. - Does not create or grant referral rewards.

Catalog quality warnings

  • missing example for required path param: id

Error behavior

Crawlora does not silently return bad data when the upstream page cannot be used.

StatusCommon failure case
400Invalid input or missing required parameter
429Plan or endpoint rate limit exceeded
500Internal execution error
502Upstream platform failed, returned unusable HTML, or served a challenge page that could not be resolved

When possible, Crawlora returns structured error context so your integration can retry, back off, or inspect the request.

Failure responses

StatusDescriptionSchema
401Authentication required#/definitions/app.Response
403Admin plan required#/definitions/app.Response
404Referral attribution not found#/definitions/app.Response
500Internal server error#/definitions/app.Response

Request body example

{
  "reason": "same billing account"
}

Example response

{
  "code": 200,
  "msg": "ok",
  "data": {
    "attribution": {
      "id": "attr-1",
      "status": "rejected"
    }
  }
}

Request schema

#/definitions/referrals.adminReferralRejectRequestDoc

FieldTypeRequiredEnumBoundsExampleDescription
reasonstringNosame billing account

Response schema

#/definitions/referrals.adminReferralReviewResponseDoc

FieldTypeRequiredEnumBoundsExampleDescription
attributionreferrals.adminReferralAttributionRecordDocNo
attribution.click_idstringNorefclk_abc123
attribution.codestringNoA1B2C3D4E5F6
attribution.created_atstringNo
attribution.errorstringNotemporary billing write failure
attribution.expires_atstringNo
attribution.first_paid_invoice_idstringNoin_123
attribution.idstringNoattr-1
attribution.landing_pathstringNo/pricing
attribution.qualified_atstringNo
attribution.referred_user_idstringNouser-referred
attribution.referrer_user_idstringNouser-referrer
attribution.review_reasonstringNosame_stripe_customer
attribution.reviewed_atstringNo
attribution.reviewed_bystringNoadmin-user
attribution.rewarded_atstringNo
attribution.risk_flagsarrayNosame_stripe_customer
attribution.skip_reasonstringNocapped
attribution.statusstringNoattributed, qualified, review_required, rewarded, expired, capped, failed, rejectedrewarded
attribution.stripe_event_idstringNoevt_123
attribution.stripe_invoice_idstringNoin_123
attribution.utm_campaignstringNospring-launch
attribution.utm_mediumstringNoemail
attribution.utm_sourcestringNonewsletter
rewardsarrayNo
rewards[].attribution_idstringNoattr-1
rewards[].created_atstringNo
rewards[].creditsintegerNo10000
rewards[].credits_grant_errorstringNotemporary billing write failure
rewards[].credits_grant_keystringNoreward-1
rewards[].credits_granted_atstringNo
rewards[].idstringNoreward-1
rewards[].rolestringNoreferrer, referredreferrer
rewards[].stripe_invoice_idstringNoin_123
rewards[].user_idstringNouser-referrer

Code examples

Use environment variables for secrets and keep Crawlora API keys server-side.

curl -X POST "https://api.crawlora.net/api/v1/admin/referrals/example/reject" \
  -H "x-api-key: $CRAWLORA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"reason":"same billing account"}'

Responsible public web data workflows

Crawlora is designed for responsible structured public web data workflows. Customers are responsible for using Crawlora in compliance with applicable laws, third-party rights, target-platform rules, and Crawlora terms.

Read Crawlora terms

Related