NAV
bash javascript

Info

Welcome to the generated API reference.

0-Start

user-login

H2O müşteri paneli işlemleri için OTP ile token almanızı sağlar. İki aşamalıdır birinci aşamada telefon numarası yollanır ve sms ile kod gönderilmesi sağlanır. İkinci aşamada sms_code yollanır ve pin doğrulamasından sonra User methodları için Access_token alınır.

Example request:

curl -X POST "http://h2o-a.loc/user-login" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"phone_number":"username@Eventpay.com","sms_code":"123456","token":"minus"}'
const url = new URL("http://h2o-a.loc/user-login");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "phone_number": "username@Eventpay.com",
    "sms_code": "123456",
    "token": "minus"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST user-login

Body Parameters

Parameter Type Status Description
phone_number string required Mail adresiniz
sms_code string required Giriş şifreniz
token string optional Agent urlden gelen kullanıcı için Token değeri.

admin-login

H2O admin paneli işlemleri için OTP ile token almanızı sağlar. İki aşamalıdır birinci aşamada telefon numarası yollanır ve sms ile kod gönderilmesi sağlanır. İkinci aşamada sms_code yollanır ve pin doğrulamasından sonra Admin methodları için Access_token alınır.

Example request:

curl -X POST "http://h2o-a.loc/admin-login" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"phone_number":"username@Eventpay.com","sms_code":"123456"}'
const url = new URL("http://h2o-a.loc/admin-login");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "phone_number": "username@Eventpay.com",
    "sms_code": "123456"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST admin-login

Body Parameters

Parameter Type Status Description
phone_number string required Mail adresiniz
sms_code string required Giriş şifreniz

product-list

H2O ürünlerini listeler.

Example request:

