Get a program's public page

Embed
Preview of the card
<a href="https://referalli.com/docs/ref-getv1publicprogramshandle"><img src="https://referalli.com/docs/_api/public/orgs/07f432f4-34b9-46a7-aaad-c0e395d2e4f9/spaces/2bf4f614-3630-4fbf-85f9-5ecafa6b7d97/pages/4518ae05-1fb6-4f98-8980-480d1e1ed578/social-card.svg?v=3e7ae33eec8b" alt="Get a program's public page" width="600" height="315"></a>
GET https://referalli.com/v1/public/programs/{handle}

What a program's public join page shows: the program and merchant names, pitch, cookie window, terms, base commission, branding and whether joining is approved at once. terms is the program's commission terms as GET /v1/programs/{id}/terms gives them (the rule's base, how long it recurs, hold and summary in each portal locale), or null when it has no rule yet; with ?locale= or Accept-Language it also names the chosen locale and its sentence as text. merchant and branding are the program's brand when it has one, else the org's. termsUrl, faqUrl and supportUrl are the program's own pages (null when unset); hostedTermsUrl is the hosted terms page generated from the live commission rule; canonicalUrl is the join page on the org's portal domain when it has one; noindex says whether the page asks not to be indexed. closed is true for a paused or archived program: its page still answers (200) and says it is not accepting applications, and POST …/join answers 404. No authentication; only live programs with a publicHandle that are active, paused or archived are found.

Auth: none.

Parameters

handle
string
path
required
locale
string
query

Code samples

cURL
curl -X GET "https://referalli.com/v1/public/programs/{handle}"
TypeScript
Python
Go
PHP
Ruby
Java

Responses

200 OK
Example
{
  "handle": "string",
  "closed": true,
  "programId": "string",
  "programName": "string",
  "merchant": "string",
  "brandName": "string",
  "trackingToken": "string",
  "cookieWindowDays": 0,
  "termsMd": "string",
  "pitch": "string",
  "autoApprove": true,
  "commission": {},
  "terms": {
    "programId": "string",
    "ruleVersion": 0,
    "base": {
      "kind": "string",
      "percentBps": 0
    },
    "recurring": {
      "type": "string"
    },
    "upcoming": {},
    "holdDays": 0,
    "capPerReferral": {
      "amountMinor": 0,
      "currency": "string"
    },
    "signupWindowDays": 0,
    "trafficSources": [
      "string"
    ],
    "countries": {
      "allow": [
        "string"
      ],
      "block": [
        "string"
      ]
    },
    "caps": {
      "conversionsPerDay": 0,
      "conversionsPerMonth": 0,
      "commissionPerMonthMinor": 0,
      "currency": "string"
    },
    "ratesVary": true,
    "summary": {
      "en": "string",
      "es": "string",
      "de": "string",
      "fr": "string",
      "pt": "string",
      "it": "string",
      "nl": "string",
      "sv": "string",
      "ja": "string",
      "zh": "string"
    },
    "locale": "string",
    "text": "string"
  },
  "branding": {
    "logoUrl": "string",
    "theme": {}
  },
  "termsUrl": "string",
  "faqUrl": "string",
  "supportUrl": "string",
  "hostedTermsUrl": "string",
  "canonicalUrl": "string",
  "noindex": true
}
Schema
handle
string
required
closed
boolean
required
True when the program is paused or archived: the page says it is not accepting applications, and joining is refused.
programId
string
required
programName
string
required
merchant
string
required
The program's brand name when it has one, else the org name.
brandName
string
The program's own brand name; null when it uses the org's.
trackingToken
string
required
cookieWindowDays
integer
required
termsMd
string
required
pitch
string
required
autoApprove
boolean
required
commission
GetOpenapiJsonResponse
required
terms
ProgramTerms
required
The program's terms (as GET /v1/programs/{id}/terms, with ?locale=/Accept-Language); null when it has no rule yet.
Show child parameters
programId
string
required
ruleVersion
integer
required
The commission rule version these terms come from (the latest).
base
object
required
recurring
object
required
upcoming
object
A later rule version published with an effectiveAt still in the future: its full terms plus effectiveAt. Absent when none.
holdDays
integer
required
capPerReferral
object
required
The rule's cap per referred customer: the most one referral earns its partner, over every payment.
Show child parameters
amountMinor
integer
required
Integer minor units (cents).
currency
string
required
signupWindowDays
integer
required
The program's signupToConversionDays when set (null at the 365-day default): a payment more than this many days after sign-up earns nothing.
trafficSources
string[]
required
The traffic sources the program allows; null when it does not restrict them.
countries
object
required
The program's country targeting; null when none is set.
Show child parameters
allow
string[]
block
string[]
caps
object
required
The program's conversion caps; null when none are set.
Show child parameters
conversionsPerDay
integer
conversionsPerMonth
integer
commissionPerMonthMinor
integer
currency
string
ratesVary
boolean
required
Overrides, tiers or new-vs-expansion rates can change the rate a partner earns.
summary
object
required
The same sentence in each partner-portal locale.
Show child parameters
en
string
required
es
string
required
de
string
required
fr
string
required
pt
string
required
it
string
required
nl
string
required
sv
string
required
ja
string
required
zh
string
required
locale
string
With ?locale= or Accept-Language: the locale chosen (en when the one asked for is not supported).
text
string
With ?locale= or Accept-Language: the summary in locale.
branding
object
required
Show child parameters
logoUrl
string
required
theme
GetOpenapiJsonResponse
required
termsUrl
string
faqUrl
string
supportUrl
string
hostedTermsUrl
string
The hosted terms page, generated from the live commission rule.
canonicalUrl
string
The join page's canonical URL: on the org's portal domain when it has one.
noindex
boolean
400 The request is invalid. error.code is one of:
Example
{
  "error": {
    "code": "validation_error",
    "message": "the body or query failed validation, an unknown field was sent, the body is not valid json, or a session call has no `x-org-id`",
    "details": [
      {
        "code": "invalid_format",
        "path": [
          "destinationUrl"
        ],
        "message": "Invalid URL"
      }
    ],
    "docs_url": "https://referalli.com/docs/errors-and-limits#validation_error"
  }
}
Schema
error
object
required
Show child parameters
code
string
required
message
string
required
details
requestId
string
docs_url
string
required
The docs entry for this error code: what it means and how to fix it.
Headers
x-request-id
string
This request's id (req_…), matching the server logs. On every response.
404 No such resource. error.code is one of:
Example
{
  "error": {
    "code": "not_found",
    "message": "the resource does not exist in this org (ids from other orgs look the same), a referenced id does not exist, a list cursor is not in the list, or the endpoint does not exist",
    "docs_url": "https://referalli.com/docs/errors-and-limits#not_found"
  }
}
Schema
error
object
required
Show child parameters
code
string
required
message
string
required
details
requestId
string
docs_url
string
required
The docs entry for this error code: what it means and how to fix it.
Headers
x-request-id
string
This request's id (req_…), matching the server logs. On every response.
429 Rate limited. error.code is one of:
Example
{
  "error": {
    "code": "rate_limited",
    "message": "an endpoint limit or the per-key quota was exceeded",
    "docs_url": "https://referalli.com/docs/errors-and-limits#rate_limited"
  }
}
Schema
error
object
required
Show child parameters
code
string
required
message
string
required
details
requestId
string
docs_url
string
required
The docs entry for this error code: what it means and how to fix it.
Headers
x-request-id
string
This request's id (req_…), matching the server logs. On every response.
Retry-After
integer
Seconds until a retry can succeed.
RateLimit-Limit
integer
The quota bucket's size (the burst).
RateLimit-Remaining
integer
Requests that can be made right now.
RateLimit-Reset
integer
Seconds until the bucket is full again.
500 Unexpected server error. error.code is one of:
Example
{
  "error": {
    "code": "internal_error",
    "message": "retry with backoff",
    "requestId": "req_8f2c1d4e5a6b7c8d",
    "docs_url": "https://referalli.com/docs/errors-and-limits#internal_error"
  }
}
Schema
error
object
required
Show child parameters
code
string
required
message
string
required
details
requestId
string
docs_url
string
required
The docs entry for this error code: what it means and how to fix it.
Headers
x-request-id
string
This request's id (req_…), matching the server logs. On every response.
default Any other error, in the same envelope.
Example
{
  "error": {
    "code": "string",
    "message": "string",
    "details": {},
    "requestId": "string",
    "docs_url": "string"
  }
}
Schema
error
object
required
Show child parameters
code
string
required
message
string
required
details
requestId
string
docs_url
string
required
The docs entry for this error code: what it means and how to fix it.
Updated