{
  "openapi": "3.1.0",
  "info": {
    "title": "Slip2Sure API",
    "version": "1.0.0",
    "description": "API ตรวจสอบสลิปโอนเงินธนาคารและ TrueMoney Wallet ของ Slip2Sure\n\n- API ตรวจสลิปและดูรายการใช้ **Application API Key** ใน header `x-api-key`\n- API บัญชีและจัดการ Application ใช้ **User API Token** ใน header `Authorization: Bearer`"
  },
  "servers": [
    {
      "url": "https://api.slip2sure.com/api/v0",
      "description": "Production"
    }
  ],
  "tags": [
    {
      "name": "Auto-detect slip",
      "description": "ตรวจสลิปโดยระบบแยกประเภทสลิปธนาคาร / TrueMoney ให้เอง"
    },
    {
      "name": "Bank slip",
      "description": "ตรวจสลิปโอนเงินธนาคาร (PromptPay / โอนบัญชี)"
    },
    {
      "name": "TrueMoney",
      "description": "ตรวจสลิป TrueMoney Wallet"
    },
    {
      "name": "Transaction",
      "description": "รายการตรวจสลิปของ Application"
    },
    {
      "name": "Account",
      "description": "ข้อมูลบัญชี (User API Token)"
    },
    {
      "name": "Application management",
      "description": "จัดการ Application และ API Key (User API Token)"
    }
  ],
  "paths": {
    "/bank/v0/verifyByFile": {
      "post": {
        "requestBody": {
          "description": "อัปโหลดรูปสลิปแบบ multipart/form-data",
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "description": "อัปโหลดรูปสลิปแบบ multipart/form-data",
                "type": "object",
                "required": [
                  "image"
                ],
                "properties": {
                  "image": {
                    "description": "รูปสลิป (PNG / JPG / JPEG) ขนาดน้อยกว่า 5 MiB",
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "ตรวจสลิปสำเร็จ",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ตรวจสลิปสำเร็จ",
                  "type": "object",
                  "required": [
                    "info",
                    "credit",
                    "is_exist"
                  ],
                  "properties": {
                    "info": {
                      "description": "ข้อมูลสลิปธนาคาร",
                      "type": "object",
                      "required": [
                        "payload",
                        "transRef",
                        "ref1",
                        "ref2",
                        "ref3",
                        "transDate",
                        "transTime",
                        "transDateTime",
                        "sendingBank",
                        "receivingBank",
                        "sender",
                        "receiver",
                        "amount",
                        "transFeeAmount",
                        "paidLocalAmount",
                        "paidLocalCurrency",
                        "countryCode",
                        "toMerchantId"
                      ],
                      "properties": {
                        "payload": {
                          "description": "ข้อมูล QR Code ของสลิป",
                          "type": "string"
                        },
                        "transRef": {
                          "description": "หมายเลขอ้างอิงรายการ (Transaction reference)",
                          "examples": [
                            "016038143702ATF07422"
                          ],
                          "type": "string"
                        },
                        "ref1": {
                          "description": "หมายเลขอ้างอิง 1",
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "ref2": {
                          "description": "หมายเลขอ้างอิง 2",
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "ref3": {
                          "description": "หมายเลขอ้างอิง 3",
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "transDate": {
                          "description": "วันที่โอน (YYYYMMDD)",
                          "examples": [
                            "20250207"
                          ],
                          "type": "string"
                        },
                        "transTime": {
                          "description": "เวลาโอน (HH:mm:ss)",
                          "examples": [
                            "14:00:30"
                          ],
                          "type": "string"
                        },
                        "transDateTime": {
                          "format": "date-time",
                          "description": "วันเวลาโอน ISO 8601 (UTC+7)",
                          "examples": [
                            "2025-02-07T14:00:30+07:00"
                          ],
                          "type": "string"
                        },
                        "sendingBank": {
                          "description": "รหัสธนาคารผู้โอน",
                          "examples": [
                            "004"
                          ],
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "receivingBank": {
                          "description": "รหัสธนาคารผู้รับ",
                          "examples": [
                            "014"
                          ],
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "sender": {
                          "type": "object",
                          "required": [
                            "displayName",
                            "name",
                            "proxy",
                            "account",
                            "bank"
                          ],
                          "properties": {
                            "displayName": {
                              "description": "ชื่อผู้โอนตามที่แสดงบนสลิป",
                              "examples": [
                                "MR. SOMCHAI R"
                              ],
                              "type": "string"
                            },
                            "name": {
                              "description": "ชื่อภาษาอังกฤษ (ยังไม่รองรับ เป็น null เสมอ)",
                              "type": "null"
                            },
                            "proxy": {
                              "description": "ตัวแทนบัญชี (PromptPay proxy)",
                              "type": "object",
                              "required": [
                                "type",
                                "value"
                              ],
                              "properties": {
                                "type": {
                                  "description": "ประเภทพร้อมเพย์/ตัวแทนบัญชี: `NATID` เลขบัตรประชาชน, `MSISDN` เบอร์โทร, `EWALLETID` e-Wallet ID, `BILLERID` Biller ID",
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "NATID",
                                    "MSISDN",
                                    "EWALLETID",
                                    "BILLERID"
                                  ]
                                },
                                "value": {
                                  "description": "ข้อมูลตัวแทนบัญชี (ปิดบางส่วน)",
                                  "examples": [
                                    "XXX-XXX-8511"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "account": {
                              "description": "บัญชีธนาคาร",
                              "type": "object",
                              "required": [
                                "type",
                                "value"
                              ],
                              "properties": {
                                "type": {
                                  "description": "`BANKAC` = เลขบัญชีธนาคาร",
                                  "nullable": true,
                                  "const": "BANKAC",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "value": {
                                  "description": "เลขบัญชี (ปิดบางส่วน)",
                                  "examples": [
                                    "xxx-x-x1234-x"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "bank": {
                              "type": "object",
                              "required": [
                                "code",
                                "name"
                              ],
                              "properties": {
                                "code": {
                                  "description": "รหัสธนาคาร 3 หลัก",
                                  "examples": [
                                    "004"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "ชื่อธนาคาร",
                                  "examples": [
                                    "ธนาคารกสิกรไทย"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "receiver": {
                          "type": "object",
                          "required": [
                            "displayName",
                            "name",
                            "proxy",
                            "account",
                            "bank"
                          ],
                          "properties": {
                            "displayName": {
                              "description": "ชื่อผู้รับตามที่แสดงบนสลิป",
                              "examples": [
                                "MR. SOMCHAI R"
                              ],
                              "type": "string"
                            },
                            "name": {
                              "description": "ชื่อภาษาอังกฤษ (ยังไม่รองรับ เป็น null เสมอ)",
                              "type": "null"
                            },
                            "proxy": {
                              "description": "ตัวแทนบัญชี (PromptPay proxy)",
                              "type": "object",
                              "required": [
                                "type",
                                "value"
                              ],
                              "properties": {
                                "type": {
                                  "description": "ประเภทพร้อมเพย์/ตัวแทนบัญชี: `NATID` เลขบัตรประชาชน, `MSISDN` เบอร์โทร, `EWALLETID` e-Wallet ID, `BILLERID` Biller ID",
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "NATID",
                                    "MSISDN",
                                    "EWALLETID",
                                    "BILLERID"
                                  ]
                                },
                                "value": {
                                  "description": "ข้อมูลตัวแทนบัญชี (ปิดบางส่วน)",
                                  "examples": [
                                    "XXX-XXX-8511"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "account": {
                              "description": "บัญชีธนาคาร",
                              "type": "object",
                              "required": [
                                "type",
                                "value"
                              ],
                              "properties": {
                                "type": {
                                  "description": "`BANKAC` = เลขบัญชีธนาคาร",
                                  "nullable": true,
                                  "const": "BANKAC",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "value": {
                                  "description": "เลขบัญชี (ปิดบางส่วน)",
                                  "examples": [
                                    "xxx-x-x1234-x"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "bank": {
                              "type": "object",
                              "required": [
                                "code",
                                "name"
                              ],
                              "properties": {
                                "code": {
                                  "description": "รหัสธนาคาร 3 หลัก",
                                  "examples": [
                                    "004"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "ชื่อธนาคาร",
                                  "examples": [
                                    "ธนาคารกสิกรไทย"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "amount": {
                          "description": "จำนวนเงิน (บาท)",
                          "examples": [
                            100
                          ],
                          "type": "number"
                        },
                        "transFeeAmount": {
                          "description": "ค่าธรรมเนียม (เป็น 0 เสมอ)",
                          "examples": [
                            0
                          ],
                          "type": "number"
                        },
                        "paidLocalAmount": {
                          "description": "จำนวนเงินสกุลท้องถิ่น",
                          "examples": [
                            100
                          ],
                          "type": "number"
                        },
                        "paidLocalCurrency": {
                          "description": "รหัสสกุลเงิน ISO 4217 (764 = THB)",
                          "examples": [
                            "764"
                          ],
                          "type": "string"
                        },
                        "countryCode": {
                          "description": "รหัสประเทศ ISO 3166-1 alpha-2",
                          "examples": [
                            "TH"
                          ],
                          "type": "string"
                        },
                        "toMerchantId": {
                          "description": "รหัสร้านค้า (ว่างเสมอ)",
                          "examples": [
                            ""
                          ],
                          "type": "string"
                        }
                      }
                    },
                    "credit": {
                      "description": "เครดิตของบัญชี (เป็น 0 ทั้งหมดสำหรับบัญชี Partner)",
                      "type": "object",
                      "required": [
                        "before",
                        "usage",
                        "after"
                      ],
                      "properties": {
                        "before": {
                          "description": "เครดิตก่อนหัก",
                          "examples": [
                            1000
                          ],
                          "type": "number"
                        },
                        "usage": {
                          "description": "เครดิตที่ใช้ (0 เมื่อสลิปเคยตรวจแล้ว)",
                          "examples": [
                            2.5
                          ],
                          "type": "number"
                        },
                        "after": {
                          "description": "เครดิตคงเหลือ",
                          "examples": [
                            997.5
                          ],
                          "type": "number"
                        }
                      }
                    },
                    "is_exist": {
                      "description": "สลิปนี้เคยตรวจแล้วหรือไม่ (ตรวจซ้ำไม่หักเครดิต)",
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_INVALID"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "UNAUTHORIZED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "IP_NOT_ALLOWED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "ไม่พบสลิป (`SLIP_NOT_EXIST`, `SLIP_INVALID`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่พบสลิป (`SLIP_NOT_EXIST`, `SLIP_INVALID`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_NOT_EXIST"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "ไฟล์หรือ body ใหญ่เกินไป (`FILE_TOO_LARGE`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไฟล์หรือ body ใหญ่เกินไป (`FILE_TOO_LARGE`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "FILE_TOO_LARGE"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SERVER_ERROR"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "verifyBankSlipByFile",
        "summary": "ตรวจสลิปธนาคารด้วยรูปภาพ",
        "description": "สลิปธนาคาร: อัปโหลดรูปสลิปเป็น `multipart/form-data` ระบบอ่าน QR Code จากรูปแล้วตรวจสอบกับต้นทาง\n\nใช้ 2.5 เครดิตต่อสลิป สลิปที่เคยตรวจแล้วจะได้ `is_exist: true` และไม่หักเครดิต\n\n```sh\ncurl 'https://api.slip2sure.com/api/v0/bank/v0/verifyByFile' \\\n  --header 'x-api-key: YOUR_API_KEY' \\\n  --form 'image=@\"/path/to/slip.jpg\"'\n```",
        "tags": [
          "Bank slip"
        ],
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/bank/v0/verifyByPayload": {
      "post": {
        "requestBody": {
          "description": "ข้อมูล QR Code ที่อ่านจากสลิปแล้ว",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "description": "ข้อมูล QR Code ที่อ่านจากสลิปแล้ว",
                "type": "object",
                "required": [
                  "payload"
                ],
                "properties": {
                  "payload": {
                    "maxLength": 256,
                    "description": "ข้อมูล QR Code จากสลิป",
                    "examples": [
                      "0041000600000101030040220014..."
                    ],
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "ตรวจสลิปสำเร็จ",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ตรวจสลิปสำเร็จ",
                  "type": "object",
                  "required": [
                    "info",
                    "credit",
                    "is_exist"
                  ],
                  "properties": {
                    "info": {
                      "description": "ข้อมูลสลิปธนาคาร",
                      "type": "object",
                      "required": [
                        "payload",
                        "transRef",
                        "ref1",
                        "ref2",
                        "ref3",
                        "transDate",
                        "transTime",
                        "transDateTime",
                        "sendingBank",
                        "receivingBank",
                        "sender",
                        "receiver",
                        "amount",
                        "transFeeAmount",
                        "paidLocalAmount",
                        "paidLocalCurrency",
                        "countryCode",
                        "toMerchantId"
                      ],
                      "properties": {
                        "payload": {
                          "description": "ข้อมูล QR Code ของสลิป",
                          "type": "string"
                        },
                        "transRef": {
                          "description": "หมายเลขอ้างอิงรายการ (Transaction reference)",
                          "examples": [
                            "016038143702ATF07422"
                          ],
                          "type": "string"
                        },
                        "ref1": {
                          "description": "หมายเลขอ้างอิง 1",
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "ref2": {
                          "description": "หมายเลขอ้างอิง 2",
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "ref3": {
                          "description": "หมายเลขอ้างอิง 3",
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "transDate": {
                          "description": "วันที่โอน (YYYYMMDD)",
                          "examples": [
                            "20250207"
                          ],
                          "type": "string"
                        },
                        "transTime": {
                          "description": "เวลาโอน (HH:mm:ss)",
                          "examples": [
                            "14:00:30"
                          ],
                          "type": "string"
                        },
                        "transDateTime": {
                          "format": "date-time",
                          "description": "วันเวลาโอน ISO 8601 (UTC+7)",
                          "examples": [
                            "2025-02-07T14:00:30+07:00"
                          ],
                          "type": "string"
                        },
                        "sendingBank": {
                          "description": "รหัสธนาคารผู้โอน",
                          "examples": [
                            "004"
                          ],
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "receivingBank": {
                          "description": "รหัสธนาคารผู้รับ",
                          "examples": [
                            "014"
                          ],
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "sender": {
                          "type": "object",
                          "required": [
                            "displayName",
                            "name",
                            "proxy",
                            "account",
                            "bank"
                          ],
                          "properties": {
                            "displayName": {
                              "description": "ชื่อผู้โอนตามที่แสดงบนสลิป",
                              "examples": [
                                "MR. SOMCHAI R"
                              ],
                              "type": "string"
                            },
                            "name": {
                              "description": "ชื่อภาษาอังกฤษ (ยังไม่รองรับ เป็น null เสมอ)",
                              "type": "null"
                            },
                            "proxy": {
                              "description": "ตัวแทนบัญชี (PromptPay proxy)",
                              "type": "object",
                              "required": [
                                "type",
                                "value"
                              ],
                              "properties": {
                                "type": {
                                  "description": "ประเภทพร้อมเพย์/ตัวแทนบัญชี: `NATID` เลขบัตรประชาชน, `MSISDN` เบอร์โทร, `EWALLETID` e-Wallet ID, `BILLERID` Biller ID",
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "NATID",
                                    "MSISDN",
                                    "EWALLETID",
                                    "BILLERID"
                                  ]
                                },
                                "value": {
                                  "description": "ข้อมูลตัวแทนบัญชี (ปิดบางส่วน)",
                                  "examples": [
                                    "XXX-XXX-8511"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "account": {
                              "description": "บัญชีธนาคาร",
                              "type": "object",
                              "required": [
                                "type",
                                "value"
                              ],
                              "properties": {
                                "type": {
                                  "description": "`BANKAC` = เลขบัญชีธนาคาร",
                                  "nullable": true,
                                  "const": "BANKAC",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "value": {
                                  "description": "เลขบัญชี (ปิดบางส่วน)",
                                  "examples": [
                                    "xxx-x-x1234-x"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "bank": {
                              "type": "object",
                              "required": [
                                "code",
                                "name"
                              ],
                              "properties": {
                                "code": {
                                  "description": "รหัสธนาคาร 3 หลัก",
                                  "examples": [
                                    "004"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "ชื่อธนาคาร",
                                  "examples": [
                                    "ธนาคารกสิกรไทย"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "receiver": {
                          "type": "object",
                          "required": [
                            "displayName",
                            "name",
                            "proxy",
                            "account",
                            "bank"
                          ],
                          "properties": {
                            "displayName": {
                              "description": "ชื่อผู้รับตามที่แสดงบนสลิป",
                              "examples": [
                                "MR. SOMCHAI R"
                              ],
                              "type": "string"
                            },
                            "name": {
                              "description": "ชื่อภาษาอังกฤษ (ยังไม่รองรับ เป็น null เสมอ)",
                              "type": "null"
                            },
                            "proxy": {
                              "description": "ตัวแทนบัญชี (PromptPay proxy)",
                              "type": "object",
                              "required": [
                                "type",
                                "value"
                              ],
                              "properties": {
                                "type": {
                                  "description": "ประเภทพร้อมเพย์/ตัวแทนบัญชี: `NATID` เลขบัตรประชาชน, `MSISDN` เบอร์โทร, `EWALLETID` e-Wallet ID, `BILLERID` Biller ID",
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "NATID",
                                    "MSISDN",
                                    "EWALLETID",
                                    "BILLERID"
                                  ]
                                },
                                "value": {
                                  "description": "ข้อมูลตัวแทนบัญชี (ปิดบางส่วน)",
                                  "examples": [
                                    "XXX-XXX-8511"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "account": {
                              "description": "บัญชีธนาคาร",
                              "type": "object",
                              "required": [
                                "type",
                                "value"
                              ],
                              "properties": {
                                "type": {
                                  "description": "`BANKAC` = เลขบัญชีธนาคาร",
                                  "nullable": true,
                                  "const": "BANKAC",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "value": {
                                  "description": "เลขบัญชี (ปิดบางส่วน)",
                                  "examples": [
                                    "xxx-x-x1234-x"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "bank": {
                              "type": "object",
                              "required": [
                                "code",
                                "name"
                              ],
                              "properties": {
                                "code": {
                                  "description": "รหัสธนาคาร 3 หลัก",
                                  "examples": [
                                    "004"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "ชื่อธนาคาร",
                                  "examples": [
                                    "ธนาคารกสิกรไทย"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "amount": {
                          "description": "จำนวนเงิน (บาท)",
                          "examples": [
                            100
                          ],
                          "type": "number"
                        },
                        "transFeeAmount": {
                          "description": "ค่าธรรมเนียม (เป็น 0 เสมอ)",
                          "examples": [
                            0
                          ],
                          "type": "number"
                        },
                        "paidLocalAmount": {
                          "description": "จำนวนเงินสกุลท้องถิ่น",
                          "examples": [
                            100
                          ],
                          "type": "number"
                        },
                        "paidLocalCurrency": {
                          "description": "รหัสสกุลเงิน ISO 4217 (764 = THB)",
                          "examples": [
                            "764"
                          ],
                          "type": "string"
                        },
                        "countryCode": {
                          "description": "รหัสประเทศ ISO 3166-1 alpha-2",
                          "examples": [
                            "TH"
                          ],
                          "type": "string"
                        },
                        "toMerchantId": {
                          "description": "รหัสร้านค้า (ว่างเสมอ)",
                          "examples": [
                            ""
                          ],
                          "type": "string"
                        }
                      }
                    },
                    "credit": {
                      "description": "เครดิตของบัญชี (เป็น 0 ทั้งหมดสำหรับบัญชี Partner)",
                      "type": "object",
                      "required": [
                        "before",
                        "usage",
                        "after"
                      ],
                      "properties": {
                        "before": {
                          "description": "เครดิตก่อนหัก",
                          "examples": [
                            1000
                          ],
                          "type": "number"
                        },
                        "usage": {
                          "description": "เครดิตที่ใช้ (0 เมื่อสลิปเคยตรวจแล้ว)",
                          "examples": [
                            2.5
                          ],
                          "type": "number"
                        },
                        "after": {
                          "description": "เครดิตคงเหลือ",
                          "examples": [
                            997.5
                          ],
                          "type": "number"
                        }
                      }
                    },
                    "is_exist": {
                      "description": "สลิปนี้เคยตรวจแล้วหรือไม่ (ตรวจซ้ำไม่หักเครดิต)",
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_INVALID"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "UNAUTHORIZED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "IP_NOT_ALLOWED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "ไม่พบสลิป (`SLIP_NOT_EXIST`, `SLIP_INVALID`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่พบสลิป (`SLIP_NOT_EXIST`, `SLIP_INVALID`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_NOT_EXIST"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "ไฟล์หรือ body ใหญ่เกินไป (`FILE_TOO_LARGE`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไฟล์หรือ body ใหญ่เกินไป (`FILE_TOO_LARGE`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "FILE_TOO_LARGE"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SERVER_ERROR"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "verifyBankSlipByPayload",
        "summary": "ตรวจสลิปธนาคารด้วย QR payload",
        "description": "สลิปธนาคาร: ส่งข้อมูล QR Code ที่อ่านจากสลิปเอง (ไม่ต้องส่งรูป)\n\nใช้ 2.5 เครดิตต่อสลิป สลิปที่เคยตรวจแล้วจะได้ `is_exist: true` และไม่หักเครดิต\n\n```sh\ncurl 'https://api.slip2sure.com/api/v0/bank/v0/verifyByPayload' \\\n  --header 'x-api-key: YOUR_API_KEY' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"payload\":\"YOUR_QRCODE\"}'\n```",
        "tags": [
          "Bank slip"
        ],
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/bank/v0/verifyByBase64": {
      "post": {
        "requestBody": {
          "description": "รูปสลิปแบบ Base64",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "description": "รูปสลิปแบบ Base64",
                "type": "object",
                "required": [
                  "payload"
                ],
                "properties": {
                  "payload": {
                    "description": "รูปสลิปเป็น Data URL: `data:image/<jpeg|jpg|png>;base64,<BASE64>` ขนาดรูปหลัง decode ต้องน้อยกว่า 5 MiB",
                    "examples": [
                      "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQ..."
                    ],
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "ตรวจสลิปสำเร็จ",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ตรวจสลิปสำเร็จ",
                  "type": "object",
                  "required": [
                    "info",
                    "credit",
                    "is_exist"
                  ],
                  "properties": {
                    "info": {
                      "description": "ข้อมูลสลิปธนาคาร",
                      "type": "object",
                      "required": [
                        "payload",
                        "transRef",
                        "ref1",
                        "ref2",
                        "ref3",
                        "transDate",
                        "transTime",
                        "transDateTime",
                        "sendingBank",
                        "receivingBank",
                        "sender",
                        "receiver",
                        "amount",
                        "transFeeAmount",
                        "paidLocalAmount",
                        "paidLocalCurrency",
                        "countryCode",
                        "toMerchantId"
                      ],
                      "properties": {
                        "payload": {
                          "description": "ข้อมูล QR Code ของสลิป",
                          "type": "string"
                        },
                        "transRef": {
                          "description": "หมายเลขอ้างอิงรายการ (Transaction reference)",
                          "examples": [
                            "016038143702ATF07422"
                          ],
                          "type": "string"
                        },
                        "ref1": {
                          "description": "หมายเลขอ้างอิง 1",
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "ref2": {
                          "description": "หมายเลขอ้างอิง 2",
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "ref3": {
                          "description": "หมายเลขอ้างอิง 3",
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "transDate": {
                          "description": "วันที่โอน (YYYYMMDD)",
                          "examples": [
                            "20250207"
                          ],
                          "type": "string"
                        },
                        "transTime": {
                          "description": "เวลาโอน (HH:mm:ss)",
                          "examples": [
                            "14:00:30"
                          ],
                          "type": "string"
                        },
                        "transDateTime": {
                          "format": "date-time",
                          "description": "วันเวลาโอน ISO 8601 (UTC+7)",
                          "examples": [
                            "2025-02-07T14:00:30+07:00"
                          ],
                          "type": "string"
                        },
                        "sendingBank": {
                          "description": "รหัสธนาคารผู้โอน",
                          "examples": [
                            "004"
                          ],
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "receivingBank": {
                          "description": "รหัสธนาคารผู้รับ",
                          "examples": [
                            "014"
                          ],
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "sender": {
                          "type": "object",
                          "required": [
                            "displayName",
                            "name",
                            "proxy",
                            "account",
                            "bank"
                          ],
                          "properties": {
                            "displayName": {
                              "description": "ชื่อผู้โอนตามที่แสดงบนสลิป",
                              "examples": [
                                "MR. SOMCHAI R"
                              ],
                              "type": "string"
                            },
                            "name": {
                              "description": "ชื่อภาษาอังกฤษ (ยังไม่รองรับ เป็น null เสมอ)",
                              "type": "null"
                            },
                            "proxy": {
                              "description": "ตัวแทนบัญชี (PromptPay proxy)",
                              "type": "object",
                              "required": [
                                "type",
                                "value"
                              ],
                              "properties": {
                                "type": {
                                  "description": "ประเภทพร้อมเพย์/ตัวแทนบัญชี: `NATID` เลขบัตรประชาชน, `MSISDN` เบอร์โทร, `EWALLETID` e-Wallet ID, `BILLERID` Biller ID",
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "NATID",
                                    "MSISDN",
                                    "EWALLETID",
                                    "BILLERID"
                                  ]
                                },
                                "value": {
                                  "description": "ข้อมูลตัวแทนบัญชี (ปิดบางส่วน)",
                                  "examples": [
                                    "XXX-XXX-8511"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "account": {
                              "description": "บัญชีธนาคาร",
                              "type": "object",
                              "required": [
                                "type",
                                "value"
                              ],
                              "properties": {
                                "type": {
                                  "description": "`BANKAC` = เลขบัญชีธนาคาร",
                                  "nullable": true,
                                  "const": "BANKAC",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "value": {
                                  "description": "เลขบัญชี (ปิดบางส่วน)",
                                  "examples": [
                                    "xxx-x-x1234-x"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "bank": {
                              "type": "object",
                              "required": [
                                "code",
                                "name"
                              ],
                              "properties": {
                                "code": {
                                  "description": "รหัสธนาคาร 3 หลัก",
                                  "examples": [
                                    "004"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "ชื่อธนาคาร",
                                  "examples": [
                                    "ธนาคารกสิกรไทย"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "receiver": {
                          "type": "object",
                          "required": [
                            "displayName",
                            "name",
                            "proxy",
                            "account",
                            "bank"
                          ],
                          "properties": {
                            "displayName": {
                              "description": "ชื่อผู้รับตามที่แสดงบนสลิป",
                              "examples": [
                                "MR. SOMCHAI R"
                              ],
                              "type": "string"
                            },
                            "name": {
                              "description": "ชื่อภาษาอังกฤษ (ยังไม่รองรับ เป็น null เสมอ)",
                              "type": "null"
                            },
                            "proxy": {
                              "description": "ตัวแทนบัญชี (PromptPay proxy)",
                              "type": "object",
                              "required": [
                                "type",
                                "value"
                              ],
                              "properties": {
                                "type": {
                                  "description": "ประเภทพร้อมเพย์/ตัวแทนบัญชี: `NATID` เลขบัตรประชาชน, `MSISDN` เบอร์โทร, `EWALLETID` e-Wallet ID, `BILLERID` Biller ID",
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ],
                                  "enum": [
                                    "NATID",
                                    "MSISDN",
                                    "EWALLETID",
                                    "BILLERID"
                                  ]
                                },
                                "value": {
                                  "description": "ข้อมูลตัวแทนบัญชี (ปิดบางส่วน)",
                                  "examples": [
                                    "XXX-XXX-8511"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "account": {
                              "description": "บัญชีธนาคาร",
                              "type": "object",
                              "required": [
                                "type",
                                "value"
                              ],
                              "properties": {
                                "type": {
                                  "description": "`BANKAC` = เลขบัญชีธนาคาร",
                                  "nullable": true,
                                  "const": "BANKAC",
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "value": {
                                  "description": "เลขบัญชี (ปิดบางส่วน)",
                                  "examples": [
                                    "xxx-x-x1234-x"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            },
                            "bank": {
                              "type": "object",
                              "required": [
                                "code",
                                "name"
                              ],
                              "properties": {
                                "code": {
                                  "description": "รหัสธนาคาร 3 หลัก",
                                  "examples": [
                                    "004"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                },
                                "name": {
                                  "description": "ชื่อธนาคาร",
                                  "examples": [
                                    "ธนาคารกสิกรไทย"
                                  ],
                                  "nullable": true,
                                  "type": [
                                    "string",
                                    "null"
                                  ]
                                }
                              }
                            }
                          }
                        },
                        "amount": {
                          "description": "จำนวนเงิน (บาท)",
                          "examples": [
                            100
                          ],
                          "type": "number"
                        },
                        "transFeeAmount": {
                          "description": "ค่าธรรมเนียม (เป็น 0 เสมอ)",
                          "examples": [
                            0
                          ],
                          "type": "number"
                        },
                        "paidLocalAmount": {
                          "description": "จำนวนเงินสกุลท้องถิ่น",
                          "examples": [
                            100
                          ],
                          "type": "number"
                        },
                        "paidLocalCurrency": {
                          "description": "รหัสสกุลเงิน ISO 4217 (764 = THB)",
                          "examples": [
                            "764"
                          ],
                          "type": "string"
                        },
                        "countryCode": {
                          "description": "รหัสประเทศ ISO 3166-1 alpha-2",
                          "examples": [
                            "TH"
                          ],
                          "type": "string"
                        },
                        "toMerchantId": {
                          "description": "รหัสร้านค้า (ว่างเสมอ)",
                          "examples": [
                            ""
                          ],
                          "type": "string"
                        }
                      }
                    },
                    "credit": {
                      "description": "เครดิตของบัญชี (เป็น 0 ทั้งหมดสำหรับบัญชี Partner)",
                      "type": "object",
                      "required": [
                        "before",
                        "usage",
                        "after"
                      ],
                      "properties": {
                        "before": {
                          "description": "เครดิตก่อนหัก",
                          "examples": [
                            1000
                          ],
                          "type": "number"
                        },
                        "usage": {
                          "description": "เครดิตที่ใช้ (0 เมื่อสลิปเคยตรวจแล้ว)",
                          "examples": [
                            2.5
                          ],
                          "type": "number"
                        },
                        "after": {
                          "description": "เครดิตคงเหลือ",
                          "examples": [
                            997.5
                          ],
                          "type": "number"
                        }
                      }
                    },
                    "is_exist": {
                      "description": "สลิปนี้เคยตรวจแล้วหรือไม่ (ตรวจซ้ำไม่หักเครดิต)",
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_INVALID"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "UNAUTHORIZED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "IP_NOT_ALLOWED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "ไม่พบสลิป (`SLIP_NOT_EXIST`, `SLIP_INVALID`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่พบสลิป (`SLIP_NOT_EXIST`, `SLIP_INVALID`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_NOT_EXIST"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "ไฟล์หรือ body ใหญ่เกินไป (`FILE_TOO_LARGE`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไฟล์หรือ body ใหญ่เกินไป (`FILE_TOO_LARGE`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "FILE_TOO_LARGE"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SERVER_ERROR"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "verifyBankSlipByBase64",
        "summary": "ตรวจสลิปธนาคารด้วยรูป Base64",
        "description": "สลิปธนาคาร: ส่งรูปสลิปเป็น Data URL (`data:image/jpeg;base64,...`) ใน JSON\n\nใช้ 2.5 เครดิตต่อสลิป สลิปที่เคยตรวจแล้วจะได้ `is_exist: true` และไม่หักเครดิต\n\n```sh\ncurl 'https://api.slip2sure.com/api/v0/bank/v0/verifyByBase64' \\\n  --header 'x-api-key: YOUR_API_KEY' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"payload\":\"data:image/jpeg;base64,YOUR_BASE64\"}'\n```",
        "tags": [
          "Bank slip"
        ],
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/truemoney/v3/verifyByFile": {
      "post": {
        "requestBody": {
          "description": "อัปโหลดรูปสลิปแบบ multipart/form-data",
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "description": "อัปโหลดรูปสลิปแบบ multipart/form-data",
                "type": "object",
                "required": [
                  "image"
                ],
                "properties": {
                  "image": {
                    "description": "รูปสลิป (PNG / JPG / JPEG) ขนาดน้อยกว่า 5 MiB",
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "ตรวจสลิปสำเร็จ",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ตรวจสลิปสำเร็จ",
                  "type": "object",
                  "required": [
                    "info",
                    "credit",
                    "is_exist"
                  ],
                  "properties": {
                    "info": {
                      "description": "ข้อมูลสลิป TrueMoney Wallet",
                      "type": "object",
                      "required": [
                        "payload",
                        "transaction_id",
                        "paid_at",
                        "amount",
                        "account_from_mobile",
                        "account_from_name",
                        "account_to_mobile",
                        "account_to_name"
                      ],
                      "properties": {
                        "payload": {
                          "description": "ข้อมูล QR Code ของสลิป",
                          "type": "string"
                        },
                        "transaction_id": {
                          "description": "หมายเลขรายการ TrueMoney",
                          "examples": [
                            "50099999999999"
                          ],
                          "type": "string"
                        },
                        "paid_at": {
                          "format": "date-time",
                          "description": "วันเวลาโอน ISO 8601 (UTC+7)",
                          "examples": [
                            "2025-02-07T14:00:30+07:00"
                          ],
                          "type": "string"
                        },
                        "amount": {
                          "description": "จำนวนเงิน (บาท)",
                          "examples": [
                            1000
                          ],
                          "type": "number"
                        },
                        "account_from_mobile": {
                          "description": "เบอร์ผู้โอน (ปิดบางส่วน)",
                          "examples": [
                            "XXXXXX8888"
                          ],
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "account_from_name": {
                          "description": "ชื่อผู้โอน",
                          "examples": [
                            "นายสหกิจ สม***"
                          ],
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "account_to_mobile": {
                          "description": "เบอร์ผู้รับ (ปิดบางส่วน)",
                          "examples": [
                            "XXXXXX9999"
                          ],
                          "type": "string"
                        },
                        "account_to_name": {
                          "description": "ชื่อผู้รับ",
                          "examples": [
                            "นายกรมยัก นาระ"
                          ],
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "credit": {
                      "description": "เครดิตของบัญชี (เป็น 0 ทั้งหมดสำหรับบัญชี Partner)",
                      "type": "object",
                      "required": [
                        "before",
                        "usage",
                        "after"
                      ],
                      "properties": {
                        "before": {
                          "description": "เครดิตก่อนหัก",
                          "examples": [
                            1000
                          ],
                          "type": "number"
                        },
                        "usage": {
                          "description": "เครดิตที่ใช้ (0 เมื่อสลิปเคยตรวจแล้ว)",
                          "examples": [
                            2.5
                          ],
                          "type": "number"
                        },
                        "after": {
                          "description": "เครดิตคงเหลือ",
                          "examples": [
                            997.5
                          ],
                          "type": "number"
                        }
                      }
                    },
                    "is_exist": {
                      "description": "สลิปนี้เคยตรวจแล้วหรือไม่ (ตรวจซ้ำไม่หักเครดิต)",
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_INVALID"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "UNAUTHORIZED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "IP_NOT_ALLOWED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "ไม่พบสลิป (`SLIP_NOT_EXIST`, `SLIP_INVALID`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่พบสลิป (`SLIP_NOT_EXIST`, `SLIP_INVALID`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_NOT_EXIST"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "ไฟล์หรือ body ใหญ่เกินไป (`FILE_TOO_LARGE`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไฟล์หรือ body ใหญ่เกินไป (`FILE_TOO_LARGE`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "FILE_TOO_LARGE"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SERVER_ERROR"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "verifyTruemoneyByFile",
        "summary": "ตรวจสลิป TrueMoney ด้วยรูปภาพ",
        "description": "สลิป TrueMoney Wallet: อัปโหลดรูปสลิปเป็น `multipart/form-data` ระบบอ่าน QR Code จากรูปแล้วตรวจสอบกับต้นทาง\n\nใช้ 1 เครดิตต่อสลิป สลิปที่เคยตรวจแล้วจะได้ `is_exist: true` และไม่หักเครดิต\n\n```sh\ncurl 'https://api.slip2sure.com/api/v0/truemoney/v3/verifyByFile' \\\n  --header 'x-api-key: YOUR_API_KEY' \\\n  --form 'image=@\"/path/to/slip.jpg\"'\n```",
        "tags": [
          "TrueMoney"
        ],
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/truemoney/v3/verifyByPayload": {
      "post": {
        "requestBody": {
          "description": "ข้อมูล QR Code ที่อ่านจากสลิปแล้ว",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "description": "ข้อมูล QR Code ที่อ่านจากสลิปแล้ว",
                "type": "object",
                "required": [
                  "payload"
                ],
                "properties": {
                  "payload": {
                    "maxLength": 256,
                    "description": "ข้อมูล QR Code จากสลิป",
                    "examples": [
                      "0041000600000101030040220014..."
                    ],
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "ตรวจสลิปสำเร็จ",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ตรวจสลิปสำเร็จ",
                  "type": "object",
                  "required": [
                    "info",
                    "credit",
                    "is_exist"
                  ],
                  "properties": {
                    "info": {
                      "description": "ข้อมูลสลิป TrueMoney Wallet",
                      "type": "object",
                      "required": [
                        "payload",
                        "transaction_id",
                        "paid_at",
                        "amount",
                        "account_from_mobile",
                        "account_from_name",
                        "account_to_mobile",
                        "account_to_name"
                      ],
                      "properties": {
                        "payload": {
                          "description": "ข้อมูล QR Code ของสลิป",
                          "type": "string"
                        },
                        "transaction_id": {
                          "description": "หมายเลขรายการ TrueMoney",
                          "examples": [
                            "50099999999999"
                          ],
                          "type": "string"
                        },
                        "paid_at": {
                          "format": "date-time",
                          "description": "วันเวลาโอน ISO 8601 (UTC+7)",
                          "examples": [
                            "2025-02-07T14:00:30+07:00"
                          ],
                          "type": "string"
                        },
                        "amount": {
                          "description": "จำนวนเงิน (บาท)",
                          "examples": [
                            1000
                          ],
                          "type": "number"
                        },
                        "account_from_mobile": {
                          "description": "เบอร์ผู้โอน (ปิดบางส่วน)",
                          "examples": [
                            "XXXXXX8888"
                          ],
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "account_from_name": {
                          "description": "ชื่อผู้โอน",
                          "examples": [
                            "นายสหกิจ สม***"
                          ],
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "account_to_mobile": {
                          "description": "เบอร์ผู้รับ (ปิดบางส่วน)",
                          "examples": [
                            "XXXXXX9999"
                          ],
                          "type": "string"
                        },
                        "account_to_name": {
                          "description": "ชื่อผู้รับ",
                          "examples": [
                            "นายกรมยัก นาระ"
                          ],
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "credit": {
                      "description": "เครดิตของบัญชี (เป็น 0 ทั้งหมดสำหรับบัญชี Partner)",
                      "type": "object",
                      "required": [
                        "before",
                        "usage",
                        "after"
                      ],
                      "properties": {
                        "before": {
                          "description": "เครดิตก่อนหัก",
                          "examples": [
                            1000
                          ],
                          "type": "number"
                        },
                        "usage": {
                          "description": "เครดิตที่ใช้ (0 เมื่อสลิปเคยตรวจแล้ว)",
                          "examples": [
                            2.5
                          ],
                          "type": "number"
                        },
                        "after": {
                          "description": "เครดิตคงเหลือ",
                          "examples": [
                            997.5
                          ],
                          "type": "number"
                        }
                      }
                    },
                    "is_exist": {
                      "description": "สลิปนี้เคยตรวจแล้วหรือไม่ (ตรวจซ้ำไม่หักเครดิต)",
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_INVALID"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "UNAUTHORIZED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "IP_NOT_ALLOWED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "ไม่พบสลิป (`SLIP_NOT_EXIST`, `SLIP_INVALID`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่พบสลิป (`SLIP_NOT_EXIST`, `SLIP_INVALID`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_NOT_EXIST"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "ไฟล์หรือ body ใหญ่เกินไป (`FILE_TOO_LARGE`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไฟล์หรือ body ใหญ่เกินไป (`FILE_TOO_LARGE`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "FILE_TOO_LARGE"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SERVER_ERROR"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "verifyTruemoneyByPayload",
        "summary": "ตรวจสลิป TrueMoney ด้วย QR payload",
        "description": "สลิป TrueMoney Wallet: ส่งข้อมูล QR Code ที่อ่านจากสลิปเอง (ไม่ต้องส่งรูป)\n\nใช้ 1 เครดิตต่อสลิป สลิปที่เคยตรวจแล้วจะได้ `is_exist: true` และไม่หักเครดิต\n\n```sh\ncurl 'https://api.slip2sure.com/api/v0/truemoney/v3/verifyByPayload' \\\n  --header 'x-api-key: YOUR_API_KEY' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"payload\":\"YOUR_QRCODE\"}'\n```",
        "tags": [
          "TrueMoney"
        ],
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/truemoney/v3/verifyByBase64": {
      "post": {
        "requestBody": {
          "description": "รูปสลิปแบบ Base64",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "description": "รูปสลิปแบบ Base64",
                "type": "object",
                "required": [
                  "payload"
                ],
                "properties": {
                  "payload": {
                    "description": "รูปสลิปเป็น Data URL: `data:image/<jpeg|jpg|png>;base64,<BASE64>` ขนาดรูปหลัง decode ต้องน้อยกว่า 5 MiB",
                    "examples": [
                      "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQ..."
                    ],
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "ตรวจสลิปสำเร็จ",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ตรวจสลิปสำเร็จ",
                  "type": "object",
                  "required": [
                    "info",
                    "credit",
                    "is_exist"
                  ],
                  "properties": {
                    "info": {
                      "description": "ข้อมูลสลิป TrueMoney Wallet",
                      "type": "object",
                      "required": [
                        "payload",
                        "transaction_id",
                        "paid_at",
                        "amount",
                        "account_from_mobile",
                        "account_from_name",
                        "account_to_mobile",
                        "account_to_name"
                      ],
                      "properties": {
                        "payload": {
                          "description": "ข้อมูล QR Code ของสลิป",
                          "type": "string"
                        },
                        "transaction_id": {
                          "description": "หมายเลขรายการ TrueMoney",
                          "examples": [
                            "50099999999999"
                          ],
                          "type": "string"
                        },
                        "paid_at": {
                          "format": "date-time",
                          "description": "วันเวลาโอน ISO 8601 (UTC+7)",
                          "examples": [
                            "2025-02-07T14:00:30+07:00"
                          ],
                          "type": "string"
                        },
                        "amount": {
                          "description": "จำนวนเงิน (บาท)",
                          "examples": [
                            1000
                          ],
                          "type": "number"
                        },
                        "account_from_mobile": {
                          "description": "เบอร์ผู้โอน (ปิดบางส่วน)",
                          "examples": [
                            "XXXXXX8888"
                          ],
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "account_from_name": {
                          "description": "ชื่อผู้โอน",
                          "examples": [
                            "นายสหกิจ สม***"
                          ],
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "account_to_mobile": {
                          "description": "เบอร์ผู้รับ (ปิดบางส่วน)",
                          "examples": [
                            "XXXXXX9999"
                          ],
                          "type": "string"
                        },
                        "account_to_name": {
                          "description": "ชื่อผู้รับ",
                          "examples": [
                            "นายกรมยัก นาระ"
                          ],
                          "nullable": true,
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      }
                    },
                    "credit": {
                      "description": "เครดิตของบัญชี (เป็น 0 ทั้งหมดสำหรับบัญชี Partner)",
                      "type": "object",
                      "required": [
                        "before",
                        "usage",
                        "after"
                      ],
                      "properties": {
                        "before": {
                          "description": "เครดิตก่อนหัก",
                          "examples": [
                            1000
                          ],
                          "type": "number"
                        },
                        "usage": {
                          "description": "เครดิตที่ใช้ (0 เมื่อสลิปเคยตรวจแล้ว)",
                          "examples": [
                            2.5
                          ],
                          "type": "number"
                        },
                        "after": {
                          "description": "เครดิตคงเหลือ",
                          "examples": [
                            997.5
                          ],
                          "type": "number"
                        }
                      }
                    },
                    "is_exist": {
                      "description": "สลิปนี้เคยตรวจแล้วหรือไม่ (ตรวจซ้ำไม่หักเครดิต)",
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_INVALID"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "UNAUTHORIZED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "IP_NOT_ALLOWED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "ไม่พบสลิป (`SLIP_NOT_EXIST`, `SLIP_INVALID`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่พบสลิป (`SLIP_NOT_EXIST`, `SLIP_INVALID`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_NOT_EXIST"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "ไฟล์หรือ body ใหญ่เกินไป (`FILE_TOO_LARGE`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไฟล์หรือ body ใหญ่เกินไป (`FILE_TOO_LARGE`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "FILE_TOO_LARGE"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SERVER_ERROR"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "verifyTruemoneyByBase64",
        "summary": "ตรวจสลิป TrueMoney ด้วยรูป Base64",
        "description": "สลิป TrueMoney Wallet: ส่งรูปสลิปเป็น Data URL (`data:image/jpeg;base64,...`) ใน JSON\n\nใช้ 1 เครดิตต่อสลิป สลิปที่เคยตรวจแล้วจะได้ `is_exist: true` และไม่หักเครดิต\n\n```sh\ncurl 'https://api.slip2sure.com/api/v0/truemoney/v3/verifyByBase64' \\\n  --header 'x-api-key: YOUR_API_KEY' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"payload\":\"data:image/jpeg;base64,YOUR_BASE64\"}'\n```",
        "tags": [
          "TrueMoney"
        ],
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/slip/v1/verifyByFile": {
      "post": {
        "requestBody": {
          "description": "อัปโหลดรูปสลิปแบบ multipart/form-data",
          "required": true,
          "content": {
            "multipart/form-data": {
              "schema": {
                "description": "อัปโหลดรูปสลิปแบบ multipart/form-data",
                "type": "object",
                "required": [
                  "image"
                ],
                "properties": {
                  "image": {
                    "description": "รูปสลิป (PNG / JPG / JPEG) ขนาดน้อยกว่า 5 MiB",
                    "type": "string",
                    "format": "binary"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "ตรวจสลิปสำเร็จ",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ตรวจสลิปสำเร็จ",
                  "type": "object",
                  "required": [
                    "kind",
                    "info",
                    "credit",
                    "is_exist"
                  ],
                  "properties": {
                    "kind": {
                      "description": "ประเภทสลิปที่ตรวจพบ",
                      "type": "string",
                      "enum": [
                        "bank",
                        "truemoney",
                        "unknown"
                      ]
                    },
                    "info": {
                      "description": "ข้อมูลสลิป: รูปแบบเดียวกับ API ธนาคารเมื่อ `kind` = `bank`, TrueMoney เมื่อ `kind` = `truemoney`",
                      "anyOf": [
                        {
                          "description": "ข้อมูลสลิปธนาคาร",
                          "type": "object",
                          "required": [
                            "payload",
                            "transRef",
                            "ref1",
                            "ref2",
                            "ref3",
                            "transDate",
                            "transTime",
                            "transDateTime",
                            "sendingBank",
                            "receivingBank",
                            "sender",
                            "receiver",
                            "amount",
                            "transFeeAmount",
                            "paidLocalAmount",
                            "paidLocalCurrency",
                            "countryCode",
                            "toMerchantId"
                          ],
                          "properties": {
                            "payload": {
                              "description": "ข้อมูล QR Code ของสลิป",
                              "type": "string"
                            },
                            "transRef": {
                              "description": "หมายเลขอ้างอิงรายการ (Transaction reference)",
                              "examples": [
                                "016038143702ATF07422"
                              ],
                              "type": "string"
                            },
                            "ref1": {
                              "description": "หมายเลขอ้างอิง 1",
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "ref2": {
                              "description": "หมายเลขอ้างอิง 2",
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "ref3": {
                              "description": "หมายเลขอ้างอิง 3",
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "transDate": {
                              "description": "วันที่โอน (YYYYMMDD)",
                              "examples": [
                                "20250207"
                              ],
                              "type": "string"
                            },
                            "transTime": {
                              "description": "เวลาโอน (HH:mm:ss)",
                              "examples": [
                                "14:00:30"
                              ],
                              "type": "string"
                            },
                            "transDateTime": {
                              "format": "date-time",
                              "description": "วันเวลาโอน ISO 8601 (UTC+7)",
                              "examples": [
                                "2025-02-07T14:00:30+07:00"
                              ],
                              "type": "string"
                            },
                            "sendingBank": {
                              "description": "รหัสธนาคารผู้โอน",
                              "examples": [
                                "004"
                              ],
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "receivingBank": {
                              "description": "รหัสธนาคารผู้รับ",
                              "examples": [
                                "014"
                              ],
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sender": {
                              "type": "object",
                              "required": [
                                "displayName",
                                "name",
                                "proxy",
                                "account",
                                "bank"
                              ],
                              "properties": {
                                "displayName": {
                                  "description": "ชื่อผู้โอนตามที่แสดงบนสลิป",
                                  "examples": [
                                    "MR. SOMCHAI R"
                                  ],
                                  "type": "string"
                                },
                                "name": {
                                  "description": "ชื่อภาษาอังกฤษ (ยังไม่รองรับ เป็น null เสมอ)",
                                  "type": "null"
                                },
                                "proxy": {
                                  "description": "ตัวแทนบัญชี (PromptPay proxy)",
                                  "type": "object",
                                  "required": [
                                    "type",
                                    "value"
                                  ],
                                  "properties": {
                                    "type": {
                                      "description": "ประเภทพร้อมเพย์/ตัวแทนบัญชี: `NATID` เลขบัตรประชาชน, `MSISDN` เบอร์โทร, `EWALLETID` e-Wallet ID, `BILLERID` Biller ID",
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "NATID",
                                        "MSISDN",
                                        "EWALLETID",
                                        "BILLERID"
                                      ]
                                    },
                                    "value": {
                                      "description": "ข้อมูลตัวแทนบัญชี (ปิดบางส่วน)",
                                      "examples": [
                                        "XXX-XXX-8511"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "account": {
                                  "description": "บัญชีธนาคาร",
                                  "type": "object",
                                  "required": [
                                    "type",
                                    "value"
                                  ],
                                  "properties": {
                                    "type": {
                                      "description": "`BANKAC` = เลขบัญชีธนาคาร",
                                      "nullable": true,
                                      "const": "BANKAC",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "value": {
                                      "description": "เลขบัญชี (ปิดบางส่วน)",
                                      "examples": [
                                        "xxx-x-x1234-x"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "bank": {
                                  "type": "object",
                                  "required": [
                                    "code",
                                    "name"
                                  ],
                                  "properties": {
                                    "code": {
                                      "description": "รหัสธนาคาร 3 หลัก",
                                      "examples": [
                                        "004"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "name": {
                                      "description": "ชื่อธนาคาร",
                                      "examples": [
                                        "ธนาคารกสิกรไทย"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                }
                              }
                            },
                            "receiver": {
                              "type": "object",
                              "required": [
                                "displayName",
                                "name",
                                "proxy",
                                "account",
                                "bank"
                              ],
                              "properties": {
                                "displayName": {
                                  "description": "ชื่อผู้รับตามที่แสดงบนสลิป",
                                  "examples": [
                                    "MR. SOMCHAI R"
                                  ],
                                  "type": "string"
                                },
                                "name": {
                                  "description": "ชื่อภาษาอังกฤษ (ยังไม่รองรับ เป็น null เสมอ)",
                                  "type": "null"
                                },
                                "proxy": {
                                  "description": "ตัวแทนบัญชี (PromptPay proxy)",
                                  "type": "object",
                                  "required": [
                                    "type",
                                    "value"
                                  ],
                                  "properties": {
                                    "type": {
                                      "description": "ประเภทพร้อมเพย์/ตัวแทนบัญชี: `NATID` เลขบัตรประชาชน, `MSISDN` เบอร์โทร, `EWALLETID` e-Wallet ID, `BILLERID` Biller ID",
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "NATID",
                                        "MSISDN",
                                        "EWALLETID",
                                        "BILLERID"
                                      ]
                                    },
                                    "value": {
                                      "description": "ข้อมูลตัวแทนบัญชี (ปิดบางส่วน)",
                                      "examples": [
                                        "XXX-XXX-8511"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "account": {
                                  "description": "บัญชีธนาคาร",
                                  "type": "object",
                                  "required": [
                                    "type",
                                    "value"
                                  ],
                                  "properties": {
                                    "type": {
                                      "description": "`BANKAC` = เลขบัญชีธนาคาร",
                                      "nullable": true,
                                      "const": "BANKAC",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "value": {
                                      "description": "เลขบัญชี (ปิดบางส่วน)",
                                      "examples": [
                                        "xxx-x-x1234-x"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "bank": {
                                  "type": "object",
                                  "required": [
                                    "code",
                                    "name"
                                  ],
                                  "properties": {
                                    "code": {
                                      "description": "รหัสธนาคาร 3 หลัก",
                                      "examples": [
                                        "004"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "name": {
                                      "description": "ชื่อธนาคาร",
                                      "examples": [
                                        "ธนาคารกสิกรไทย"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                }
                              }
                            },
                            "amount": {
                              "description": "จำนวนเงิน (บาท)",
                              "examples": [
                                100
                              ],
                              "type": "number"
                            },
                            "transFeeAmount": {
                              "description": "ค่าธรรมเนียม (เป็น 0 เสมอ)",
                              "examples": [
                                0
                              ],
                              "type": "number"
                            },
                            "paidLocalAmount": {
                              "description": "จำนวนเงินสกุลท้องถิ่น",
                              "examples": [
                                100
                              ],
                              "type": "number"
                            },
                            "paidLocalCurrency": {
                              "description": "รหัสสกุลเงิน ISO 4217 (764 = THB)",
                              "examples": [
                                "764"
                              ],
                              "type": "string"
                            },
                            "countryCode": {
                              "description": "รหัสประเทศ ISO 3166-1 alpha-2",
                              "examples": [
                                "TH"
                              ],
                              "type": "string"
                            },
                            "toMerchantId": {
                              "description": "รหัสร้านค้า (ว่างเสมอ)",
                              "examples": [
                                ""
                              ],
                              "type": "string"
                            }
                          }
                        },
                        {
                          "description": "ข้อมูลสลิป TrueMoney Wallet",
                          "type": "object",
                          "required": [
                            "payload",
                            "transaction_id",
                            "paid_at",
                            "amount",
                            "account_from_mobile",
                            "account_from_name",
                            "account_to_mobile",
                            "account_to_name"
                          ],
                          "properties": {
                            "payload": {
                              "description": "ข้อมูล QR Code ของสลิป",
                              "type": "string"
                            },
                            "transaction_id": {
                              "description": "หมายเลขรายการ TrueMoney",
                              "examples": [
                                "50099999999999"
                              ],
                              "type": "string"
                            },
                            "paid_at": {
                              "format": "date-time",
                              "description": "วันเวลาโอน ISO 8601 (UTC+7)",
                              "examples": [
                                "2025-02-07T14:00:30+07:00"
                              ],
                              "type": "string"
                            },
                            "amount": {
                              "description": "จำนวนเงิน (บาท)",
                              "examples": [
                                1000
                              ],
                              "type": "number"
                            },
                            "account_from_mobile": {
                              "description": "เบอร์ผู้โอน (ปิดบางส่วน)",
                              "examples": [
                                "XXXXXX8888"
                              ],
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "account_from_name": {
                              "description": "ชื่อผู้โอน",
                              "examples": [
                                "นายสหกิจ สม***"
                              ],
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "account_to_mobile": {
                              "description": "เบอร์ผู้รับ (ปิดบางส่วน)",
                              "examples": [
                                "XXXXXX9999"
                              ],
                              "type": "string"
                            },
                            "account_to_name": {
                              "description": "ชื่อผู้รับ",
                              "examples": [
                                "นายกรมยัก นาระ"
                              ],
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "credit": {
                      "description": "เครดิตของบัญชี (เป็น 0 ทั้งหมดสำหรับบัญชี Partner)",
                      "type": "object",
                      "required": [
                        "before",
                        "usage",
                        "after"
                      ],
                      "properties": {
                        "before": {
                          "description": "เครดิตก่อนหัก",
                          "examples": [
                            1000
                          ],
                          "type": "number"
                        },
                        "usage": {
                          "description": "เครดิตที่ใช้ (0 เมื่อสลิปเคยตรวจแล้ว)",
                          "examples": [
                            2.5
                          ],
                          "type": "number"
                        },
                        "after": {
                          "description": "เครดิตคงเหลือ",
                          "examples": [
                            997.5
                          ],
                          "type": "number"
                        }
                      }
                    },
                    "is_exist": {
                      "description": "สลิปนี้เคยตรวจแล้วหรือไม่ (ตรวจซ้ำไม่หักเครดิต)",
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_INVALID"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "UNAUTHORIZED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "IP_NOT_ALLOWED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "ไม่พบสลิป (`SLIP_NOT_EXIST`, `SLIP_INVALID`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่พบสลิป (`SLIP_NOT_EXIST`, `SLIP_INVALID`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_NOT_EXIST"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "ไฟล์หรือ body ใหญ่เกินไป (`FILE_TOO_LARGE`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไฟล์หรือ body ใหญ่เกินไป (`FILE_TOO_LARGE`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "FILE_TOO_LARGE"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SERVER_ERROR"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "verifySlipByFile",
        "summary": "ตรวจสลิปด้วยรูปภาพ",
        "description": "สลิป (ระบบแยกประเภทธนาคาร / TrueMoney ให้เอง): อัปโหลดรูปสลิปเป็น `multipart/form-data` ระบบอ่าน QR Code จากรูปแล้วตรวจสอบกับต้นทาง\n\nดูประเภทสลิปที่ตรวจพบจาก `kind` เครดิตที่ใช้ตามประเภทสลิป\n\n```sh\ncurl 'https://api.slip2sure.com/api/v0/slip/v1/verifyByFile' \\\n  --header 'x-api-key: YOUR_API_KEY' \\\n  --form 'image=@\"/path/to/slip.jpg\"'\n```",
        "tags": [
          "Auto-detect slip"
        ],
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/slip/v1/verifyByPayload": {
      "post": {
        "requestBody": {
          "description": "ข้อมูล QR Code ที่อ่านจากสลิปแล้ว",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "description": "ข้อมูล QR Code ที่อ่านจากสลิปแล้ว",
                "type": "object",
                "required": [
                  "payload"
                ],
                "properties": {
                  "payload": {
                    "maxLength": 256,
                    "description": "ข้อมูล QR Code จากสลิป",
                    "examples": [
                      "0041000600000101030040220014..."
                    ],
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "ตรวจสลิปสำเร็จ",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ตรวจสลิปสำเร็จ",
                  "type": "object",
                  "required": [
                    "kind",
                    "info",
                    "credit",
                    "is_exist"
                  ],
                  "properties": {
                    "kind": {
                      "description": "ประเภทสลิปที่ตรวจพบ",
                      "type": "string",
                      "enum": [
                        "bank",
                        "truemoney",
                        "unknown"
                      ]
                    },
                    "info": {
                      "description": "ข้อมูลสลิป: รูปแบบเดียวกับ API ธนาคารเมื่อ `kind` = `bank`, TrueMoney เมื่อ `kind` = `truemoney`",
                      "anyOf": [
                        {
                          "description": "ข้อมูลสลิปธนาคาร",
                          "type": "object",
                          "required": [
                            "payload",
                            "transRef",
                            "ref1",
                            "ref2",
                            "ref3",
                            "transDate",
                            "transTime",
                            "transDateTime",
                            "sendingBank",
                            "receivingBank",
                            "sender",
                            "receiver",
                            "amount",
                            "transFeeAmount",
                            "paidLocalAmount",
                            "paidLocalCurrency",
                            "countryCode",
                            "toMerchantId"
                          ],
                          "properties": {
                            "payload": {
                              "description": "ข้อมูล QR Code ของสลิป",
                              "type": "string"
                            },
                            "transRef": {
                              "description": "หมายเลขอ้างอิงรายการ (Transaction reference)",
                              "examples": [
                                "016038143702ATF07422"
                              ],
                              "type": "string"
                            },
                            "ref1": {
                              "description": "หมายเลขอ้างอิง 1",
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "ref2": {
                              "description": "หมายเลขอ้างอิง 2",
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "ref3": {
                              "description": "หมายเลขอ้างอิง 3",
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "transDate": {
                              "description": "วันที่โอน (YYYYMMDD)",
                              "examples": [
                                "20250207"
                              ],
                              "type": "string"
                            },
                            "transTime": {
                              "description": "เวลาโอน (HH:mm:ss)",
                              "examples": [
                                "14:00:30"
                              ],
                              "type": "string"
                            },
                            "transDateTime": {
                              "format": "date-time",
                              "description": "วันเวลาโอน ISO 8601 (UTC+7)",
                              "examples": [
                                "2025-02-07T14:00:30+07:00"
                              ],
                              "type": "string"
                            },
                            "sendingBank": {
                              "description": "รหัสธนาคารผู้โอน",
                              "examples": [
                                "004"
                              ],
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "receivingBank": {
                              "description": "รหัสธนาคารผู้รับ",
                              "examples": [
                                "014"
                              ],
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sender": {
                              "type": "object",
                              "required": [
                                "displayName",
                                "name",
                                "proxy",
                                "account",
                                "bank"
                              ],
                              "properties": {
                                "displayName": {
                                  "description": "ชื่อผู้โอนตามที่แสดงบนสลิป",
                                  "examples": [
                                    "MR. SOMCHAI R"
                                  ],
                                  "type": "string"
                                },
                                "name": {
                                  "description": "ชื่อภาษาอังกฤษ (ยังไม่รองรับ เป็น null เสมอ)",
                                  "type": "null"
                                },
                                "proxy": {
                                  "description": "ตัวแทนบัญชี (PromptPay proxy)",
                                  "type": "object",
                                  "required": [
                                    "type",
                                    "value"
                                  ],
                                  "properties": {
                                    "type": {
                                      "description": "ประเภทพร้อมเพย์/ตัวแทนบัญชี: `NATID` เลขบัตรประชาชน, `MSISDN` เบอร์โทร, `EWALLETID` e-Wallet ID, `BILLERID` Biller ID",
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "NATID",
                                        "MSISDN",
                                        "EWALLETID",
                                        "BILLERID"
                                      ]
                                    },
                                    "value": {
                                      "description": "ข้อมูลตัวแทนบัญชี (ปิดบางส่วน)",
                                      "examples": [
                                        "XXX-XXX-8511"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "account": {
                                  "description": "บัญชีธนาคาร",
                                  "type": "object",
                                  "required": [
                                    "type",
                                    "value"
                                  ],
                                  "properties": {
                                    "type": {
                                      "description": "`BANKAC` = เลขบัญชีธนาคาร",
                                      "nullable": true,
                                      "const": "BANKAC",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "value": {
                                      "description": "เลขบัญชี (ปิดบางส่วน)",
                                      "examples": [
                                        "xxx-x-x1234-x"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "bank": {
                                  "type": "object",
                                  "required": [
                                    "code",
                                    "name"
                                  ],
                                  "properties": {
                                    "code": {
                                      "description": "รหัสธนาคาร 3 หลัก",
                                      "examples": [
                                        "004"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "name": {
                                      "description": "ชื่อธนาคาร",
                                      "examples": [
                                        "ธนาคารกสิกรไทย"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                }
                              }
                            },
                            "receiver": {
                              "type": "object",
                              "required": [
                                "displayName",
                                "name",
                                "proxy",
                                "account",
                                "bank"
                              ],
                              "properties": {
                                "displayName": {
                                  "description": "ชื่อผู้รับตามที่แสดงบนสลิป",
                                  "examples": [
                                    "MR. SOMCHAI R"
                                  ],
                                  "type": "string"
                                },
                                "name": {
                                  "description": "ชื่อภาษาอังกฤษ (ยังไม่รองรับ เป็น null เสมอ)",
                                  "type": "null"
                                },
                                "proxy": {
                                  "description": "ตัวแทนบัญชี (PromptPay proxy)",
                                  "type": "object",
                                  "required": [
                                    "type",
                                    "value"
                                  ],
                                  "properties": {
                                    "type": {
                                      "description": "ประเภทพร้อมเพย์/ตัวแทนบัญชี: `NATID` เลขบัตรประชาชน, `MSISDN` เบอร์โทร, `EWALLETID` e-Wallet ID, `BILLERID` Biller ID",
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "NATID",
                                        "MSISDN",
                                        "EWALLETID",
                                        "BILLERID"
                                      ]
                                    },
                                    "value": {
                                      "description": "ข้อมูลตัวแทนบัญชี (ปิดบางส่วน)",
                                      "examples": [
                                        "XXX-XXX-8511"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "account": {
                                  "description": "บัญชีธนาคาร",
                                  "type": "object",
                                  "required": [
                                    "type",
                                    "value"
                                  ],
                                  "properties": {
                                    "type": {
                                      "description": "`BANKAC` = เลขบัญชีธนาคาร",
                                      "nullable": true,
                                      "const": "BANKAC",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "value": {
                                      "description": "เลขบัญชี (ปิดบางส่วน)",
                                      "examples": [
                                        "xxx-x-x1234-x"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "bank": {
                                  "type": "object",
                                  "required": [
                                    "code",
                                    "name"
                                  ],
                                  "properties": {
                                    "code": {
                                      "description": "รหัสธนาคาร 3 หลัก",
                                      "examples": [
                                        "004"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "name": {
                                      "description": "ชื่อธนาคาร",
                                      "examples": [
                                        "ธนาคารกสิกรไทย"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                }
                              }
                            },
                            "amount": {
                              "description": "จำนวนเงิน (บาท)",
                              "examples": [
                                100
                              ],
                              "type": "number"
                            },
                            "transFeeAmount": {
                              "description": "ค่าธรรมเนียม (เป็น 0 เสมอ)",
                              "examples": [
                                0
                              ],
                              "type": "number"
                            },
                            "paidLocalAmount": {
                              "description": "จำนวนเงินสกุลท้องถิ่น",
                              "examples": [
                                100
                              ],
                              "type": "number"
                            },
                            "paidLocalCurrency": {
                              "description": "รหัสสกุลเงิน ISO 4217 (764 = THB)",
                              "examples": [
                                "764"
                              ],
                              "type": "string"
                            },
                            "countryCode": {
                              "description": "รหัสประเทศ ISO 3166-1 alpha-2",
                              "examples": [
                                "TH"
                              ],
                              "type": "string"
                            },
                            "toMerchantId": {
                              "description": "รหัสร้านค้า (ว่างเสมอ)",
                              "examples": [
                                ""
                              ],
                              "type": "string"
                            }
                          }
                        },
                        {
                          "description": "ข้อมูลสลิป TrueMoney Wallet",
                          "type": "object",
                          "required": [
                            "payload",
                            "transaction_id",
                            "paid_at",
                            "amount",
                            "account_from_mobile",
                            "account_from_name",
                            "account_to_mobile",
                            "account_to_name"
                          ],
                          "properties": {
                            "payload": {
                              "description": "ข้อมูล QR Code ของสลิป",
                              "type": "string"
                            },
                            "transaction_id": {
                              "description": "หมายเลขรายการ TrueMoney",
                              "examples": [
                                "50099999999999"
                              ],
                              "type": "string"
                            },
                            "paid_at": {
                              "format": "date-time",
                              "description": "วันเวลาโอน ISO 8601 (UTC+7)",
                              "examples": [
                                "2025-02-07T14:00:30+07:00"
                              ],
                              "type": "string"
                            },
                            "amount": {
                              "description": "จำนวนเงิน (บาท)",
                              "examples": [
                                1000
                              ],
                              "type": "number"
                            },
                            "account_from_mobile": {
                              "description": "เบอร์ผู้โอน (ปิดบางส่วน)",
                              "examples": [
                                "XXXXXX8888"
                              ],
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "account_from_name": {
                              "description": "ชื่อผู้โอน",
                              "examples": [
                                "นายสหกิจ สม***"
                              ],
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "account_to_mobile": {
                              "description": "เบอร์ผู้รับ (ปิดบางส่วน)",
                              "examples": [
                                "XXXXXX9999"
                              ],
                              "type": "string"
                            },
                            "account_to_name": {
                              "description": "ชื่อผู้รับ",
                              "examples": [
                                "นายกรมยัก นาระ"
                              ],
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "credit": {
                      "description": "เครดิตของบัญชี (เป็น 0 ทั้งหมดสำหรับบัญชี Partner)",
                      "type": "object",
                      "required": [
                        "before",
                        "usage",
                        "after"
                      ],
                      "properties": {
                        "before": {
                          "description": "เครดิตก่อนหัก",
                          "examples": [
                            1000
                          ],
                          "type": "number"
                        },
                        "usage": {
                          "description": "เครดิตที่ใช้ (0 เมื่อสลิปเคยตรวจแล้ว)",
                          "examples": [
                            2.5
                          ],
                          "type": "number"
                        },
                        "after": {
                          "description": "เครดิตคงเหลือ",
                          "examples": [
                            997.5
                          ],
                          "type": "number"
                        }
                      }
                    },
                    "is_exist": {
                      "description": "สลิปนี้เคยตรวจแล้วหรือไม่ (ตรวจซ้ำไม่หักเครดิต)",
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_INVALID"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "UNAUTHORIZED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "IP_NOT_ALLOWED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "ไม่พบสลิป (`SLIP_NOT_EXIST`, `SLIP_INVALID`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่พบสลิป (`SLIP_NOT_EXIST`, `SLIP_INVALID`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_NOT_EXIST"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "ไฟล์หรือ body ใหญ่เกินไป (`FILE_TOO_LARGE`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไฟล์หรือ body ใหญ่เกินไป (`FILE_TOO_LARGE`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "FILE_TOO_LARGE"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SERVER_ERROR"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "verifySlipByPayload",
        "summary": "ตรวจสลิปด้วย QR payload",
        "description": "สลิป (ระบบแยกประเภทธนาคาร / TrueMoney ให้เอง): ส่งข้อมูล QR Code ที่อ่านจากสลิปเอง (ไม่ต้องส่งรูป)\n\nดูประเภทสลิปที่ตรวจพบจาก `kind` เครดิตที่ใช้ตามประเภทสลิป\n\n```sh\ncurl 'https://api.slip2sure.com/api/v0/slip/v1/verifyByPayload' \\\n  --header 'x-api-key: YOUR_API_KEY' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"payload\":\"YOUR_QRCODE\"}'\n```",
        "tags": [
          "Auto-detect slip"
        ],
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/slip/v1/verifyByBase64": {
      "post": {
        "requestBody": {
          "description": "รูปสลิปแบบ Base64",
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "description": "รูปสลิปแบบ Base64",
                "type": "object",
                "required": [
                  "payload"
                ],
                "properties": {
                  "payload": {
                    "description": "รูปสลิปเป็น Data URL: `data:image/<jpeg|jpg|png>;base64,<BASE64>` ขนาดรูปหลัง decode ต้องน้อยกว่า 5 MiB",
                    "examples": [
                      "data:image/jpeg;base64,/9j/4AAQSkZJRgABAQ..."
                    ],
                    "type": "string"
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "ตรวจสลิปสำเร็จ",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ตรวจสลิปสำเร็จ",
                  "type": "object",
                  "required": [
                    "kind",
                    "info",
                    "credit",
                    "is_exist"
                  ],
                  "properties": {
                    "kind": {
                      "description": "ประเภทสลิปที่ตรวจพบ",
                      "type": "string",
                      "enum": [
                        "bank",
                        "truemoney",
                        "unknown"
                      ]
                    },
                    "info": {
                      "description": "ข้อมูลสลิป: รูปแบบเดียวกับ API ธนาคารเมื่อ `kind` = `bank`, TrueMoney เมื่อ `kind` = `truemoney`",
                      "anyOf": [
                        {
                          "description": "ข้อมูลสลิปธนาคาร",
                          "type": "object",
                          "required": [
                            "payload",
                            "transRef",
                            "ref1",
                            "ref2",
                            "ref3",
                            "transDate",
                            "transTime",
                            "transDateTime",
                            "sendingBank",
                            "receivingBank",
                            "sender",
                            "receiver",
                            "amount",
                            "transFeeAmount",
                            "paidLocalAmount",
                            "paidLocalCurrency",
                            "countryCode",
                            "toMerchantId"
                          ],
                          "properties": {
                            "payload": {
                              "description": "ข้อมูล QR Code ของสลิป",
                              "type": "string"
                            },
                            "transRef": {
                              "description": "หมายเลขอ้างอิงรายการ (Transaction reference)",
                              "examples": [
                                "016038143702ATF07422"
                              ],
                              "type": "string"
                            },
                            "ref1": {
                              "description": "หมายเลขอ้างอิง 1",
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "ref2": {
                              "description": "หมายเลขอ้างอิง 2",
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "ref3": {
                              "description": "หมายเลขอ้างอิง 3",
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "transDate": {
                              "description": "วันที่โอน (YYYYMMDD)",
                              "examples": [
                                "20250207"
                              ],
                              "type": "string"
                            },
                            "transTime": {
                              "description": "เวลาโอน (HH:mm:ss)",
                              "examples": [
                                "14:00:30"
                              ],
                              "type": "string"
                            },
                            "transDateTime": {
                              "format": "date-time",
                              "description": "วันเวลาโอน ISO 8601 (UTC+7)",
                              "examples": [
                                "2025-02-07T14:00:30+07:00"
                              ],
                              "type": "string"
                            },
                            "sendingBank": {
                              "description": "รหัสธนาคารผู้โอน",
                              "examples": [
                                "004"
                              ],
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "receivingBank": {
                              "description": "รหัสธนาคารผู้รับ",
                              "examples": [
                                "014"
                              ],
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "sender": {
                              "type": "object",
                              "required": [
                                "displayName",
                                "name",
                                "proxy",
                                "account",
                                "bank"
                              ],
                              "properties": {
                                "displayName": {
                                  "description": "ชื่อผู้โอนตามที่แสดงบนสลิป",
                                  "examples": [
                                    "MR. SOMCHAI R"
                                  ],
                                  "type": "string"
                                },
                                "name": {
                                  "description": "ชื่อภาษาอังกฤษ (ยังไม่รองรับ เป็น null เสมอ)",
                                  "type": "null"
                                },
                                "proxy": {
                                  "description": "ตัวแทนบัญชี (PromptPay proxy)",
                                  "type": "object",
                                  "required": [
                                    "type",
                                    "value"
                                  ],
                                  "properties": {
                                    "type": {
                                      "description": "ประเภทพร้อมเพย์/ตัวแทนบัญชี: `NATID` เลขบัตรประชาชน, `MSISDN` เบอร์โทร, `EWALLETID` e-Wallet ID, `BILLERID` Biller ID",
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "NATID",
                                        "MSISDN",
                                        "EWALLETID",
                                        "BILLERID"
                                      ]
                                    },
                                    "value": {
                                      "description": "ข้อมูลตัวแทนบัญชี (ปิดบางส่วน)",
                                      "examples": [
                                        "XXX-XXX-8511"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "account": {
                                  "description": "บัญชีธนาคาร",
                                  "type": "object",
                                  "required": [
                                    "type",
                                    "value"
                                  ],
                                  "properties": {
                                    "type": {
                                      "description": "`BANKAC` = เลขบัญชีธนาคาร",
                                      "nullable": true,
                                      "const": "BANKAC",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "value": {
                                      "description": "เลขบัญชี (ปิดบางส่วน)",
                                      "examples": [
                                        "xxx-x-x1234-x"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "bank": {
                                  "type": "object",
                                  "required": [
                                    "code",
                                    "name"
                                  ],
                                  "properties": {
                                    "code": {
                                      "description": "รหัสธนาคาร 3 หลัก",
                                      "examples": [
                                        "004"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "name": {
                                      "description": "ชื่อธนาคาร",
                                      "examples": [
                                        "ธนาคารกสิกรไทย"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                }
                              }
                            },
                            "receiver": {
                              "type": "object",
                              "required": [
                                "displayName",
                                "name",
                                "proxy",
                                "account",
                                "bank"
                              ],
                              "properties": {
                                "displayName": {
                                  "description": "ชื่อผู้รับตามที่แสดงบนสลิป",
                                  "examples": [
                                    "MR. SOMCHAI R"
                                  ],
                                  "type": "string"
                                },
                                "name": {
                                  "description": "ชื่อภาษาอังกฤษ (ยังไม่รองรับ เป็น null เสมอ)",
                                  "type": "null"
                                },
                                "proxy": {
                                  "description": "ตัวแทนบัญชี (PromptPay proxy)",
                                  "type": "object",
                                  "required": [
                                    "type",
                                    "value"
                                  ],
                                  "properties": {
                                    "type": {
                                      "description": "ประเภทพร้อมเพย์/ตัวแทนบัญชี: `NATID` เลขบัตรประชาชน, `MSISDN` เบอร์โทร, `EWALLETID` e-Wallet ID, `BILLERID` Biller ID",
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ],
                                      "enum": [
                                        "NATID",
                                        "MSISDN",
                                        "EWALLETID",
                                        "BILLERID"
                                      ]
                                    },
                                    "value": {
                                      "description": "ข้อมูลตัวแทนบัญชี (ปิดบางส่วน)",
                                      "examples": [
                                        "XXX-XXX-8511"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "account": {
                                  "description": "บัญชีธนาคาร",
                                  "type": "object",
                                  "required": [
                                    "type",
                                    "value"
                                  ],
                                  "properties": {
                                    "type": {
                                      "description": "`BANKAC` = เลขบัญชีธนาคาร",
                                      "nullable": true,
                                      "const": "BANKAC",
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "value": {
                                      "description": "เลขบัญชี (ปิดบางส่วน)",
                                      "examples": [
                                        "xxx-x-x1234-x"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                },
                                "bank": {
                                  "type": "object",
                                  "required": [
                                    "code",
                                    "name"
                                  ],
                                  "properties": {
                                    "code": {
                                      "description": "รหัสธนาคาร 3 หลัก",
                                      "examples": [
                                        "004"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    },
                                    "name": {
                                      "description": "ชื่อธนาคาร",
                                      "examples": [
                                        "ธนาคารกสิกรไทย"
                                      ],
                                      "nullable": true,
                                      "type": [
                                        "string",
                                        "null"
                                      ]
                                    }
                                  }
                                }
                              }
                            },
                            "amount": {
                              "description": "จำนวนเงิน (บาท)",
                              "examples": [
                                100
                              ],
                              "type": "number"
                            },
                            "transFeeAmount": {
                              "description": "ค่าธรรมเนียม (เป็น 0 เสมอ)",
                              "examples": [
                                0
                              ],
                              "type": "number"
                            },
                            "paidLocalAmount": {
                              "description": "จำนวนเงินสกุลท้องถิ่น",
                              "examples": [
                                100
                              ],
                              "type": "number"
                            },
                            "paidLocalCurrency": {
                              "description": "รหัสสกุลเงิน ISO 4217 (764 = THB)",
                              "examples": [
                                "764"
                              ],
                              "type": "string"
                            },
                            "countryCode": {
                              "description": "รหัสประเทศ ISO 3166-1 alpha-2",
                              "examples": [
                                "TH"
                              ],
                              "type": "string"
                            },
                            "toMerchantId": {
                              "description": "รหัสร้านค้า (ว่างเสมอ)",
                              "examples": [
                                ""
                              ],
                              "type": "string"
                            }
                          }
                        },
                        {
                          "description": "ข้อมูลสลิป TrueMoney Wallet",
                          "type": "object",
                          "required": [
                            "payload",
                            "transaction_id",
                            "paid_at",
                            "amount",
                            "account_from_mobile",
                            "account_from_name",
                            "account_to_mobile",
                            "account_to_name"
                          ],
                          "properties": {
                            "payload": {
                              "description": "ข้อมูล QR Code ของสลิป",
                              "type": "string"
                            },
                            "transaction_id": {
                              "description": "หมายเลขรายการ TrueMoney",
                              "examples": [
                                "50099999999999"
                              ],
                              "type": "string"
                            },
                            "paid_at": {
                              "format": "date-time",
                              "description": "วันเวลาโอน ISO 8601 (UTC+7)",
                              "examples": [
                                "2025-02-07T14:00:30+07:00"
                              ],
                              "type": "string"
                            },
                            "amount": {
                              "description": "จำนวนเงิน (บาท)",
                              "examples": [
                                1000
                              ],
                              "type": "number"
                            },
                            "account_from_mobile": {
                              "description": "เบอร์ผู้โอน (ปิดบางส่วน)",
                              "examples": [
                                "XXXXXX8888"
                              ],
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "account_from_name": {
                              "description": "ชื่อผู้โอน",
                              "examples": [
                                "นายสหกิจ สม***"
                              ],
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            },
                            "account_to_mobile": {
                              "description": "เบอร์ผู้รับ (ปิดบางส่วน)",
                              "examples": [
                                "XXXXXX9999"
                              ],
                              "type": "string"
                            },
                            "account_to_name": {
                              "description": "ชื่อผู้รับ",
                              "examples": [
                                "นายกรมยัก นาระ"
                              ],
                              "nullable": true,
                              "type": [
                                "string",
                                "null"
                              ]
                            }
                          }
                        },
                        {
                          "type": "null"
                        }
                      ]
                    },
                    "credit": {
                      "description": "เครดิตของบัญชี (เป็น 0 ทั้งหมดสำหรับบัญชี Partner)",
                      "type": "object",
                      "required": [
                        "before",
                        "usage",
                        "after"
                      ],
                      "properties": {
                        "before": {
                          "description": "เครดิตก่อนหัก",
                          "examples": [
                            1000
                          ],
                          "type": "number"
                        },
                        "usage": {
                          "description": "เครดิตที่ใช้ (0 เมื่อสลิปเคยตรวจแล้ว)",
                          "examples": [
                            2.5
                          ],
                          "type": "number"
                        },
                        "after": {
                          "description": "เครดิตคงเหลือ",
                          "examples": [
                            997.5
                          ],
                          "type": "number"
                        }
                      }
                    },
                    "is_exist": {
                      "description": "สลิปนี้เคยตรวจแล้วหรือไม่ (ตรวจซ้ำไม่หักเครดิต)",
                      "type": "boolean"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_INVALID"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "UNAUTHORIZED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "IP_NOT_ALLOWED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "ไม่พบสลิป (`SLIP_NOT_EXIST`, `SLIP_INVALID`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่พบสลิป (`SLIP_NOT_EXIST`, `SLIP_INVALID`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_NOT_EXIST"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "413": {
            "description": "ไฟล์หรือ body ใหญ่เกินไป (`FILE_TOO_LARGE`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไฟล์หรือ body ใหญ่เกินไป (`FILE_TOO_LARGE`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "FILE_TOO_LARGE"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SERVER_ERROR"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "verifySlipByBase64",
        "summary": "ตรวจสลิปด้วยรูป Base64",
        "description": "สลิป (ระบบแยกประเภทธนาคาร / TrueMoney ให้เอง): ส่งรูปสลิปเป็น Data URL (`data:image/jpeg;base64,...`) ใน JSON\n\nดูประเภทสลิปที่ตรวจพบจาก `kind` เครดิตที่ใช้ตามประเภทสลิป\n\n```sh\ncurl 'https://api.slip2sure.com/api/v0/slip/v1/verifyByBase64' \\\n  --header 'x-api-key: YOUR_API_KEY' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"payload\":\"data:image/jpeg;base64,YOUR_BASE64\"}'\n```",
        "tags": [
          "Auto-detect slip"
        ],
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/transaction/getAllTransactions": {
      "get": {
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 0,
              "default": 0,
              "description": "หน้าที่ต้องการ (เริ่มที่ 0)"
            }
          },
          {
            "name": "size",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 20,
              "description": "จำนวนรายการต่อหน้า"
            }
          },
          {
            "name": "from",
            "in": "query",
            "required": false,
            "schema": {
              "format": "date-time",
              "description": "ตรวจสลิปตั้งแต่วันที่ (ISO 8601)",
              "type": "string"
            }
          },
          {
            "name": "to",
            "in": "query",
            "required": false,
            "schema": {
              "format": "date-time",
              "description": "ตรวจสลิปถึงวันที่ (ISO 8601)",
              "type": "string"
            }
          },
          {
            "name": "paid_at",
            "in": "query",
            "required": false,
            "schema": {
              "format": "date-time",
              "description": "วันที่โอนเงิน (ISO 8601)",
              "type": "string"
            }
          },
          {
            "name": "slip_type",
            "in": "query",
            "required": false,
            "schema": {
              "description": "ประเภทสลิป",
              "type": "string",
              "enum": [
                "BANK_SLIP_VERIFY",
                "TRUEMONEY_P2P"
              ]
            }
          },
          {
            "name": "status",
            "in": "query",
            "required": false,
            "schema": {
              "description": "ผลการตรวจ",
              "type": "string",
              "enum": [
                "COMPLETED",
                "FAIL"
              ]
            }
          }
        ],
        "responses": {
          "200": {
            "description": "รายการตรวจสลิปของ Application",
            "content": {
              "application/json": {
                "schema": {
                  "description": "รายการตรวจสลิปของ Application",
                  "type": "object",
                  "required": [
                    "result",
                    "items",
                    "pagination"
                  ],
                  "properties": {
                    "result": {
                      "const": "SUCCESS",
                      "type": "string"
                    },
                    "items": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "required": [
                          "id",
                          "created_at",
                          "paid_at",
                          "transfer_id",
                          "type",
                          "status",
                          "amount",
                          "error_code",
                          "error_message",
                          "fee",
                          "ref1",
                          "ref2",
                          "ref3",
                          "sender",
                          "receiver"
                        ],
                        "properties": {
                          "id": {
                            "format": "uuid",
                            "description": "ID ของรายการตรวจสลิป",
                            "type": "string"
                          },
                          "created_at": {
                            "description": "เวลาที่ตรวจสลิป",
                            "type": "string"
                          },
                          "paid_at": {
                            "description": "เวลาโอนเงิน",
                            "nullable": true,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "transfer_id": {
                            "description": "หมายเลขอ้างอิงรายการจากสลิป",
                            "nullable": true,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "type": {
                            "type": "string",
                            "enum": [
                              "BANK_SLIP_VERIFY",
                              "TRUEMONEY_P2P"
                            ]
                          },
                          "status": {
                            "type": "string",
                            "enum": [
                              "COMPLETED",
                              "FAIL"
                            ]
                          },
                          "amount": {
                            "description": "จำนวนเงิน",
                            "type": "number"
                          },
                          "error_code": {
                            "description": "รหัสข้อผิดพลาด (เมื่อ `status` = `FAIL`)",
                            "nullable": true,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "error_message": {
                            "description": "ข้อความข้อผิดพลาด",
                            "nullable": true,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "fee": {
                            "description": "เครดิตที่ใช้",
                            "type": "number"
                          },
                          "ref1": {
                            "description": "หมายเลขอ้างอิง 1",
                            "nullable": true,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "ref2": {
                            "description": "หมายเลขอ้างอิง 2",
                            "nullable": true,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "ref3": {
                            "description": "หมายเลขอ้างอิง 3",
                            "nullable": true,
                            "type": [
                              "string",
                              "null"
                            ]
                          },
                          "sender": {
                            "nullable": true,
                            "type": [
                              "object",
                              "null"
                            ],
                            "required": [
                              "account",
                              "name",
                              "bank"
                            ],
                            "properties": {
                              "account": {
                                "description": "บัญชี: object สำหรับสลิปธนาคาร, เบอร์โทร (string) สำหรับ TrueMoney",
                                "anyOf": [
                                  {
                                    "description": "บัญชีธนาคาร",
                                    "type": "object",
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "properties": {
                                      "type": {
                                        "description": "`BANKAC` = เลขบัญชีธนาคาร",
                                        "nullable": true,
                                        "const": "BANKAC",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {
                                        "description": "เลขบัญชี (ปิดบางส่วน)",
                                        "examples": [
                                          "xxx-x-x1234-x"
                                        ],
                                        "nullable": true,
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    }
                                  },
                                  {
                                    "nullable": true,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                ]
                              },
                              "name": {
                                "description": "ชื่อ",
                                "nullable": true,
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "bank": {
                                "type": "object",
                                "required": [
                                  "name",
                                  "code",
                                  "proxy"
                                ],
                                "properties": {
                                  "name": {
                                    "description": "ชื่อธนาคาร",
                                    "nullable": true,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "code": {
                                    "description": "รหัสธนาคาร",
                                    "nullable": true,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "proxy": {
                                    "description": "ประเภทตัวแทนบัญชี",
                                    "nullable": true,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                }
                              }
                            }
                          },
                          "receiver": {
                            "nullable": true,
                            "type": [
                              "object",
                              "null"
                            ],
                            "required": [
                              "account",
                              "name",
                              "bank"
                            ],
                            "properties": {
                              "account": {
                                "description": "บัญชี: object สำหรับสลิปธนาคาร, เบอร์โทร (string) สำหรับ TrueMoney",
                                "anyOf": [
                                  {
                                    "description": "บัญชีธนาคาร",
                                    "type": "object",
                                    "required": [
                                      "type",
                                      "value"
                                    ],
                                    "properties": {
                                      "type": {
                                        "description": "`BANKAC` = เลขบัญชีธนาคาร",
                                        "nullable": true,
                                        "const": "BANKAC",
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      },
                                      "value": {
                                        "description": "เลขบัญชี (ปิดบางส่วน)",
                                        "examples": [
                                          "xxx-x-x1234-x"
                                        ],
                                        "nullable": true,
                                        "type": [
                                          "string",
                                          "null"
                                        ]
                                      }
                                    }
                                  },
                                  {
                                    "nullable": true,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                ]
                              },
                              "name": {
                                "description": "ชื่อ",
                                "nullable": true,
                                "type": [
                                  "string",
                                  "null"
                                ]
                              },
                              "bank": {
                                "type": "object",
                                "required": [
                                  "name",
                                  "code",
                                  "proxy"
                                ],
                                "properties": {
                                  "name": {
                                    "description": "ชื่อธนาคาร",
                                    "nullable": true,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "code": {
                                    "description": "รหัสธนาคาร",
                                    "nullable": true,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  },
                                  "proxy": {
                                    "description": "ประเภทตัวแทนบัญชี",
                                    "nullable": true,
                                    "type": [
                                      "string",
                                      "null"
                                    ]
                                  }
                                }
                              }
                            }
                          }
                        }
                      }
                    },
                    "pagination": {
                      "type": "object",
                      "required": [
                        "current_page",
                        "current_size",
                        "total_page",
                        "total_size",
                        "is_end_page",
                        "is_start_page",
                        "is_empty_page"
                      ],
                      "properties": {
                        "current_page": {
                          "type": "integer"
                        },
                        "current_size": {
                          "type": "integer"
                        },
                        "total_page": {
                          "type": "integer"
                        },
                        "total_size": {
                          "type": "integer"
                        },
                        "is_end_page": {
                          "type": "boolean"
                        },
                        "is_start_page": {
                          "type": "boolean"
                        },
                        "is_empty_page": {
                          "type": "boolean"
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_INVALID"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "UNAUTHORIZED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "IP ของผู้เรียกไม่อยู่ใน Whitelist IP ของแอป (`IP_NOT_ALLOWED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "IP_NOT_ALLOWED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SERVER_ERROR"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "getAllTransactions",
        "summary": "ดูรายการตรวจสลิปทั้งหมดของ Application",
        "description": "รายการตรวจสลิปของแอปที่เป็นเจ้าของ API Key แบ่งหน้า (`page` เริ่มที่ 0)\n\n```sh\ncurl 'https://api.slip2sure.com/api/v0/transaction/getAllTransactions?page=0&size=50' \\\n  --header 'x-api-key: YOUR_API_KEY'\n```",
        "tags": [
          "Transaction"
        ],
        "security": [
          {
            "apiKey": []
          }
        ]
      }
    },
    "/user/credit": {
      "get": {
        "responses": {
          "200": {
            "description": "เครดิตคงเหลือ",
            "content": {
              "application/json": {
                "schema": {
                  "description": "เครดิตคงเหลือ",
                  "type": "object",
                  "required": [
                    "credit"
                  ],
                  "properties": {
                    "credit": {
                      "description": "เครดิตคงเหลือ ทศนิยม 2 ตำแหน่ง (`-1.00` สำหรับบัญชี Partner)",
                      "examples": [
                        "36.85"
                      ],
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "UNAUTHORIZED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SERVER_ERROR"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "getUserCredit",
        "summary": "ดูเครดิตคงเหลือ",
        "description": "เครดิตคงเหลือของบัญชีเจ้าของ User API Token\n\n```sh\ncurl 'https://api.slip2sure.com/api/v0/user/credit' \\\n  --header 'Authorization: Bearer YOUR_USER_API_TOKEN'\n```",
        "tags": [
          "Account"
        ],
        "security": [
          {
            "userToken": []
          }
        ]
      }
    },
    "/management/application": {
      "get": {
        "responses": {
          "200": {
            "description": "Application ทั้งหมดของบัญชี",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Application ทั้งหมดของบัญชี",
                  "type": "array",
                  "items": {
                    "description": "Application",
                    "type": "object",
                    "required": [
                      "id",
                      "name",
                      "description",
                      "usage",
                      "whitelist_ips",
                      "created_at",
                      "updated_at"
                    ],
                    "properties": {
                      "id": {
                        "format": "uuid",
                        "description": "ID ของ Application",
                        "type": "string"
                      },
                      "name": {
                        "description": "ชื่อ Application",
                        "type": "string"
                      },
                      "description": {
                        "description": "รายละเอียด Application",
                        "type": "string"
                      },
                      "usage": {
                        "description": "จำนวนครั้งที่ใช้งาน",
                        "type": "number"
                      },
                      "whitelist_ips": {
                        "description": "IP ที่อนุญาต (`*` = ทุก IP)",
                        "type": "array",
                        "items": {
                          "type": "string"
                        }
                      },
                      "created_at": {
                        "format": "date-time",
                        "type": "string"
                      },
                      "updated_at": {
                        "format": "date-time",
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "UNAUTHORIZED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SERVER_ERROR"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "listApplications",
        "summary": "ดู Application ทั้งหมด",
        "tags": [
          "Application management"
        ],
        "security": [
          {
            "userToken": []
          }
        ]
      },
      "post": {
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "description",
                  "whitelist_ips"
                ],
                "properties": {
                  "name": {
                    "description": "ชื่อ Application",
                    "examples": [
                      "My store"
                    ],
                    "type": "string"
                  },
                  "description": {
                    "description": "รายละเอียด Application (ส่ง `\"\"` ได้)",
                    "examples": [
                      ""
                    ],
                    "type": "string"
                  },
                  "whitelist_ips": {
                    "description": "IP ที่อนุญาตให้เรียก API ตรวจสลิปด้วย API Key ของแอปนี้ ใส่ `*` เพื่ออนุญาตทุก IP",
                    "examples": [
                      [
                        "203.0.113.10"
                      ]
                    ],
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "สร้าง Application แล้ว",
            "content": {
              "application/json": {
                "schema": {
                  "description": "สร้าง Application แล้ว",
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "description",
                    "usage",
                    "whitelist_ips",
                    "created_at",
                    "updated_at",
                    "api_key"
                  ],
                  "properties": {
                    "id": {
                      "format": "uuid",
                      "description": "ID ของ Application",
                      "type": "string"
                    },
                    "name": {
                      "description": "ชื่อ Application",
                      "type": "string"
                    },
                    "description": {
                      "description": "รายละเอียด Application",
                      "type": "string"
                    },
                    "usage": {
                      "description": "จำนวนครั้งที่ใช้งาน",
                      "type": "number"
                    },
                    "whitelist_ips": {
                      "description": "IP ที่อนุญาต (`*` = ทุก IP)",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "created_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "updated_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "api_key": {
                      "description": "API Key ของแอป (แสดงเต็มครั้งเดียว)",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_INVALID"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "UNAUTHORIZED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SERVER_ERROR"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "createApplication",
        "summary": "สร้าง Application",
        "description": "สร้างแอปใหม่ คำตอบมี `api_key` ของแอป ซึ่งแสดงเต็มครั้งเดียว",
        "tags": [
          "Application management"
        ],
        "security": [
          {
            "userToken": []
          }
        ]
      }
    },
    "/management/application/{applicationId}": {
      "get": {
        "parameters": [
          {
            "name": "applicationId",
            "in": "path",
            "required": true,
            "schema": {
              "format": "uuid",
              "description": "ID ของ Application",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Application",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Application",
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "description",
                    "usage",
                    "whitelist_ips",
                    "created_at",
                    "updated_at"
                  ],
                  "properties": {
                    "id": {
                      "format": "uuid",
                      "description": "ID ของ Application",
                      "type": "string"
                    },
                    "name": {
                      "description": "ชื่อ Application",
                      "type": "string"
                    },
                    "description": {
                      "description": "รายละเอียด Application",
                      "type": "string"
                    },
                    "usage": {
                      "description": "จำนวนครั้งที่ใช้งาน",
                      "type": "number"
                    },
                    "whitelist_ips": {
                      "description": "IP ที่อนุญาต (`*` = ทุก IP)",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "created_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "updated_at": {
                      "format": "date-time",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "UNAUTHORIZED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "ไม่พบ Application (`APPLICATION_NOT_EXIST`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่พบ Application (`APPLICATION_NOT_EXIST`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "APPLICATION_NOT_EXIST"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SERVER_ERROR"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "getApplication",
        "summary": "ดู Application ตาม ID",
        "tags": [
          "Application management"
        ],
        "security": [
          {
            "userToken": []
          }
        ]
      },
      "put": {
        "parameters": [
          {
            "name": "applicationId",
            "in": "path",
            "required": true,
            "schema": {
              "format": "uuid",
              "description": "ID ของ Application",
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "required": [
                  "name",
                  "description",
                  "whitelist_ips"
                ],
                "properties": {
                  "name": {
                    "description": "ชื่อ Application",
                    "examples": [
                      "My store"
                    ],
                    "type": "string"
                  },
                  "description": {
                    "description": "รายละเอียด Application (ส่ง `\"\"` ได้)",
                    "examples": [
                      ""
                    ],
                    "type": "string"
                  },
                  "whitelist_ips": {
                    "description": "IP ที่อนุญาตให้เรียก API ตรวจสลิปด้วย API Key ของแอปนี้ ใส่ `*` เพื่ออนุญาตทุก IP",
                    "examples": [
                      [
                        "203.0.113.10"
                      ]
                    ],
                    "type": "array",
                    "items": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Application",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Application",
                  "type": "object",
                  "required": [
                    "id",
                    "name",
                    "description",
                    "usage",
                    "whitelist_ips",
                    "created_at",
                    "updated_at"
                  ],
                  "properties": {
                    "id": {
                      "format": "uuid",
                      "description": "ID ของ Application",
                      "type": "string"
                    },
                    "name": {
                      "description": "ชื่อ Application",
                      "type": "string"
                    },
                    "description": {
                      "description": "รายละเอียด Application",
                      "type": "string"
                    },
                    "usage": {
                      "description": "จำนวนครั้งที่ใช้งาน",
                      "type": "number"
                    },
                    "whitelist_ips": {
                      "description": "IP ที่อนุญาต (`*` = ทุก IP)",
                      "type": "array",
                      "items": {
                        "type": "string"
                      }
                    },
                    "created_at": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "updated_at": {
                      "format": "date-time",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อมูลไม่ถูกต้อง เช่น `PARAMETER_ERROR`, `FILE_REQUIRED`, `FILE_NOT_SUPPORTED`, `SLIP_INVALID`, `SLIP_QRCODE_NOT_EXIST`, `CREDIT_INSUFFIENCT`, `APPLICATION_LOCKED`",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SLIP_INVALID"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "UNAUTHORIZED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "ไม่พบ Application (`APPLICATION_NOT_EXIST`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่พบ Application (`APPLICATION_NOT_EXIST`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "APPLICATION_NOT_EXIST"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SERVER_ERROR"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "updateApplication",
        "summary": "แก้ไข Application",
        "description": "ส่งทุก field (`name`, `description`, `whitelist_ips`) ทุกครั้ง",
        "tags": [
          "Application management"
        ],
        "security": [
          {
            "userToken": []
          }
        ]
      },
      "delete": {
        "parameters": [
          {
            "name": "applicationId",
            "in": "path",
            "required": true,
            "schema": {
              "format": "uuid",
              "description": "ID ของ Application",
              "type": "string"
            }
          }
        ],
        "responses": {
          "204": {
            "description": "สำเร็จ ไม่มี response body"
          },
          "401": {
            "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "UNAUTHORIZED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "ไม่พบ Application (`APPLICATION_NOT_EXIST`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่พบ Application (`APPLICATION_NOT_EXIST`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "APPLICATION_NOT_EXIST"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SERVER_ERROR"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "deleteApplication",
        "summary": "ลบ Application",
        "tags": [
          "Application management"
        ],
        "security": [
          {
            "userToken": []
          }
        ]
      }
    },
    "/management/application/{applicationId}/api_key": {
      "get": {
        "parameters": [
          {
            "name": "applicationId",
            "in": "path",
            "required": true,
            "schema": {
              "format": "uuid",
              "description": "ID ของ Application",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Application API Key",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Application API Key",
                  "type": "object",
                  "required": [
                    "api_key"
                  ],
                  "properties": {
                    "api_key": {
                      "description": "Application API Key (ใช้ใน header `x-api-key`)",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "UNAUTHORIZED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "ไม่พบ Application (`APPLICATION_NOT_EXIST`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่พบ Application (`APPLICATION_NOT_EXIST`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "APPLICATION_NOT_EXIST"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SERVER_ERROR"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "getApplicationApiKey",
        "summary": "ดู API Key ของ Application",
        "tags": [
          "Application management"
        ],
        "security": [
          {
            "userToken": []
          }
        ]
      }
    },
    "/management/application/{applicationId}/api_key/rotate": {
      "post": {
        "parameters": [
          {
            "name": "applicationId",
            "in": "path",
            "required": true,
            "schema": {
              "format": "uuid",
              "description": "ID ของ Application",
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Application API Key",
            "content": {
              "application/json": {
                "schema": {
                  "description": "Application API Key",
                  "type": "object",
                  "required": [
                    "api_key"
                  ],
                  "properties": {
                    "api_key": {
                      "description": "Application API Key (ใช้ใน header `x-api-key`)",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "401": {
            "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่ได้ส่งคีย์ หรือคีย์ไม่ถูกต้อง (`INVALID_HEADER`, `UNAUTHORIZED`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "UNAUTHORIZED"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "404": {
            "description": "ไม่พบ Application (`APPLICATION_NOT_EXIST`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ไม่พบ Application (`APPLICATION_NOT_EXIST`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "APPLICATION_NOT_EXIST"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          },
          "500": {
            "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
            "content": {
              "application/json": {
                "schema": {
                  "description": "ข้อผิดพลาดของระบบ หรือระบบตรวจสลิปปลายทาง (`SERVER_ERROR`, `SERVICE_ERROR`, `SLIP_BBL_PENDING`)",
                  "type": "object",
                  "required": [
                    "result",
                    "message"
                  ],
                  "properties": {
                    "result": {
                      "description": "รหัสข้อผิดพลาด ดูหน้า Error codes",
                      "examples": [
                        "SERVER_ERROR"
                      ],
                      "type": "string"
                    },
                    "message": {
                      "description": "ข้อความอธิบาย",
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        },
        "operationId": "rotateApplicationApiKey",
        "summary": "ออก API Key ใหม่ (Rotate)",
        "description": "API Key ใหม่แสดงเต็มครั้งเดียว และ key เดิมใช้ไม่ได้ทันที",
        "tags": [
          "Application management"
        ],
        "security": [
          {
            "userToken": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {},
    "securitySchemes": {
      "apiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key",
        "description": "Application API Key จากหน้า \"แอพของฉัน\" (ไอคอนกุญแจ)"
      },
      "userToken": {
        "type": "http",
        "scheme": "bearer",
        "description": "User API Token จาก Profile ในหน้า Dashboard"
      }
    }
  }
}
