GET
Get a sales channel by ID
Scope:
sales:sales-channels.readhttps://api.holded.com/api/v2/sales-channels/{salesChannelId}Retrieves the details of a single sales channel by its unique identifier. The response includes the channel name, color, accounting number, and archived status.
Parameters
Path parameters
salesChannelId
stringrequiredSales Channel ID (24-char hex ObjectId)
Request
python
import requests
url = "https://api.holded.com/api/v2/sales-channels/{salesChannelId}"
headers = {
"Authorization": "Bearer YOUR_API_KEY",
"Accept": "application/json",
}
response = requests.get(url, headers=headers)
print(response.json())Responses
Response
json
{
"id": "507f1f77bcf86cd799439011",
"name": "Office Expenses",
"color": "#FF5733",
"account_num": 6290001,
"archived": false,
"description": "string"
}Success responses
200Sales channel foundapplication/jsonobject
idstring
Unique identifier of the accounting account
namestring
Display name of the accounting account
colorstring
Hex color code used in the UI
account_numinteger
Numeric accounting code from the chart of accounts
archivedboolean
Whether the account is archived
descriptionstring | null
Description of the accounting account
Error responses
401Invalid or missing API keyapplication/json403Insufficient permissionsapplication/json404Sales channel not foundapplication/json