Smart Online Broker API АО “Банк ЦентрКредит" предназначен для интеграции Партнеров с системами Банка, предоставляющие Клиенту возможность покупки Товаров, в том числе с использованием Кредита/Рассрочки с пред одобрением решения, полученного в Банке
Альтернативная точка подключения для вызова сервиса в продуктивной среде. Зарегистрированное на портале developer.bcc.kz приложение должно быть в режиме "PRODUCTION"
Точка подключения для вызова сервисов в тестовой среде. Зарегистрированное на портале developer.bcc.kz приложение должно быть в режиме "DEVELOPMENT"
Точка подключения для вызова сервиса в продуктивной среде. Зарегистрированное на портале developer.bcc.kz приложение должно быть в режиме "PRODUCTION"
Пути
/pre-approved
PreApproved
Токен аутентификации полученный при вызове сервиса авторизации
Тело запроса
PreApproved handler success
PreApproved handler errors
PreApproved handler errors
curl --request POST \
--url https://api.bcc.kz:10443/bcc/production/v1/broker/pre-approved \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/json' \
--data '{"address":{"delivery":"Улица Розыбакиева, 388/Б2","pickupPoint":"Mega Center Alma-Ata, Улица Розыбакиева, 263"},"channel":"web","customer":{"contact":{"email":"askar.askarov@gmail.com","mobileNumber":"7475774285"},"firstName":"Аскар","lastName":"Аскаров","middleName":"Аскарович","state":"orange","taxCode":"960629450735"},"goods":[{"brand":"apple","category":"accessories","image":"https://example.kz/goods/images/airpods_pro_2","model":"AirPods Pro 2","price":"169990","sku":"ACS1"}],"isDelivery":true,"loanLength":"12","orderState":"INIT","paymentMethod":"annuity","productType":"loan","redirectUrl":"https://example.kz/webhook","referenceId":"BGR1231","salesPlace":"050000","totalCost":"50000","verificationSmsCode":"1243","verificationSmsDateTime":"06.10.2023 10:07:23"}'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://api.bcc.kz:10443/bcc/production/v1/broker/pre-approved")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Post.new(url)
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["content-type"] = 'application/json'
request["accept"] = 'application/json'
request.body = "{\"address\":{\"delivery\":\"Улица Розыбакиева, 388/Б2\",\"pickupPoint\":\"Mega Center Alma-Ata, Улица Розыбакиева, 263\"},\"channel\":\"web\",\"customer\":{\"contact\":{\"email\":\"askar.askarov@gmail.com\",\"mobileNumber\":\"7475774285\"},\"firstName\":\"Аскар\",\"lastName\":\"Аскаров\",\"middleName\":\"Аскарович\",\"state\":\"orange\",\"taxCode\":\"960629450735\"},\"goods\":[{\"brand\":\"apple\",\"category\":\"accessories\",\"image\":\"https://example.kz/goods/images/airpods_pro_2\",\"model\":\"AirPods Pro 2\",\"price\":\"169990\",\"sku\":\"ACS1\"}],\"isDelivery\":true,\"loanLength\":\"12\",\"orderState\":\"INIT\",\"paymentMethod\":\"annuity\",\"productType\":\"loan\",\"redirectUrl\":\"https://example.kz/webhook\",\"referenceId\":\"BGR1231\",\"salesPlace\":\"050000\",\"totalCost\":\"50000\",\"verificationSmsCode\":\"1243\",\"verificationSmsDateTime\":\"06.10.2023 10:07:23\"}"
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.bcc.kz:10443")
payload = "{\"address\":{\"delivery\":\"Улица Розыбакиева, 388/Б2\",\"pickupPoint\":\"Mega Center Alma-Ata, Улица Розыбакиева, 263\"},\"channel\":\"web\",\"customer\":{\"contact\":{\"email\":\"askar.askarov@gmail.com\",\"mobileNumber\":\"7475774285\"},\"firstName\":\"Аскар\",\"lastName\":\"Аскаров\",\"middleName\":\"Аскарович\",\"state\":\"orange\",\"taxCode\":\"960629450735\"},\"goods\":[{\"brand\":\"apple\",\"category\":\"accessories\",\"image\":\"https://example.kz/goods/images/airpods_pro_2\",\"model\":\"AirPods Pro 2\",\"price\":\"169990\",\"sku\":\"ACS1\"}],\"isDelivery\":true,\"loanLength\":\"12\",\"orderState\":\"INIT\",\"paymentMethod\":\"annuity\",\"productType\":\"loan\",\"redirectUrl\":\"https://example.kz/webhook\",\"referenceId\":\"BGR1231\",\"salesPlace\":\"050000\",\"totalCost\":\"50000\",\"verificationSmsCode\":\"1243\",\"verificationSmsDateTime\":\"06.10.2023 10:07:23\"}"
headers = {
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'content-type': "application/json",
'accept': "application/json"
}
conn.request("POST", "/bcc/production/v1/broker/pre-approved", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_PORT => "10443",
CURLOPT_URL => "https://api.bcc.kz:10443/bcc/production/v1/broker/pre-approved",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\"address\":{\"delivery\":\"Улица Розыбакиева, 388/Б2\",\"pickupPoint\":\"Mega Center Alma-Ata, Улица Розыбакиева, 263\"},\"channel\":\"web\",\"customer\":{\"contact\":{\"email\":\"askar.askarov@gmail.com\",\"mobileNumber\":\"7475774285\"},\"firstName\":\"Аскар\",\"lastName\":\"Аскаров\",\"middleName\":\"Аскарович\",\"state\":\"orange\",\"taxCode\":\"960629450735\"},\"goods\":[{\"brand\":\"apple\",\"category\":\"accessories\",\"image\":\"https://example.kz/goods/images/airpods_pro_2\",\"model\":\"AirPods Pro 2\",\"price\":\"169990\",\"sku\":\"ACS1\"}],\"isDelivery\":true,\"loanLength\":\"12\",\"orderState\":\"INIT\",\"paymentMethod\":\"annuity\",\"productType\":\"loan\",\"redirectUrl\":\"https://example.kz/webhook\",\"referenceId\":\"BGR1231\",\"salesPlace\":\"050000\",\"totalCost\":\"50000\",\"verificationSmsCode\":\"1243\",\"verificationSmsDateTime\":\"06.10.2023 10:07:23\"}",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN",
"content-type: application/json"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"address\":{\"delivery\":\"Улица Розыбакиева, 388/Б2\",\"pickupPoint\":\"Mega Center Alma-Ata, Улица Розыбакиева, 263\"},\"channel\":\"web\",\"customer\":{\"contact\":{\"email\":\"askar.askarov@gmail.com\",\"mobileNumber\":\"7475774285\"},\"firstName\":\"Аскар\",\"lastName\":\"Аскаров\",\"middleName\":\"Аскарович\",\"state\":\"orange\",\"taxCode\":\"960629450735\"},\"goods\":[{\"brand\":\"apple\",\"category\":\"accessories\",\"image\":\"https://example.kz/goods/images/airpods_pro_2\",\"model\":\"AirPods Pro 2\",\"price\":\"169990\",\"sku\":\"ACS1\"}],\"isDelivery\":true,\"loanLength\":\"12\",\"orderState\":\"INIT\",\"paymentMethod\":\"annuity\",\"productType\":\"loan\",\"redirectUrl\":\"https://example.kz/webhook\",\"referenceId\":\"BGR1231\",\"salesPlace\":\"050000\",\"totalCost\":\"50000\",\"verificationSmsCode\":\"1243\",\"verificationSmsDateTime\":\"06.10.2023 10:07:23\"}");
Request request = new Request.Builder()
.url("https://api.bcc.kz:10443/bcc/production/v1/broker/pre-approved")
.post(body)
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("content-type", "application/json")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'POST',
url: 'https://api.bcc.kz:10443/bcc/production/v1/broker/pre-approved',
headers:
{ accept: 'application/json',
'content-type': 'application/json',
authorization: 'Bearer REPLACE_BEARER_TOKEN' },
body:
{ address:
{ delivery: 'Улица Розыбакиева, 388/Б2',
pickupPoint: 'Mega Center Alma-Ata, Улица Розыбакиева, 263' },
channel: 'web',
customer:
{ contact: { email: 'askar.askarov@gmail.com', mobileNumber: '7475774285' },
firstName: 'Аскар',
lastName: 'Аскаров',
middleName: 'Аскарович',
state: 'orange',
taxCode: '960629450735' },
goods:
[ { brand: 'apple',
category: 'accessories',
image: 'https://example.kz/goods/images/airpods_pro_2',
model: 'AirPods Pro 2',
price: '169990',
sku: 'ACS1' } ],
isDelivery: true,
loanLength: '12',
orderState: 'INIT',
paymentMethod: 'annuity',
productType: 'loan',
redirectUrl: 'https://example.kz/webhook',
referenceId: 'BGR1231',
salesPlace: '050000',
totalCost: '50000',
verificationSmsCode: '1243',
verificationSmsDateTime: '06.10.2023 10:07:23' },
json: true };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.bcc.kz:10443/bcc/production/v1/broker/pre-approved"
payload := strings.NewReader("{\"address\":{\"delivery\":\"Улица Розыбакиева, 388/Б2\",\"pickupPoint\":\"Mega Center Alma-Ata, Улица Розыбакиева, 263\"},\"channel\":\"web\",\"customer\":{\"contact\":{\"email\":\"askar.askarov@gmail.com\",\"mobileNumber\":\"7475774285\"},\"firstName\":\"Аскар\",\"lastName\":\"Аскаров\",\"middleName\":\"Аскарович\",\"state\":\"orange\",\"taxCode\":\"960629450735\"},\"goods\":[{\"brand\":\"apple\",\"category\":\"accessories\",\"image\":\"https://example.kz/goods/images/airpods_pro_2\",\"model\":\"AirPods Pro 2\",\"price\":\"169990\",\"sku\":\"ACS1\"}],\"isDelivery\":true,\"loanLength\":\"12\",\"orderState\":\"INIT\",\"paymentMethod\":\"annuity\",\"productType\":\"loan\",\"redirectUrl\":\"https://example.kz/webhook\",\"referenceId\":\"BGR1231\",\"salesPlace\":\"050000\",\"totalCost\":\"50000\",\"verificationSmsCode\":\"1243\",\"verificationSmsDateTime\":\"06.10.2023 10:07:23\"}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("content-type", "application/json")
req.Header.Add("accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import Foundation
let headers = [
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"content-type": "application/json",
"accept": "application/json"
]
let parameters = [
"address": [
"delivery": "Улица Розыбакиева, 388/Б2",
"pickupPoint": "Mega Center Alma-Ata, Улица Розыбакиева, 263"
],
"channel": "web",
"customer": [
"contact": [
"email": "askar.askarov@gmail.com",
"mobileNumber": "7475774285"
],
"firstName": "Аскар",
"lastName": "Аскаров",
"middleName": "Аскарович",
"state": "orange",
"taxCode": "960629450735"
],
"goods": [
[
"brand": "apple",
"category": "accessories",
"image": "https://example.kz/goods/images/airpods_pro_2",
"model": "AirPods Pro 2",
"price": "169990",
"sku": "ACS1"
]
],
"isDelivery": true,
"loanLength": "12",
"orderState": "INIT",
"paymentMethod": "annuity",
"productType": "loan",
"redirectUrl": "https://example.kz/webhook",
"referenceId": "BGR1231",
"salesPlace": "050000",
"totalCost": "50000",
"verificationSmsCode": "1243",
"verificationSmsDateTime": "06.10.2023 10:07:23"
]
let postData = NSJSONSerialization.dataWithJSONObject(parameters, options: nil, error: nil)
var request = NSMutableURLRequest(URL: NSURL(string: "https://api.bcc.kz:10443/bcc/production/v1/broker/pre-approved")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "POST"
request.allHTTPHeaderFields = headers
request.HTTPBody = postData
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.bcc.kz:10443/bcc/production/v1/broker/pre-approved");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: application/json");
headers = curl_slist_append(headers, "content-type: application/json");
headers = curl_slist_append(headers, "authorization: Bearer REPLACE_BEARER_TOKEN");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\"address\":{\"delivery\":\"Улица Розыбакиева, 388/Б2\",\"pickupPoint\":\"Mega Center Alma-Ata, Улица Розыбакиева, 263\"},\"channel\":\"web\",\"customer\":{\"contact\":{\"email\":\"askar.askarov@gmail.com\",\"mobileNumber\":\"7475774285\"},\"firstName\":\"Аскар\",\"lastName\":\"Аскаров\",\"middleName\":\"Аскарович\",\"state\":\"orange\",\"taxCode\":\"960629450735\"},\"goods\":[{\"brand\":\"apple\",\"category\":\"accessories\",\"image\":\"https://example.kz/goods/images/airpods_pro_2\",\"model\":\"AirPods Pro 2\",\"price\":\"169990\",\"sku\":\"ACS1\"}],\"isDelivery\":true,\"loanLength\":\"12\",\"orderState\":\"INIT\",\"paymentMethod\":\"annuity\",\"productType\":\"loan\",\"redirectUrl\":\"https://example.kz/webhook\",\"referenceId\":\"BGR1231\",\"salesPlace\":\"050000\",\"totalCost\":\"50000\",\"verificationSmsCode\":\"1243\",\"verificationSmsDateTime\":\"06.10.2023 10:07:23\"}");
CURLcode ret = curl_easy_perform(hnd);
var client = new RestClient("https://api.bcc.kz:10443/bcc/production/v1/broker/pre-approved");
var request = new RestRequest(Method.POST);
request.AddHeader("Accept", "application/json");
request.AddHeader("content-type", "application/json");
request.AddHeader("authorization", "Bearer REPLACE_BEARER_TOKEN");
request.AddParameter("application/json", "{\"address\":{\"delivery\":\"Улица Розыбакиева, 388/Б2\",\"pickupPoint\":\"Mega Center Alma-Ata, Улица Розыбакиева, 263\"},\"channel\":\"web\",\"customer\":{\"contact\":{\"email\":\"askar.askarov@gmail.com\",\"mobileNumber\":\"7475774285\"},\"firstName\":\"Аскар\",\"lastName\":\"Аскаров\",\"middleName\":\"Аскарович\",\"state\":\"orange\",\"taxCode\":\"960629450735\"},\"goods\":[{\"brand\":\"apple\",\"category\":\"accessories\",\"image\":\"https://example.kz/goods/images/airpods_pro_2\",\"model\":\"AirPods Pro 2\",\"price\":\"169990\",\"sku\":\"ACS1\"}],\"isDelivery\":true,\"loanLength\":\"12\",\"orderState\":\"INIT\",\"paymentMethod\":\"annuity\",\"productType\":\"loan\",\"redirectUrl\":\"https://example.kz/webhook\",\"referenceId\":\"BGR1231\",\"salesPlace\":\"050000\",\"totalCost\":\"50000\",\"verificationSmsCode\":\"1243\",\"verificationSmsDateTime\":\"06.10.2023 10:07:23\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
{
"code": "200",
"message": "Заявка успешно создана",
"requestUuid": "c5171b44-0bd3-6a2f-21aa-60ee039ddff3",
"redirectLink": "https://oprb-dev.bcc.kz/epos/?preapp=03e60d13-bd8a-29c8-a03c-ca9d74c63b83&lang=kk&v=2",
"status": "Success"
}
/merchant-post-link
Merchant postLink
Токен аутентификации полученный при вызове сервиса авторизации
Тело запроса
Merchant postLink handler success
Merchant postLink handler errors
Merchant postLink handler errors
curl --request POST \
--url https://api.bcc.kz:10443/bcc/production/v1/broker/merchant-post-link \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/json' \
--data '{"loanLength":"12","productCode":"INS12","referenceId":"BGR1231","state":"CUSTOMER_REJECTED","stateTitle":"Клиент отказался"}'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://api.bcc.kz:10443/bcc/production/v1/broker/merchant-post-link")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Post.new(url)
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["content-type"] = 'application/json'
request["accept"] = 'application/json'
request.body = "{\"loanLength\":\"12\",\"productCode\":\"INS12\",\"referenceId\":\"BGR1231\",\"state\":\"CUSTOMER_REJECTED\",\"stateTitle\":\"Клиент отказался\"}"
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.bcc.kz:10443")
payload = "{\"loanLength\":\"12\",\"productCode\":\"INS12\",\"referenceId\":\"BGR1231\",\"state\":\"CUSTOMER_REJECTED\",\"stateTitle\":\"Клиент отказался\"}"
headers = {
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'content-type': "application/json",
'accept': "application/json"
}
conn.request("POST", "/bcc/production/v1/broker/merchant-post-link", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_PORT => "10443",
CURLOPT_URL => "https://api.bcc.kz:10443/bcc/production/v1/broker/merchant-post-link",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\"loanLength\":\"12\",\"productCode\":\"INS12\",\"referenceId\":\"BGR1231\",\"state\":\"CUSTOMER_REJECTED\",\"stateTitle\":\"Клиент отказался\"}",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN",
"content-type: application/json"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"loanLength\":\"12\",\"productCode\":\"INS12\",\"referenceId\":\"BGR1231\",\"state\":\"CUSTOMER_REJECTED\",\"stateTitle\":\"Клиент отказался\"}");
Request request = new Request.Builder()
.url("https://api.bcc.kz:10443/bcc/production/v1/broker/merchant-post-link")
.post(body)
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("content-type", "application/json")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'POST',
url: 'https://api.bcc.kz:10443/bcc/production/v1/broker/merchant-post-link',
headers:
{ accept: 'application/json',
'content-type': 'application/json',
authorization: 'Bearer REPLACE_BEARER_TOKEN' },
body:
{ loanLength: '12',
productCode: 'INS12',
referenceId: 'BGR1231',
state: 'CUSTOMER_REJECTED',
stateTitle: 'Клиент отказался' },
json: true };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.bcc.kz:10443/bcc/production/v1/broker/merchant-post-link"
payload := strings.NewReader("{\"loanLength\":\"12\",\"productCode\":\"INS12\",\"referenceId\":\"BGR1231\",\"state\":\"CUSTOMER_REJECTED\",\"stateTitle\":\"Клиент отказался\"}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("content-type", "application/json")
req.Header.Add("accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import Foundation
let headers = [
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"content-type": "application/json",
"accept": "application/json"
]
let parameters = [
"loanLength": "12",
"productCode": "INS12",
"referenceId": "BGR1231",
"state": "CUSTOMER_REJECTED",
"stateTitle": "Клиент отказался"
]
let postData = NSJSONSerialization.dataWithJSONObject(parameters, options: nil, error: nil)
var request = NSMutableURLRequest(URL: NSURL(string: "https://api.bcc.kz:10443/bcc/production/v1/broker/merchant-post-link")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "POST"
request.allHTTPHeaderFields = headers
request.HTTPBody = postData
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.bcc.kz:10443/bcc/production/v1/broker/merchant-post-link");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: application/json");
headers = curl_slist_append(headers, "content-type: application/json");
headers = curl_slist_append(headers, "authorization: Bearer REPLACE_BEARER_TOKEN");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\"loanLength\":\"12\",\"productCode\":\"INS12\",\"referenceId\":\"BGR1231\",\"state\":\"CUSTOMER_REJECTED\",\"stateTitle\":\"Клиент отказался\"}");
CURLcode ret = curl_easy_perform(hnd);
var client = new RestClient("https://api.bcc.kz:10443/bcc/production/v1/broker/merchant-post-link");
var request = new RestRequest(Method.POST);
request.AddHeader("Accept", "application/json");
request.AddHeader("content-type", "application/json");
request.AddHeader("authorization", "Bearer REPLACE_BEARER_TOKEN");
request.AddParameter("application/json", "{\"loanLength\":\"12\",\"productCode\":\"INS12\",\"referenceId\":\"BGR1231\",\"state\":\"CUSTOMER_REJECTED\",\"stateTitle\":\"Клиент отказался\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
{
"code": "200",
"message": "Статус заявки успешно обновлен",
"status": "Success"
}
/orders
Токен аутентификации полученный при вызове сервиса авторизации
200 OK
curl --request POST \
--url https://api.bcc.kz:10443/bcc/production/v1/broker/orders \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN' \
--header 'content-type: application/json' \
--data '{"name":"Shop","amount":3000000,"posName":"02-2018-L3","language":"ru","postLink":"https://example.kz","expiresAt":"2023-02-11T04:44:31+06:00","pointCode":"02-2018-L3","requestId":"","partnerCode":"pepvijveds","phoneNumber":"77011413341","iin":"870318302342","productCode":"STD12","failRedirect":"https://example.kz","partnerOrderId":"1018000","successRedirect":"https://example.kz"}'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://api.bcc.kz:10443/bcc/production/v1/broker/orders")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Post.new(url)
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["content-type"] = 'application/json'
request["accept"] = 'application/json'
request.body = "{\"name\":\"Shop\",\"amount\":3000000,\"posName\":\"02-2018-L3\",\"language\":\"ru\",\"postLink\":\"https://example.kz\",\"expiresAt\":\"2023-02-11T04:44:31+06:00\",\"pointCode\":\"02-2018-L3\",\"requestId\":\"\",\"partnerCode\":\"pepvijveds\",\"phoneNumber\":\"77011413341\",\"iin\":\"870318302342\",\"productCode\":\"STD12\",\"failRedirect\":\"https://example.kz\",\"partnerOrderId\":\"1018000\",\"successRedirect\":\"https://example.kz\"}"
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.bcc.kz:10443")
payload = "{\"name\":\"Shop\",\"amount\":3000000,\"posName\":\"02-2018-L3\",\"language\":\"ru\",\"postLink\":\"https://example.kz\",\"expiresAt\":\"2023-02-11T04:44:31+06:00\",\"pointCode\":\"02-2018-L3\",\"requestId\":\"\",\"partnerCode\":\"pepvijveds\",\"phoneNumber\":\"77011413341\",\"iin\":\"870318302342\",\"productCode\":\"STD12\",\"failRedirect\":\"https://example.kz\",\"partnerOrderId\":\"1018000\",\"successRedirect\":\"https://example.kz\"}"
headers = {
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'content-type': "application/json",
'accept': "application/json"
}
conn.request("POST", "/bcc/production/v1/broker/orders", payload, headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_PORT => "10443",
CURLOPT_URL => "https://api.bcc.kz:10443/bcc/production/v1/broker/orders",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => "{\"name\":\"Shop\",\"amount\":3000000,\"posName\":\"02-2018-L3\",\"language\":\"ru\",\"postLink\":\"https://example.kz\",\"expiresAt\":\"2023-02-11T04:44:31+06:00\",\"pointCode\":\"02-2018-L3\",\"requestId\":\"\",\"partnerCode\":\"pepvijveds\",\"phoneNumber\":\"77011413341\",\"iin\":\"870318302342\",\"productCode\":\"STD12\",\"failRedirect\":\"https://example.kz\",\"partnerOrderId\":\"1018000\",\"successRedirect\":\"https://example.kz\"}",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN",
"content-type: application/json"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
MediaType mediaType = MediaType.parse("application/json");
RequestBody body = RequestBody.create(mediaType, "{\"name\":\"Shop\",\"amount\":3000000,\"posName\":\"02-2018-L3\",\"language\":\"ru\",\"postLink\":\"https://example.kz\",\"expiresAt\":\"2023-02-11T04:44:31+06:00\",\"pointCode\":\"02-2018-L3\",\"requestId\":\"\",\"partnerCode\":\"pepvijveds\",\"phoneNumber\":\"77011413341\",\"iin\":\"870318302342\",\"productCode\":\"STD12\",\"failRedirect\":\"https://example.kz\",\"partnerOrderId\":\"1018000\",\"successRedirect\":\"https://example.kz\"}");
Request request = new Request.Builder()
.url("https://api.bcc.kz:10443/bcc/production/v1/broker/orders")
.post(body)
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("content-type", "application/json")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'POST',
url: 'https://api.bcc.kz:10443/bcc/production/v1/broker/orders',
headers:
{ accept: 'application/json',
'content-type': 'application/json',
authorization: 'Bearer REPLACE_BEARER_TOKEN' },
body:
{ name: 'Shop',
amount: 3000000,
posName: '02-2018-L3',
language: 'ru',
postLink: 'https://example.kz',
expiresAt: '2023-02-11T04:44:31+06:00',
pointCode: '02-2018-L3',
requestId: '',
partnerCode: 'pepvijveds',
phoneNumber: '77011413341',
iin: '870318302342',
productCode: 'STD12',
failRedirect: 'https://example.kz',
partnerOrderId: '1018000',
successRedirect: 'https://example.kz' },
json: true };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
package main
import (
"fmt"
"strings"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.bcc.kz:10443/bcc/production/v1/broker/orders"
payload := strings.NewReader("{\"name\":\"Shop\",\"amount\":3000000,\"posName\":\"02-2018-L3\",\"language\":\"ru\",\"postLink\":\"https://example.kz\",\"expiresAt\":\"2023-02-11T04:44:31+06:00\",\"pointCode\":\"02-2018-L3\",\"requestId\":\"\",\"partnerCode\":\"pepvijveds\",\"phoneNumber\":\"77011413341\",\"iin\":\"870318302342\",\"productCode\":\"STD12\",\"failRedirect\":\"https://example.kz\",\"partnerOrderId\":\"1018000\",\"successRedirect\":\"https://example.kz\"}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("content-type", "application/json")
req.Header.Add("accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import Foundation
let headers = [
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"content-type": "application/json",
"accept": "application/json"
]
let parameters = [
"name": "Shop",
"amount": 3000000,
"posName": "02-2018-L3",
"language": "ru",
"postLink": "https://example.kz",
"expiresAt": "2023-02-11T04:44:31+06:00",
"pointCode": "02-2018-L3",
"requestId": "",
"partnerCode": "pepvijveds",
"phoneNumber": "77011413341",
"iin": "870318302342",
"productCode": "STD12",
"failRedirect": "https://example.kz",
"partnerOrderId": "1018000",
"successRedirect": "https://example.kz"
]
let postData = NSJSONSerialization.dataWithJSONObject(parameters, options: nil, error: nil)
var request = NSMutableURLRequest(URL: NSURL(string: "https://api.bcc.kz:10443/bcc/production/v1/broker/orders")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "POST"
request.allHTTPHeaderFields = headers
request.HTTPBody = postData
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "POST");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.bcc.kz:10443/bcc/production/v1/broker/orders");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: application/json");
headers = curl_slist_append(headers, "content-type: application/json");
headers = curl_slist_append(headers, "authorization: Bearer REPLACE_BEARER_TOKEN");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
curl_easy_setopt(hnd, CURLOPT_POSTFIELDS, "{\"name\":\"Shop\",\"amount\":3000000,\"posName\":\"02-2018-L3\",\"language\":\"ru\",\"postLink\":\"https://example.kz\",\"expiresAt\":\"2023-02-11T04:44:31+06:00\",\"pointCode\":\"02-2018-L3\",\"requestId\":\"\",\"partnerCode\":\"pepvijveds\",\"phoneNumber\":\"77011413341\",\"iin\":\"870318302342\",\"productCode\":\"STD12\",\"failRedirect\":\"https://example.kz\",\"partnerOrderId\":\"1018000\",\"successRedirect\":\"https://example.kz\"}");
CURLcode ret = curl_easy_perform(hnd);
var client = new RestClient("https://api.bcc.kz:10443/bcc/production/v1/broker/orders");
var request = new RestRequest(Method.POST);
request.AddHeader("Accept", "application/json");
request.AddHeader("content-type", "application/json");
request.AddHeader("authorization", "Bearer REPLACE_BEARER_TOKEN");
request.AddParameter("application/json", "{\"name\":\"Shop\",\"amount\":3000000,\"posName\":\"02-2018-L3\",\"language\":\"ru\",\"postLink\":\"https://example.kz\",\"expiresAt\":\"2023-02-11T04:44:31+06:00\",\"pointCode\":\"02-2018-L3\",\"requestId\":\"\",\"partnerCode\":\"pepvijveds\",\"phoneNumber\":\"77011413341\",\"iin\":\"870318302342\",\"productCode\":\"STD12\",\"failRedirect\":\"https://example.kz\",\"partnerOrderId\":\"1018000\",\"successRedirect\":\"https://example.kz\"}", ParameterType.RequestBody);
IRestResponse response = client.Execute(request);
{
"requestId": "123",
"partnerOrderId": "1018000",
"preappId": "c5171b44-0bd3-6a2f-21aa-60ee039ddff3",
"redirectLink": "https://blt.testjam.kz/epos/?preapp=c5171b44-0bd3-6a2f-21aa-60ee039ddff3&lang=ru&v=2",
"expiresAt": "2023-02-11T04:44:31+06:00"
}
/products
Токен аутентификации полученный при вызове сервиса авторизации
Идентификатор мерчанта
Сумма
200 OK
curl --request GET \
--url 'https://api.bcc.kz:10443/bcc/production/v1/broker/products?partner=REPLACE_THIS_VALUE&amount=REPLACE_THIS_VALUE' \
--header 'accept: application/json' \
--header 'authorization: Bearer REPLACE_BEARER_TOKEN'
require 'uri'
require 'openssl'
require 'net/http'
url = URI("https://api.bcc.kz:10443/bcc/production/v1/broker/products?partner=REPLACE_THIS_VALUE&amount=REPLACE_THIS_VALUE")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
http.verify_mode = OpenSSL::SSL::VERIFY_PEER
request = Net::HTTP::Get.new(url)
request["authorization"] = 'Bearer REPLACE_BEARER_TOKEN'
request["accept"] = 'application/json'
response = http.request(request)
puts response.read_body
import http.client
conn = http.client.HTTPSConnection("api.bcc.kz:10443")
headers = {
'authorization': "Bearer REPLACE_BEARER_TOKEN",
'accept': "application/json"
}
conn.request("GET", "/bcc/production/v1/broker/products?partner=REPLACE_THIS_VALUE&amount=REPLACE_THIS_VALUE", headers=headers)
res = conn.getresponse()
data = res.read()
print(data.decode("utf-8"))
<?php
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_PORT => "10443",
CURLOPT_URL => "https://api.bcc.kz:10443/bcc/production/v1/broker/products?partner=REPLACE_THIS_VALUE&amount=REPLACE_THIS_VALUE",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => array(
"accept: application/json",
"authorization: Bearer REPLACE_BEARER_TOKEN"
),
));
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}
// OkHttpClient from http://square.github.io/okhttp/
OkHttpClient client = new OkHttpClient();
Request request = new Request.Builder()
.url("https://api.bcc.kz:10443/bcc/production/v1/broker/products?partner=REPLACE_THIS_VALUE&amount=REPLACE_THIS_VALUE")
.get()
.addHeader("authorization", "Bearer REPLACE_BEARER_TOKEN")
.addHeader("accept", "application/json")
.build();
Response response = client.newCall(request).execute();
// Install request by running "npm install --save request"
var request = require("request");
var options = { method: 'GET',
url: 'https://api.bcc.kz:10443/bcc/production/v1/broker/products',
qs: { partner: 'REPLACE_THIS_VALUE', amount: 'REPLACE_THIS_VALUE' },
headers:
{ accept: 'application/json',
authorization: 'Bearer REPLACE_BEARER_TOKEN' } };
request(options, function (error, response, body) {
if (error) return console.error('Failed: %s', error.message);
console.log('Success: ', body);
});
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://api.bcc.kz:10443/bcc/production/v1/broker/products?partner=REPLACE_THIS_VALUE&amount=REPLACE_THIS_VALUE"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("authorization", "Bearer REPLACE_BEARER_TOKEN")
req.Header.Add("accept", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import Foundation
let headers = [
"authorization": "Bearer REPLACE_BEARER_TOKEN",
"accept": "application/json"
]
var request = NSMutableURLRequest(URL: NSURL(string: "https://api.bcc.kz:10443/bcc/production/v1/broker/products?partner=REPLACE_THIS_VALUE&amount=REPLACE_THIS_VALUE")!,
cachePolicy: .UseProtocolCachePolicy,
timeoutInterval: 10.0)
request.HTTPMethod = "GET"
request.allHTTPHeaderFields = headers
let session = NSURLSession.sharedSession()
let dataTask = session.dataTaskWithRequest(request, completionHandler: { (data, response, error) -> Void in
if (error != nil) {
print(error)
} else {
let httpResponse = response as? NSHTTPURLResponse
print(httpResponse)
}
})
dataTask.resume()
CURL *hnd = curl_easy_init();
curl_easy_setopt(hnd, CURLOPT_CUSTOMREQUEST, "GET");
curl_easy_setopt(hnd, CURLOPT_URL, "https://api.bcc.kz:10443/bcc/production/v1/broker/products?partner=REPLACE_THIS_VALUE&amount=REPLACE_THIS_VALUE");
struct curl_slist *headers = NULL;
headers = curl_slist_append(headers, "accept: application/json");
headers = curl_slist_append(headers, "authorization: Bearer REPLACE_BEARER_TOKEN");
curl_easy_setopt(hnd, CURLOPT_HTTPHEADER, headers);
CURLcode ret = curl_easy_perform(hnd);
var client = new RestClient("https://api.bcc.kz:10443/bcc/production/v1/broker/products?partner=REPLACE_THIS_VALUE&amount=REPLACE_THIS_VALUE");
var request = new RestRequest(Method.GET);
request.AddHeader("Accept", "application/json");
request.AddHeader("authorization", "Bearer REPLACE_BEARER_TOKEN");
IRestResponse response = client.Execute(request);
{
"products": [
{
"name": "Рассрочка 0-0-12",
"monthlyPayment": 25000,
"period": 12,
"productCode": "CC12INS"
}
],
"message": "Success",
"status": 200
}
Определения
{
"type": "object",
"properties": {
"code": {
"type": "integer",
"description": "Код ответа"
},
"message": {
"type": "string",
"description": "Сообщение об ответе"
},
"status": {
"type": "string",
"description": "Статус ответа"
}
},
"additionalProperties": false
}
{
"type": "object",
"properties": {
"address": {
"$ref": "#\/definitions\/Address"
},
"channel": {
"type": "string",
"example": "web"
},
"customer": {
"$ref": "#\/definitions\/Customer"
},
"goods": {
"type": "array",
"items": {
"$ref": "#\/definitions\/Good"
}
},
"isDelivery": {
"type": "boolean",
"example": true
},
"loanLength": {
"type": "string",
"example": "12"
},
"orderState": {
"type": "string",
"example": "INIT"
},
"paymentMethod": {
"type": "string",
"example": "annuity"
},
"productType": {
"type": "string",
"example": "loan"
},
"redirectUrl": {
"type": "string",
"example": "https:\/\/example.kz\/webhook"
},
"referenceId": {
"type": "string",
"example": "BGR1231"
},
"salesPlace": {
"type": "string",
"example": "050000"
},
"totalCost": {
"type": "string",
"example": "50000"
},
"verificationSmsCode": {
"type": "string",
"example": "1243"
},
"verificationSmsDateTime": {
"type": "string",
"example": "06.10.2023 10:07:23"
}
},
"required": [
"address",
"channel",
"customer",
"goods",
"isDelivery",
"loanLength",
"orderState",
"paymentMethod",
"productType",
"redirectUrl",
"referenceId",
"salesPlace",
"totalCost",
"verificationSmsCode",
"verificationSmsDateTime"
]
}
{
"type": "object",
"properties": {
"delivery": {
"type": "string",
"description": "Адрес доставки товара",
"example": "Улица Розыбакиева, 388\/Б2"
},
"pickupPoint": {
"type": "string",
"description": "Адрес пункта самовывоза",
"example": "Mega Center Alma-Ata, Улица Розыбакиева, 263"
}
},
"required": [
"delivery",
"pickupPoint"
]
}
{
"type": "object",
"properties": {
"contact": {
"$ref": "#\/definitions\/Contact"
},
"firstName": {
"type": "string",
"example": "Аскар"
},
"lastName": {
"type": "string",
"example": "Аскаров"
},
"middleName": {
"type": "string",
"example": "Аскарович"
},
"state": {
"type": "string",
"example": "orange"
},
"taxCode": {
"type": "string",
"example": "960629450735"
}
},
"required": [
"contact",
"lastName",
"firstName",
"middleName",
"state",
"taxCode"
]
}
{
"type": "object",
"properties": {
"email": {
"type": "string",
"example": "askar.askarov@gmail.com"
},
"mobileNumber": {
"type": "string",
"example": "7475774285"
}
},
"required": [
"email",
"mobileNumber"
]
}
{
"type": "object",
"properties": {
"brand": {
"type": "string",
"example": "apple"
},
"category": {
"type": "string",
"example": "accessories"
},
"image": {
"type": "string",
"example": "https:\/\/example.kz\/goods\/images\/airpods_pro_2"
},
"model": {
"type": "string",
"example": "AirPods Pro 2"
},
"price": {
"type": "string",
"example": "169990"
},
"sku": {
"type": "string",
"example": "ACS1"
}
},
"required": [
"brand",
"image",
"category",
"model",
"price",
"sku"
]
}
Создание заявки и отправка продуктов
{
"properties": {
"code": {
"type": "string",
"description": "Код ответа",
"example": "200"
},
"message": {
"type": "string",
"description": "Сообщение об ответе",
"example": "Заявка успешно создана"
},
"requestUuid": {
"type": "string",
"description": "Уникальный идентификатор запроса",
"example": "c5171b44-0bd3-6a2f-21aa-60ee039ddff3"
},
"redirectLink": {
"type": "string",
"description": "Ссылка для перенаправления",
"example": "https:\/\/oprb-dev.bcc.kz\/epos\/?preapp=03e60d13-bd8a-29c8-a03c-ca9d74c63b83&lang=kk&v=2"
},
"status": {
"type": "string",
"description": "Статус ответа",
"example": "Success"
}
},
"additionalProperties": false
}
{
"properties": {
"code": {
"type": "string",
"description": "Код ответа",
"example": "200"
},
"message": {
"type": "string",
"description": "Сообщение об ответе",
"example": "Статус заявки успешно обновлен"
},
"status": {
"type": "string",
"description": "Статус ответа",
"example": "Success"
}
},
"additionalProperties": false
}
{
"properties": {
"loanLength": {
"type": "string",
"description": "Срок кредита в месяцах",
"example": "12"
},
"productCode": {
"type": "string",
"description": "Код продукта",
"example": "INS12"
},
"referenceId": {
"type": "string",
"description": "Уникальный идентификатор заказа",
"example": "BGR1231"
},
"state": {
"type": "string",
"description": "Состояние заявки",
"example": "CUSTOMER_REJECTED"
},
"stateTitle": {
"type": "string",
"description": "Название состояния",
"example": "Клиент отказался"
}
},
"additionalProperties": false,
"required": [
"stateTitle",
"state",
"referenceId",
"productCode",
"loanLength"
]
}
{
"properties": {
"name": {
"type": "string",
"description": "Название магазина",
"example": "Shop"
},
"amount": {
"type": "number",
"format": "float",
"example": 3000000,
"description": "Сумма заказа"
},
"posName": {
"type": "string",
"description": "Поинт код",
"example": "02-2018-L3"
},
"language": {
"type": "string",
"description": "Язык интерфейса",
"example": "ru"
},
"postLink": {
"type": "string",
"description": "Вебхук",
"example": "https:\/\/example.kz"
},
"expiresAt": {
"type": "string",
"description": "Дата и время истечения срока действия",
"example": "2023-02-11T04:44:31+06:00"
},
"pointCode": {
"type": "string",
"description": "Поинт код",
"example": "02-2018-L3"
},
"requestId": {
"type": "string",
"description": "Идентификатор запроса",
"example": ""
},
"partnerCode": {
"type": "string",
"description": "Код партнера"
},
"phoneNumber": {
"type": "string",
"description": "77011413341",
"example": "77011413341"
},
"iin": {
"type": "string",
"description": "ИИН клиента",
"example": "870318302342"
},
"productCode": {
"type": "string",
"description": "Код продукта",
"example": "STD12"
},
"failRedirect": {
"type": "string",
"description": "Ссылка для перенаправления при неудаче",
"example": "https:\/\/example.kz"
},
"partnerOrderId": {
"type": "string",
"description": "Идентификатор заказа партнера",
"example": "1018000"
},
"successRedirect": {
"type": "string",
"description": "Ссылка для перенаправления при успехе",
"example": "https:\/\/example.kz"
}
},
"additionalProperties": false,
"required": [
"name",
"amount",
"posName",
"language",
"pointCode",
"partnerCode",
"productCode",
"partnerOrderId"
]
}
{
"properties": {
"requestId": {
"type": "string",
"description": "Идентификатор запроса",
"example": "123"
},
"partnerOrderId": {
"type": "string",
"description": "Идентификатор заказа партнера",
"example": "1018000"
},
"preappId": {
"type": "string",
"description": "Идентификатор предварительной заявки",
"example": "c5171b44-0bd3-6a2f-21aa-60ee039ddff3"
},
"redirectLink": {
"type": "string",
"description": "Ссылка для перенаправления",
"example": "https:\/\/blt.testjam.kz\/epos\/?preapp=c5171b44-0bd3-6a2f-21aa-60ee039ddff3&lang=ru&v=2"
},
"expiresAt": {
"type": "string",
"description": "Дата и время истечения срока действия",
"example": "2023-02-11T04:44:31+06:00"
}
},
"additionalProperties": false,
"required": [
"expiresAt",
"redirectLink",
"preappId",
"partnerOrderId",
"requestId"
]
}
{
"type": "object",
"required": [
"name",
"monthlyPayment",
"period",
"productCode"
],
"properties": {
"name": {
"type": "string",
"description": "Название продукта",
"example": "Рассрочка 0-0-12"
},
"monthlyPayment": {
"type": "number",
"description": "Ежемесячный платеж",
"example": 25000
},
"period": {
"type": "number",
"description": "Срок кредита в месяцах",
"example": 12
},
"productCode": {
"type": "string",
"description": "Код продукта",
"example": "CC12INS"
}
}
}
{
"type": "object",
"properties": {
"products": {
"type": "array",
"description": "Список продуктов",
"items": {
"$ref": "#\/definitions\/Product"
}
}
},
"required": [
"products"
]
}
{
"type": "object",
"properties": {
"products": {
"type": "array",
"description": "Список продуктов",
"items": {
"$ref": "#\/definitions\/Product"
}
},
"message": {
"type": "string",
"description": "Сообщение ответа",
"example": "Success"
},
"status": {
"type": "number",
"description": "HTTP статус ответа",
"example": 200
}
},
"required": [
"products",
"message",
"status"
]
}