curl -X POST "http://h2o-a.loc/product-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"maxime","campaign_id":"sed"}'
const url = new URL("http://h2o-a.loc/product-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "maxime",
    "campaign_id": "sed"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST product-list

Body Parameters

Parameter Type Status Description
search_value string optional Arama parametresicom
campaign_id string optional Kampanyalı fiyatlarıda ekler

location-list

Adres oluşturmak için gerekli İL - İLÇE - MAHALLE id lerini getirir.

Example request:

curl -X POST "http://h2o-a.loc/location-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"type":"est","location_id":"molestiae","search_value":"voluptatem"}'
const url = new URL("http://h2o-a.loc/location-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "type": "est",
    "location_id": "molestiae",
    "search_value": "voluptatem"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST location-list

Body Parameters

Parameter Type Status Description
type required optional string Liste türünü belirler. TYPES: cities,districts,quarters
location_id string optional Alt birimlerilistelencek Lokasyon id
search_value string optional Arama parametresi

terms-list

Site genelinde gösterilecek izin ve sözleşmeleri getirir.

Example request:

curl -X POST "http://h2o-a.loc/terms-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"doloremque"}'
const url = new URL("http://h2o-a.loc/terms-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "doloremque"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST terms-list

Body Parameters

Parameter Type Status Description
search_value string optional

campaign-get

Slug parametresinden kampanya detayını getirir.

Example request:

curl -X POST "http://h2o-a.loc/campaign-get" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"slug":"facilis"}'
const url = new URL("http://h2o-a.loc/campaign-get");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "slug": "facilis"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST campaign-get

Body Parameters

Parameter Type Status Description
slug required optional string Liste türünü belirler. TYPES: cities,districts,quarters

user-check

Telefon numarasından kullanıcının kayıtlı olup olmadığını kontrol eder.

Example request:

curl -X POST "http://h2o-a.loc/user-check" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"phone_number":"username@Eventpay.com"}'
const url = new URL("http://h2o-a.loc/user-check");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "phone_number": "username@Eventpay.com"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST user-check

Body Parameters

Parameter Type Status Description
phone_number string required Mail adresiniz

1-User

auth3d-callback

Example request:

curl -X POST "http://h2o-a.loc/auth3d-callback" \
    -H "Access-token: {token}"
const url = new URL("http://h2o-a.loc/auth3d-callback");

let headers = {
    "Access-token": "{token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST auth3d-callback

u-get-me

Kullanıcının detayını getirir.

Example request:

curl -X POST "http://h2o-a.loc/u-get-me" \
    -H "Access-token: {token}"
const url = new URL("http://h2o-a.loc/u-get-me");

let headers = {
    "Access-token": "{token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST u-get-me

u-update-me

Kullanıcının detayını günceller.

Example request:

curl -X POST "http://h2o-a.loc/u-update-me" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"name":12,"surname":17,"email":13,"tcno":9,"bithday":13}'
const url = new URL("http://h2o-a.loc/u-update-me");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "name": 12,
    "surname": 17,
    "email": 13,
    "tcno": 9,
    "bithday": 13
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST u-update-me

Body Parameters

Parameter Type Status Description
name integer required ...
surname integer required ...
email integer required ...
tcno integer required ...
bithday integer required ...

u-address-express

address_id ile gönderilen adresin detayını getirir.

address_id ile gönderilen parametreleri günceller. address_id yoksa yeni adres oluşturur varsa günceller.

Example request:

curl -X POST "http://h2o-a.loc/u-address-express" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"address_id":10,"city_id":4,"district_id":12,"quarter_id":10,"address_title":"facere","address_description":"perferendis","address":"sunt","building_number":20,"door_number":13,"floor":16,"postal_code":12,"longitude":"aut","latitude":"ducimus"}'
const url = new URL("http://h2o-a.loc/u-address-express");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "address_id": 10,
    "city_id": 4,
    "district_id": 12,
    "quarter_id": 10,
    "address_title": "facere",
    "address_description": "perferendis",
    "address": "sunt",
    "building_number": 20,
    "door_number": 13,
    "floor": 16,
    "postal_code": 12,
    "longitude": "aut",
    "latitude": "ducimus"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST u-address-express

Body Parameters

Parameter Type Status Description
address_id integer optional ...
city_id integer required ...
district_id integer required ...
quarter_id integer required ...
address_title string required ...
address_description string required ...
address string required ...
building_number integer required ...
door_number integer required ...
floor integer required ...
postal_code integer required ...
longitude string required Harita Boylam
latitude string required Harita Enlem

u-address-list

Kullanıcıların adreslerini listeler.

Example request:

curl -X POST "http://h2o-a.loc/u-address-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"odio"}'
const url = new URL("http://h2o-a.loc/u-address-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "odio"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST u-address-list

Body Parameters

Parameter Type Status Description
search_value string optional Arama parametresi

u-lead-express

address_id ye bağlı açık lead detayını getirir, address_id ile gönderilen parametreleri günceller. address_id yoksa yeni lead oluşturur.

Example request:

curl -X POST "http://h2o-a.loc/u-lead-express" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"address_id":6,"lead_type":9,"price_ids":"modi","prerequisites":"asperiores","is_self_service":8,"campaign_id":3}'
const url = new URL("http://h2o-a.loc/u-lead-express");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "address_id": 6,
    "lead_type": 9,
    "price_ids": "modi",
    "prerequisites": "asperiores",
    "is_self_service": 8,
    "campaign_id": 3
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST u-lead-express

Body Parameters

Parameter Type Status Description
address_id integer required ...
lead_type integer required ... 1.bireyse 2.kurumsal
price_ids json required ... [86]
prerequisites json required ... [1,1]
is_self_service integer optional nullable Self servisi iptalekmek için 1 gönderilir.
campaign_id integer optional Kampanya ID

u-lead-findex

Findex punanını hesaplar ve lead'e kayıt eder. İlk aşamada tcno ve lead_id gönderilir. İkinci aşamada sms_pin, dogum_yili ve ilk istekde dönen token gönderilmelidir.

Example request:

curl -X POST "http://h2o-a.loc/u-lead-findex" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"lead_id":8,"tcno":14,"pin":4,"dogum_yili":8,"token":11}'
const url = new URL("http://h2o-a.loc/u-lead-findex");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "lead_id": 8,
    "tcno": 14,
    "pin": 4,
    "dogum_yili": 8,
    "token": 11
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST u-lead-findex

Body Parameters

Parameter Type Status Description
lead_id integer required ...
tcno integer required ...
pin integer required ...
dogum_yili integer required ...
token integer required ...

u-subs-express

lead_id uygunsa sözleşmeyi başlatır..

Example request:

curl -X POST "http://h2o-a.loc/u-subs-express" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"lead_id":14,"terms_ids":"vero","card_id":10,"is_delete":11}'
const url = new URL("http://h2o-a.loc/u-subs-express");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "lead_id": 14,
    "terms_ids": "vero",
    "card_id": 10,
    "is_delete": 11
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST u-subs-express

