LendMN Open Platform

LendMN Open Platform

  • Languages iconМонгол
    • English

›Server API

Basic Tutorial

  • Intro
  • Access token
  • Lend login
  • Create invoice
  • Pay Invoice
  • Webhook

Mini-App

  • Intro
  • UX Design

QR Payment

  • Intro

Client API

  • Intro
  • PayInvoice
  • ReadQr
  • Location
  • OpenUri
  • JavaScript to App
  • Protocol

Server API

  • AccessToken
  • UserInfo
  • Notification
  • InvoiceDetail
  • Transaction refund
  • CreateInvoiceEmbedded
  • CancelInvoice
  • EventHook
  • Transfer
  • CreateInvoice
  • Transactions
  • CreateReceipt
  • Branches
  • Invoices
  • Error codes

Policies

  • Аюулгүй байдлын шаардлага
  • Үйлчилгээний нөхцөл

Payment API

  • Create invoice
  • Check invoice
  • Cancel invoice

Branches

Салбарын жагсаалт

Тухайн салбарт харьяалагдах салбаруудын жагсаалт

Харяа салбарууд авах хүсэлт:

METHODURLHEADER
GET/api/w/branchescontent-type: application/x-www-form-urlencoded
x-and-auth-token: {Token}

Response

НэрТөрөлТайлбар
codeIntegerХариу код 0 - амжилттай эсвэл алдааны код
responseMixedХэрвээ алдаа гарсан тохиолдолд алдааны тайлбар байна. Амжилттай бол дэлгэрэнгүй мэдээлэл.

Response-ын дэлгэрэнгүй

НэрТөрөлТайлбар
nameStringСалбарын нэр
walletNumberStringХэтэвчний дугаар
childrenArrayХаръяалагдах салбарууд

Хүсэлт илгээж буй жишээ:

curl -X GET \
  'https://mgw.test.lending.mn/api/w/branches' \
  -H 'Content-Type: application/x-www-form-urlencoded' \
  -H 'x-and-auth-token: {token}'

Амжилттай болсон хариу

{
     "code": 0,
     "response": [
         {
             "name": "Branch name",
             "walletNumber": "xxxxxxx",
             "children": [
                    {
                      "name": "Sub Branch name 1",
                      "walletNumber": "xxxxxxx",
                      "children": [ ]
                    },
                    {
                      "name": "Sub Branch name 2",
                      "walletNumber": "xxxxxxx",
                      "children": [ ]
                    }
             ]
         }
     ]
}

Амжилтгүй болсон хариу

{
  "code": 400,
  "response": {
    "error": "invalid_client",
    "error_description": "The client credentials are invalid"
  }
}
← CreateReceiptInvoices →
  • Салбарын жагсаалт
  • Харяа салбарууд авах хүсэлт:
  • Response
    • Response-ын дэлгэрэнгүй
  • Хүсэлт илгээж буй жишээ:
    • Амжилттай болсон хариу
    • Амжилтгүй болсон хариу
© AND Systems LLC, All Right Reserved 2022