Submit a draft for publication
POST
/api/v1/listings/{id}/publishPaid publication prepares a checkout for confirmation in Motano. Requires the LISTING_API_PAYMENTS_ENABLED flag.
Publication validates all listing-type requirements. A visible listing has status active and publicationState public.
Required scope listings:write
Parameters
| Name | Location | Type | Required | Description |
|---|---|---|---|---|
id | path | string | Yes | min. characters 1 · max. characters 120 |
If-Match | header | string | Yes | The latest listing ETag returned by the API. |
Idempotency-Key | header | string | Yes | Request UUID. Retry with the same key within 7 days. format uuid |
Request body
Schema PublishOrRenewInput
| Name | Type | Required | Description |
|---|---|---|---|
packageTier | "free" | "basic" | "plus" | "pro" | No | "free" | "basic" | "plus" | "pro" |
singlePromotionKeys | "refresh_bump" | "top_list" | "homepage" | "premium_map" | "hot_buyer_push"[] | No | max. items 5 |
invoiceBilling | object | No | — |
JSON Schema
{
"$ref": "#/components/schemas/PublishOrRenewInput"
}Responses
200 Draft published or payment prepared.ETag- Resource version for the If-Match header.
application/jsonSchema MutationReceipt
| Name | Type | Required | Description |
|---|---|---|---|
id | string | Yes | — |
status | "draft" | "payment_required" | "active" | "expired" | "sold" | Yes | — |
publicationState | "public" | "pending" | "hidden" | Yes | — |
updatedAt | string | Yes | format date-time |
publicPath | string | null | Yes | — |
paymentPath | string | No | — |
payment | PaymentReceipt | No | — |
archiveFeedback | object | No | — |
JSON Schema
{
"$ref": "#/components/schemas/MutationReceipt"
}409 Request processing error.application/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | 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/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | 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/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | 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/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | 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/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | 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/jsonSchema object
| Name | Type | Required | Description |
|---|---|---|---|
code | string | Yes | — |
message | string | Yes | — |
requestId | string | Yes | — |
issues | object[] | 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.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"
}
}
}