Body Parameters

Parameter Type Status Description
lead_id integer required ...
terms_ids json required ...
card_id integer required ...
is_delete integer optional Eğer 1 ise onay aşamasındaki aboneliği siler ...

u-subs-list

Aktif sözleşmeleri listeler.

Example request:

curl -X POST "http://h2o-a.loc/u-subs-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"nisi","user_id":1,"campaign_id":2,"product_id":14,"status":20,"start_date":"ducimus","finish_date":"ut"}'
const url = new URL("http://h2o-a.loc/u-subs-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "nisi",
    "user_id": 1,
    "campaign_id": 2,
    "product_id": 14,
    "status": 20,
    "start_date": "ducimus",
    "finish_date": "ut"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST u-subs-list

Body Parameters

Parameter Type Status Description
search_value string optional Arama parametresi
user_id integer optional ...
campaign_id integer optional ...
product_id integer optional ...
status integer optional ...
start_date date optional date_format:Y-m-d
finish_date date optional date_format:Y-m-d

u-subs-get

Sözleşme detayını getirir.

Example request:

curl -X POST "http://h2o-a.loc/u-subs-get" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"subs_id":"ea"}'
const url = new URL("http://h2o-a.loc/u-subs-get");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "subs_id": "ea"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST u-subs-get

Body Parameters

Parameter Type Status Description
subs_id string required Abone Sözleşme ID

u-card-express

Kullanıcıya kartı ekler

Example request:

curl -X POST "http://h2o-a.loc/u-card-express" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"alias":16,"number":13,"holder_name":10,"expire_month":5,"expire_year":16,"cvv":19,"card_id":3,"is_delete":4}'
const url = new URL("http://h2o-a.loc/u-card-express");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "alias": 16,
    "number": 13,
    "holder_name": 10,
    "expire_month": 5,
    "expire_year": 16,
    "cvv": 19,
    "card_id": 3,
    "is_delete": 4
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST u-card-express

Body Parameters

Parameter Type Status Description
alias integer required ...
number integer required ...
holder_name integer required ...
expire_month integer required ...
expire_year integer required ...
cvv integer required ...
card_id integer required ...
is_delete integer required ...

u-card-list

Kullanıcının kartlarını listeler

Example request:

