API reference

Production access is closed · 37 operations

Submit feedback after archiving

POST/api/v1/listings/{id}/archive-feedback

Feedback saved after the listing ended.

Required scope listings:write

Jump to the example

Parameters

NameLocationTypeRequiredDescription
idpathstringYesmin. characters 1 · max. characters 120
If-MatchheaderstringYesThe latest listing ETag returned by the API.
Idempotency-KeyheaderstringYesRequest UUID. Retry with the same key within 7 days. format uuid

Request body

Schema ArchiveFeedbackInput
NameTypeRequiredDescription
outcome"sold" | "not_sold" | "other"Yes"sold" | "not_sold" | "other"
recommendationScoreintegerYesminimum 1 · maximum 10
notestringNomax. characters 1000
JSON Schema
{
  "$ref": "#/components/schemas/ArchiveFeedbackInput"
}

Responses

200 Feedback saved after the listing ended.
ETag
Resource version for the If-Match header.
application/json
Schema MutationReceipt
NameTypeRequiredDescription
idstringYes—
status"draft" | "payment_required" | "active" | "expired" | "sold"Yes—
publicationState"public" | "pending" | "hidden"Yes—
updatedAtstringYesformat date-time
publicPathstring | nullYes—
paymentPathstringNo—
paymentPaymentReceiptNo—
archiveFeedbackobjectNo—
JSON Schema
{
  "$ref": "#/components/schemas/MutationReceipt"
}
409 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
412 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
422 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
428 Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
JSON Schema
{
  "type": "object",
  "required": [
    "code",
    "message",
    "requestId"
  ],
  "properties": {
    "code": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "requestId": {
      "type": "string"
    },
    "issues": {
      "type": "array",
      "items": {
        "type": "object"
      }
    }
  }
}
Other API errors Request processing error.
application/json
Schema object
NameTypeRequiredDescription
codestringYes—
messagestringYes—
requestIdstringYes—
issuesobject[]No—
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 A valid API key is required.
403 The scope is missing or the production request does not use HTTPS.
429 Rate limit exceeded. Check Retry-After.
503 Access is closed or the service is temporarily unavailable. Check code.

Handle errors and rate limits ↗

Related schemas

ArchiveFeedbackInput
{
  "type": "object",
  "properties": {
    "outcome": {
      "type": "string",
      "enum": [
        "sold",
        "not_sold",
        "other"
      ]
    },
    "recommendationScore": {
      "type": "integer",
      "minimum": 1,
      "maximum": 10
    },
    "note": {
      "type": "string",
      "maxLength": 1000
    }
  },
  "required": [
    "outcome",
    "recommendationScore"
  ],
  "additionalProperties": false
}
MutationReceipt
{
  "type": "object",
  "required": [
    "id",
    "status",
    "publicationState",
    "updatedAt",
    "publicPath"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "status": {
      "enum": [
        "draft",
        "payment_required",
        "active",
        "expired",
        "sold"
      ]
    },
    "publicationState": {
      "enum": [
        "public",
        "pending",
        "hidden"
      ]
    },
    "updatedAt": {
      "type": "string",
      "format": "date-time"
    },
    "publicPath": {
      "type": [
        "string",
        "null"
      ]
    },
    "paymentPath": {
      "type": "string"
    },
    "payment": {
      "$ref": "#/components/schemas/PaymentReceipt"
    },
    "archiveFeedback": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string"
        },
        "outcome": {
          "enum": [
            "sold",
            "not_sold",
            "other"
          ]
        },
        "recommendationScore": {
          "type": [
            "integer",
            "null"
          ],
          "minimum": 1,
          "maximum": 10
        },
        "updatedAt": {
          "type": "string",
          "format": "date-time"
        }
      },
      "required": [
        "id",
        "outcome",
        "recommendationScore",
        "updatedAt"
      ]
    }
  }
}
PaymentReceipt
{
  "type": "object",
  "required": [
    "id",
    "amountCents",
    "currency",
    "status"
  ],
  "properties": {
    "id": {
      "type": "string"
    },
    "amountCents": {
      "type": "integer",
      "minimum": 1
    },
    "currency": {
      "type": "string"
    },
    "status": {
      "type": "string"
    }
  }
}