API reference

Production access is closed · 37 operations

Renew a listing

POST/api/v1/listings/{id}/renew

Paid renewal prepares a checkout for confirmation in Motano. Requires the LISTING_API_PAYMENTS_ENABLED flag.

You can reopen an expired listing or renew an active one within two days of expiry.

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 PublishOrRenewInput
NameTypeRequiredDescription
packageTier"free" | "basic" | "plus" | "pro"No"free" | "basic" | "plus" | "pro"
singlePromotionKeys"refresh_bump" | "top_list" | "homepage" | "premium_map" | "hot_buyer_push"[]Nomax. items 5
invoiceBillingobjectNo—
JSON Schema
{
  "$ref": "#/components/schemas/PublishOrRenewInput"
}

Responses

200 Listing renewed or payment prepared.
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"
      }
    }
  }
}
503 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.

Handle errors and rate limits ↗

Related schemas

PublishOrRenewInput
{
  "type": "object",
  "properties": {
    "packageTier": {
      "type": "string",
      "enum": [
        "free",
        "basic",
        "plus",
        "pro"
      ]
    },
    "singlePromotionKeys": {
      "maxItems": 5,
      "type": "array",
      "items": {
        "type": "string",
        "enum": [
          "refresh_bump",
          "top_list",
          "homepage",
          "premium_map",
          "hot_buyer_push"
        ]
      }
    },
    "invoiceBilling": {
      "type": "object",
      "properties": {
        "recipientType": {
          "type": "string",
          "enum": [
            "private",
            "company"
          ]
        },
        "name": {
          "type": "string",
          "minLength": 1,
          "maxLength": 180,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "nip": {
          "type": "string",
          "pattern": "^\\d{10}$"
        },
        "street": {
          "type": "string",
          "minLength": 1,
          "maxLength": 160,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "buildingNumber": {
          "type": "string",
          "minLength": 1,
          "maxLength": 30,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "apartmentNumber": {
          "type": "string",
          "minLength": 1,
          "maxLength": 30,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "address": {
          "type": "string",
          "minLength": 1,
          "maxLength": 220,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "postalCode": {
          "type": "string",
          "pattern": "^\\d{2}-\\d{3}$"
        },
        "city": {
          "type": "string",
          "minLength": 1,
          "maxLength": 120,
          "pattern": "^[^\\p{Cc}\\p{Cf}]+$"
        },
        "email": {
          "type": "string",
          "maxLength": 160,
          "format": "email",
          "pattern": "^(?!\\.)(?!.*\\.\\.)([A-Za-z0-9_'+\\-\\.]*)[A-Za-z0-9_+-]@([A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"
        },
        "phone": {
          "type": "string",
          "maxLength": 40,
          "pattern": "^[\\d+\\s()-]+$"
        }
      },
      "required": [
        "recipientType",
        "name",
        "postalCode",
        "city"
      ],
      "additionalProperties": false
    }
  },
  "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"
    }
  }
}