---
title: "Publish or unpublish a collection — estimate"
method: POST
path: "/v1/messaging/commerce/collections/{collectionId}/channels/estimate"
tags: ["Commerce"]
---

# Publish or unpublish a collection — estimate

`POST /v1/messaging/commerce/collections/{collectionId}/channels/estimate`

## Request

- Base URL: `https://apihub.co.il`
- URL: `https://apihub.co.il/v1/messaging/commerce/collections/{collectionId}/channels/estimate`
- Auth: HTTP bearer

Price the request without executing it. Same body as `POST /v1/messaging/commerce/collections/{collectionId}/channels`.

## Path parameters

- `collectionId` string, required: Platform-native id.

## Request body

- object
  - `publish` string[]: Channel ids from GET /v1/commerce/channels.
  - `accountId` string, required
  - `unpublish` string[]

## Response `200`

Estimate

- Estimate
  - `operation` string
  - `estimated_credits` number
  - `credits_to_reserve` number
  - `estimated_usage` object
  - `note` string, nullable
  - `balance` object
    - `available` number
  - `sufficient` boolean

---

[API](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai.md) · [All operations](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/llms.txt) · [OpenAPI document](https://skmtc.dev/apihub/apis/apihub-one-api-for-chat-image-video-ai/revisions/a8caa42835ce?raw)
