---
title: "POST /api/services/app/Appointment/CreatePayment"
method: POST
path: "/api/services/app/Appointment/CreatePayment"
tags: ["Appointment"]
---

# POST /api/services/app/Appointment/CreatePayment

`POST /api/services/app/Appointment/CreatePayment`

## Request body

- HISCreatePaymentDto
  - `idAppointment` string, uuid
  - `paymentGateway` 0 | 1 | 2 | 3 | 99
  - `idBankAccount` integer, nullable
  - `amount` integer
  - `orderInfo` string, nullable
  - `ipAddress` string, nullable
  - `genQRCode` boolean

## Response `200`

Success

- PaymentResultDto
  - `id` integer
  - `paymentUrl` string, nullable
  - `tmnCode` string, nullable
  - `isSandbox` boolean
  - `paymentPayload` string, nullable
  - `expirationDate` string, date-time, nullable
  - `message` string, nullable

---

[API](https://skmtc.dev/dalieu/apis/portaldalieu-api.md) · [All operations](https://skmtc.dev/dalieu/apis/portaldalieu-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/dalieu/portaldalieu-api/revisions/78dcf1621c0e/schema)
