PaymentTypesResponse

{} PaymentTypesResponse
code
required
string
name
required
string
bank_name
required
string
account_name
required
string
company_code
required
string
account_number
required
string

PaymentsEvidence

{} PaymentsEvidence
id
required
allOf
invoice_id
required
string uuid
payment_date
required
string date

full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21

payment_method
required
string
amount
required
integer

Integer numbers.

file_path
required
string
is_need_address
required
boolean
user_card_address
required
string
user_card_address_code
required
string
user_current_address
required
string
user_current_address_code
required
string
created_at
required
string date-time
read-only

the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

created_by_id
required
string
read-only
updated_at
required
string date-time
read-only

the date-time notation as defined by RFC 3339, section 5.6, for example, 2017-07-21T17:32:28Z

updated_by_id
required
string
read-only

PaymentsEvidenceCreate

{} PaymentsEvidenceCreate
invoice_id
required
string uuid
payment_date
required
string date

full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21

payment_method
required
string
amount
required
integer

Integer numbers.

file_path
required
string
is_need_address
required
boolean
user_card_address
required
string
user_card_address_code
required
string
user_current_address
required
string
user_current_address_code
required
string
0.0.0
OAS 3.0.0

DPT54 API

Client Libraries
Shell
Ruby
Node.js
PHP
Python
C
More
Authentication
Bearer Authentication (BearerAuth)

Public: ใบชำระค่าธรรมเนียม

Public: อัปโหลดหลักฐาน

Public: ตรวจสอบใบเสร็จรับเงิน

Backoffice: Admin

Backoffice: Roles

Backoffice: จัดการคำขอ

Backoffice: สร้างใบชำระค่าธรรมเนียม

Backoffice: ใบชำระรายการ

/backoffice/payin-slip

Responses
  • 200

    The request has succeeded.

GET/backoffice/payin-slip
Shell cURL
curl --request GET \
  --url https://dpt-openapi.finema.dev/backoffice/payin-slip
[
  {
    "address": [
      {
        "id": "c667df88-4de8-442b-a64a-5fbce59086f0",
        "name": "บ้านหลัก",
        "address": "56/96 หมู่บ้านเซนส์ สายไหม 56",
        "address_code": "104202",
        "address_type": "current",
        "address_master": {
          "code": null,
          "province_code": null,
          "district_code": null,
          "sub_district_code": null,
          "province": null,
          "district": null,
          "sub_district": null,
          "postal_code": null
        },
        "is_default": true
      }
    ],
    "user_firstname": "…",
    "user_lastname": "…",
    "juristic_name_th": "…",
    "transaction_no": "…",
    "is_type_train": true,
    "name": "…",
    "total_price": 1,
    "amount": 1,
    "invioce_refs": [
      {
        "invoices_id": "…",
        "value": "…"
      }
    ],
    "invoice_details": [
      {
        "total_price": 1,
        "invoices_id": "…",
        "seq": 1,
        "product_detail": "…",
        "amount": 1,
        "eunit_price": 1
      }
    ],
    "invoice_end_date": "…",
    "payment_method": "…",
    "payment_type_res": [
      {
        "code": "…",
        "name": "…",
        "bank_name": "…",
        "account_name": "…",
        "company_code": "…",
        "account_number": "…"
      }
    ]
  }
]

Backoffice: ประเภทการชำระเงิน

Backoffice: หน่วยงานรับชำระเงิน

Backoffice: รายงานสรุปการชำระค่าธรรมเนียม

Backoffice: ออกรายงานสรุปผล(กรณีชำระสำเร็จ)

/backoffice/payment/success/report

Query Parameters
  • date
    required
    string date

    full-date notation as defined by RFC 3339, section 5.6, for example, 2017-07-21

Responses
  • 200

    The request has succeeded.

GET/backoffice/payment/success/report
Shell cURL
curl --request GET \
  --url 'https://dpt-openapi.finema.dev/backoffice/payment/success/report?date='
{
  "total_type_cash": 1,
  "total_type_EDC": 1,
  "total_type_MobileApp": 1,
  "total_type_BankCounter": 1,
  "grand_total": 1,
  "items": [
    {
      "id": "c667df88-4de8-442b-a64a-5fbce59086f0",
      "invoice_id": "…",
      "user_type": 1,
      "transaction_no": "…",
      "receipt_no": "…",
      "province_code": "…",
      "payment_type_id": "…",
      "name": "…",
      "total_price": 1,
      "affiliation_name": "…",
      "course_name": "…",
      "bank_name": "…",
      "account_name": "…",
      "account_number": "…",
      "invoice_end_date": "…",
      "file_path": "…",
      "receipt_details": [
        {
          "total_price": 1,
          "invoices_id": "…",
          "seq": 1,
          "product_detail": "…",
          "amount": 1,
          "eunit_price": 1
        }
      ],
      "receipt_ref": [
        {
          "receipt_id": "…",
          "value": "…"
        }
      ],
      "remark": "…",
      "user_firstname": "…",
      "user_lastname": "…",
      "user_identification_number": "…",
      "juristic_name_th": "…",
      "juristic_identification_number": "…",
      "created_at": "…",
      "created_by_id": "…",
      "updated_at": "…",
      "updated_by_id": "…"
    }
  ]
}

Backoffice: ส่งแก้ไขหลักฐานการชำระค่าธรรมเนียม

/backoffice/submit-proof-payment

Body
application/json
reason
required
string
Responses
  • 200

    The request has succeeded.

POST/backoffice/submit-proof-payment
Shell cURL
curl --request POST \
  --url https://dpt-openapi.finema.dev/backoffice/submit-proof-payment \
  --header 'Content-Type: application/json' \
  --data '{
  "reason": ""
}'
{
  "reason": "…"
}

Backoffice: สร้างใบเสร็จรับเงิน

Backoffice: ตราประทับ