To'lov turlari
GET
/v1/company-payment-type
const url = 'https://api-admin.billz.ai/v1/company-payment-type?page=1&limit=1000';const options = { method: 'GET', headers: { 'platform-id': '7d4a4c38-dd84-4902-b744-0488b80a4c01', Authorization: 'Bearer <token>' }};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url 'https://api-admin.billz.ai/v1/company-payment-type?page=1&limit=1000' \ --header 'Authorization: Bearer <token>' \ --header 'platform-id: 7d4a4c38-dd84-4902-b744-0488b80a4c01'Xato kodlari: 400 — kiruvchi ma’lumotlar validatsiya xatosi; 401, 403, 429, 500 — barcha metodlar uchun umumiy. Tana formatlari va semantikasi: Javob kodlari va xatolar.
Authorizations
“Authorizations” bo'limiParameters
“Parameters” bo'limiQuery Parameters
“Query Parameters” bo'limipage
integer format: int32
Raqam emas -> 400
limit
integer format: int32
Raqam emas — 400
Example
1000Header Parameters
“Header Parameters” bo'limiaccept-language
string
Ru|uz|en, default ru — to’lov turlari nomlarining tili
platform-id
string
Platforma identifikatori. Integratsiyalar uchun statik qiymat ishlatiladi.
Responses
“Responses” bo'limiMuvaffaqiyatli javob
Media typeapplication/json
object
count
integer format: int32
company_payment_types
Array<object>
object
id
Ushbu id buyurtma yaratishda payments ga uzatiladi
string
company_id
string
payment_type_id
Qiymat bo’sh bo’lsa, javobda bo’lmaydi
string
payment_type
Asosiy to’lov turlarining ichki ma’lumotnomasi; bo’sh bo’lsa, mavjud emas
object
id
string
name
string
token
string
name
Accept-Language bo’yicha lokalizatsiya qilinadi
string
is_editable
boolean
dont_show_in_make_payment
boolean
dont_show_in_settings
boolean
is_cash_payment_type
boolean
is_visible_for_web
boolean
is_visible_for_mobile
boolean
is_visible_for_desktop
boolean
sequence_number
integer
Examplegenerated
{ "count": 1, "company_payment_types": [ { "id": "example", "company_id": "example", "payment_type_id": "example", "payment_type": { "id": "example", "name": "example" }, "token": "example", "name": "example", "is_editable": true, "dont_show_in_make_payment": true, "dont_show_in_settings": true, "is_cash_payment_type": true, "is_visible_for_web": true, "is_visible_for_mobile": true, "is_visible_for_desktop": true, "sequence_number": 1 } ]}