Skip to content

Service Payment tranzaksiyasini yaratish ​

Ushbu metod xizmat bo‘yicha mijoz account ma’lumotlari bilan birga transactionId qaytaradi.

Endpoint details ​

Method: POST
URL: BASE_URL/servicePayment/create/
Header:

http
Authorization: Bearer <ACCESS_TOKEN>

Request fields

Fieldsample_dataTypeRequiredDescription
service_id9f877739-bc25-4f0f-a13f-ec485fd04250stringYesservice_id
account{"soato": "26290", "region": "1", "customer_code": "1000000"}stringYesXizmat talab qiladigan field’lar account ichida yuborilishi kerak
amount500intYesSumma sum ko‘rinishida
userId007stringNouserId (merchant tomonidan berilgan ID)
cardId9f877739-bc25-4f0f-a13f-ec485fd04250stringNoAgar cardId yuborilsa, to‘lov OTP tasdiqlash bilan amalga oshirilishini bildiradi
phoneNumber+998999999999stringNoUshbu maydon karta bilan bog‘langan telefon raqamiga mosligini tekshirish uchun ishlatiladi
smsdictNoOTP tafsilotlari uchun SMS obyekti

Request example without OTP (One Time Password)

json
{
  "amount": 500,
  "service_id": "9f877739-bc25-4f0f-a13f-ec485fd04250",
  "account": {
    "soato": "26290",
    "region": "1",
    "customer_code": "1000000"
  },
  "userId": "007"
}

Response example without OTP

json
{
  "result": {
    "transactionId": "b6135bb4-ef3c-4ab1-a5aa-db174a9bdc26",
    "data": [
      {
        "name": "region",
        "value": "г. Ташкент",
        "title": "region"
      },
      {
        "name": "soato",
        "value": "26290 - Яшнабадский ЭСП",
        "title": "soato"
      },
      {
        "name": "customer_code",
        "value": "1000000",
        "title": "customer_code"
      },
      {
        "name": "time",
        "value": "14.10.2024 15:01:07",
        "title": "time"
      },
      {
        "name": "fio",
        "value": "FIO - -",
        "title": "fio"
      },
      {
        "name": "address",
        "value": "Д******* Я******, 9***, 8",
        "title": "address"
      },
      {
        "name": "last_paid_date",
        "value": "2024-08-23",
        "title": "last_paid_date"
      },
      {
        "name": "pokcob",
        "value": "3431.28",
        "title": "bypass_indication"
      },
      {
        "name": "dateob",
        "value": "2024-10-08",
        "title": "bypass_date"
      },
      {
        "name": "last_paid",
        "value": "50000 UZS",
        "title": "last_paid"
      },
      {
        "name": "saldo",
        "value": "15105.15 UZS",
        "title": "balance"
      }
    ]
  }
}

Request example With OTP (One Time Password)

json
{
  "amount": 500,
  "service_id": "9f877739-bc25-4f0f-a13f-ec485fd04250",
  "account": {
    "soato": "26290",
    "region": "1",
    "customer_code": "1000000"
  },
  "userId": "007",
  "cardId": "string"
}

Response example With OTP

json
{
  "result": {
    "transactionId": "b6135bb4-ef3c-4ab1-a5aa-db174a9bdc26",
    "data": [
      {
        "name": "region",
        "value": "г. Ташкент",
        "title": "region"
      }
    ],
    "sms": {
      "otpSentPhone": "hidden_phone"
    }
  }
}