версия от 2023-02-13
Группа методов позволяет передать данные для договора и подписать его.
Адрес: https://restapi.plusofon.ru
GET
api/v1/agreement/current-status
Метод позволяет получить текущий статус договора.
Не имеет параметров.
curl -X GET \
-G "https://restapi.plusofon.ru/api/v1/agreement/current-status" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Client: 10553" \
-H "Authorization: Bearer {token}"
const url = new URL(
"https://restapi.plusofon.ru/api/v1/agreement/current-status"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Client": "10553",
"Authorization": "Bearer {token}",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://restapi.plusofon.ru/api/v1/agreement/current-status',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Client' => '10553',
'Authorization' => 'Bearer {token}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://restapi.plusofon.ru/api/v1/agreement/current-status'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Client': '10553',
'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()
В ответе возвращается:
status
код статуса договора i
title
название статуса договора
name
название договора
type
код типа договора
jur
юридическое лицо
fiz
физическое лицо
ip
индивидуальный предприниматель
Получен статус договора:
{
"status": "signed",
"title": "Подписан",
"name": "Plusofon2-1234",
"type": "fiz",
"success": true
}
Пользователь не найден:
{
"message": "User not found.",
"code": 500
}
GET
api/v1/agreement/statuses
Метод позволяет получить список всех возможных статусов договора.
Не имеет параметров.
curl -X GET \
-G "https://restapi.plusofon.ru/api/v1/agreement/statuses" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Client: 10553" \
-H "Authorization: Bearer {token}"
const url = new URL(
"https://restapi.plusofon.ru/api/v1/agreement/statuses"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Client": "10553",
"Authorization": "Bearer {token}",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://restapi.plusofon.ru/api/v1/agreement/statuses',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Client' => '10553',
'Authorization' => 'Bearer {token}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://restapi.plusofon.ru/api/v1/agreement/statuses'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Client': '10553',
'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()
В ответе возвращается массив agreement_statuses
:
status
код статуса
title
название статуса
Получен список статусов:
{
"agreement_statuses": [
{
"status": "empty",
"title": "Не отправлен"
},
{
"status": "signed",
"title": "Подписан"
}
]
}
Пользователь не найден:
{
"message": "User not found",
"code": 500
}
GET
api/v1/agreement/expiration
Метод позволяет получить дату и время окончания тестового периода для текущего личного кабинета.
Не имеет параметров.
curl -X GET \
-G "https://restapi.plusofon.ru/api/v1/agreement/expiration" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Client: 10553" \
-H "Authorization: Bearer {token}"
const url = new URL(
"https://restapi.plusofon.ru/api/v1/agreement/expiration"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Client": "10553",
"Authorization": "Bearer {token}",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://restapi.plusofon.ru/api/v1/agreement/expiration',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Client' => '10553',
'Authorization' => 'Bearer {token}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://restapi.plusofon.ru/api/v1/agreement/expiration'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Client': '10553',
'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()
В ответе возвращается:
days
количество дней до окончания тестового периода
expiration
дата и время окончания тестового периода
Получена дата окончания:
{
"days": 14,
"expiration": "2022-05-03 13:00:06"
}
Пользователь не найден:
{
"message": "User not found.",
"code": 500
}
GET
api/v1/agreement/fiz
Метод позволяет получить сохранённые данные физического лица.
Не имеет параметров.
curl -X GET \
-G "https://restapi.plusofon.ru/api/v1/agreement/fiz" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Client: 10553" \
-H "Authorization: Bearer {token}"
const url = new URL(
"https://restapi.plusofon.ru/api/v1/agreement/fiz"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Client": "10553",
"Authorization": "Bearer {token}",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://restapi.plusofon.ru/api/v1/agreement/fiz',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Client' => '10553',
'Authorization' => 'Bearer {token}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://restapi.plusofon.ru/api/v1/agreement/fiz'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Client': '10553',
'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()
В ответе возвращается объект agreement
, содержащий сохранённые данные (описание см. в методе сохранения данных ФЛ).
Получены данные:
{
"agreement": {
"first_name": "Иван",
"last_name": "Иванов",
"middle_name": "Иванович",
"birthday": "1990-01-01",
"passport_series": "1234",
"passport_number": "123456",
"issue": "УФМС РФ",
"date_of_issue": "2000-01-01",
"billing_address_street": "г Москва, ул Первая, д 1, кв 1",
"shipping_address_street": "г Москва, ул Первая, д 1, кв 1",
"agree_to_the_terms": true,
"shipping_address_city": "Москва",
"shipping_address_postalcode": "123456",
"billing_address_city": "Москва",
"billing_address_postalcode": "123456",
"file_passport": null,
"file_registration": null,
"file_selfie": null
}
}
Данные не найдены:
{
"error": "Fiz contract not found",
"code": 404
}
Пользователь не найден:
{
"message": "User not found.",
"code": 500
}
GET
api/v1/agreement/jur
Метод позволяет получить сохранённые данные юридического лица.
Не имеет параметров.
curl -X GET \
-G "https://restapi.plusofon.ru/api/v1/agreement/jur" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Client: 10553" \
-H "Authorization: Bearer {token}"
const url = new URL(
"https://restapi.plusofon.ru/api/v1/agreement/jur"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Client": "10553",
"Authorization": "Bearer {token}",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://restapi.plusofon.ru/api/v1/agreement/jur',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Client' => '10553',
'Authorization' => 'Bearer {token}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://restapi.plusofon.ru/api/v1/agreement/jur'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Client': '10553',
'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()
В ответе возвращается объект agreement
, содержащий сохранённые данные (описание см. в методе сохранения данных ЮЛ).
Получены данные:
{
"agreement": {
"legal_form": "ООО",
"name": "РОМАЖЕЧКА",
"inn": "1234567890",
"ogrn": "1234567890123",
"kpp": "722491007",
"bik": "014325249",
"bank": "СБЕРБАНК",
"payment_account": "40705810935050152927",
"сorrespondent_account": "80211890480601000625",
"last_name": "Иванов",
"first_name": "Иван",
"middle_name": "Иванович",
"position": "Директор",
"foundation_authority": "Приказ",
"email": "user@mail.ru",
"phone": "+79993332210",
"billing_address_street": "г Москва, ул Первая, д 1, кв 1",
"shipping_address_street": "г Москва, ул Первая, д 1, кв 1",
"agree_to_the_terms": true,
"shipping_address_city": "Москва",
"shipping_address_postalcode": "123456",
"billing_address_city": "Москва",
"billing_address_postalcode": "123456",
"legal_form_full": "Общество с ограниченной ответственностью",
"file_organization": null,
"file_authority": null,
"file_ogrn": null,
"file_inn": null
}
}
Данные не найдены:
{
"error": "Fiz contract not found",
"code": 404
}
Пользователь не найден:
{
"message": "User not found.",
"code": 500
}
GET
api/v1/agreement/ip
Метод позволяет получить сохранённые данные индивидуального предпринимателя.
Не имеет параметров.
curl -X GET \
-G "https://restapi.plusofon.ru/api/v1/agreement/ip" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Client: 10553" \
-H "Authorization: Bearer {token}"
const url = new URL(
"https://restapi.plusofon.ru/api/v1/agreement/ip"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Client": "10553",
"Authorization": "Bearer {token}",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://restapi.plusofon.ru/api/v1/agreement/ip',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Client' => '10553',
'Authorization' => 'Bearer {token}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://restapi.plusofon.ru/api/v1/agreement/ip'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Client': '10553',
'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()
В ответе возвращается объект agreement
, содержащий сохранённые данные (описание см. в методе сохранения данных ИП).
Получены данные:
{
"agreement": {
"first_name": "Иван",
"last_name": "Иванов",
"middle_name": "Иванович",
"birthday": "1990-01-01",
"passport_series": "1234",
"passport_number": "123456",
"issue": "УФМС РФ",
"date_of_issue": "2000-01-01",
"inn": "1234567890",
"ogrn": "1234567890",
"bik": "014325249",
"bank": "СБЕРБАНК",
"payment_account": "40705810935050152927",
"сorrespondent_account": "80211890480601000625",
"billing_address_street": "г Москва, ул Первая, д 1, кв 1",
"shipping_address_street": "г Москва, ул Первая, д 1, кв 1",
"agree_to_the_terms": true,
"shipping_address_city": "Москва",
"shipping_address_postalcode": "123456",
"billing_address_city": "Москва",
"billing_address_postalcode": "123456",
"file_passport": null,
"file_registration": null,
"file_selfie": null
}
}
Данные не найдены:
{
"error": "Fiz contract not found",
"code": 404
}
Пользователь не найден:
{
"message": "User not found",
"code": 500
}
POST
api/v1/agreement/fiz-save
Метод позволяет сохранить данные физического лица для оформления договора. При этом договор не отправляется на оформление.
Body
first_name
string
имя
last_name
string
фамилия
middle_name
string
отчество
birthday
date / YYYY-MM-DD
дата рождения
passport_series
string
серия паспорта
passport_number
string
номер паспорта
issue
string
кем выдан паспорт
date_of_issue
date / YYYY-MM-DD
дата выдачи паспорта
billing_address_street
string
адрес регистрации
billing_address_city
string
город регистрации
billing_address_postalcode
string
индекс адреса регистрации
shipping_address_street
string
фактический адрес
shipping_address_city
string
фактический город
shipping_address_postalcode
string
индекс фактического адреса
agree_to_the_terms
boolean
признак согласия с условиями оказания услуг связи
curl -X POST \
"https://restapi.plusofon.ru/api/v1/agreement/fiz-save" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Client: 10553" \
-H "Authorization: Bearer {token}" \
-d '{"first_name":"Иван","last_name":"Иванов","middle_name":"Иванович","birthday":"1990-01-01","passport_series":"1234","passport_number":"123456","issue":"УФМС РФ","date_of_issue":"2000-01-01","billing_address_street":"г Москва, ул Первая, д 1, кв 1","shipping_address_street":"г Москва, ул Первая, д 1, кв 1","agree_to_the_terms":true,"shipping_address_city":"Москва","shipping_address_postalcode":"123456","billing_address_city":"Москва","billing_address_postalcode":"123456"}'
const url = new URL(
"https://restapi.plusofon.ru/api/v1/agreement/fiz-save"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Client": "10553",
"Authorization": "Bearer {token}",
};
let body = {
"first_name": "Иван",
"last_name": "Иванов",
"middle_name": "Иванович",
"birthday": "1990-01-01",
"passport_series": "1234",
"passport_number": "123456",
"issue": "УФМС РФ",
"date_of_issue": "2000-01-01",
"billing_address_street": "г Москва, ул Первая, д 1, кв 1",
"shipping_address_street": "г Москва, ул Первая, д 1, кв 1",
"agree_to_the_terms": true,
"shipping_address_city": "Москва",
"shipping_address_postalcode": "123456",
"billing_address_city": "Москва",
"billing_address_postalcode": "123456"
}
fetch(url, {
method: "POST",
headers: headers,
body: body
})
.then(response => response.json())
.then(json => console.log(json));
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://restapi.plusofon.ru/api/v1/agreement/fiz-save',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Client' => '10553',
'Authorization' => 'Bearer {token}',
],
'json' => [
'first_name' => 'Иван',
'last_name' => 'Иванов',
'middle_name' => 'Иванович',
'birthday' => '1990-01-01',
'passport_series' => '1234',
'passport_number' => '123456',
'issue' => 'УФМС РФ',
'date_of_issue' => '2000-01-01',
'billing_address_street' => 'г Москва, ул Первая, д 1, кв 1',
'shipping_address_street' => 'г Москва, ул Первая, д 1, кв 1',
'agree_to_the_terms' => true,
'shipping_address_city' => 'Москва',
'shipping_address_postalcode' => '123456',
'billing_address_city' => 'Москва',
'billing_address_postalcode' => '123456',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://restapi.plusofon.ru/api/v1/agreement/fiz-save'
payload = {
"first_name": "Иван",
"last_name": "Иванов",
"middle_name": "Иванович",
"birthday": "1990-01-01",
"passport_series": "1234",
"passport_number": "123456",
"issue": "УФМС РФ",
"date_of_issue": "2000-01-01",
"billing_address_street": "г Москва, ул Первая, д 1, кв 1",
"shipping_address_street": "г Москва, ул Первая, д 1, кв 1",
"agree_to_the_terms": true,
"shipping_address_city": "Москва",
"shipping_address_postalcode": "123456",
"billing_address_city": "Москва",
"billing_address_postalcode": "123456"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Client': '10553',
'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
В ответе может возвращаться:
success
признак успешно выполненного запроса
message
сообщение об ошибке
Данные сохранены:
{
"success": true
}
Нет согласия с условиями оказания услуг связи:
{
"message": "The selected agree to the terms is invalid.",
"code": 400
}
Пользователь не найден:
{
"message": "User not found.",
"code": 500
}
POST
api/v1/agreement/jur-save
Метод позволяет сохранить данные юридического лица для оформления договора. При этом договор не отправляется на оформление.
Body
legal_form
string
организационно-правовая форма (сокращённая)
legal_form_full
string
организационно-правовая форма (полная)
name
string
наименование организации
inn
string
ИНН
ogrn
string
ОГРН
kpp
string
КПП
bik
string
БИК банка
bank
string
наименование банка
payment_account
string
расчетный счёт
correspondent_account
string
корреспондентский счёт
last_name
string
фамилия подписанта договора
first_name
string
имя подписанта договора
middle_name
string
отчество подписанта договора
position
string
должность подписанта договора
foundation_authority
string
основание полномочий подписанта договора
email
string
email-адрес
phone
string
телефон
billing_address_street
string
юридический адрес
billing_address_city
string
город юридического адреса
billing_address_postalcode
string
индекс юридического адреса
shipping_address_street
string
фактический адрес
shipping_address_city
string
фактический город
shipping_address_postalcode
string
индекс фактического адреса
agree_to_the_terms
boolean
признак согласия с условиями оказания услуг связи
curl -X POST \
"https://restapi.plusofon.ru/api/v1/agreement/jur-save" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Client: 10553" \
-H "Authorization: Bearer {token}" \
-d '{"legal_form":"assumenda","name":"facilis","inn":"sit","ogrn":"quo","kpp":"tenetur","bik":"quod","bank":"eius","payment_account":"dignissimos","correspondent_account":"fuga","last_name":"magni","first_name":"inventore","middle_name":"consequatur","position":"incidunt","foundation_authority":"et","email":"ex","phone":"ut","billing_address_street":"fuga","shipping_address_street":"pariatur","agree_to_the_terms":false,"shipping_address_city":"veritatis","shipping_address_postalcode":"voluptatem","billing_address_city":"eum","billing_address_postalcode":"esse","legal_form_full":"a"}'
const url = new URL(
"https://restapi.plusofon.ru/api/v1/agreement/jur-save"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Client": "10553",
"Authorization": "Bearer {token}",
};
let body = {
"legal_form": "assumenda",
"name": "facilis",
"inn": "sit",
"ogrn": "quo",
"kpp": "tenetur",
"bik": "quod",
"bank": "eius",
"payment_account": "dignissimos",
"correspondent_account": "fuga",
"last_name": "magni",
"first_name": "inventore",
"middle_name": "consequatur",
"position": "incidunt",
"foundation_authority": "et",
"email": "ex",
"phone": "ut",
"billing_address_street": "fuga",
"shipping_address_street": "pariatur",
"agree_to_the_terms": false,
"shipping_address_city": "veritatis",
"shipping_address_postalcode": "voluptatem",
"billing_address_city": "eum",
"billing_address_postalcode": "esse",
"legal_form_full": "a"
}
fetch(url, {
method: "POST",
headers: headers,
body: body
})
.then(response => response.json())
.then(json => console.log(json));
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://restapi.plusofon.ru/api/v1/agreement/jur-save',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Client' => '10553',
'Authorization' => 'Bearer {token}',
],
'json' => [
'legal_form' => 'assumenda',
'name' => 'facilis',
'inn' => 'sit',
'ogrn' => 'quo',
'kpp' => 'tenetur',
'bik' => 'quod',
'bank' => 'eius',
'payment_account' => 'dignissimos',
'сorrespondent_account' => 'fuga',
'last_name' => 'magni',
'first_name' => 'inventore',
'middle_name' => 'consequatur',
'position' => 'incidunt',
'foundation_authority' => 'et',
'email' => 'ex',
'phone' => 'ut',
'billing_address_street' => 'fuga',
'shipping_address_street' => 'pariatur',
'agree_to_the_terms' => false,
'shipping_address_city' => 'veritatis',
'shipping_address_postalcode' => 'voluptatem',
'billing_address_city' => 'eum',
'billing_address_postalcode' => 'esse',
'legal_form_full' => 'a',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://restapi.plusofon.ru/api/v1/agreement/jur-save'
payload = {
"legal_form": "assumenda",
"name": "facilis",
"inn": "sit",
"ogrn": "quo",
"kpp": "tenetur",
"bik": "quod",
"bank": "eius",
"payment_account": "dignissimos",
"correspondent_account": "fuga",
"last_name": "magni",
"first_name": "inventore",
"middle_name": "consequatur",
"position": "incidunt",
"foundation_authority": "et",
"email": "ex",
"phone": "ut",
"billing_address_street": "fuga",
"shipping_address_street": "pariatur",
"agree_to_the_terms": false,
"shipping_address_city": "veritatis",
"shipping_address_postalcode": "voluptatem",
"billing_address_city": "eum",
"billing_address_postalcode": "esse",
"legal_form_full": "a"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Client': '10553',
'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
В ответе может возвращаться:
success
признак успешно выполненного запроса
message
сообщение об ошибке
Данные сохранены:
{
"success": true
}
Нет согласия с условиями оказания услуг связи:
{
"message": "The selected agree to the terms is invalid.",
"code": 400
}
Пользователь не найден:
{
"message": "User not found.",
"code": 500
}
POST
api/v1/agreement/ip-save
Метод позволяет сохранить данные индивидуального предпринимателя для оформления договора. При этом договор не отправляется на оформление.
Body
first_name
string
имя
last_name
string
фамилия
middle_name
string
отчество
birthday
date / YYYY-MM-DD
дата рождения
passport_series
string
серия паспорта
passport_number
string
номер паспорта
issue
string
кем выдан паспорт
date_of_issue
date / YYYY-MM-DD
дата выдачи паспорта
inn
string
ИНН
ogrn
string
ОГРНИП
bik
string
БИК банка
bank
string
наименование банка
payment_account
string
расчетный счёт
сorrespondent_account
string
корреспондентский счёт
billing_address_street
string
адрес регистрации
shipping_address_street
string
фактический адрес
agree_to_the_terms
boolean
признак согласия с условиями оказания услуг связи
shipping_address_city
string
фактический город
shipping_address_postalcode
string
индекс фактического адреса
billing_address_city
string
город регистрации
billing_address_postalcode
string
почтовый индекс адреса регистрации
curl -X POST \
"https://restapi.plusofon.ru/api/v1/agreement/ip-save" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Client: 10553" \
-H "Authorization: Bearer {token}" \
-d '{"first_name":"Иван","last_name":"Иванов","middle_name":"Иванович","birthday":"1990-01-01","passport_series":"1234","passport_number":"123456","issue":"УФМС РФ","date_of_issue":"2000-01-01","inn":"1234567890","ogrn":"1234567890","bik":"014325249","bank":"СБЕРБАНК","payment_account":"40705810935050152927","correspondent_account":"80211890480601000625","billing_address_street":"г Москва, ул Первая, д 1, кв 1","shipping_address_street":"г Москва, ул Первая, д 1, кв 1","agree_to_the_terms":true,"shipping_address_city":"Москва","shipping_address_postalcode":"123456","billing_address_city":"Москва","billing_address_postalcode":"123456"}'
const url = new URL(
"https://restapi.plusofon.ru/api/v1/agreement/ip-save"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Client": "10553",
"Authorization": "Bearer {token}",
};
let body = {
"first_name": "Иван",
"last_name": "Иванов",
"middle_name": "Иванович",
"birthday": "1990-01-01",
"passport_series": "1234",
"passport_number": "123456",
"issue": "УФМС РФ",
"date_of_issue": "2000-01-01",
"inn": "1234567890",
"ogrn": "1234567890",
"bik": "014325249",
"bank": "СБЕРБАНК",
"payment_account": "40705810935050152927",
"correspondent_account": "80211890480601000625",
"billing_address_street": "г Москва, ул Первая, д 1, кв 1",
"shipping_address_street": "г Москва, ул Первая, д 1, кв 1",
"agree_to_the_terms": true,
"shipping_address_city": "Москва",
"shipping_address_postalcode": "123456",
"billing_address_city": "Москва",
"billing_address_postalcode": "123456"
}
fetch(url, {
method: "POST",
headers: headers,
body: body
})
.then(response => response.json())
.then(json => console.log(json));
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://restapi.plusofon.ru/api/v1/agreement/ip-save',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Client' => '10553',
'Authorization' => 'Bearer {token}',
],
'json' => [
'first_name' => 'Иван',
'last_name' => 'Иванов',
'middle_name' => 'Иванович',
'birthday' => '1990-01-01',
'passport_series' => '1234',
'passport_number' => '123456',
'issue' => 'УФМС РФ',
'date_of_issue' => '2000-01-01',
'inn' => '1234567890',
'ogrn' => '1234567890',
'bik' => '014325249',
'bank' => 'СБЕРБАНК',
'payment_account' => '40705810935050152927',
'correspondent_account' => '80211890480601000625',
'billing_address_street' => 'г Москва, ул Первая, д 1, кв 1',
'shipping_address_street' => 'г Москва, ул Первая, д 1, кв 1',
'agree_to_the_terms' => true,
'shipping_address_city' => 'Москва',
'shipping_address_postalcode' => '123456',
'billing_address_city' => 'Москва',
'billing_address_postalcode' => '123456',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://restapi.plusofon.ru/api/v1/agreement/ip-save'
payload = {
"first_name": "Иван",
"last_name": "Иванов",
"middle_name": "Иванович",
"birthday": "1990-01-01",
"passport_series": "1234",
"passport_number": "123456",
"issue": "УФМС РФ",
"date_of_issue": "2000-01-01",
"inn": "1234567890",
"ogrn": "1234567890",
"bik": "014325249",
"bank": "СБЕРБАНК",
"payment_account": "40705810935050152927",
"correspondent_account": "80211890480601000625",
"billing_address_street": "г Москва, ул Первая, д 1, кв 1",
"shipping_address_street": "г Москва, ул Первая, д 1, кв 1",
"agree_to_the_terms": true,
"shipping_address_city": "Москва",
"shipping_address_postalcode": "123456",
"billing_address_city": "Москва",
"billing_address_postalcode": "123456"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Client': '10553',
'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
В ответе может возвращаться:
success
признак успешно выполненного запроса
message
сообщение об ошибке
Данные сохранены:
{
"success": true
}
Нет согласия с условиями оказания услуг связи:
{
"message": "The selected agree to the terms is invalid",
"code": 400
}
Пользователь не найден:
{
"message": "User not found",
"code": 500
}
POST
api/v1/agreement/fiz
Метод позволяет отправить данные физического лица для оформления договора.
Body
first_name
string
⁎ имя
last_name
string
⁎ фамилия
middle_name
string
⁎ отчество
birthday
date / YYYY-MM-DD
⁎ дата рождения
passport_series
string
⁎ серия паспорта
passport_number
string
⁎ номер паспорта
issue
string
⁎ кем выдан паспорт
date_of_issue
date / YYYY-MM-DD
⁎ дата выдачи паспорта
billing_address_street
string
⁎ адрес регистрации
billing_address_city
string
город регистрации
billing_address_postalcode
string
индекс адреса регистрации
shipping_address_street
string
⁎ фактический адрес
shipping_address_city
string
фактический город
shipping_address_postalcode
string
индекс фактического адреса
agree_to_the_terms
boolean
⁎ признак согласия с условиями оказания услуг связи
file_passport
file
⁎ паспорт — основной разворот
file_registration
file
⁎ паспорт — разворот с регистрацией
file_selfie
file
⁎ селфи с паспортом
Запрос:
curl -X POST \
"https://restapi.plusofon.ru/api/v1/agreement/fiz" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Client: 10553" \
-H "Authorization: Bearer {token}" \
-d '{"first_name":"eligendi","last_name":"unde","middle_name":"in","birthday":"quas","passport_series":"quas","passport_number":"amet","issue":"dolorum","date_of_issue":"labore","billing_address_street":"distinctio","shipping_address_street":"consequatur","agree_to_the_terms":false,"shipping_address_city":"explicabo","shipping_address_postalcode":"enim","billing_address_city":"exercitationem","billing_address_postalcode":"sit","file_passport":"dicta","file_registration":"occaecati","file_selfie":"recusandae"}'
const url = new URL(
"https://restapi.plusofon.ru/api/v1/agreement/fiz"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Client": "10553",
"Authorization": "Bearer {token}",
};
let body = {
"first_name": "eligendi",
"last_name": "unde",
"middle_name": "in",
"birthday": "quas",
"passport_series": "quas",
"passport_number": "amet",
"issue": "dolorum",
"date_of_issue": "labore",
"billing_address_street": "distinctio",
"shipping_address_street": "consequatur",
"agree_to_the_terms": false,
"shipping_address_city": "explicabo",
"shipping_address_postalcode": "enim",
"billing_address_city": "exercitationem",
"billing_address_postalcode": "sit",
"file_passport": "dicta",
"file_registration": "occaecati",
"file_selfie": "recusandae"
}
fetch(url, {
method: "POST",
headers: headers,
body: body
})
.then(response => response.json())
.then(json => console.log(json));
const url = new URL(
"https://restapi.plusofon.ru/api/v1/agreement/fiz"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Client": "10553",
"Authorization": "Bearer {token}",
};
let body = {
"first_name": "eligendi",
"last_name": "unde",
"middle_name": "in",
"birthday": "quas",
"passport_series": "quas",
"passport_number": "amet",
"issue": "dolorum",
"date_of_issue": "labore",
"billing_address_street": "distinctio",
"shipping_address_street": "consequatur",
"agree_to_the_terms": false,
"shipping_address_city": "explicabo",
"shipping_address_postalcode": "enim",
"billing_address_city": "exercitationem",
"billing_address_postalcode": "sit",
"file_passport": "dicta",
"file_registration": "occaecati",
"file_selfie": "recusandae"
}
fetch(url, {
method: "POST",
headers: headers,
body: body
})
.then(response => response.json())
.then(json => console.log(json));
import requests
import json
url = 'https://restapi.plusofon.ru/api/v1/agreement/fiz'
payload = {
"first_name": "eligendi",
"last_name": "unde",
"middle_name": "in",
"birthday": "quas",
"passport_series": "quas",
"passport_number": "amet",
"issue": "dolorum",
"date_of_issue": "labore",
"billing_address_street": "distinctio",
"shipping_address_street": "consequatur",
"agree_to_the_terms": false,
"shipping_address_city": "explicabo",
"shipping_address_postalcode": "enim",
"billing_address_city": "exercitationem",
"billing_address_postalcode": "sit",
"file_passport": "dicta",
"file_registration": "occaecati",
"file_selfie": "recusandae"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Client': '10553',
'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
В ответе может возвращаться:
success
признак успешно выполненного запроса
message
сообщение об ошибке
Данные отправлены:
{
"success": true
}
Нет согласия с условиями оказания услуг связи:
{
"message": "The selected agree to the terms is invalid",
"code": 400
}
Пользователь не найден:
{
"message": "User not found",
"code": 500
}
POST
api/v1/agreement/jur
Метод позволяет отправить данные юридического лица для оформления договора.
Body
legal_form
string
⁎ организационно-правовая форма (сокращённая)
legal_form_full
string
организационно-правовая форма (полная)
name
string
⁎ наименование организации
inn
string
⁎ ИНН
ogrn
string
⁎ ОГРН
kpp
string
⁎ КПП
bik
string
⁎ БИК банка
bank
string
⁎ наименование банка
payment_account
string
⁎ расчётный счёт
correspondent_account
string
⁎ корреспондентский счёт
last_name
string
⁎ фамилия подписанта договора
first_name
string
⁎ имя подписанта договора
middle_name
string
⁎ отчество подписанта договора
position
string
⁎ должность подписанта договора
foundation_authority
string
⁎ основание полномочий подписанта договора
email
string
⁎ email-адрес
phone
string
телефон
billing_address_street
string
⁎ юридический адрес
billing_address_city
string
город юридического адреса
billing_address_postalcode
string
индекс юридического адреса
shipping_address_street
string
⁎ фактический адрес
shipping_address_city
string
фактический город
shipping_address_postalcode
string
индекс фактического адреса
agree_to_the_terms
boolean
⁎ признак согласия с условиями оказания услуг связи
file_organization
file
⁎ карточка с реквизитами организации
file_authority
file
⁎ решение о назначении руководителя
file_ogrn
file
⁎ свидетельство ОГРН
file_inn
file
⁎ свидетельство ИНН
curl -X POST \
"https://restapi.plusofon.ru/api/v1/agreement/jur" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Client: 10553" \
-H "Authorization: Bearer {token}" \
-d '{"legal_form":"perferendis","name":"sequi","inn":"voluptas","ogrn":"enim","kpp":"architecto","bik":"quasi","bank":"accusantium","payment_account":"quisquam","correspondent_account":"id","last_name":"est","first_name":"et","middle_name":"nihil","position":"exercitationem","foundation_authority":"in","email":"eum","phone":"ullam","billing_address_street":"magni","shipping_address_street":"culpa","agree_to_the_terms":false,"shipping_address_city":"quasi","shipping_address_postalcode":"exercitationem","billing_address_city":"assumenda","billing_address_postalcode":"quasi","legal_form_full":"sunt","file_organization":"eum","file_authority":"aut","file_ogrn":"explicabo","file_inn":"veniam"}'
const url = new URL(
"https://restapi.plusofon.ru/api/v1/agreement/jur"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Client": "10553",
"Authorization": "Bearer {token}",
};
let body = {
"legal_form": "perferendis",
"name": "sequi",
"inn": "voluptas",
"ogrn": "enim",
"kpp": "architecto",
"bik": "quasi",
"bank": "accusantium",
"payment_account": "quisquam",
"correspondent_account": "id",
"last_name": "est",
"first_name": "et",
"middle_name": "nihil",
"position": "exercitationem",
"foundation_authority": "in",
"email": "eum",
"phone": "ullam",
"billing_address_street": "magni",
"shipping_address_street": "culpa",
"agree_to_the_terms": false,
"shipping_address_city": "quasi",
"shipping_address_postalcode": "exercitationem",
"billing_address_city": "assumenda",
"billing_address_postalcode": "quasi",
"legal_form_full": "sunt",
"file_organization": "eum",
"file_authority": "aut",
"file_ogrn": "explicabo",
"file_inn": "veniam"
}
fetch(url, {
method: "POST",
headers: headers,
body: body
})
.then(response => response.json())
.then(json => console.log(json));
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://restapi.plusofon.ru/api/v1/agreement/jur',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Client' => '10553',
'Authorization' => 'Bearer {token}',
],
'json' => [
'legal_form' => 'perferendis',
'name' => 'sequi',
'inn' => 'voluptas',
'ogrn' => 'enim',
'kpp' => 'architecto',
'bik' => 'quasi',
'bank' => 'accusantium',
'payment_account' => 'quisquam',
'correspondent_account' => 'id',
'last_name' => 'est',
'first_name' => 'et',
'middle_name' => 'nihil',
'position' => 'exercitationem',
'foundation_authority' => 'in',
'email' => 'eum',
'phone' => 'ullam',
'billing_address_street' => 'magni',
'shipping_address_street' => 'culpa',
'agree_to_the_terms' => false,
'shipping_address_city' => 'quasi',
'shipping_address_postalcode' => 'exercitationem',
'billing_address_city' => 'assumenda',
'billing_address_postalcode' => 'quasi',
'legal_form_full' => 'sunt',
'file_organization' => 'eum',
'file_authority' => 'aut',
'file_ogrn' => 'explicabo',
'file_inn' => 'veniam',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://restapi.plusofon.ru/api/v1/agreement/jur'
payload = {
"legal_form": "perferendis",
"name": "sequi",
"inn": "voluptas",
"ogrn": "enim",
"kpp": "architecto",
"bik": "quasi",
"bank": "accusantium",
"payment_account": "quisquam",
"correspondent_account": "id",
"last_name": "est",
"first_name": "et",
"middle_name": "nihil",
"position": "exercitationem",
"foundation_authority": "in",
"email": "eum",
"phone": "ullam",
"billing_address_street": "magni",
"shipping_address_street": "culpa",
"agree_to_the_terms": false,
"shipping_address_city": "quasi",
"shipping_address_postalcode": "exercitationem",
"billing_address_city": "assumenda",
"billing_address_postalcode": "quasi",
"legal_form_full": "sunt",
"file_organization": "eum",
"file_authority": "aut",
"file_ogrn": "explicabo",
"file_inn": "veniam"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Client': '10553',
'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
В ответе может возвращаться:
success
признак успешно выполненного запроса
message
сообщение об ошибке
Данные отправлены:
{
"success": true
}
Нет согласия с условиями оказания услуг связи:
{
"message": "The selected agree to the terms is invalid",
"code": 400
}
Пользователь не найден:
{
"message": "User not found",
"code": 500
}
POST
api/v1/agreement/ip
Метод позволяет отправить данные индивидуального предпринимателя для оформления договора.
Body
first_name
string
⁎ имя
last_name
string
⁎ фамилия
middle_name
string
⁎ отчество
birthday
date / YYYY-MM-DD
⁎ дата рождения
passport_series
string
⁎ серия паспорта
passport_number
string
⁎ номер паспорта
issue
string
⁎ кем выдан паспорт
date_of_issue
date / YYYY-MM-DD
⁎ дата выдачи паспорта
inn
string
⁎ ИНН
ogrn
string
⁎ ОГРНИП
bik
string
⁎ БИК банка
bank
string
⁎ наименование банка
payment_account
string
⁎ расчётный счёт
сorrespondent_account
string
⁎ корреспондентский счёт
billing_address_street
string
⁎ адрес регистрации
billing_address_city
string
город регистрации
billing_address_postalcode
string
почтовый индекс адреса регистрации
shipping_address_street
string
⁎ фактический адрес
shipping_address_city
string
фактический город
shipping_address_postalcode
string
почтовый индекс фактического адреса
agree_to_the_terms
boolean
⁎ признак согласия с условиями оказания услуг связи
file_passport
file
⁎ паспорт — основной разворот
file_registration
file
⁎ паспорт — разворот с регистрацией
file_selfie
file
⁎ селфи с паспортом
curl -X POST \
"https://restapi.plusofon.ru/api/v1/agreement/ip" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Client: 10553" \
-H "Authorization: Bearer {token}" \
-d '{"first_name":"sunt","last_name":"corporis","middle_name":"dolorem","birthday":"et","passport_series":"aspernatur","passport_number":"omnis","issue":"fuga","date_of_issue":"consequuntur","inn":"quia","ogrn":"distinctio","bik":"eum","bank":"ea","payment_account":"iusto","correspondent_account":"enim","billing_address_street":"temporibus","shipping_address_street":"beatae","agree_to_the_terms":false,"shipping_address_city":"velit","shipping_address_postalcode":"provident","billing_address_city":"et","billing_address_postalcode":"dolorum","file_passport":"quaerat","file_registration":"quo","file_selfie":"quas"}'
const url = new URL(
"https://restapi.plusofon.ru/api/v1/agreement/ip"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Client": "10553",
"Authorization": "Bearer {token}",
};
let body = {
"first_name": "sunt",
"last_name": "corporis",
"middle_name": "dolorem",
"birthday": "et",
"passport_series": "aspernatur",
"passport_number": "omnis",
"issue": "fuga",
"date_of_issue": "consequuntur",
"inn": "quia",
"ogrn": "distinctio",
"bik": "eum",
"bank": "ea",
"payment_account": "iusto",
"correspondent_account": "enim",
"billing_address_street": "temporibus",
"shipping_address_street": "beatae",
"agree_to_the_terms": false,
"shipping_address_city": "velit",
"shipping_address_postalcode": "provident",
"billing_address_city": "et",
"billing_address_postalcode": "dolorum",
"file_passport": "quaerat",
"file_registration": "quo",
"file_selfie": "quas"
}
fetch(url, {
method: "POST",
headers: headers,
body: body
})
.then(response => response.json())
.then(json => console.log(json));
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://restapi.plusofon.ru/api/v1/agreement/ip',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Client' => '10553',
'Authorization' => 'Bearer {token}',
],
'json' => [
'first_name' => 'sunt',
'last_name' => 'corporis',
'middle_name' => 'dolorem',
'birthday' => 'et',
'passport_series' => 'aspernatur',
'passport_number' => 'omnis',
'issue' => 'fuga',
'date_of_issue' => 'consequuntur',
'inn' => 'quia',
'ogrn' => 'distinctio',
'bik' => 'eum',
'bank' => 'ea',
'payment_account' => 'iusto',
'correspondent_account' => 'enim',
'billing_address_street' => 'temporibus',
'shipping_address_street' => 'beatae',
'agree_to_the_terms' => false,
'shipping_address_city' => 'velit',
'shipping_address_postalcode' => 'provident',
'billing_address_city' => 'et',
'billing_address_postalcode' => 'dolorum',
'file_passport' => 'quaerat',
'file_registration' => 'quo',
'file_selfie' => 'quas',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://restapi.plusofon.ru/api/v1/agreement/ip'
payload = {
"first_name": "sunt",
"last_name": "corporis",
"middle_name": "dolorem",
"birthday": "et",
"passport_series": "aspernatur",
"passport_number": "omnis",
"issue": "fuga",
"date_of_issue": "consequuntur",
"inn": "quia",
"ogrn": "distinctio",
"bik": "eum",
"bank": "ea",
"payment_account": "iusto",
"correspondent_account": "enim",
"billing_address_street": "temporibus",
"shipping_address_street": "beatae",
"agree_to_the_terms": false,
"shipping_address_city": "velit",
"shipping_address_postalcode": "provident",
"billing_address_city": "et",
"billing_address_postalcode": "dolorum",
"file_passport": "quaerat",
"file_registration": "quo",
"file_selfie": "quas"
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Client': '10553',
'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
В ответе может возвращаться:
success
признак успешно выполненного запроса
message
сообщение об ошибке
Данные отправлены:
{
"success": true
}
Нет согласия с условиями оказания услуг связи:
{
"message": "The selected agree to the terms is invalid",
"code": 400
}
Пользователь не найден:
{
"message": "User not found",
"code": 500
}
GET
api/v1/agreement/download
Метод позволяет получить PDF-файл договора.
Не имеет параметров.
curl -X GET \
-G "https://restapi.plusofon.ru/api/v1/agreement/download" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Client: 10553" \
-H "Authorization: Bearer {token}"
const url = new URL(
"https://restapi.plusofon.ru/api/v1/agreement/download"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Client": "10553",
"Authorization": "Bearer {token}",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://restapi.plusofon.ru/api/v1/agreement/download',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Client' => '10553',
'Authorization' => 'Bearer {token}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://restapi.plusofon.ru/api/v1/agreement/download'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Client': '10553',
'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()
В ответе может возвращаться:
success
признак успешно выполненного запроса
message
сообщение об ошибке
Файл получен:
null
Файл ещё не готов:
{
"message": "File not ready for download"
}
Пользователь не найден:
{
"message": "User not found",
"code": 500
}
POST
api/v1/agreement/upload
Метод позволяет передать файл подписанного договора.
Body
files
arraycurl -X POST \
"https://restapi.plusofon.ru/api/v1/agreement/upload" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Client: 10553" \
-H "Authorization: Bearer {token}" \
-d '{"files":[]}'
const url = new URL(
"https://restapi.plusofon.ru/api/v1/agreement/upload"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Client": "10553",
"Authorization": "Bearer {token}",
};
let body = {
"files": []
}
fetch(url, {
method: "POST",
headers: headers,
body: body
})
.then(response => response.json())
.then(json => console.log(json));
$client = new \GuzzleHttp\Client();
$response = $client->post(
'https://restapi.plusofon.ru/api/v1/agreement/upload',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Client' => '10553',
'Authorization' => 'Bearer {token}',
],
'json' => [
'files' => [],
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://restapi.plusofon.ru/api/v1/agreement/upload'
payload = {
"files": []
}
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Client': '10553',
'Authorization': 'Bearer {token}'
}
response = requests.request('POST', url, headers=headers, json=payload)
response.json()
В ответе может возвращаться:
success
признак успешно выполненного запроса
message
сообщение об ошибке
Файл успешно загружен:
{
"success": true
}
Файл ещё не готов:
{
"message": "File not ready for download"
}
Нет согласия с условиями оказания услуг связи:
{
"message": "The selected agree to the terms is invalid",
"code": 400
}
Пользователь не найден:
{
"message": "User not found",
"code": 500
}
GET
api/v1/agreement/esia
Метод позволяет получить URL для авторизации через Госуслуги.
Не имеет параметров.
curl -X GET \
-G "https://restapi.plusofon.ru/api/v1/agreement/esia" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Client: 10553" \
-H "Authorization: Bearer {token}"
const url = new URL(
"https://restapi.plusofon.ru/api/v1/agreement/esia"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Client": "10553",
"Authorization": "Bearer {token}",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://restapi.plusofon.ru/api/v1/agreement/esia',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Client' => '10553',
'Authorization' => 'Bearer {token}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://restapi.plusofon.ru/api/v1/agreement/esia'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Client': '10553',
'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()
В ответе может возвращаться:
success
признак успешно выполненного запроса
message
сообщение об ошибке
В ответе возвращается URL:
{
"url": "https://e-info.plusofon.ru/userauth?client_id=1&requestMd5=61dc2c99781bf244280a7e76028",
"success": true
}
GET
api/v1/agreement/send-on-sign
Метод позволяет отправить договор на подпись в приложение «Госключ».
Не имеет параметров.
curl -X GET \
-G "https://restapi.plusofon.ru/api/v1/agreement/send-on-sign" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-H "Client: 10553" \
-H "Authorization: Bearer {token}"
const url = new URL(
"https://restapi.plusofon.ru/api/v1/agreement/send-on-sign"
);
let headers = {
"Content-Type": "application/json",
"Accept": "application/json",
"Client": "10553",
"Authorization": "Bearer {token}",
};
fetch(url, {
method: "GET",
headers: headers,
})
.then(response => response.json())
.then(json => console.log(json));
$client = new \GuzzleHttp\Client();
$response = $client->get(
'https://restapi.plusofon.ru/api/v1/agreement/send-on-sign',
[
'headers' => [
'Content-Type' => 'application/json',
'Accept' => 'application/json',
'Client' => '10553',
'Authorization' => 'Bearer {token}',
],
]
);
$body = $response->getBody();
print_r(json_decode((string) $body));
import requests
import json
url = 'https://restapi.plusofon.ru/api/v1/agreement/send-on-sign'
headers = {
'Content-Type': 'application/json',
'Accept': 'application/json',
'Client': '10553',
'Authorization': 'Bearer {token}'
}
response = requests.request('GET', url, headers=headers)
response.json()
В ответе может возвращаться:
success
признак успешно выполненного запроса
message
сообщение об ошибке
В ответе возвращается URL:
{
"success": true
}