GET
/biz-partners/{partnerId}/biz-partner-productsReturns list of Biz Partner Products for given partnerId.
Privileges:
- biz-core.view
- biz-core-own.view
Audit event:
- biz.core.v2.biz.partner.products.list
Sortable attributes:
- id
- productType
- productTypeName
- productTypeCodeName
- productId
- productName
- productCodeName
- relationTypeId
- relationTypeName
- status
- sellingPaymentType
- sellingPaymentDue
- billingCycle
- billingCycleUnit
- accountManagerName
- currencyId
- currencyCode
- currencyName
- invoiceTriggerAmount
- overdraftLimit
- creditLimit
- deposit
- bankGuarantee
- disputePercent
- maxDispute
- announcementDays
- enabledDt
- disabledDt
- statusDt
- validFromD
Filterable attributes:
- id
- productType
- productTypeName
- productId
- productName
- relationTypeId
- relationTypeName
- status
- sellingPaymentType
- sellingPaymentDue
- billingCycle
- billingCycleUnit
- accountManagerName
- currencyId
- currencyName
- invoiceTriggerAmount
- overdraftLimit
- creditLimit
- deposit
- bankGuarantee
- disputePercent
- maxDispute
- announcementDays
- productTypeCodeName
- productCodeName
- currencyCode
Searchable attributes:
- id
- productTypeName
- productTypeCodeName
- productCodeName
- productName
- relationTypeName
- status
- enabledDt
- disabledDt
- statusDt
- sellingPaymentType
- sellingPaymentDue
- validFromD
- billingCycle
- billingCycleUnit
- accountManagerName
- currencyId
- currencyCode
- currencyName
- invoiceTriggerAmount
- overdraftLimit
- creditLimit
- deposit
- bankGuarantee
- disputePercent
- maxDispute
- announcementDays
Request
Path parameters
partnerIdintegerrequired
Partner ID.
Query parameters
allstring
Return all records for given criteria (disables pagination)
Possible values:
yes, nopage_sizeinteger
Page size
Default:
10pagingstring
Paging options in form of &paging=page_num,page_size e.g. paging=1,10
sortstring
Sort options in form of sort=-attribute1,attribute2,-attribute3 (prefix - for descending)
qstring
Full-text search criteria
operator(fieldName)string
Search criteria can be specified using the following operators and attributes:
Available Operators:
- isnull, isnotnull
- isempty, isnotempty
- eq, neq
- startswith, endswith, contains, doesnotcontain
- lt, lte, gt, gte
- in, notin
- between, notbetween
Special Cases:
- For operators [isnull, isnotnull, isempty, isnotempty]: field value can be omitted.
- For operators [in, notin]: field value must be a comma-separated list. Example:
in(status)=active,inactive - For operators [between, notbetween]: field value must be two comma-separated values. Example:
between(insertDt)=2024-01-01,2024-12-31
Default Behavior:
- If operator is omitted, 'eq' is assumed
- Example: fieldName=fieldValue is equivalent to eq(fieldName)=fieldValue
Example Usage:
- startswith(name)=EUR # Find records where name starts with "EUR"
- in(status)=active,inactive # Find records with active or inactive status
- gt(maxAllowedPrice)=0.05 # Find records where max allowed price is greater than 0.05
Request example
C# · HttpClient
var client = new HttpClient();
var request = new HttpRequestMessage(HttpMethod.Get, "https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products");
request.Headers.Add("Accept", "application/json");
request.Headers.Add("Authorization", "Bearer <access_token>");
var response = await client.SendAsync(request);
response.EnsureSuccessStatusCode();
Console.WriteLine(await response.Content.ReadAsStringAsync());C# · RestSharp
var options = new RestClientOptions("")
{
MaxTimeout = -1,
};
var client = new RestClient(options);
var request = new RestRequest("https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products", Method.Get);
request.AddHeader("Accept", "application/json");
request.AddHeader("Authorization", "Bearer <access_token>");
RestResponse response = await client.ExecuteAsync(request);
Console.WriteLine(response.Content);cURL · cURL
curl -L -X GET "https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products" \
-H "Accept: application/json" \
-H "Authorization: Bearer <access_token>"Dart · dio
var headers = {
'Accept': 'application/json',
'Authorization': 'Bearer <access_token>'
};
var dio = Dio();
var response = await dio.request(
'https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products',
options: Options(
method: 'GET',
headers: headers,
),
);
if (response.statusCode == 200) {
print(json.encode(response.data));
}
else {
print(response.statusMessage);
}Dart · http
var headers = {
'Accept': 'application/json',
'Authorization': 'Bearer <access_token>'
};
var request = http.Request('GET', Uri.parse('https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products'));
request.headers.addAll(headers);
http.StreamedResponse response = await request.send();
if (response.statusCode == 200) {
print(await response.stream.bytesToString());
}
else {
print(response.reasonPhrase);
}Go · Native
package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products"
method := "GET"
client := &http.Client{}
req, err := http.NewRequest(method, url, nil)
if err != nil {
fmt.Println(err)
return
}
req.Header.Add("Accept", "application/json")
req.Header.Add("Authorization", "Bearer <access_token>")
res, err := client.Do(req)
if err != nil {
fmt.Println(err)
return
}
defer res.Body.Close()
body, err := io.ReadAll(res.Body)
if err != nil {
fmt.Println(err)
return
}
fmt.Println(string(body))
}HTTP · HTTP
GET /biz-core/v2/biz-partners/{partnerId}/biz-partner-products HTTP/1.1
Host: api-cpaas.sms.es
Accept: application/json
Authorization: Bearer <access_token>Java · OkHttp
OkHttpClient client = new OkHttpClient().newBuilder()
.build();
Request request = new Request.Builder()
.url("https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products")
.method("GET", null)
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Bearer <access_token>")
.build();
Response response = client.newCall(request).execute();Java · Unirest
Unirest.setTimeouts(0, 0);
HttpResponse<String> response = Unirest.get("https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products")
.header("Accept", "application/json")
.header("Authorization", "Bearer <access_token>")
.asString();JavaScript · Fetch
const myHeaders = new Headers();
myHeaders.append("Accept", "application/json");
myHeaders.append("Authorization", "Bearer <access_token>");
const requestOptions = {
method: "GET",
headers: myHeaders,
redirect: "follow"
};
fetch("https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products", requestOptions)
.then((response) => response.text())
.then((result) => console.log(result))
.catch((error) => console.error(error));JavaScript · jQuery
var settings = {
"url": "https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products",
"method": "GET",
"timeout": 0,
"headers": {
"Accept": "application/json",
"Authorization": "Bearer <access_token>"
}
};
$.ajax(settings).done(function (response) {
console.log(response);
});JavaScript · XHR
var xhr = new XMLHttpRequest();
xhr.withCredentials = true;
xhr.addEventListener("readystatechange", function() {
if(this.readyState === 4) {
console.log(this.responseText);
}
});
xhr.open("GET", "https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products");
xhr.setRequestHeader("Accept", "application/json");
xhr.setRequestHeader("Authorization", "Bearer <access_token>");
xhr.send();Kotlin · OkHttp
val client = OkHttpClient()
val request = Request.Builder()
.url("https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products")
.get()
.addHeader("Accept", "application/json")
.addHeader("Authorization", "Bearer <access_token>")
.build()
val response = client.newCall(request).execute()C · libcurl
#include <stdio.h>
#include <curl/curl.h>
int main(void) {
CURL *curl = curl_easy_init();
if (curl) {
curl_easy_setopt(curl, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(curl, CURLOPT_URL, "https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products");
curl_easy_setopt(curl, CURLOPT_FOLLOWLOCATION, 1L);
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "Accept: application/json");
headers = curl_slist_append(headers, "Authorization: Bearer <access_token>");
curl_easy_setopt(curl, CURLOPT_HTTPHEADER, headers);
CURLcode res = curl_easy_perform(curl);
curl_slist_free_all(headers);
curl_easy_cleanup(curl);
}
return 0;
}Node.js · Axios
const axios = require('axios');
let config = {
method: 'get',
maxBodyLength: Infinity,
url: 'https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products',
headers: {
'Accept': 'application/json',
'Authorization': 'Bearer <access_token>'
}
};
axios.request(config)
.then((response) => {
console.log(JSON.stringify(response.data));
})
.catch((error) => {
console.log(error);
});Node.js · Native
const https = require('follow-redirects').https;
const fs = require('fs');
let options = {
'method': 'GET',
'hostname': 'api-cpaas.sms.es',
'path': '/biz-core/v2/biz-partners/{partnerId}/biz-partner-products',
'headers': {
'Accept': 'application/json',
'Authorization': 'Bearer <access_token>'
},
'maxRedirects': 20
};
const req = https.request(options, function (res) {
let chunks = [];
res.on("data", function (chunk) {
chunks.push(chunk);
});
res.on("end", function (chunk) {
let body = Buffer.concat(chunks);
console.log(body.toString());
});
res.on("error", function (error) {
console.error(error);
});
});
req.end();Objective-C · NSURLSession
#import <Foundation/Foundation.h>
dispatch_semaphore_t sema = dispatch_semaphore_create(0);
NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[NSURL URLWithString:@"https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products"]
cachePolicy:NSURLRequestUseProtocolCachePolicy
timeoutInterval:10.0];
NSDictionary *headers = @{
@"Accept": @"application/json",
@"Authorization": @"Bearer <access_token>"
};
[request setAllHTTPHeaderFields:headers];
[request setHTTPMethod:@"GET"];
NSURLSession *session = [NSURLSession sharedSession];
NSURLSessionDataTask *dataTask = [session dataTaskWithRequest:request
completionHandler:^(NSData *data, NSURLResponse *response, NSError *error) {
if (error) {
NSLog(@"%@", error);
dispatch_semaphore_signal(sema);
} else {
NSHTTPURLResponse *httpResponse = (NSHTTPURLResponse *) response;
NSError *parseError = nil;
NSDictionary *responseDictionary = [NSJSONSerialization JSONObjectWithData:data options:0 error:&parseError];
NSLog(@"%@",responseDictionary);
dispatch_semaphore_signal(sema);
}
}];
[dataTask resume];
dispatch_semaphore_wait(sema, DISPATCH_TIME_FOREVER);OCaml · Cohttp
open Lwt
open Cohttp
open Cohttp_lwt_unix
let reqBody =
let uri = Uri.of_string "https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products" in
let headers = Header.init ()
|> fun h -> Header.add h "Accept" "application/json"
|> fun h -> Header.add h "Authorization" "Bearer <access_token>"
in
Client.call ~headers `GET uri >>= fun (_resp, body) ->
body |> Cohttp_lwt.Body.to_string >|= fun body -> body
let () =
let respBody = Lwt_main.run reqBody in
print_endline (respBody)PHP · cURL
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_URL => 'https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products',
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => '',
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 0,
CURLOPT_FOLLOWLOCATION => true,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => 'GET',
CURLOPT_HTTPHEADER => array(
'Accept: application/json',
'Authorization: Bearer <access_token>'
),
));
$response = curl_exec($curl);
curl_close($curl);
echo $response;
PHP · Guzzle
<?php
$client = new Client();
$headers = [
'Accept' => 'application/json',
'Authorization' => 'Bearer <access_token>'
];
$request = new Request('GET', 'https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products', $headers);
$res = $client->sendAsync($request)->wait();
echo $res->getBody();
PowerShell · RestMethod
$headers = New-Object "System.Collections.Generic.Dictionary[[String],[String]]"
$headers.Add("Accept", "application/json")
$headers.Add("Authorization", "Bearer <access_token>")
$response = Invoke-RestMethod "https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products" -Method 'GET' -Headers $headers
$response | ConvertTo-JsonPython · Requests
import requests
import json
url = "https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products"
payload = {}
headers = {
"Accept": "application/json",
"Authorization": "Bearer <access_token>"
}
response = requests.request("GET", url, headers=headers, data=payload)
print(response.text)Python · http.client
import http.client
import json
conn = http.client.HTTPSConnection("api-cpaas.sms.es")
payload = ''
headers = {
"Accept": "application/json",
"Authorization": "Bearer <access_token>"
}
conn.request("GET", "/biz-core/v2/biz-partners/{partnerId}/biz-partner-products", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))R · httr
library(httr)
headers = c(
'Accept' = 'application/json',
'Authorization' = 'Bearer <access_token>'
)
res <- VERB("GET", url = "https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products", add_headers(headers))
cat(content(res, 'text'))Ruby · Net::HTTP
require "uri"
require "json"
require "net/http"
url = URI("https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products")
https = Net::HTTP.new(url.host, url.port)
https.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Accept"] = "application/json"
request["Authorization"] = "Bearer <access_token>"
response = https.request(request)
puts response.read_body
Rust · reqwest
#[tokio::main]
async fn main() -> Result<(), Box<dyn std::error::Error>> {
let client = reqwest::Client::builder()
.build()?;
let mut headers = reqwest::header::HeaderMap::new();
headers.insert("Accept", "application/json".parse()?);
headers.insert("Authorization", "Bearer <access_token>".parse()?);
let request = client.request(reqwest::Method::from_bytes(b"GET")?, "https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products")
.headers(headers);
let response = request.send().await?;
let body = response.text().await?;
println!("{}", body);
Ok(())
}Shell · Httpie
http --follow --timeout 3600 GET "https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products" \
'Accept':'application/json' \
'Authorization':'Bearer <access_token>'Shell · wget
wget --no-check-certificate --quiet \
--method GET \
--timeout=0 \
--header 'Accept: application/json' \
--header 'Authorization: Bearer <access_token>' \
'https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products'Swift · URLSession
var request = URLRequest(url: URL(string: "https://api-cpaas.sms.es/biz-core/v2/biz-partners/{partnerId}/biz-partner-products")!,timeoutInterval: Double.infinity)
request.addValue("application/json", forHTTPHeaderField: "Accept")
request.addValue("Bearer <access_token>", forHTTPHeaderField: "Authorization")
request.httpMethod = "GET"
let task = URLSession.shared.dataTask(with: request) { data, response, error in
guard let data = data else {
print(String(describing: error))
return
}
print(String(data: data, encoding: .utf8)!)
}
task.resume()Responses
- 200
- default
List of Biz Partner Products
application/json
dataobject[]required
Show child attributes
accountManagerIdinteger
accountManagerNamestring
bizPartnerBriefNamestring
bizPartnerIdinteger
customerTypestring
disabledDtstring (date-time)
enabledDtstring (date-time)
idinteger
notesstring
productBulkSmsobject
Show child attributes
announcementDaysinteger
bankGuaranteenumber (float64)
billingCycleinteger
billingCycleUnitstring
bizpProductIdinteger
creditLimitnumber (float64)
currencyCodestring
currencyIdinteger
currencyNamestring
depositnumber (float64)
disputePercentnumber (float64)
idinteger
invoiceTriggerAmountnumber (float64)
maxDisputenumber (float64)
overdraftLimitnumber (float64)
sellingPaymentDueinteger
sellingPaymentTypestring
validFromDstring (date)
productCodeNamestring
productIdinteger
productNamestring
productTypeCodeNamestring
productTypeNamestring
relationTypeCodeNamestring
relationTypeIdinteger
relationTypeNamestring
serviceCategoryIdinteger
serviceProductNamestring
statusstring
statusDtstring (date-time)
metaobjectrequired
Show child attributes
paginationobjectrequired
Show child attributes
countintegerrequired
current_pageintegerrequired
linksobjectrequired
Show child attributes
firststring
laststring
nextstring
prevstring
per_pageintegerrequired
totalintegerrequired
total_pagesintegerrequired
Example response
{
"data": [
{
"accountManagerId": 0,
"accountManagerName": "string",
"bizPartnerBriefName": "string",
"bizPartnerId": 0,
"customerType": "string",
"disabledDt": "2026-01-01T12:00:00Z",
"enabledDt": "2026-01-01T12:00:00Z",
"id": 0,
"notes": "string",
"productBulkSms": {
"announcementDays": 0,
"bankGuarantee": 0,
"billingCycle": 0,
"billingCycleUnit": "string",
"bizpProductId": 0,
"creditLimit": 0,
"currencyCode": "string",
"currencyId": 0,
"currencyName": "string",
"deposit": 0,
"disputePercent": 0,
"id": 0,
"invoiceTriggerAmount": 0,
"maxDispute": 0,
"overdraftLimit": 0,
"sellingPaymentDue": 0,
"sellingPaymentType": "string",
"validFromD": "2026-01-01"
},
"productCodeName": "string",
"productId": 0,
"productName": "string",
"productTypeCodeName": "string",
"productTypeName": "string",
"relationTypeCodeName": "string",
"relationTypeId": 0,
"relationTypeName": "string",
"serviceCategoryId": 0,
"serviceProductName": "string",
"status": "string",
"statusDt": "2026-01-01T12:00:00Z"
}
],
"meta": {
"pagination": {
"count": 0,
"current_page": 0,
"links": {
"first": "string",
"last": "string",
"next": "string",
"prev": "string"
},
"per_page": 0,
"total": 0,
"total_pages": 0
}
}
}unexpected error
application/json
Codeinteger (int32)required
Messagestringrequired
Example response
{
"Code": 0,
"Message": "string"
}