marketplace
POST /v1/marketplace/vendor/sales/{sale_id}/link-replacement
Replace a guaranteed link that has stopped reading, with a new page.
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
| Name | Type | Required | What it is |
|---|---|---|---|
sale_id (path) | string | Yes | — |
Request body
| Name | Type | Required | What it is |
|---|---|---|---|
live_url | string | Yes | — |
Response
| Name | Type | Required | What it is |
|---|---|---|---|
state | string<pending, live, failing, replacement_due, expired, credited> | Yes | credited (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_url | string | Yes | — |
target_url | string | Yes | — |
starts_at | object | No | — |
ends_at | object | No | null = lifetime (or the term has not started). |
last_checked_at | object | No | — |
last_result | object | No | — |
down_since | object | No | — |
replace_by | object | No | — |
replacements | integer | Yes | — |
credited_at | object | No | — |
credit_minor | object | No | What the buyer was given back as Zinn® credit (minor units). |
credit_currency | object | No | — |
clawback_minor | object | No | SELLER rows only. Taken from the seller's next earnings (USD minor, the full price incl. commission, [A290]); 0 on a first-party sale. |
strike | object | No | SELLER rows only. The seller's credited guarantees in 12 months, this one included ([A291]). |
chances_left | object | No | SELLER rows only. Strikes left before a take-down review (0 = under review). |
Errors this endpoint can return
401 · 404 · 422