marketplace

GET /v1/marketplace/purchases/{sale_id}

One purchase, as the buyer sees it.

Tous les points de terminaison marketplace

Authentification

Envoyez une clé d'API en tant que jeton du porteur (bearer token). Cet endpoint n'indique pas de permission spécifique dans la spécification, attribuez donc à votre clé le minimum requis et vérifiez la réponse plutôt que de faire des suppositions.

Cet endpoint ne prend aucun identifiant d'organisation. Votre clé identifie déjà l'organisation à laquelle elle appartient, et la réponse y est limitée.

Essayer

Remplacez tout ce qui se trouve entre crochets par vos propres valeurs, et le espace réservé à la clé par une clé de votre tableau de bord.

curl -X GET https://api.zinndigital.com/v1/marketplace/purchases/{sale_id} \
  -H "Authorization: Bearer zdk_live_…"

Connecté ? La console d'API de votre tableau de bord saisit votre véritable ID d'organisation ainsi que votre propre clé, et exécute la requête sur l'API de production afin que vous puissiez voir la réponse réelle. Ouvrir ce point de terminaison dans la console API

Détails

Scoped to the BUYER's org. A seller asking for their own sale through this route gets a 404 — the two views of a sale are different payloads, not one payload with a permission check.

Paramètres

NomTypeObligatoireQu'est-ce que c'est
sale_id (path)stringOui

Réponse

NomTypeObligatoireQu'est-ce que c'est
idUuidOuiUUIDv7 identifier — sortable by creation time (docs/02 §8).
stateMarketplaceSaleStateOuiWhere one purchased package is in its life (docs/82 §3). The terminal state is `accepted`, not `delivered`: delivery is the vendor's claim, acceptance is the buyer's act, and it…
listing_idUuidOuiUUIDv7 identifier — sortable by creation time (docs/02 §8).
listing_titlestringOui
package_namestringOui
package_descriptionstringNon
vendor_display_namestringNonThe seller's public name, never the legal name held for identity checks.
delivery_daysintegerNon
revisions_includedintegerNon
revision_countintegerNon
billing_modeMarketplaceBillingModeNonHow an offer is charged (docs/82 §2a). A property of the OFFER, chosen by the seller from what the listing type permits — a $200 one-off audit and $150/month of link building si…
billing_intervalobjectNon
period_indexintegerNon0 for a one-time sale and a subscription's first period; one per renewal.
amount_minorintegerOui
currencyCurrencyCodeOuiISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8).
auto_acceptsbooleanNonRead this BEFORE `accept_by`. A null `accept_by` means two completely different things — not delivered yet, or this type never auto-accepts at all (an asset sale releasing on a…
auto_accept_daysobjectNon
accept_byobjectNonWhen this purchase auto-accepts if the buyer does nothing.
delivered_atobjectNon
accepted_atobjectNon
accepted_automaticallybooleanNonWhether the timer accepted this rather than the buyer. It does NOT change the outcome — auto-accept has the same finality as the button, which is why the buyer must be warned be…
last_revision_reasonstringNon
last_revision_atobjectNon
order_idUuidNonUUIDv7 identifier — sortable by creation time (docs/02 §8).
created_atstringNon

Erreurs que cet point de terminaison peut renvoyer

401 · 404