marketplace

POST /v1/marketplace/vendor/sales/{sale_id}/link-replacement

Replace a guaranteed link that has stopped reading, with a new page.

All marketplace endpoints

All developer docs →

Zinn®, our Viking, hammering at his anvil beside an API endpoint sending events to several listeners.

Authentication

Send an API key as a bearer token. This endpoint checks no specific permission, so any key for your organisation can call it.

This endpoint takes no organisation id. Your key already identifies the organisation it belongs to, and the response is scoped to it.

Try it

Replace anything in angle brackets with your own values, and the key placeholder with a key from your dashboard.

curl -X POST https://api.zinndigital.com/v1/marketplace/vendor/sales/{sale_id}/link-replacement \
  -H "Authorization: Bearer zdk_live_…" \
  -H "Content-Type: application/json" \
  -d '{ "live_url": <string> }'

Signed in? The API console in your dashboard fills in your real organisation id and your own key, and runs the request against the live API so you can see the actual response. Open this endpoint in the API console

Details

Owner [A282]/[A283]. A guaranteed link that is failing or replacement_due is replaced by the seller with the address of a page that carries it. The page is read in this request and saved only if the link to the buyer's page is on it; the row is then live again and the buyer is told. Scoped to the SELLER's org.

Parameters

NameTypeRequiredWhat it is
sale_id (path)stringYes—

Request body

NameTypeRequiredWhat it is
live_urlstringYes—

Response

NameTypeRequiredWhat it is
statestring<pending, live, failing, replacement_due, expired, credited>Yescredited (S3): the 14 days passed with no replacement; the buyer was given the price back as Zinn® credit and it was taken from the seller's next earnings.
live_urlstringYes—
target_urlstringYes—
starts_atobjectNo—
ends_atobjectNonull = lifetime (or the term has not started).
last_checked_atobjectNo—
last_resultobjectNo—
down_sinceobjectNo—
replace_byobjectNo—
replacementsintegerYes—
credited_atobjectNo—
credit_minorobjectNoWhat the buyer was given back as Zinn® credit (minor units).
credit_currencyobjectNo—
clawback_minorobjectNoSELLER rows only. Taken from the seller's next earnings (USD minor, the full price incl. commission, [A290]); 0 on a first-party sale.
strikeobjectNoSELLER rows only. The seller's credited guarantees in 12 months, this one included ([A291]).
chances_leftobjectNoSELLER rows only. Strikes left before a take-down review (0 = under review).

Errors this endpoint can return

401 · 404 · 422