Skip to main content
POST

Create a sales channel

Scope:sales:sales-channels.write
https://api.holded.com/api/v2/sales-channels

Creates a new sales channel. Sales channels categorize your revenue streams — for example, Online Store, Retail, or Wholesale — so you can track performance by channel. The response returns the new sales channel `id`.

Request body

object
namestringrequired

Display name for the sales channel

account_numintegerrequired

Accounting account number

colorstring | nulloptional

Hex color code for UI display

Request

python
import requests

url = "https://api.holded.com/api/v2/sales-channels"
headers = {
    "Authorization": "Bearer YOUR_API_KEY",
    "Accept": "application/json",
}

payload = {
    "name": "string",
    "account_num": 0,
    "color": "string"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())

Responses

Response

json
{
  "id": "507f1f77bcf86cd799439011"
}

Success responses

201Sales channel createdapplication/json
object
idstring

Error responses

400Bad requestapplication/json
401Invalid or missing API keyapplication/json
403Insufficient permissionsapplication/json
422Validation errorapplication/json