Referencja API

Dostęp produkcyjny zamknięty · 37 operacji

Pobierz własne ogłoszenia

GET/api/v1/listings

Strona ogłoszeń właściciela klucza.

Wyniki obejmują oferty właściciela klucza. Gdy nextCursor ma wartość, przekaż ją w parametrze cursor następnego żądania.

Wymagany zakres listings:read

Przejdź do przykładu

Parametry

NazwaMiejsceTypWymaganyOpis
limitqueryintegerNieminimum 1 · maksimum 50 · domyślnie 25
cursorquerystringNiemaks. znaków 250

Odpowiedzi

200 Strona ogłoszeń właściciela klucza.
application/json
Schemat object
NazwaTypWymaganyOpis
itemsListing[]Tak—
nextCursorstring | nullTak—
JSON Schema
{
  "type": "object",
  "required": [
    "items",
    "nextCursor"
  ],
  "properties": {
    "items": {
      "type": "array",
      "items": {
        "$ref": "#/components/schemas/Listing"
      }
    },
    "nextCursor": {
      "type": [
        "string",
        "null"
      ]
    }
  }
}
Pozostałe błędy API Błąd przetwarzania żądania.
application/json
Schemat object
NazwaTypWymaganyOpis
codestringTak—
messagestringTak—
requestIdstringTak—
issuesobject[]Nie—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
401 Brak prawidłowego klucza API.
403 Brak zakresu wymaganego przez operację lub żądanie bez HTTPS na produkcji.
429 Przekroczono limit zapytań. Sprawdź Retry-After.
503 Dostęp jest zamknięty lub usługa jest chwilowo niedostępna. Sprawdź code.

Obsługa błędów i limitów ↗

Powiązane schematy

Listing
{
  "type": "object",
  "required": [
    "id",
    "title",
    "price",
    "category",
    "createdAt",
    "updatedAt",
    "expiresAt",
    "status",
    "publicationState",
    "publicPath"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "title": {
      "type": "string"
    },
    "price": {
      "type": "integer"
    },
    "category": {
      "type": "string"
    },
    "createdAt": {
      "type": "string",
      "format": "date-time"
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "expiresAt": {
      "type": [
        "string",
        "null"
      ],
      "format": "date-time"
    },
    "status": {
      "enum": [
        "draft",
        "payment_required",
        "active",
        "expired",
        "sold"
      ]
    },
    "publicationState": {
      "enum": [
        "public",
        "pending",
        "hidden"
      ]
    },
    "publicPath": {
      "type": [
        "string",
        "null"
      ]
    },
    "paymentPath": {
      "type": "string"
    }
  }
}