{"openapi":"3.1.1","info":{"title":"ControlResell public API","version":"1","description":"The public API of ControlResell. Every error answers `{\"error\": {\"code\", \"message\", \"params\", \"requestId\"}}`; a `POST` takes an `Idempotency-Key` header.","contact":{"name":"ControlResell support","url":"https://controlresell.com"}},"servers":[{"url":"https://api.controlresell.com"}],"paths":{"/api/public/v1/me":{"get":{"operationId":"getMe","tags":["Me"],"summary":"The seller the credential acts for","description":"The one route a plan without the public API can call.","responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"The seller.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Me"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/api/public/v1/accounts":{"get":{"operationId":"listAccounts","tags":["Accounts"],"summary":"List the seller's marketplace accounts","description":"The marketplace accounts (Vinted, eBay…) connected to the seller's ControlResell, one page at a time. Requires `accounts:read`.","parameters":[{"name":"limit","in":"query","description":"Page size, 1 to 100 (50 by default).","schema":{"type":"integer","default":50,"format":"int32","maximum":100.0,"minimum":1.0}},{"name":"cursor","in":"query","description":"The `nextCursor` of the previous page.","schema":{"type":"string"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"A page of accounts.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AccountPage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `accounts:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["accounts:read"],"x-controlresell-pagination":"cursor"}},"/api/public/v1/accounts/{id}":{"get":{"operationId":"getAccount","tags":["Accounts"],"summary":"Read one marketplace account","description":"One marketplace account of the seller, by its identifier. Requires `accounts:read`.","parameters":[{"name":"id","in":"path","description":"The account's identifier, a UUID.","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"The account.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `accounts:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`account_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["accounts:read"]}},"/api/public/v1/items":{"post":{"operationId":"createItem","tags":["Items"],"summary":"Create an item in the seller's stock","description":"Creates one item in the seller's ControlResell stock, unsold unless `sold` says otherwise, without publishing it: publish it with `POST /items/{id}/publish`. Only `name` is required. The amounts are `{amount, currency}` in the item's currency (EUR for a new item; another currency is refused with `422 currency_mismatch`). `photoIds` are files already in the seller's library (`POST /files`): another seller's, an unknown one, or one whose bytes were never sent is `404 photo_not_found`. A label the seller does not have yet is created. The fields a marketplace asks for are written with the item: `packageSizeId`, `materialIds`, `measurementLength` and `measurementWidth` (centimeters), `enumValues` (the category's enumerated fields, `{enumKey, enumValue}`, one entry per picked value), `attributes` (its free-text fields, `{fieldKey, value}`, one per key) and `customFields` (the seller's own fields, `{fieldId, value}`); each list replaces the item's whole list. A place (`purchasePlaceId`, `sellingPlaceId`) or a custom field of another seller, or an unknown one, is `404 place_not_found` or `404 field_not_found`. `categoryId`, `sizeId` and `state` are ids from 1 (`0` is a 400, `null` clears them). Keys and enumerated values are trimmed and counted in characters (UTF-16 units), 1 to 100 for a key and 1 to 255 for a value; two entries that differ only by case or accents (as the database compares them) are a 400. At most 100 entries per list, and 65,535 bytes (UTF-8) per free-text value. Read back, `enumValues`, `attributes` and `customFields` are sorted by key (then value, or field id), as plain strings (upper case before lower case). Requires `items:write` and an `Idempotency-Key`.","parameters":[{"name":"Idempotency-Key","in":"header","description":"1 to 255 characters, unique per write: a retry with the same key and the same request answers the first response again (`Idempotent-Replayed: true`), without running the write twice.","required":true,"schema":{"type":"string","maxLength":255,"minLength":1}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemCreateRequest"}}},"required":true},"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"201":{"description":"The item, created; `Location` is its address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Item"}}}},"400":{"description":"A malformed request: `bad_request`, `error_body_invalid`, or no `Idempotency-Key` (`idempotency_key_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:write` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`photo_not_found`, `brand_not_found`, `place_not_found`, `field_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The `Idempotency-Key` was used with another request (`idempotency_key_reused`), or its first request is still running (`idempotency_in_progress`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The replay guarantee is unavailable (`idempotency_unavailable`): retry later with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Refused by a business rule (`currency_mismatch`): see `error.message` and `error.params`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:write"]},"get":{"operationId":"listItems","tags":["Items"],"summary":"List the seller's items","description":"The items of the seller's stock, most recently created first, one page at a time: pass the `nextCursor` of a page as `cursor` to read the next one, with the same filters. Requires `items:read`.","parameters":[{"name":"limit","in":"query","description":"Page size, 1 to 100 (50 by default).","schema":{"type":"integer","default":50,"format":"int32","maximum":100.0,"minimum":1.0}},{"name":"cursor","in":"query","description":"The `nextCursor` of the previous page.","schema":{"type":"string"}},{"name":"sold","in":"query","description":"`true`: only sold items; `false`: only unsold ones.","schema":{"type":"boolean"}},{"name":"accountId","in":"query","description":"Only the items listed on this marketplace account (`GET /accounts`).","schema":{"type":"string","format":"uuid"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"A page of items.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemPage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:read"],"x-controlresell-pagination":"cursor"}},"/api/public/v1/items/{id}":{"delete":{"operationId":"deleteItem","tags":["Items"],"summary":"Delete an item from the seller's stock","description":"Deletes one item of the seller's stock, with its photos links, labels and history. An item still online on a marketplace is refused (`409 item_still_listed`): its listings would stay online without ControlResell. Requires `items:write`.","parameters":[{"name":"id","in":"path","description":"The item's identifier, a number.","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"The item is deleted."},"409":{"description":"The item is still online on a marketplace (`item_still_listed`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"400":{"description":"A malformed request: `bad_request`, `error_body_invalid`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:write` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`item_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:write"]},"get":{"operationId":"getItem","tags":["Items"],"summary":"Read one item","description":"One item of the seller's stock, by its identifier. Requires `items:read`.","parameters":[{"name":"id","in":"path","description":"The item's identifier, a number.","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"The item.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Item"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`item_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:read"]},"patch":{"operationId":"updateItem","tags":["Items"],"summary":"Change an item of the seller's stock","description":"Changes one item of the seller's stock with a JSON merge patch: a field left out keeps its value, a field set to `null` is cleared (not `name`, `sold`, nor a list: send `[]` to empty a list), a list replaces the whole list. It changes the item in ControlResell only, not its listings on the marketplaces. The amounts are `{amount, currency}` in the item's currency (EUR for a new item; another currency is refused with `422 currency_mismatch`). `photoIds` are files already in the seller's library (`POST /files`): another seller's, an unknown one, or one whose bytes were never sent is `404 photo_not_found`. A label the seller does not have yet is created. The fields a marketplace asks for are written with the item: `packageSizeId`, `materialIds`, `measurementLength` and `measurementWidth` (centimeters), `enumValues` (the category's enumerated fields, `{enumKey, enumValue}`, one entry per picked value), `attributes` (its free-text fields, `{fieldKey, value}`, one per key) and `customFields` (the seller's own fields, `{fieldId, value}`); each list replaces the item's whole list. A place (`purchasePlaceId`, `sellingPlaceId`) or a custom field of another seller, or an unknown one, is `404 place_not_found` or `404 field_not_found`. `categoryId`, `sizeId` and `state` are ids from 1 (`0` is a 400, `null` clears them). Keys and enumerated values are trimmed and counted in characters (UTF-16 units), 1 to 100 for a key and 1 to 255 for a value; two entries that differ only by case or accents (as the database compares them) are a 400. At most 100 entries per list, and 65,535 bytes (UTF-8) per free-text value. Read back, `enumValues`, `attributes` and `customFields` are sorted by key (then value, or field id), as plain strings (upper case before lower case). Requires `items:write`.","parameters":[{"name":"id","in":"path","description":"The item's identifier, a number.","required":true,"schema":{"type":"integer","format":"int64"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ItemUpdateRequest"}}},"required":true},"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"The item, changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Item"}}}},"400":{"description":"A malformed request: `bad_request`, `error_body_invalid`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:write` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`item_not_found`, `photo_not_found`, `brand_not_found`, `place_not_found`, `field_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Refused by a business rule (`currency_mismatch`): see `error.message` and `error.params`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:write"]}},"/api/public/v1/items/{id}/listings":{"get":{"operationId":"listItemListings","tags":["Items"],"summary":"Where an item is listed","description":"The item's listings on the seller's marketplace accounts, in one page (`nextCursor` is `null`). Requires `items:read`.","parameters":[{"name":"id","in":"path","description":"The item's identifier, a number.","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"The item's listings.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ListingPage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`item_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:read"]}},"/api/public/v1/items/{id}/favorites":{"get":{"operationId":"listItemFavorites","tags":["Favorites"],"summary":"List the favorites of an item","description":"The favorites of the item's listings, on every account it is listed on. A favorite is a buyer of the marketplace who put one of the seller's listings in their favorites, named by their identifier on the marketplace (`buyerId`). Its `item` is a summary of the item of the listing, `null` when ControlResell does not follow the listing. The most recent first (by `createdAt`, then `id`), one page at a time: pass the `nextCursor` of a page as `cursor` to read the next one, with the same filters (a cursor reused with other filters is an `invalid_cursor`). `from` and `to` go straight to a period of the favorite's date: `from` is inclusive, `to` exclusive. Requires `items:read`.","parameters":[{"name":"id","in":"path","description":"The item's identifier, a number.","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"limit","in":"query","description":"Page size, 1 to 100 (50 by default).","schema":{"type":"integer","default":50,"format":"int32","maximum":100.0,"minimum":1.0}},{"name":"cursor","in":"query","description":"The `nextCursor` of the previous page.","schema":{"type":"string"}},{"name":"from","in":"query","description":"Only the favorites created at or after this instant (inclusive), ISO-8601 with its offset, such as `2026-10-01T00:00:00Z`.","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","description":"Only the favorites created before this instant (exclusive), ISO-8601 with its offset; after `from`.","schema":{"type":"string","format":"date-time"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"A page of the item's favorites.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavoritePage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`item_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:read"],"x-controlresell-pagination":"cursor"}},"/api/public/v1/items/{id}/publish":{"post":{"operationId":"publishItem","tags":["Items"],"summary":"Publish an item on the seller's accounts","description":"Schedules the publication of one item of the seller's stock on the given marketplace accounts, now or at `scheduledAt` (at most 30 days ahead). The publication runs on the account's browser: read its result on `GET /items/{id}/listings`. To cross-list an item (\"list it on eBay\"), call this route with that account: this API never relays a marketplace's own API. Publishing one item on several accounts of the same marketplace risks a strike from it: name only the accounts you mean. Requires `items:write` and an `Idempotency-Key`.","parameters":[{"name":"id","in":"path","description":"The item's identifier, a number.","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Idempotency-Key","in":"header","description":"1 to 255 characters, unique per write: a retry with the same key and the same request answers the first response again (`Idempotent-Replayed: true`), without running the write twice.","required":true,"schema":{"type":"string","maxLength":255,"minLength":1}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PublishRequest"}}},"required":true},"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"202":{"description":"The publication is scheduled on every account of the request, at `scheduledAt`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledAction"}}}},"400":{"description":"A malformed request: `bad_request`, `error_body_invalid`, or no `Idempotency-Key` (`idempotency_key_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:write` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`item_not_found`, `account_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The `Idempotency-Key` was used with another request (`idempotency_key_reused`), or its first request is still running (`idempotency_in_progress`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The replay guarantee is unavailable (`idempotency_unavailable`): retry later with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Refused by a business rule (`publish_refused`): see `error.message` and `error.params`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:write"]}},"/api/public/v1/items/{id}/price-drop":{"post":{"operationId":"dropItemPrice","tags":["Items"],"summary":"Lower the price of an item's listings","description":"Schedules a price drop of the item's existing listings, now or at `scheduledAt` (at most 30 days ahead), like the price drop of the app: the listings are updated, not republished. `value` is what is removed from each listing's current price, never the new price. Without `accountIds`, every account the item is online on. Requires `items:write` and an `Idempotency-Key`.","parameters":[{"name":"id","in":"path","description":"The item's identifier, a number.","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Idempotency-Key","in":"header","description":"1 to 255 characters, unique per write: a retry with the same key and the same request answers the first response again (`Idempotent-Replayed: true`), without running the write twice.","required":true,"schema":{"type":"string","maxLength":255,"minLength":1}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PriceDropRequest"}}},"required":true},"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"202":{"description":"The price drop is scheduled on every account named, at `scheduledAt`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledAction"}}}},"400":{"description":"A malformed request: `bad_request`, `error_body_invalid`, or no `Idempotency-Key` (`idempotency_key_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:write` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`item_not_found`, `account_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The `Idempotency-Key` was used with another request (`idempotency_key_reused`), or its first request is still running (`idempotency_in_progress`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The replay guarantee is unavailable (`idempotency_unavailable`): retry later with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Refused by a business rule (`price_drop_refused`, `item_not_listed`): see `error.message` and `error.params`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:write"]}},"/api/public/v1/items/{id}/republish":{"post":{"operationId":"republishItem","tags":["Items"],"summary":"Republish an item on the seller's accounts","description":"Schedules the republication of one item of the seller's stock, now or at `scheduledAt` (at most 30 days ahead), exactly as the app and the MCP tool `republish_items` do: ControlResell deletes the listing and publishes it again from the item it holds, with the same safeguards (republication pace, publication guards). eBay, Shopify and Etsy do not republish: their accounts are refused (`republish_not_supported`). Without `accountIds`, every account the item is listed on. The republication runs on the account's browser: read its result on `GET /items/{id}/listings`.\n\nThis API never relays a marketplace's own API (Vinted, eBay…): every write runs a ControlResell use case on an item of the seller's stock. To cross-list an item on another account or marketplace (\"list it on eBay\"), call `POST /items/{id}/publish` with that account. Requires `items:write` and an `Idempotency-Key`; costs 5 units of the rate limit.","parameters":[{"name":"id","in":"path","description":"The item's identifier, a number.","required":true,"schema":{"type":"integer","format":"int64"}},{"name":"Idempotency-Key","in":"header","description":"1 to 255 characters, unique per write: a retry with the same key and the same request answers the first response again (`Idempotent-Replayed: true`), without running the write twice.","required":true,"schema":{"type":"string","maxLength":255,"minLength":1}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/RepublishRequest"}}}},"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"202":{"description":"The republication is scheduled on every account named (or the item is listed on).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ScheduledAction"}}}},"400":{"description":"A malformed request: `bad_request`, `error_body_invalid`, or no `Idempotency-Key` (`idempotency_key_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:write` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`item_not_found`, `account_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The `Idempotency-Key` was used with another request (`idempotency_key_reused`), or its first request is still running (`idempotency_in_progress`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The replay guarantee is unavailable (`idempotency_unavailable`): retry later with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Refused by a business rule (`republish_refused`, `item_not_listed`): see `error.message` and `error.params`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:write"]}},"/api/public/v1/conversations":{"get":{"operationId":"listConversations","tags":["Conversations"],"summary":"List the seller's conversations","description":"The conversations with buyers on the seller's marketplace accounts, latest activity first, one page at a time. A conversation that receives a message while you read moves to the head: read again from the first page to see it. Pass the `nextCursor` of a page as `cursor` with the same filters (a cursor reused with other filters is an `invalid_cursor`). `from` and `to` go straight to a period of the last message: `from` is inclusive, `to` exclusive, and the period is read page by page like the whole list. `buyerId`, `itemId` and `offerStatus` combine with the other filters (AND): `buyerId` is the buyer's identifier on the marketplace (a conversation's `buyerId`); `itemId` keeps the conversations about the item, through their transactions on the marketplace (a conversation the marketplace ties to no listing of the item is not found); `offerStatus` keeps those with at least one offer currently at that status; with `itemId`, that offer is on the item through its own transaction, and an offer with no transaction of its own counts when the conversation's transactions carry the item (so the result is approximate for such an offer: it can be an offer about another item of the same conversation). An `itemId` that is not one of the seller's items answers an empty page. Requires `conversations:read`.","parameters":[{"name":"limit","in":"query","description":"Page size, 1 to 100 (50 by default).","schema":{"type":"integer","default":50,"format":"int32","maximum":100.0,"minimum":1.0}},{"name":"cursor","in":"query","description":"The `nextCursor` of the previous page.","schema":{"type":"string"}},{"name":"unread","in":"query","description":"`true`: only conversations with an unread buyer message; `false`: the others.","schema":{"type":"boolean"}},{"name":"accountId","in":"query","description":"Only the conversations of this marketplace account (`GET /accounts`).","schema":{"type":"string","format":"uuid"}},{"name":"from","in":"query","description":"Only the conversations whose last message is at or after this instant (inclusive), ISO-8601 with its offset, such as `2026-10-01T00:00:00Z`.","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","description":"Only the conversations whose last message is before this instant (exclusive), ISO-8601 with its offset; after `from`.","schema":{"type":"string","format":"date-time"}},{"name":"buyerId","in":"query","description":"Only the conversations with this buyer, by their identifier on the marketplace (a conversation's or a favorite's `buyerId`).","schema":{"type":"string"}},{"name":"itemId","in":"query","description":"Only the conversations about this item of the seller (`GET /items`), through their transactions on the marketplace.","schema":{"type":"integer","format":"int64"}},{"name":"offerStatus","in":"query","description":"Only the conversations with at least one offer currently at this status: `PENDING`, `ACCEPTED`, `REJECTED` or `CANCELED`; with `itemId`, an offer on that item (approximate for an offer with no transaction of its own: the conversation's transactions then carry the item).","schema":{"type":"string"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"A page of conversations.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConversationPage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `conversations:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["conversations:read"],"x-controlresell-pagination":"cursor"}},"/api/public/v1/conversations/{id}":{"get":{"operationId":"getConversation","tags":["Conversations"],"summary":"Read one conversation","description":"One conversation of the seller, by its identifier. Requires `conversations:read`.","parameters":[{"name":"id","in":"path","description":"The conversation's identifier, a UUID.","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"The conversation.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Conversation"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `conversations:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`conversation_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["conversations:read"]}},"/api/public/v1/conversations/{id}/messages":{"post":{"operationId":"sendMessage","tags":["Conversations"],"summary":"Send a message to the buyer","description":"Sends a text message in one of the seller's conversations. The message is created at once and sent by the account's browser: its `status` follows the sending (read it on `GET /conversations/{id}/messages`). Requires `conversations:write` and an `Idempotency-Key`.","parameters":[{"name":"id","in":"path","description":"The conversation's identifier, a UUID.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","description":"1 to 255 characters, unique per write: a retry with the same key and the same request answers the first response again (`Idempotent-Replayed: true`), without running the write twice.","required":true,"schema":{"type":"string","maxLength":255,"minLength":1}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendMessageRequest"}}},"required":true},"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"201":{"description":"The message, created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"400":{"description":"A malformed request: `bad_request`, `error_body_invalid`, or no `Idempotency-Key` (`idempotency_key_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `conversations:write` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`conversation_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The `Idempotency-Key` was used with another request (`idempotency_key_reused`), or its first request is still running (`idempotency_in_progress`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The replay guarantee is unavailable (`idempotency_unavailable`): retry later with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Refused by a business rule (`message_not_sent`): see `error.message` and `error.params`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["conversations:write"]},"get":{"operationId":"listConversationMessages","tags":["Conversations"],"summary":"List the messages of a conversation","description":"The messages of one conversation, oldest first, one page at a time: at most its 1 000 most recent messages (of the period, with `from` or `to`). Pass the `nextCursor` of a page as `cursor` with the same `from` and `to` (a cursor reused with others is an `invalid_cursor`). `from` and `to` go straight to a period: `from` is inclusive, `to` exclusive. Requires `conversations:read`.","parameters":[{"name":"id","in":"path","description":"The conversation's identifier, a UUID.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","description":"Page size, 1 to 100 (50 by default).","schema":{"type":"integer","default":50,"format":"int32","maximum":100.0,"minimum":1.0}},{"name":"cursor","in":"query","description":"The `nextCursor` of the previous page.","schema":{"type":"string"}},{"name":"from","in":"query","description":"Only the messages created at or after this instant (inclusive), ISO-8601 with its offset, such as `2026-10-01T00:00:00Z`.","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","description":"Only the messages created before this instant (exclusive), ISO-8601 with its offset; after `from`.","schema":{"type":"string","format":"date-time"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"A page of messages.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MessagePage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `conversations:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`conversation_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["conversations:read"],"x-controlresell-pagination":"cursor"}},"/api/public/v1/conversations/{id}/offers":{"post":{"operationId":"sendOffer","tags":["Conversations"],"summary":"Make the buyer a price offer","description":"Sends a price offer in one of the seller's conversations, in the currency of its account (EUR accounts only for now: `offer_currency_not_supported` otherwise). The offer is created at once and sent by the account's browser. Requires `conversations:write` and an `Idempotency-Key`.","parameters":[{"name":"id","in":"path","description":"The conversation's identifier, a UUID.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","description":"1 to 255 characters, unique per write: a retry with the same key and the same request answers the first response again (`Idempotent-Replayed: true`), without running the write twice.","required":true,"schema":{"type":"string","maxLength":255,"minLength":1}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SendOfferRequest"}}},"required":true},"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"201":{"description":"The offer's message, created.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Message"}}}},"400":{"description":"A malformed request: `bad_request`, `error_body_invalid`, or no `Idempotency-Key` (`idempotency_key_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `conversations:write` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`conversation_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The `Idempotency-Key` was used with another request (`idempotency_key_reused`), or its first request is still running (`idempotency_in_progress`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The replay guarantee is unavailable (`idempotency_unavailable`): retry later with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Refused by a business rule (`currency_mismatch`, `offer_currency_not_supported`, `message_not_sent`): see `error.message` and `error.params`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["conversations:write"]}},"/api/public/v1/customers":{"get":{"operationId":"listCustomers","tags":["Customers"],"summary":"List the seller's customers","description":"The other parties of the seller's sales and purchases, as written on their invoices: a customer is created with the invoice of its first order. The most recently created first (by `createdAt`, then `id`), one page at a time: pass the `nextCursor` of a page as `cursor` to read the next one, with the same filters (a cursor reused with other filters is an `invalid_cursor`). `from` and `to` go straight to a period of creation: `from` is inclusive, `to` exclusive. Requires `customers:read`.","parameters":[{"name":"limit","in":"query","description":"Page size, 1 to 100 (50 by default).","schema":{"type":"integer","default":50,"format":"int32","maximum":100.0,"minimum":1.0}},{"name":"cursor","in":"query","description":"The `nextCursor` of the previous page.","schema":{"type":"string"}},{"name":"from","in":"query","description":"Only the customers created at or after this instant (inclusive), ISO-8601 with its offset, such as `2026-10-01T00:00:00Z`.","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","description":"Only the customers created before this instant (exclusive), ISO-8601 with its offset; after `from`.","schema":{"type":"string","format":"date-time"}},{"name":"accountId","in":"query","description":"Only the customers of an order on this marketplace account (`GET /accounts`).","schema":{"type":"string","format":"uuid"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"A page of customers.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerPage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `customers:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["customers:read"],"x-controlresell-pagination":"cursor"}},"/api/public/v1/customers/{id}":{"get":{"operationId":"getCustomer","tags":["Customers"],"summary":"Read one customer","description":"One customer of the seller, by its identifier (`GET /customers` lists them). Requires `customers:read`.","parameters":[{"name":"id","in":"path","description":"The customer's identifier, a UUID.","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"The customer.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Customer"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `customers:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`customer_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["customers:read"]}},"/api/public/v1/favorites":{"get":{"operationId":"listFavorites","tags":["Favorites"],"summary":"List the favorites of the seller's listings","description":"The favorites of the listings of every marketplace account of the seller. A favorite is a buyer of the marketplace who put one of the seller's listings in their favorites, named by their identifier on the marketplace (`buyerId`). Its `item` is a summary of the item of the listing, `null` when ControlResell does not follow the listing. The most recent first (by `createdAt`, then `id`), one page at a time: pass the `nextCursor` of a page as `cursor` to read the next one, with the same filters (a cursor reused with other filters is an `invalid_cursor`). `from` and `to` go straight to a period of the favorite's date: `from` is inclusive, `to` exclusive. An `accountId` or an `itemId` that is not the seller's answers an empty page. Requires `items:read`.","parameters":[{"name":"limit","in":"query","description":"Page size, 1 to 100 (50 by default).","schema":{"type":"integer","default":50,"format":"int32","maximum":100.0,"minimum":1.0}},{"name":"cursor","in":"query","description":"The `nextCursor` of the previous page.","schema":{"type":"string"}},{"name":"from","in":"query","description":"Only the favorites created at or after this instant (inclusive), ISO-8601 with its offset, such as `2026-10-01T00:00:00Z`.","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","description":"Only the favorites created before this instant (exclusive), ISO-8601 with its offset; after `from`.","schema":{"type":"string","format":"date-time"}},{"name":"accountId","in":"query","description":"Only the favorites of the listings of this marketplace account (`GET /accounts`).","schema":{"type":"string","format":"uuid"}},{"name":"itemId","in":"query","description":"Only the favorites of the listings of this item (`GET /items`).","schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"A page of favorites.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FavoritePage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:read"],"x-controlresell-pagination":"cursor"}},"/api/public/v1/files":{"post":{"operationId":"uploadFile","tags":["Files"],"summary":"Register a file to send","description":"Registers a file in the seller's library and returns its identifier and the address where to send its bytes: an HTTP `PUT` of the file to `uploadUrl`, with the same `Content-Type` and exactly `size` bytes as the body, and no `Authorization` header, within 30 minutes. Photos only (`image/jpeg`, `image/png`, `image/webp`, `image/heic`, `image/heif`), at most 20 MiB. Then put the identifier in `photoIds` of `POST /items` or `PATCH /items/{id}`; an identifier whose bytes were never sent is refused there (`404 photo_not_found`). The address is valid for 30 minutes: a replay of the same `Idempotency-Key` returns the same address, so register the file again with a new key once it has expired. Requires `items:write` and an `Idempotency-Key`.","parameters":[{"name":"Idempotency-Key","in":"header","description":"1 to 255 characters, unique per write: a retry with the same key and the same request answers the first response again (`Idempotent-Replayed: true`), without running the write twice.","required":true,"schema":{"type":"string","maxLength":255,"minLength":1}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileUploadRequest"}}},"required":true},"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"201":{"description":"The file is registered: send its bytes to `uploadUrl`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FileUpload"}}}},"400":{"description":"A malformed request: `bad_request`, `error_body_invalid`, or no `Idempotency-Key` (`idempotency_key_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:write` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The `Idempotency-Key` was used with another request (`idempotency_key_reused`), or its first request is still running (`idempotency_in_progress`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The replay guarantee is unavailable (`idempotency_unavailable`): retry later with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:write"]}},"/api/public/v1/files/{id}":{"get":{"operationId":"getFile","tags":["Files"],"summary":"Read one file of the seller's library","description":"One file of the seller's library, by its identifier, with a signed link to read it (it expires: ask again rather than keep it). `status` is `PENDING` while the bytes are not on our storage yet. Requires `items:read`.","parameters":[{"name":"id","in":"path","description":"The file's identifier, a UUID.","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"The file.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/File"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`file_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:read"]}},"/api/public/v1/orders/labels":{"get":{"operationId":"listLabelsToShip","tags":["Orders"],"summary":"List the shipping labels still to ship","description":"The shipping labels of the seller's orders waiting to be shipped (label ordered or sent to the seller, order not marked prepared), oldest order first, one page at a time. Each label names its order. The links are signed and expire: read them again rather than storing them. Requires `orders:read`.","parameters":[{"name":"limit","in":"query","description":"Page size, 1 to 100 (50 by default).","schema":{"type":"integer","default":50,"format":"int32","maximum":100.0,"minimum":1.0}},{"name":"cursor","in":"query","description":"The `nextCursor` of the previous page.","schema":{"type":"string"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"A page of labels.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderLabelPage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `orders:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["orders:read"],"x-controlresell-pagination":"cursor"}},"/api/public/v1/orders":{"get":{"operationId":"listOrders","tags":["Orders"],"summary":"List the seller's orders","description":"The seller's sales and purchases, every status, the most recent first (by `date`, then `id`), one page at a time: pass the `nextCursor` of a page as `cursor` to read the next one, with the same filters (a cursor reused with other filters is an `invalid_cursor`). `bucket` narrows the list to the orders to ship or to pick up, as the app's Orders tab shows them. `from` and `to` go straight to a period: `from` is inclusive, `to` exclusive, and the period is read page by page like the whole list. An unknown filter value is a 400 `bad_request`. Requires `orders:read`.","parameters":[{"name":"limit","in":"query","description":"Page size, 1 to 100 (50 by default).","schema":{"type":"integer","default":50,"format":"int32","maximum":100.0,"minimum":1.0}},{"name":"cursor","in":"query","description":"The `nextCursor` of the previous page.","schema":{"type":"string"}},{"name":"bucket","in":"query","description":"`to_send`: the sales to ship (with their label, or paid on a marketplace that ships without one); `to_pickup`: the purchases waiting at a pickup point. Every order when absent.","schema":{"type":"string"}},{"name":"platform","in":"query","description":"Only the orders of the seller's accounts on this marketplace, as `GET /accounts` names it (`VINTED`, `SHOPIFY`, `EBAY`...).","schema":{"type":"string"}},{"name":"accountId","in":"query","description":"Only the orders of this marketplace account (`GET /accounts`).","schema":{"type":"string","format":"uuid"}},{"name":"from","in":"query","description":"Only the orders dated at or after this instant (inclusive), ISO-8601 with its offset, such as `2026-10-01T00:00:00Z`.","schema":{"type":"string","format":"date-time"}},{"name":"to","in":"query","description":"Only the orders dated before this instant (exclusive), ISO-8601 with its offset; after `from`.","schema":{"type":"string","format":"date-time"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"A page of orders.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderPage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `orders:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["orders:read"],"x-controlresell-pagination":"cursor"}},"/api/public/v1/orders/{id}":{"get":{"operationId":"getOrder","tags":["Orders"],"summary":"Read one order","description":"One sale or purchase of the seller, by its identifier (`GET /orders` lists them). Requires `orders:read`.","parameters":[{"name":"id","in":"path","description":"The order's identifier, a UUID.","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"The order.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Order"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `orders:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`order_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["orders:read"]}},"/api/public/v1/orders/{id}/labels":{"get":{"operationId":"listOrderLabels","tags":["Orders"],"summary":"The shipping labels of an order","description":"The order's shipping labels, in one page (`nextCursor` is `null`). The links are signed and expire: read them again rather than storing them. Requires `orders:read`.","parameters":[{"name":"id","in":"path","description":"The order's identifier, a UUID.","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"The order's labels.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrderLabelPage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `orders:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`order_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["orders:read"]}},"/api/public/v1/catalogs/categories":{"get":{"operationId":"listCatalogCategories","tags":["Catalogs"],"summary":"List the catalog's categories","description":"The categories an item's `categoryId` takes, flat, by identifier; each names its parent, so the tree is rebuilt from the pages (or read level by level with `parentId`). One catalog for every marketplace: `platforms` names where the category already has a mapping. Titles in the seller's language. Requires `items:read`.","parameters":[{"name":"limit","in":"query","description":"Page size, 1 to 100 (50 by default).","schema":{"type":"integer","default":50,"format":"int32","maximum":100.0,"minimum":1.0}},{"name":"cursor","in":"query","description":"The `nextCursor` of the previous page.","schema":{"type":"string"}},{"name":"parentId","in":"query","description":"Only the direct children of this category.","schema":{"type":"integer","format":"int64"}},{"name":"platform","in":"query","description":"The categories that already have a mapping on this marketplace (VINTED, EBAY…), and their ancestors so the tree rebuilds; `platforms` names the marketplaces where each category already has a mapping.","schema":{"type":"string"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"A page of categories.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogCategoryPage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`category_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:read"],"x-controlresell-pagination":"cursor"}},"/api/public/v1/catalogs/categories/{id}":{"get":{"operationId":"getCatalogCategory","tags":["Catalogs"],"summary":"Read one category","description":"One category of the catalog, by its identifier. Requires `items:read`.","parameters":[{"name":"id","in":"path","description":"The category's identifier.","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"The category.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogCategory"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`category_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:read"]}},"/api/public/v1/catalogs/categories/{id}/fields":{"get":{"operationId":"getCatalogCategoryFields","tags":["Catalogs"],"summary":"Read what an item of a category is filled with","description":"Everything an item of this category takes beyond its common fields: its size groups (`sizeId`), its enumerated fields with their values, each naming the item field it is written in (`colorIds`, `materialIds`, `state`, `packageSizeId`, or an `enumValues` entry `{\"enumKey\": field.key, \"enumValue\": value.key}`), its free-text fields (`attributes`, with whether a marketplace requires them) and the measurements. A field used on one marketplace only names it in `platform`. Requires `items:read`.","parameters":[{"name":"id","in":"path","description":"The category's identifier.","required":true,"schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"The category's fields.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogCategoryFields"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`category_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:read"]}},"/api/public/v1/catalogs/brands":{"get":{"operationId":"listCatalogBrands","tags":["Catalogs"],"summary":"List the brands","description":"The brands an item's `brandId` takes: the global ones and the seller's own (`custom`), by identifier, or with `q` the brands whose name starts with it, by name (case and accents ignored). Requires `items:read`.","parameters":[{"name":"limit","in":"query","description":"Page size, 1 to 100 (50 by default).","schema":{"type":"integer","default":50,"format":"int32","maximum":100.0,"minimum":1.0}},{"name":"cursor","in":"query","description":"The `nextCursor` of the previous page.","schema":{"type":"string"}},{"name":"q","in":"query","description":"Only the brands whose name starts with this text, 1 to 100 characters.","schema":{"type":"string"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"A page of brands.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogBrandPage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:read"],"x-controlresell-pagination":"cursor"}},"/api/public/v1/catalogs/sizes":{"get":{"operationId":"listCatalogSizes","tags":["Catalogs"],"summary":"List the sizes","description":"The sizes an item's `sizeId` takes, by identifier, each with its size group; with `categoryId`, only the sizes of that category's size groups. Requires `items:read`.","parameters":[{"name":"limit","in":"query","description":"Page size, 1 to 100 (50 by default).","schema":{"type":"integer","default":50,"format":"int32","maximum":100.0,"minimum":1.0}},{"name":"cursor","in":"query","description":"The `nextCursor` of the previous page.","schema":{"type":"string"}},{"name":"categoryId","in":"query","description":"Only the sizes that apply to this category.","schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"A page of sizes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogSizePage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`category_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:read"],"x-controlresell-pagination":"cursor"}},"/api/public/v1/catalogs/colors":{"get":{"operationId":"listCatalogColors","tags":["Catalogs"],"summary":"List the colors","description":"The colors an item's `colorIds` takes (their `id`), by identifier; with `categoryId`, only those that apply to that category. Titles in the seller's language. Requires `items:read`.","parameters":[{"name":"limit","in":"query","description":"Page size, 1 to 100 (50 by default).","schema":{"type":"integer","default":50,"format":"int32","maximum":100.0,"minimum":1.0}},{"name":"cursor","in":"query","description":"The `nextCursor` of the previous page.","schema":{"type":"string"}},{"name":"categoryId","in":"query","description":"Only the colors that apply to this category.","schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"A page of colors.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogValuePage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`category_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:read"],"x-controlresell-pagination":"cursor"}},"/api/public/v1/catalogs/conditions":{"get":{"operationId":"listCatalogConditions","tags":["Catalogs"],"summary":"List the conditions","description":"The conditions an item's `state` takes (their `id`), by identifier; with `categoryId`, only those that apply to that category. Titles in the seller's language. Requires `items:read`.","parameters":[{"name":"limit","in":"query","description":"Page size, 1 to 100 (50 by default).","schema":{"type":"integer","default":50,"format":"int32","maximum":100.0,"minimum":1.0}},{"name":"cursor","in":"query","description":"The `nextCursor` of the previous page.","schema":{"type":"string"}},{"name":"categoryId","in":"query","description":"Only the conditions that apply to this category.","schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"A page of conditions.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogValuePage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`category_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:read"],"x-controlresell-pagination":"cursor"}},"/api/public/v1/catalogs/package-sizes":{"get":{"operationId":"listCatalogPackageSizes","tags":["Catalogs"],"summary":"List the package sizes","description":"The package sizes an item's `packageSizeId` takes (their `id`), by identifier; with `categoryId`, only those that apply to that category. Titles in the seller's language. Requires `items:read`.","parameters":[{"name":"limit","in":"query","description":"Page size, 1 to 100 (50 by default).","schema":{"type":"integer","default":50,"format":"int32","maximum":100.0,"minimum":1.0}},{"name":"cursor","in":"query","description":"The `nextCursor` of the previous page.","schema":{"type":"string"}},{"name":"categoryId","in":"query","description":"Only the package sizes that apply to this category.","schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"A page of package sizes.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogValuePage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`category_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:read"],"x-controlresell-pagination":"cursor"}},"/api/public/v1/catalogs/materials":{"get":{"operationId":"listCatalogMaterials","tags":["Catalogs"],"summary":"List the materials","description":"The materials an item's `materialIds` takes (their `id`), by identifier; with `categoryId`, only those that apply to that category. Titles in the seller's language. Requires `items:read`.","parameters":[{"name":"limit","in":"query","description":"Page size, 1 to 100 (50 by default).","schema":{"type":"integer","default":50,"format":"int32","maximum":100.0,"minimum":1.0}},{"name":"cursor","in":"query","description":"The `nextCursor` of the previous page.","schema":{"type":"string"}},{"name":"categoryId","in":"query","description":"Only the materials that apply to this category.","schema":{"type":"integer","format":"int64"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"A page of materials.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CatalogValuePage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `items:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`category_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["items:read"],"x-controlresell-pagination":"cursor"}},"/api/public/v1/webhook-endpoints":{"post":{"operationId":"createWebhookEndpoint","tags":["Webhooks"],"summary":"Create a webhook endpoint","description":"Registers an `https` URL that receives the seller's events, signed with the secret this response gives (`Cache-Control: no-store`; read it again with `GET /webhook-endpoints/{id}/secret`). `eventTypes` lists the types (`GET /webhook-event-types`) or is `[\"*\"]` for all; the key must be able to read the object of each type. `payloadMode` is `light` (the default) or `full`. 5 endpoints at most per seller. Requires `webhooks:write` and an `Idempotency-Key`.","parameters":[{"name":"Idempotency-Key","in":"header","description":"1 to 255 characters, unique per write: a retry with the same key and the same request answers the first response again (`Idempotent-Replayed: true`), without running the write twice.","required":true,"schema":{"type":"string","maxLength":255,"minLength":1}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointCreateRequest"}}},"required":true},"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"201":{"description":"The endpoint and its signing secret; `Location` is its address.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreatedWebhookEndpoint"}}}},"400":{"description":"A malformed request: `bad_request`, `error_body_invalid`, or no `Idempotency-Key` (`idempotency_key_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `webhooks:write` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`webhook_endpoint_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The `Idempotency-Key` was used with another request (`idempotency_key_reused`), or its first request is still running (`idempotency_in_progress`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The replay guarantee is unavailable (`idempotency_unavailable`): retry later with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["webhooks:write"]},"get":{"operationId":"listWebhookEndpoints","tags":["Webhooks"],"summary":"List the seller's webhook endpoints","description":"Every webhook endpoint of the seller (5 at most), without their secrets: one page, `nextCursor` is always null. Open without the plan, so a seller can still see what receives their events. Requires `webhooks:read`.","responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"The endpoints.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointPage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `webhooks:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["webhooks:read"]}},"/api/public/v1/webhook-endpoints/{id}":{"delete":{"operationId":"deleteWebhookEndpoint","tags":["Webhooks"],"summary":"Delete a webhook endpoint","description":"Deletes the endpoint; its pending deliveries are abandoned. Open without the plan. Requires `webhooks:write`.","parameters":[{"name":"id","in":"path","description":"The endpoint's identifier, a UUID.","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"204":{"description":"Deleted."},"400":{"description":"A malformed request: `bad_request`, `error_body_invalid`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `webhooks:write` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`webhook_endpoint_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["webhooks:write"]},"get":{"operationId":"getWebhookEndpoint","tags":["Webhooks"],"summary":"Read one webhook endpoint","description":"One endpoint of the seller, its status and why it is disabled, without its secret. Open without the plan. Requires `webhooks:read`.","parameters":[{"name":"id","in":"path","description":"The endpoint's identifier, a UUID.","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"The endpoint.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `webhooks:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`webhook_endpoint_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["webhooks:read"]},"patch":{"operationId":"updateWebhookEndpoint","tags":["Webhooks"],"summary":"Change a webhook endpoint","description":"A JSON merge patch: a field left out keeps its value, `description: null` clears it. Changing `url` or `payloadMode` needs a key that can read everything the endpoint receives. `status` `disabled` stops the deliveries (pending ones fail); `enabled` turns it back on, its failures reset. Only `{\"status\": \"disabled\"}` is open without the plan. Requires `webhooks:write`.","parameters":[{"name":"id","in":"path","description":"The endpoint's identifier, a UUID.","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpointUpdateRequest"}}},"required":true},"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"The endpoint, changed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEndpoint"}}}},"400":{"description":"A malformed request: `bad_request`, `error_body_invalid`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `webhooks:write` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`webhook_endpoint_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["webhooks:write"]}},"/api/public/v1/webhook-endpoints/{id}/secret":{"get":{"operationId":"getWebhookSecret","tags":["Webhooks"],"summary":"Read the signing secret of a webhook endpoint","description":"The current signing secret (`Cache-Control: no-store`), and until when the previous one still signs after a rotation. Needs a key that can read everything the endpoint receives; the seller is told by e-mail (once an hour at most). Requires `webhooks:write`.","parameters":[{"name":"id","in":"path","description":"The endpoint's identifier, a UUID.","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"The secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSecret"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `webhooks:write` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`webhook_endpoint_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["webhooks:write"]}},"/api/public/v1/webhook-endpoints/{id}/rotate-secret":{"post":{"operationId":"rotateWebhookSecret","tags":["Webhooks"],"summary":"Rotate the signing secret of a webhook endpoint","description":"A new signing secret, in this response (`Cache-Control: no-store`). The previous one keeps signing too for `expiresInHours` (0 to 72, 24 by default), so the receiver can switch without losing a delivery. Needs a key that can read everything the endpoint receives; the seller is told by e-mail. Requires `webhooks:write` and an `Idempotency-Key`.","parameters":[{"name":"id","in":"path","description":"The endpoint's identifier, a UUID.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","description":"1 to 255 characters, unique per write: a retry with the same key and the same request answers the first response again (`Idempotent-Replayed: true`), without running the write twice.","required":true,"schema":{"type":"string","maxLength":255,"minLength":1}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSecretRotateRequest"}}}},"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"The new secret, and until when the previous one still signs.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookSecret"}}}},"400":{"description":"A malformed request: `bad_request`, `error_body_invalid`, or no `Idempotency-Key` (`idempotency_key_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `webhooks:write` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`webhook_endpoint_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The `Idempotency-Key` was used with another request (`idempotency_key_reused`), or its first request is still running (`idempotency_in_progress`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The replay guarantee is unavailable (`idempotency_unavailable`): retry later with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["webhooks:write"]}},"/api/public/v1/webhook-endpoints/{id}/test":{"post":{"operationId":"testWebhookEndpoint","tags":["Webhooks"],"summary":"Send a test event to a webhook endpoint","description":"Sends one signed `webhook.test` now and waits for the answer (10 seconds in all). An `Idempotency-Key` is accepted and ignored: a test is never replayed. 429 `webhook_endpoint_busy` while the endpoint already receives as many calls as it may. Requires `webhooks:write`.","parameters":[{"name":"id","in":"path","description":"The endpoint's identifier, a UUID.","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"The result of the call: its status, duration and error.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookTestResult"}}}},"400":{"description":"A malformed request: `bad_request`, `error_body_invalid`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `webhooks:write` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`webhook_endpoint_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["webhooks:write"]}},"/api/public/v1/webhook-endpoints/{id}/deliveries":{"get":{"operationId":"listWebhookDeliveries","tags":["Webhooks"],"summary":"List the deliveries of a webhook endpoint","description":"The delivery log of the last 7 days, the most recent first, one page at a time: status, attempt, HTTP status, duration and error, never the payload. Filters `status` (`pending`, `delivered`, `failed`) and `type`. Requires `webhooks:read`.","parameters":[{"name":"id","in":"path","description":"The endpoint's identifier, a UUID.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"status","in":"query","description":"Only the deliveries in this status: `pending`, `delivered` or `failed`.","schema":{"type":"string"}},{"name":"type","in":"query","description":"Only the deliveries of this event type.","schema":{"type":"string"}},{"name":"limit","in":"query","description":"Page size, 1 to 100 (50 by default).","schema":{"type":"integer","default":50,"format":"int32","maximum":100.0,"minimum":1.0}},{"name":"cursor","in":"query","description":"The `nextCursor` of the previous page.","schema":{"type":"string"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"A page of deliveries.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDeliveryPage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `webhooks:read` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`webhook_endpoint_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["webhooks:read"],"x-controlresell-pagination":"cursor"}},"/api/public/v1/webhook-endpoints/{id}/deliveries/{deliveryId}/retry":{"post":{"operationId":"retryWebhookDelivery","tags":["Webhooks"],"summary":"Send a delivery again","description":"Sends this event to this endpoint again, with the same `webhook-id`: a `failed` or `delivered` delivery goes back to `pending`, its attempts from 1 again. A delivery still `pending` (a retry or a recovery in progress) is already queued: it is not queued a second time, and is returned as it is, its attempts unchanged. 409 when the endpoint is disabled, 410 `event_expired` past 7 days. Requires `webhooks:write` and an `Idempotency-Key`.","parameters":[{"name":"id","in":"path","description":"The endpoint's identifier, a UUID.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"deliveryId","in":"path","description":"The delivery's identifier, a UUID.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","description":"1 to 255 characters, unique per write: a retry with the same key and the same request answers the first response again (`Idempotent-Replayed: true`), without running the write twice.","required":true,"schema":{"type":"string","maxLength":255,"minLength":1}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"202":{"description":"The delivery as it now is, `pending`: queued again, or already queued when it was still `pending`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookDelivery"}}}},"400":{"description":"A malformed request: `bad_request`, `error_body_invalid`, or no `Idempotency-Key` (`idempotency_key_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `webhooks:write` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`webhook_endpoint_not_found`, `webhook_delivery_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The `Idempotency-Key` was used with another request (`idempotency_key_reused`), or its first request is still running (`idempotency_in_progress`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The replay guarantee is unavailable (`idempotency_unavailable`): retry later with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["webhooks:write"]}},"/api/public/v1/webhook-endpoints/{id}/recover":{"post":{"operationId":"recoverWebhookDeliveries","tags":["Webhooks"],"summary":"Send the failed deliveries again","description":"Sends again the `failed` deliveries of this endpoint since `since` (7 days back at most), the oldest first, 1 000 at most per call: call again while `hasMore` is true. Requires `webhooks:write` and an `Idempotency-Key`.","parameters":[{"name":"id","in":"path","description":"The endpoint's identifier, a UUID.","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"Idempotency-Key","in":"header","description":"1 to 255 characters, unique per write: a retry with the same key and the same request answers the first response again (`Idempotent-Replayed: true`), without running the write twice.","required":true,"schema":{"type":"string","maxLength":255,"minLength":1}}],"requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookRecoverRequest"}}},"required":true},"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"202":{"description":"How many deliveries were queued again, and whether more remain.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookRecovery"}}}},"400":{"description":"A malformed request: `bad_request`, `error_body_invalid`, or no `Idempotency-Key` (`idempotency_key_required`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `webhooks:write` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"No such resource for this seller (`webhook_endpoint_not_found`): another seller's is a 404 too.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"The `Idempotency-Key` was used with another request (`idempotency_key_reused`), or its first request is still running (`idempotency_in_progress`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"The replay guarantee is unavailable (`idempotency_unavailable`): retry later with the same key.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-scopes":["webhooks:write"]}},"/api/public/v1/events":{"get":{"operationId":"listWebhookEvents","tags":["Webhooks"],"summary":"List the seller's events","description":"The events of the last 7 days, the oldest first from `since`, in the envelope of a light webhook body: the way to catch up after being offline. Only the types the key can read (a type asked without its scope is a 403); `type` takes several types, comma separated.","parameters":[{"name":"since","in":"query","description":"Only the events created at or after this instant, ISO-8601 with its offset, at most 7 days ago (the default).","schema":{"type":"string","format":"date-time"}},{"name":"type","in":"query","description":"Only these event types, comma separated (`GET /webhook-event-types`).","schema":{"type":"string"}},{"name":"limit","in":"query","description":"Page size, 1 to 100 (50 by default).","schema":{"type":"integer","default":50,"format":"int32","maximum":100.0,"minimum":1.0}},{"name":"cursor","in":"query","description":"The `nextCursor` of the previous page.","schema":{"type":"string"}}],"responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"A page of events.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEventPage"}}}},"400":{"description":"A malformed request: `bad_request`, `invalid_limit`, `invalid_cursor`.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"402":{"description":"The seller's plan does not include the public API (`subscriptions_limit_exceeded`, `params.limit` = `PUBLIC_API`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"The API key does not grant `the read scope of each type` (`insufficient_scope`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}},"x-controlresell-pagination":"cursor"}},"/api/public/v1/webhook-event-types":{"get":{"operationId":"listWebhookEventTypes","tags":["Webhooks"],"summary":"List the webhook event types","description":"The catalogue of event types and the read scope each one needs; `webhook.test` is only sent by `POST /webhook-endpoints/{id}/test`, never subscribed to. Open to every key, without the plan.","responses":{"default":{"description":"Any other error, in the same envelope (`{\"error\": {code, message, params, requestId}}`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"200":{"description":"The event types.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WebhookEventTypeList"}}}},"401":{"description":"No credential, or an unknown, revoked or expired one (`invalid_token`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"429":{"description":"The rate limit of the credential is reached (`rate_limited`, `Retry-After`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"An unexpected error (`internal_error`): retry later.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}},"components":{"schemas":{"ApiError":{"type":"object","title":"ApiError","required":["code","message","params","requestId"],"properties":{"code":{"type":"string"},"message":{"type":"string"},"params":{"type":"object","additionalProperties":{"type":"string"}},"requestId":{"type":"string"}}},"ErrorResponse":{"type":"object","title":"ErrorResponse","required":["error"],"properties":{"error":{"$ref":"#/components/schemas/ApiError"}}},"Me":{"type":"object","title":"Me","required":["id","username"],"properties":{"id":{"type":"integer","format":"int64"},"username":{"type":"string"},"currency":{"type":["string","null"]}}},"Money":{"type":"object","title":"Money","required":["amount","currency"],"properties":{"amount":{"type":"string"},"currency":{"type":"string"}}},"Account":{"type":"object","title":"Account","required":["id","platform","name","status"],"properties":{"id":{"type":"string","format":"uuid"},"platform":{"type":"string"},"name":{"type":"string"},"locale":{"type":["string","null"]},"status":{"type":"string"},"statusChangedAt":{"type":["string","null"],"format":"date-time"},"lockReason":{"type":["string","null"]},"cooldownEndsAt":{"type":["string","null"],"format":"date-time"},"restrictedUntil":{"type":["string","null"],"format":"date-time"},"availableBalance":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"pendingBalance":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]}}},"AccountPage":{"type":"object","title":"AccountPage","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Account"}},"nextCursor":{"type":["string","null"]}}},"ItemPhoto":{"type":"object","title":"ItemPhoto","required":["id"],"properties":{"id":{"type":"string","format":"uuid"},"index":{"type":["integer","null"],"format":"int64"},"url":{"type":["string","null"]}}},"ItemEnumValue":{"type":"object","title":"ItemEnumValue","required":["enumKey","enumValue"],"properties":{"enumKey":{"type":"string"},"enumValue":{"type":"string"}}},"ItemAttribute":{"type":"object","title":"ItemAttribute","required":["fieldKey","value"],"properties":{"fieldKey":{"type":"string"},"value":{"type":"string"}}},"ItemCustomField":{"type":"object","title":"ItemCustomField","required":["fieldId","value"],"properties":{"fieldId":{"type":"integer","format":"int64"},"value":{"type":"string"}}},"Item":{"type":"object","title":"Item","required":["id","name","photos","colorIds","labels","sold","materialIds","enumValues","attributes","customFields","createdAt","updatedAt"],"properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"sku":{"type":["string","null"]},"description":{"type":["string","null"]},"photos":{"type":"array","items":{"$ref":"#/components/schemas/ItemPhoto"}},"categoryId":{"type":["integer","null"],"format":"int64"},"brandId":{"type":["integer","null"],"format":"int64"},"sizeId":{"type":["integer","null"],"format":"int64"},"colorIds":{"type":"array","items":{"type":"integer","format":"int64"}},"state":{"type":["integer","null"],"format":"int64"},"sex":{"type":["string","null"]},"labels":{"type":"array","items":{"type":"string"}},"sold":{"type":"boolean"},"packageSizeId":{"type":["integer","null"],"format":"int64"},"materialIds":{"type":"array","items":{"type":"integer","format":"int64"}},"measurementLength":{"type":["number","null"]},"measurementWidth":{"type":["number","null"]},"enumValues":{"type":"array","items":{"$ref":"#/components/schemas/ItemEnumValue"}},"attributes":{"type":"array","items":{"$ref":"#/components/schemas/ItemAttribute"}},"customFields":{"type":"array","items":{"$ref":"#/components/schemas/ItemCustomField"}},"estimatedPrice":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"purchasePrice":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"purchaseDate":{"type":["string","null"],"format":"date-time"},"purchasePlaceId":{"type":["integer","null"],"format":"int64"},"sellingPrice":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"sellingDate":{"type":["string","null"],"format":"date-time"},"sellingPlaceId":{"type":["integer","null"],"format":"int64"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ItemPage":{"type":"object","title":"ItemPage","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Item"}},"nextCursor":{"type":["string","null"]}}},"Listing":{"type":"object","title":"Listing","required":["id","itemId","accountId","platformId","url","price","status","publishedAt","updatedAt"],"properties":{"id":{"type":"string","format":"uuid"},"itemId":{"type":"integer","format":"int64"},"accountId":{"type":"string","format":"uuid"},"platform":{"type":["string","null"]},"platformId":{"type":"string"},"url":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"status":{"type":"string"},"publishedAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"viewsCount":{"type":["integer","null"],"format":"int64"},"favoritesCount":{"type":["integer","null"],"format":"int64"},"boostedUntil":{"type":["string","null"],"format":"date-time"}}},"ListingPage":{"type":"object","title":"ListingPage","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Listing"}},"nextCursor":{"type":["string","null"]}}},"FavoriteItem":{"type":"object","title":"FavoriteItem","required":["id","name","price","sold"],"properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"price":{"$ref":"#/components/schemas/Money"},"sold":{"type":"boolean"}}},"Favorite":{"type":"object","title":"Favorite","required":["id","accountId","buyerId","createdAt"],"properties":{"id":{"type":"string","format":"uuid"},"accountId":{"type":"string","format":"uuid"},"platform":{"type":["string","null"]},"buyerId":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"messageSentAt":{"type":["string","null"],"format":"date-time"},"listingId":{"type":["string","null"],"format":"uuid"},"item":{"anyOf":[{"$ref":"#/components/schemas/FavoriteItem"},{"type":"null"}]}}},"FavoritePage":{"type":"object","title":"FavoritePage","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Favorite"}},"nextCursor":{"type":["string","null"]}}},"PublishRequest":{"type":"object","title":"PublishRequest","required":["accountIds"],"properties":{"accountIds":{"type":"array","items":{"type":"string","format":"uuid"}},"cancelBeforeProceeding":{"type":["boolean","null"]},"scheduledAt":{"type":["string","null"],"format":"date-time"}}},"ScheduledAction":{"type":"object","title":"ScheduledAction","required":["itemId","action","accountIds","scheduledAt"],"properties":{"itemId":{"type":"integer","format":"int64"},"action":{"type":"string"},"accountIds":{"type":"array","items":{"type":"string","format":"uuid"}},"scheduledAt":{"type":"string","format":"date-time"}}},"PriceDropRequest":{"type":"object","title":"PriceDropRequest","required":["type","value"],"properties":{"type":{"type":"string"},"value":{"type":"string"},"roundType":{"type":["string","null"]},"roundStep":{"type":["string","null"]},"accountIds":{"type":["array","null"],"items":{"type":"string","format":"uuid"}},"scheduledAt":{"type":["string","null"],"format":"date-time"}}},"RepublishRequest":{"type":"object","title":"RepublishRequest","properties":{"accountIds":{"type":["array","null"],"items":{"type":"string","format":"uuid"}},"priceDrop":{"anyOf":[{"$ref":"#/components/schemas/PriceDropRequest"},{"type":"null"}]},"priceVariation":{"type":["string","null"]},"allowIfDeleted":{"type":["boolean","null"]},"scheduledAt":{"type":["string","null"],"format":"date-time"}}},"ItemUpdateRequest":{"type":"object","title":"ItemUpdateRequest","properties":{"name":{"type":["string","null"]},"sku":{"type":["string","null"]},"description":{"type":["string","null"]},"photoIds":{"type":["array","null"],"items":{"type":"string","format":"uuid"}},"categoryId":{"type":["integer","null"],"format":"int64"},"brandId":{"type":["integer","null"],"format":"int64"},"sizeId":{"type":["integer","null"],"format":"int64"},"colorIds":{"type":["array","null"],"items":{"type":"integer","format":"int64"}},"state":{"type":["integer","null"],"format":"int64"},"sex":{"type":["string","null"]},"labels":{"type":["array","null"],"items":{"type":"string"}},"sold":{"type":["boolean","null"]},"packageSizeId":{"type":["integer","null"],"format":"int64"},"materialIds":{"type":["array","null"],"items":{"type":"integer","format":"int64"}},"measurementLength":{"type":["number","null"]},"measurementWidth":{"type":["number","null"]},"enumValues":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ItemEnumValue"}},"attributes":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ItemAttribute"}},"customFields":{"type":["array","null"],"items":{"$ref":"#/components/schemas/ItemCustomField"}},"estimatedPrice":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"purchasePrice":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"purchaseDate":{"type":["string","null"],"format":"date-time"},"purchasePlaceId":{"type":["integer","null"],"format":"int64"},"sellingPrice":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"sellingDate":{"type":["string","null"],"format":"date-time"},"sellingPlaceId":{"type":["integer","null"],"format":"int64"}}},"ItemCreateRequest":{"type":"object","title":"ItemCreateRequest","required":["name"],"properties":{"name":{"type":"string"},"sku":{"type":["string","null"]},"description":{"type":["string","null"]},"photoIds":{"type":"array","items":{"type":"string","format":"uuid"}},"categoryId":{"type":["integer","null"],"format":"int64"},"brandId":{"type":["integer","null"],"format":"int64"},"sizeId":{"type":["integer","null"],"format":"int64"},"colorIds":{"type":"array","items":{"type":"integer","format":"int64"}},"state":{"type":["integer","null"],"format":"int64"},"sex":{"type":["string","null"]},"labels":{"type":"array","items":{"type":"string"}},"sold":{"type":"boolean"},"packageSizeId":{"type":["integer","null"],"format":"int64"},"materialIds":{"type":"array","items":{"type":"integer","format":"int64"}},"measurementLength":{"type":["number","null"]},"measurementWidth":{"type":["number","null"]},"enumValues":{"type":"array","items":{"$ref":"#/components/schemas/ItemEnumValue"}},"attributes":{"type":"array","items":{"$ref":"#/components/schemas/ItemAttribute"}},"customFields":{"type":"array","items":{"$ref":"#/components/schemas/ItemCustomField"}},"estimatedPrice":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"purchasePrice":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"purchaseDate":{"type":["string","null"],"format":"date-time"},"purchasePlaceId":{"type":["integer","null"],"format":"int64"},"sellingPrice":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"sellingDate":{"type":["string","null"],"format":"date-time"},"sellingPlaceId":{"type":["integer","null"],"format":"int64"}}},"Offer":{"type":"object","title":"Offer","required":["price","originalPrice","status"],"properties":{"price":{"$ref":"#/components/schemas/Money"},"originalPrice":{"$ref":"#/components/schemas/Money"},"status":{"type":"string"}}},"Message":{"type":"object","title":"Message","required":["id","conversationId","author","type","status","createdAt"],"properties":{"id":{"type":"string","format":"uuid"},"conversationId":{"type":"string","format":"uuid"},"author":{"type":"string"},"type":{"type":"string"},"status":{"type":"string"},"body":{"type":["string","null"]},"offer":{"anyOf":[{"$ref":"#/components/schemas/Offer"},{"type":"null"}]},"createdAt":{"type":"string","format":"date-time"}}},"Conversation":{"type":"object","title":"Conversation","required":["id","accountId","unread","pinned","updatedAt"],"properties":{"id":{"type":"string","format":"uuid"},"accountId":{"type":"string","format":"uuid"},"platform":{"type":["string","null"]},"buyerLogin":{"type":["string","null"]},"buyerId":{"type":["string","null"]},"unread":{"type":"boolean"},"pinned":{"type":"boolean"},"lastMessage":{"anyOf":[{"$ref":"#/components/schemas/Message"},{"type":"null"}]},"lastMessageAt":{"type":["string","null"],"format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"ConversationPage":{"type":"object","title":"ConversationPage","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Conversation"}},"nextCursor":{"type":["string","null"]}}},"MessagePage":{"type":"object","title":"MessagePage","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Message"}},"nextCursor":{"type":["string","null"]}}},"SendMessageRequest":{"type":"object","title":"SendMessageRequest","required":["text"],"properties":{"text":{"type":"string"}}},"SendOfferRequest":{"type":"object","title":"SendOfferRequest","required":["price"],"properties":{"price":{"$ref":"#/components/schemas/Money"},"transactionId":{"type":["string","null"],"format":"uuid"}}},"CustomerAddress":{"type":"object","title":"CustomerAddress","properties":{"line1":{"type":["string","null"]},"line2":{"type":["string","null"]},"city":{"type":["string","null"]},"postalCode":{"type":["string","null"]},"country":{"type":["string","null"]}}},"Customer":{"type":"object","title":"Customer","required":["id","firstName","lastName","address","createdAt"],"properties":{"id":{"type":"string","format":"uuid"},"firstName":{"type":"string"},"lastName":{"type":"string"},"email":{"type":["string","null"]},"address":{"$ref":"#/components/schemas/CustomerAddress"},"createdAt":{"type":"string","format":"date-time"}}},"CustomerPage":{"type":"object","title":"CustomerPage","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Customer"}},"nextCursor":{"type":["string","null"]}}},"FileUploadRequest":{"type":"object","title":"FileUploadRequest","required":["filename","contentType","size"],"properties":{"filename":{"type":"string"},"contentType":{"type":"string"},"size":{"type":"integer","format":"int64"}}},"FileUpload":{"type":"object","title":"FileUpload","required":["id","uploadUrl"],"properties":{"id":{"type":"string","format":"uuid"},"uploadUrl":{"type":"string"}}},"File":{"type":"object","title":"File","required":["id","url","createdAt"],"properties":{"id":{"type":"string","format":"uuid"},"status":{"type":["string","null"]},"url":{"type":"string"},"createdAt":{"type":"string","format":"date-time"}}},"OrderLabel":{"type":"object","title":"OrderLabel","required":["id","orderId"],"properties":{"id":{"type":"string","format":"uuid"},"orderId":{"type":"string","format":"uuid"},"carrier":{"type":["string","null"]},"url":{"type":["string","null"]},"originalUrl":{"type":["string","null"]},"createdAt":{"type":["string","null"],"format":"date-time"}}},"OrderLabelPage":{"type":"object","title":"OrderLabelPage","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/OrderLabel"}},"nextCursor":{"type":["string","null"]}}},"OrderItem":{"type":"object","title":"OrderItem","required":["listingId"],"properties":{"listingId":{"type":"string","format":"uuid"},"itemId":{"type":["integer","null"],"format":"int64"}}},"Order":{"type":"object","title":"Order","required":["id","accountId","type","status","platformOrderId","price","prepared","date","items"],"properties":{"id":{"type":"string","format":"uuid"},"accountId":{"type":"string","format":"uuid"},"type":{"type":"string"},"status":{"type":"string"},"platformOrderId":{"type":"string"},"conversationId":{"type":["string","null"],"format":"uuid"},"transactionId":{"type":["string","null"],"format":"uuid"},"price":{"$ref":"#/components/schemas/Money"},"platformFee":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"shippingFee":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"shippingVat":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"vatAmount":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"totalAmount":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"refundAmount":{"anyOf":[{"$ref":"#/components/schemas/Money"},{"type":"null"}]},"prepared":{"type":"boolean"},"date":{"type":"string","format":"date-time"},"items":{"type":"array","items":{"$ref":"#/components/schemas/OrderItem"}}}},"OrderPage":{"type":"object","title":"OrderPage","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/Order"}},"nextCursor":{"type":["string","null"]}}},"CatalogCategory":{"type":"object","title":"CatalogCategory","required":["id","title","hasChildren","sizeGroupIds","platforms"],"properties":{"id":{"type":"integer","format":"int64"},"parentId":{"type":["integer","null"],"format":"int64"},"title":{"type":"string"},"hasChildren":{"type":"boolean"},"sizeGroupIds":{"type":"array","items":{"type":"integer","format":"int64"}},"platforms":{"type":"array","items":{"type":"string"}}}},"CatalogCategoryPage":{"type":"object","title":"CatalogCategoryPage","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CatalogCategory"}},"nextCursor":{"type":["string","null"]}}},"CatalogValue":{"type":"object","title":"CatalogValue","required":["id","key","title"],"properties":{"id":{"type":"integer","format":"int64"},"key":{"type":"string"},"title":{"type":"string"}}},"CatalogEnumField":{"type":"object","title":"CatalogEnumField","required":["key","target","values"],"properties":{"key":{"type":"string"},"title":{"type":["string","null"]},"target":{"type":"string"},"multiple":{"type":["boolean","null"]},"platform":{"type":["string","null"]},"values":{"type":"array","items":{"$ref":"#/components/schemas/CatalogValue"}}}},"CatalogTextField":{"type":"object","title":"CatalogTextField","required":["key","type","required"],"properties":{"key":{"type":"string"},"title":{"type":["string","null"]},"type":{"type":"string"},"required":{"type":"boolean"},"validation":{"type":["string","null"]},"platform":{"type":["string","null"]}}},"CatalogMeasurement":{"type":"object","title":"CatalogMeasurement","required":["target","unit","required"],"properties":{"target":{"type":"string"},"unit":{"type":"string"},"required":{"type":"boolean"}}},"CatalogCategoryFields":{"type":"object","title":"CatalogCategoryFields","required":["categoryId","sizeGroupIds","enumFields","textFields","measurements"],"properties":{"categoryId":{"type":"integer","format":"int64"},"sizeGroupIds":{"type":"array","items":{"type":"integer","format":"int64"}},"enumFields":{"type":"array","items":{"$ref":"#/components/schemas/CatalogEnumField"}},"textFields":{"type":"array","items":{"$ref":"#/components/schemas/CatalogTextField"}},"measurements":{"type":"array","items":{"$ref":"#/components/schemas/CatalogMeasurement"}}}},"CatalogBrand":{"type":"object","title":"CatalogBrand","required":["id","name","custom"],"properties":{"id":{"type":"integer","format":"int64"},"name":{"type":"string"},"custom":{"type":"boolean"}}},"CatalogBrandPage":{"type":"object","title":"CatalogBrandPage","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CatalogBrand"}},"nextCursor":{"type":["string","null"]}}},"CatalogSize":{"type":"object","title":"CatalogSize","required":["id","title","sizeGroupId","sizeGroupTitle"],"properties":{"id":{"type":"integer","format":"int64"},"title":{"type":"string"},"sizeGroupId":{"type":"integer","format":"int64"},"sizeGroupTitle":{"type":"string"}}},"CatalogSizePage":{"type":"object","title":"CatalogSizePage","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CatalogSize"}},"nextCursor":{"type":["string","null"]}}},"CatalogValuePage":{"type":"object","title":"CatalogValuePage","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/CatalogValue"}},"nextCursor":{"type":["string","null"]}}},"WebhookEndpoint":{"type":"object","title":"WebhookEndpoint","required":["id","url","eventTypes","payloadMode","status","apiVersion","createdAt","updatedAt"],"properties":{"id":{"type":"string","format":"uuid"},"url":{"type":"string"},"description":{"type":["string","null"]},"eventTypes":{"type":"array","items":{"type":"string"}},"payloadMode":{"type":"string"},"status":{"type":"string"},"disabledReason":{"type":["string","null"]},"apiVersion":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"},"lastSuccessAt":{"type":["string","null"],"format":"date-time"}}},"WebhookEndpointPage":{"type":"object","title":"WebhookEndpointPage","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEndpoint"}},"nextCursor":{"type":["string","null"]}}},"WebhookEndpointCreateRequest":{"type":"object","title":"WebhookEndpointCreateRequest","required":["url","eventTypes"],"properties":{"url":{"type":"string"},"eventTypes":{"type":"array","items":{"type":"string"}},"description":{"type":["string","null"]},"payloadMode":{"type":["string","null"]}}},"CreatedWebhookEndpoint":{"type":"object","title":"CreatedWebhookEndpoint","required":["endpoint","secret"],"properties":{"endpoint":{"$ref":"#/components/schemas/WebhookEndpoint"},"secret":{"type":"string"}}},"WebhookEndpointUpdateRequest":{"type":"object","title":"WebhookEndpointUpdateRequest","properties":{"url":{"type":["string","null"]},"description":{"type":["string","null"]},"eventTypes":{"type":["array","null"],"items":{"type":"string"}},"payloadMode":{"type":["string","null"]},"status":{"type":["string","null"]}}},"WebhookSecret":{"type":"object","title":"WebhookSecret","required":["secret"],"properties":{"secret":{"type":"string"},"previousSecretExpiresAt":{"type":["string","null"],"format":"date-time"}}},"WebhookSecretRotateRequest":{"type":"object","title":"WebhookSecretRotateRequest","properties":{"expiresInHours":{"type":["integer","null"],"format":"int64"}}},"WebhookTestResult":{"type":"object","title":"WebhookTestResult","required":["success","durationMs"],"properties":{"success":{"type":"boolean"},"statusCode":{"type":["integer","null"],"format":"int64"},"durationMs":{"type":"integer","format":"int64"},"error":{"type":["string","null"]}}},"WebhookDelivery":{"type":"object","title":"WebhookDelivery","required":["id","eventId","eventType","status","attempt","createdAt","updatedAt"],"properties":{"id":{"type":"string","format":"uuid"},"eventId":{"type":"string","format":"uuid"},"eventType":{"type":"string"},"status":{"type":"string"},"attempt":{"type":"integer","format":"int64"},"httpStatus":{"type":["integer","null"],"format":"int64"},"error":{"type":["string","null"]},"durationMs":{"type":["integer","null"],"format":"int64"},"nextAttemptAt":{"type":["string","null"],"format":"date-time"},"createdAt":{"type":"string","format":"date-time"},"updatedAt":{"type":"string","format":"date-time"}}},"WebhookDeliveryPage":{"type":"object","title":"WebhookDeliveryPage","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookDelivery"}},"nextCursor":{"type":["string","null"]}}},"WebhookRecoverRequest":{"type":"object","title":"WebhookRecoverRequest","required":["since"],"properties":{"since":{"type":"string","format":"date-time"}}},"WebhookRecovery":{"type":"object","title":"WebhookRecovery","required":["count","hasMore"],"properties":{"count":{"type":"integer","format":"int64"},"hasMore":{"type":"boolean"}}},"WebhookEvent":{"type":"object","title":"WebhookEvent","required":["id","type","createdAt","apiVersion","sellerId","data"],"properties":{"id":{"type":"string","format":"uuid"},"type":{"type":"string"},"createdAt":{"type":"string","format":"date-time"},"apiVersion":{"type":"string"},"sellerId":{"type":"integer","format":"int64"},"data":{"type":"object","additionalProperties":true}}},"WebhookEventPage":{"type":"object","title":"WebhookEventPage","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEvent"}},"nextCursor":{"type":["string","null"]}}},"WebhookEventType":{"type":"object","title":"WebhookEventType","required":["type"],"properties":{"type":{"type":"string"},"scope":{"type":["string","null"]}}},"WebhookEventTypeList":{"type":"object","title":"WebhookEventTypeList","required":["data"],"properties":{"data":{"type":"array","items":{"$ref":"#/components/schemas/WebhookEventType"}}}}},"securitySchemes":{"bearerAuth":{"scheme":"bearer","description":"An API key of the seller, sent as `Authorization: Bearer <key>`.","type":"http"}}},"security":[{"bearerAuth":[]}],"tags":[{"name":"Me","description":"The seller the API key acts for."},{"name":"Accounts","description":"The seller's marketplace accounts (Vinted, eBay…)."},{"name":"Items","description":"The items of the seller's stock and where they are listed."},{"name":"Files","description":"The seller's files (photos): send one, read it back, then put its identifier on an item."},{"name":"Conversations","description":"The conversations with buyers and their messages."},{"name":"Favorites","description":"The favorites buyers put on the seller's listings."},{"name":"Customers","description":"The seller's customers, as written on their invoices."},{"name":"Orders","description":"The seller's orders, read one at a time, and their shipping labels."},{"name":"Catalogs","description":"The catalog an item's identifiers come from: categories and their fields, brands, sizes, colors, conditions, package sizes, materials."},{"name":"Webhooks","description":"The seller's webhook endpoints, their deliveries, and the events of the last 7 days."}]}