marketplace
GET /v1/marketplace/purchases/{sale_id}
One purchase, as the buyer sees it.
Նույնականացում
Ուղարկեք API բանալին որպես bearer թոքեն։ Այս վերջնակետը բնութագրում չի նշում որոշակի թույլտվության մասին, ուստի տվեք ձեր բանալուն նվազագույն անհրաժեշտը և ենթադրություններ անելու փոխարեն ստուգեք պատասխանը:
Այս վերջնակետը կազմակերպության ID չի ընդունում: Ձեր բանալին արդեն իսկ նույնականացնում է այն կազմակերպությունը, որին պատկանում է, և պատասխանը սահմանափակված է դրանով:
Փորձել
Փոխարինեք անկյունային փակագծերում գտնվող ցանկացած բան ձեր սեփական արժեքներով, և բանալու տեղապահը՝ ձեր վահանակի բանալիով:
curl -X GET https://api.zinndigital.com/v1/marketplace/purchases/{sale_id} \
-H "Authorization: Bearer zdk_live_…"Մուտք գործե՞լ եք: Ձեր վահանակի API վահանակը լրացնում է ձեր իրական կազմակերպության ID-ն և ձեր սեփական բանալին և գործարկում է հարցումը ուղիղ API-ի դեմ, որպեսզի կարողանաք տեսնել փաստացի պատասխանը: Բացեք այս վերջնակետը API վահանակում
Մանրամասներ
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.
Պարամետրեր
| Անուն | Տեսակ | Պահանջվում է | Ինչ է դա |
|---|---|---|---|
sale_id (path) | string | Այո | — |
Պատասխան
| Անուն | Տեսակ | Պահանջվում է | Ինչ է դա |
|---|---|---|---|
id | Uuid | Այո | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
state | MarketplaceSaleState | Այո | Where 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_id | Uuid | Այո | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
listing_title | string | Այո | — |
package_name | string | Այո | — |
package_description | string | Ոչ | — |
vendor_display_name | string | Ոչ | The seller's public name, never the legal name held for identity checks. |
delivery_days | integer | Ոչ | — |
revisions_included | integer | Ոչ | — |
revision_count | integer | Ոչ | — |
billing_mode | MarketplaceBillingMode | Ոչ | How 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_interval | object | Ոչ | — |
period_index | integer | Ոչ | 0 for a one-time sale and a subscription's first period; one per renewal. |
amount_minor | integer | Այո | — |
currency | CurrencyCode | Այո | ISO 4217 currency code (money is minor units + this code — CLAUDE.md §2.8). |
auto_accepts | boolean | Ոչ | Read 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_days | object | Ոչ | — |
accept_by | object | Ոչ | When this purchase auto-accepts if the buyer does nothing. |
delivered_at | object | Ոչ | — |
accepted_at | object | Ոչ | — |
accepted_automatically | boolean | Ոչ | Whether 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_reason | string | Ոչ | — |
last_revision_at | object | Ոչ | — |
order_id | Uuid | Ոչ | UUIDv7 identifier — sortable by creation time (docs/02 §8). |
created_at | string | Ոչ | — |
Այս վերջնակետի կողմից վերադարձվող սխալները
401 · 404