curl -X POST "http://h2o-a.loc/u-card-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"deleniti"}'
const url = new URL("http://h2o-a.loc/u-card-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "deleniti"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST u-card-list

Body Parameters

Parameter Type Status Description
search_value string optional ...

u-payment-list

Yapılan ve denenen ödemeleri getirir.

Example request:

curl -X POST "http://h2o-a.loc/u-payment-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"subs_id":7,"period_id":10}'
const url = new URL("http://h2o-a.loc/u-payment-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "subs_id": 7,
    "period_id": 10
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST u-payment-list

Body Parameters

Parameter Type Status Description
subs_id integer optional Arama parametresi
period_id integer optional Arama parametresi

u-ticket-express

1- ticket_id boş ve message varsa yeni ticket oluşturur.

2- ticket_id varsa ve message varsa yeni ticket'a mesaj olarak ekler.

Example request:

curl -X POST "http://h2o-a.loc/u-ticket-express" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"message":"aut","ticket_id":18,"subs_id":6,"type":3}'
const url = new URL("http://h2o-a.loc/u-ticket-express");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "message": "aut",
    "ticket_id": 18,
    "subs_id": 6,
    "type": 3
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST u-ticket-express

Body Parameters

Parameter Type Status Description
message text optional sometimes required mesaj yoksa ticket detayını getirir ...
ticket_id integer optional ID yoksa yeni ticket oluşturur.
subs_id integer optional required_without:ticket_id ...
type integer optional required_without:ticket_id ...

u-ticket-list

Kullanıcının destek taleplerini listeler.

Example request:

curl -X POST "http://h2o-a.loc/u-ticket-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"voluptates"}'
const url = new URL("http://h2o-a.loc/u-ticket-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "voluptates"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST u-ticket-list

Body Parameters

Parameter Type Status Description
search_value string optional Arama parametresi

u-notification-list

Kullanıcıya giden bildirimleri listeler.

Example request:

curl -X POST "http://h2o-a.loc/u-notification-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"quos","type":"explicabo","is_read_all":"minus"}'
const url = new URL("http://h2o-a.loc/u-notification-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "quos",
    "type": "explicabo",
    "is_read_all": "minus"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST u-notification-list

Body Parameters

Parameter Type Status Description
search_value string optional Arama parametresi
type string optional ...
is_read_all string optional bildirimleri okundu oalrak işaretler

u-period-express

Sözleşme periodunun detayıonı getirir veya ödemesini manuel şekilde yapılmasını sağlar.

Example request:

curl -X POST "http://h2o-a.loc/u-period-express" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"period_id":6,"is_payment_request":1}'
const url = new URL("http://h2o-a.loc/u-period-express");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "period_id": 6,
    "is_payment_request": 1
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST u-period-express

Body Parameters

Parameter Type Status Description
period_id integer required Ödemesi yapılmak istenen period ID değeri
is_payment_request integer optional 1 ise Ödemeyi tanımlı karttan alır

a-admin-list

Yönecileri listeler

Example request:

curl -X POST "http://h2o-a.loc/a-admin-list" \
    -H "Access-token: {token}"
const url = new URL("http://h2o-a.loc/a-admin-list");

let headers = {
    "Access-token": "{token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-admin-list

a-admin-express

Auth olmuş amini getirir. Ve ID veriilen kullanıcıyı getirir

Example request:

curl -X POST "http://h2o-a.loc/a-admin-express" \
    -H "Access-token: {token}"
const url = new URL("http://h2o-a.loc/a-admin-express");

let headers = {
    "Access-token": "{token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-admin-express

a-user-list

Abonelikleri olan kullanıcıları listeler.

Example request:

curl -X POST "http://h2o-a.loc/a-user-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"quidem"}'
const url = new URL("http://h2o-a.loc/a-user-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "quidem"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-user-list

Body Parameters

Parameter Type Status Description
search_value string optional Arama parametresi

a-lead-list

Admin için Lead kayıtlarını listeler.

Example request:

curl -X POST "http://h2o-a.loc/a-lead-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"ducimus","user_id":"voluptates"}'
const url = new URL("http://h2o-a.loc/a-lead-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "ducimus",
    "user_id": "voluptates"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-lead-list

Body Parameters

Parameter Type Status Description
search_value string optional Arama parametresi
user_id string optional ...

a-subs-list

Admin için abonelikleri listeler.

Example request:

curl -X POST "http://h2o-a.loc/a-subs-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"quis","user_id":"delectus"}'
const url = new URL("http://h2o-a.loc/a-subs-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "quis",
    "user_id": "delectus"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-subs-list

Body Parameters

Parameter Type Status Description
search_value string optional Arama parametresi
user_id string optional ...

a-subs-get

Admin için sözleşme detayını getirir

Example request:

curl -X POST "http://h2o-a.loc/a-subs-get" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"subs_id":"aperiam"}'
const url = new URL("http://h2o-a.loc/a-subs-get");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "subs_id": "aperiam"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-subs-get

Body Parameters

Parameter Type Status Description
subs_id string required Abone Sözleşme ID

a-subs-express

lead_id uygunsa sözleşmeyi başlatır..

Example request:

curl -X POST "http://h2o-a.loc/a-subs-express" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"subs_id":"minus","is_test":18}'
const url = new URL("http://h2o-a.loc/a-subs-express");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "subs_id": "minus",
    "is_test": 18
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-subs-express

Body Parameters

Parameter Type Status Description
subs_id string required Abone Sözleşme ID
is_test integer optional ...

a-ticket-list

Kullanıcıların destek taleplerini listeler.

Example request:

curl -X POST "http://h2o-a.loc/a-ticket-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"qui","type":"aliquam","user_id":"perspiciatis"}'
const url = new URL("http://h2o-a.loc/a-ticket-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "qui",
    "type": "aliquam",
    "user_id": "perspiciatis"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-ticket-list

Body Parameters

Parameter Type Status Description
search_value string optional Arama parametresi
type string optional ...
user_id string optional ...

a-ticket-express

Ticket'a mesaj olarak ekler.

Example request:

curl -X POST "http://h2o-a.loc/a-ticket-express" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"ticket_id":9,"message":"natus"}'
const url = new URL("http://h2o-a.loc/a-ticket-express");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "ticket_id": 9,
    "message": "natus"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-ticket-express

Body Parameters

Parameter Type Status Description
ticket_id integer optional ID yoksa yeni ticket oluşturur.
message text optional sometimes required mesaj yoksa ticket detayını getirir ...

a-order-list

Diğer ödeme kayıtlarını listeler.

Example request:

curl -X POST "http://h2o-a.loc/a-order-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"type":12,"subs_id":13,"user_id":1}'
const url = new URL("http://h2o-a.loc/a-order-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "type": 12,
    "subs_id": 13,
    "user_id": 1
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-order-list

Body Parameters

Parameter Type Status Description
type integer optional ...
subs_id integer optional ...
user_id integer optional ...

a-order-express

Ödeme talebinin detayını getirir, Ödeme oluşturur, Ödemeyi tahisil eder.

.

Example request:

curl -X POST "http://h2o-a.loc/a-order-express" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"order_id":14,"subs_id":2,"type":6,"amount":6,"is_delete":2,"is_payment_request":1}'
const url = new URL("http://h2o-a.loc/a-order-express");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "order_id": 14,
    "subs_id": 2,
    "type": 6,
    "amount": 6,
    "is_delete": 2,
    "is_payment_request": 1
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-order-express

Body Parameters

Parameter Type Status Description
order_id integer required ...
subs_id integer optional ...
type integer optional ...
amount integer optional ...
is_delete integer optional ...
is_payment_request integer optional ...

a-wallet-list

Cüzdan işlemlerini listeler.

Example request:

curl -X POST "http://h2o-a.loc/a-wallet-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"type":19,"subs_id":19,"user_id":19}'
const url = new URL("http://h2o-a.loc/a-wallet-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "type": 19,
    "subs_id": 19,
    "user_id": 19
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-wallet-list

Body Parameters

Parameter Type Status Description
type integer optional ...
subs_id integer optional ...
user_id integer optional ...

a-order-express

Cüzdan'a ait işlem detayını getirir, bakiye yükler yada iade ekler.

Example request:

curl -X POST "http://h2o-a.loc/a-wallet-express" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"wallet_id":11,"amount":2,"is_refund":7}'
const url = new URL("http://h2o-a.loc/a-wallet-express");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "wallet_id": 11,
    "amount": 2,
    "is_refund": 7
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-wallet-express

Body Parameters

Parameter Type Status Description
wallet_id integer required ...
amount integer optional ...
is_refund integer optional Default=0

a-user-express

Kullnıcının detayını günceller.

Example request:

curl -X POST "http://h2o-a.loc/a-user-express" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"user_id":7,"name":5,"surname":16,"email":6,"mobile_number":5}'
const url = new URL("http://h2o-a.loc/a-user-express");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "user_id": 7,
    "name": 5,
    "surname": 16,
    "email": 6,
    "mobile_number": 5
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-user-express

Body Parameters

Parameter Type Status Description
user_id integer required ...
name integer optional ...
surname integer optional ...
email integer optional ...
mobile_number integer optional ...

a-product-express

Ürün detayını getirir veya günceller.

Example request:

curl -X POST "http://h2o-a.loc/a-product-express" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"product_id":16,"name":"et","surname":"saepe","status":12,"description":"at","image":"velit"}'
const url = new URL("http://h2o-a.loc/a-product-express");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "product_id": 16,
    "name": "et",
    "surname": "saepe",
    "status": 12,
    "description": "at",
    "image": "velit"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-product-express

Body Parameters

Parameter Type Status Description
product_id integer required ...
name string optional ...
surname string optional ...
status integer optional ...
description text optional ...
image base64 optional ...

a-address-list

Kullanıcıların adreslerini listeler.

Example request:

curl -X POST "http://h2o-a.loc/a-address-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"rem","user_id":"iste"}'
const url = new URL("http://h2o-a.loc/a-address-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "rem",
    "user_id": "iste"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-address-list

Body Parameters

Parameter Type Status Description
search_value string optional Arama parametresi
user_id string optional ...

a-address-express

Example request:

curl -X POST "http://h2o-a.loc/a-address-express" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"address_id":11}'
const url = new URL("http://h2o-a.loc/a-address-express");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "address_id": 11
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-address-express

Body Parameters

Parameter Type Status Description
address_id integer required ...

a-card-list

Kullanıcının kartlarını listeler

Example request:

curl -X POST "http://h2o-a.loc/a-card-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"totam","user_id":2}'
const url = new URL("http://h2o-a.loc/a-card-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "totam",
    "user_id": 2
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-card-list

Body Parameters

Parameter Type Status Description
search_value string optional ...
user_id integer optional ...

a-notification-list

Kullanıcıya giden bildirimleri listeler.

Example request:

curl -X POST "http://h2o-a.loc/a-notification-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"nam","type":"iste","user_id":"ut"}'
const url = new URL("http://h2o-a.loc/a-notification-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "nam",
    "type": "iste",
    "user_id": "ut"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-notification-list

Body Parameters

Parameter Type Status Description
search_value string optional Arama parametresi
type string optional ...
user_id ineger optional ...

a-term-list

Kullanılan sözleşme şablonlarını listeler.

Example request:

curl -X POST "http://h2o-a.loc/a-term-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"ea"}'
const url = new URL("http://h2o-a.loc/a-term-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "ea"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-term-list

Body Parameters

Parameter Type Status Description
search_value string optional Arama parametresi

a-term-express

Sözleşme şablonu detayını günceller.

Example request:

curl -X POST "http://h2o-a.loc/a-term-express" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"term_id":4,"title":"facere","description":"minus","status":"dolore","slug":"nemo","type":16,"required":10,"erp_code":"sit"}'
const url = new URL("http://h2o-a.loc/a-term-express");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "term_id": 4,
    "title": "facere",
    "description": "minus",
    "status": "dolore",
    "slug": "nemo",
    "type": 16,
    "required": 10,
    "erp_code": "sit"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-term-express

Body Parameters

Parameter Type Status Description
term_id integer required ...
title string optional ...
description string optional ...
status string optional ...
slug string optional ...
type integer optional 0 or 1 ...
required integer optional 0 or 1 ...
erp_code string optional ...

a-campaign-list

Kampanyaları listeler.

Example request:

curl -X POST "http://h2o-a.loc/a-campaign-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"corrupti"}'
const url = new URL("http://h2o-a.loc/a-campaign-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "corrupti"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-campaign-list

Body Parameters

Parameter Type Status Description
search_value string optional ...

a-campaign-express

Kampanya ekler yada düzenler.

Example request:

curl -X POST "http://h2o-a.loc/a-campaign-express" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"campaign_id":10,"campaign_name":"molestiae","description":"et","discount_month":7,"discount_ratio":15,"type":5,"status":20}'
const url = new URL("http://h2o-a.loc/a-campaign-express");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "campaign_id": 10,
    "campaign_name": "molestiae",
    "description": "et",
    "discount_month": 7,
    "discount_ratio": 15,
    "type": 5,
    "status": 20
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-campaign-express

Body Parameters

Parameter Type Status Description
campaign_id integer optional ...
campaign_name text optional ...
description text optional ...
discount_month integer optional ...
discount_ratio integer optional ...
type integer optional ...
status integer optional ...

a-payment-list

Yapılan ve denenen ödemeleri getirir.

Example request:

curl -X POST "http://h2o-a.loc/a-payment-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"consequatur","user_id":"unde","subs_id":"error","type":"illum"}'
const url = new URL("http://h2o-a.loc/a-payment-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "consequatur",
    "user_id": "unde",
    "subs_id": "error",
    "type": "illum"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-payment-list

Body Parameters

Parameter Type Status Description
search_value string optional Arama parametresi
user_id string optional Arama parametresi
subs_id string optional Arama parametresi
type string optional monthly

a-payment-future

Yapılması planlanan ödemeleri getirir.

Example request:

curl -X POST "http://h2o-a.loc/a-payment-future" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"user_id":"perferendis","subs_id":"culpa","type":"natus"}'
const url = new URL("http://h2o-a.loc/a-payment-future");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "user_id": "perferendis",
    "subs_id": "culpa",
    "type": "natus"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-payment-future

Body Parameters

Parameter Type Status Description
user_id string optional Arama parametresi
subs_id string optional Arama parametresi
type string optional monthly

a-service-log-list

Servis loglarını getirir.

Example request:

curl -X POST "http://h2o-a.loc/a-service-log-list" \
    -H "Access-token: {token}"
const url = new URL("http://h2o-a.loc/a-service-log-list");

let headers = {
    "Access-token": "{token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-service-log-list

a-service-log-express

Servis loglarının detayını getirir.

Example request:

curl -X POST "http://h2o-a.loc/a-service-log-express" \
    -H "Access-token: {token}"
const url = new URL("http://h2o-a.loc/a-service-log-express");

let headers = {
    "Access-token": "{token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-service-log-express

a-location-import IPTAL

TDS skorlarının içeri aktarır @todo

Example request:

curl -X POST "http://h2o-a.loc/a-location-import" \
    -H "Access-token: {token}"
const url = new URL("http://h2o-a.loc/a-location-import");

let headers = {
    "Access-token": "{token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-location-import

a-dashboard-report

Admin paneli için özet rapor

Example request:

curl -X POST "http://h2o-a.loc/a-dashboard-report" \
    -H "Access-token: {token}"
const url = new URL("http://h2o-a.loc/a-dashboard-report");

let headers = {
    "Access-token": "{token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST a-dashboard-report

a-admin-list

Yönecileri listeler

Example request:

curl -X POST "http://h2o-a.loc/d-get-me" \
    -H "Access-token: {token}"
const url = new URL("http://h2o-a.loc/d-get-me");

let headers = {
    "Access-token": "{token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST d-get-me

d-user-list

Kullanıcıları listeler

Example request:

curl -X POST "http://h2o-a.loc/d-user-list" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"search_value":"officiis","phone_number":"accusamus"}'
const url = new URL("http://h2o-a.loc/d-user-list");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "search_value": "officiis",
    "phone_number": "accusamus"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST d-user-list

Body Parameters

Parameter Type Status Description
search_value string optional ...
phone_number string optional ...

u-user-invite

Kullanıcının detayını günceller.

Example request:

curl -X POST "http://h2o-a.loc/d-user-invite" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"name":7,"surname":3,"email":14,"tcno":2,"bithday":2}'
const url = new URL("http://h2o-a.loc/d-user-invite");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "name": 7,
    "surname": 3,
    "email": 14,
    "tcno": 2,
    "bithday": 2
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST d-user-invite

Body Parameters

Parameter Type Status Description
name integer required ...
surname integer required ...
email integer required ...
tcno integer required ...
bithday integer required ...

Subscription Create

Bayi tarafından sözleşme oluşturulmasını sağlar. Eğer müşteri kayıtlı değilse önce müşteriye sms gönderilir.

Example request:

curl -X POST "http://h2o-a.loc/d-subs-create" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"user_id":16,"address_id":3,"city_id":12,"district_id":15,"quarter_id":1,"address_title":"laboriosam","address_description":"corrupti","address":"architecto","building_number":20,"door_number":4,"floor":11,"postal_code":16,"longitude":"numquam","latitude":"quos","price_ids":"aspernatur","lead_type":11,"prerequisites":"et","findex_score":"recusandae","birthday":"occaecati"}'
const url = new URL("http://h2o-a.loc/d-subs-create");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "user_id": 16,
    "address_id": 3,
    "city_id": 12,
    "district_id": 15,
    "quarter_id": 1,
    "address_title": "laboriosam",
    "address_description": "corrupti",
    "address": "architecto",
    "building_number": 20,
    "door_number": 4,
    "floor": 11,
    "postal_code": 16,
    "longitude": "numquam",
    "latitude": "quos",
    "price_ids": "aspernatur",
    "lead_type": 11,
    "prerequisites": "et",
    "findex_score": "recusandae",
    "birthday": "occaecati"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST d-subs-create

Body Parameters

Parameter Type Status Description
user_id integer required ...
address_id integer optional ...
city_id integer required ...
district_id integer required ...
quarter_id integer required ...
address_title string required ...
address_description string required ...
address string required ...
building_number integer required ...
door_number integer required ...
floor integer required ...
postal_code integer required ...
longitude string required Harita Boylam
latitude string required Harita Enlem
price_ids json required ...
lead_type integer required ...
prerequisites json required ...
findex_score json required ...
birthday json required ...

u-subs-info

Sözleşme için kullanıcı detayı ve mevcut kampanyaları getirir.

Example request:

curl -X POST "http://h2o-a.loc/d-subs-info" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"user_id":13}'
const url = new URL("http://h2o-a.loc/d-subs-info");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "user_id": 13
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST d-subs-info

Body Parameters

Parameter Type Status Description
user_id integer required ...

3-Arc

Change Status

Abonelik durumunu günceller.

Example request:

curl -X POST "http://h2o-a.loc/api/subscription/changeStatus" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"subscriptionCode":"a","userCode":"doloribus","statusText":"excepturi","startDate":"odit","endDate":"et","actions":"quae"}'
const url = new URL("http://h2o-a.loc/api/subscription/changeStatus");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "subscriptionCode": "a",
    "userCode": "doloribus",
    "statusText": "excepturi",
    "startDate": "odit",
    "endDate": "et",
    "actions": "quae"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST api/subscription/changeStatus

Body Parameters

Parameter Type Status Description
subscriptionCode string optional Abone ERP Kodu
userCode string required Kullanıcı ERP Kodu
statusText string required Durum Metni
startDate date required ...
endDate date required ...
actions json required ...

Start Subscription

Sales force üzerinden sözleşme oluşturur.

Example request:

curl -X POST "http://h2o-a.loc/api/agent/startSubscription" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"subscriptionCode":"animi","userCode":"in","statusText":"explicabo","startDate":"deleniti","endDate":"consequatur","actions":"dolor"}'
const url = new URL("http://h2o-a.loc/api/agent/startSubscription");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "subscriptionCode": "animi",
    "userCode": "in",
    "statusText": "explicabo",
    "startDate": "deleniti",
    "endDate": "consequatur",
    "actions": "dolor"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST api/agent/startSubscription

Body Parameters

Parameter Type Status Description
subscriptionCode string optional Abone ERP Kodu
userCode string required Kullanıcı ERP Kodu
statusText string required Durum Metni
startDate date required ...
endDate date required ...
actions json required ...

Finis Subscription

Sales tarafından başlatılan sözleşmeyi sonuçlandırarak kullanıcıya bildirim gönderilmesini sağlar.

Example request:

curl -X POST "http://h2o-a.loc/api/agent/finishSubscription" \
    -H "Access-token: {token}" \
    -H "Content-Type: application/json" \
    -d '{"token":"eum","address_id":16,"city_id":19,"district_id":2,"quarter_id":5,"address_title":"aut","address_description":"quod","address":"in","building_number":7,"door_number":7,"floor":1,"postal_code":9,"longitude":"vero","latitude":"dolorem","price_ids":"facere","lead_type":6,"prerequisites":"perspiciatis","findex_score":"mollitia","birthday":"id"}'
const url = new URL("http://h2o-a.loc/api/agent/finishSubscription");

let headers = {
    "Access-token": "{token}",
    "Content-Type": "application/json",
    "Accept": "application/json",
}

let body = {
    "token": "eum",
    "address_id": 16,
    "city_id": 19,
    "district_id": 2,
    "quarter_id": 5,
    "address_title": "aut",
    "address_description": "quod",
    "address": "in",
    "building_number": 7,
    "door_number": 7,
    "floor": 1,
    "postal_code": 9,
    "longitude": "vero",
    "latitude": "dolorem",
    "price_ids": "facere",
    "lead_type": 6,
    "prerequisites": "perspiciatis",
    "findex_score": "mollitia",
    "birthday": "id"
}

fetch(url, {
    method: "POST",
    headers: headers,
    body: body
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST api/agent/finishSubscription

Body Parameters

Parameter Type Status Description
token string required ...
address_id integer optional ...
city_id integer required ...
district_id integer required ...
quarter_id integer required ...
address_title string required ...
address_description string required ...
address string required ...
building_number integer required ...
door_number integer required ...
floor integer required ...
postal_code integer required ...
longitude string required Harita Boylam
latitude string required Harita Enlem
price_ids json required ...
lead_type integer required ...
prerequisites json required ...
findex_score json required ...
birthday json required ...

api/command

Example request:

curl -X POST "http://h2o-a.loc/api/command" \
    -H "Access-token: {token}"
const url = new URL("http://h2o-a.loc/api/command");

let headers = {
    "Access-token": "{token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST api/command

api/remove-number

Example request:

curl -X POST "http://h2o-a.loc/api/remove-number" \
    -H "Access-token: {token}"
const url = new URL("http://h2o-a.loc/api/remove-number");

let headers = {
    "Access-token": "{token}",
    "Accept": "application/json",
    "Content-Type": "application/json",
}

fetch(url, {
    method: "POST",
    headers: headers,
})
    .then(response => response.json())
    .then(json => console.log(json));

HTTP Request

POST api/remove-number