Project

General

Profile

Actions

기능(Feature) #2798

closed

기능(Feature) #2680: ** B2C Online Coupon

기능(Feature) #2751: PC

기능(Feature) #2796: 7. PC_Payment Page

API call min discount amount coupon

Added by harry harry 2 months ago. Updated about 1 month ago.

Status:
완료(Done)
Priority:
보통(Normal)
Assignee:
Start date:
12/29/2025
Due date:
01/12/2026
% Done:

100%

Estimated time:
14.00 h
Part:
Build env.:
Dev


Files

image.png (234 KB) image.png John Lee, 12/29/2025 08:14 AM
picture323-1.png (79.6 KB) picture323-1.png John Lee, 01/09/2026 07:50 AM
picture901-1.png (107 KB) picture901-1.png John Lee, 01/09/2026 08:06 AM

Related issues

Copied to OMH - 기능(Feature) #2799: API check apply coupon(validate time, time use, coupon useYN)완료(Done)Mon Nguyen01/19/202601/19/2026

Actions
Actions #1

Updated by harry harry 2 months ago

Actions #2

Updated by harry harry 2 months ago

  • Estimated time changed from 2.00 h to 14.00 h
Actions #3

Updated by harry harry 2 months ago

  • Assignee changed from harry harry to John Lee
Actions #4

Updated by John Lee 2 months ago

  • Status changed from 신규(New) to 진행(Doing)
Actions #5

Updated by John Lee 2 months ago

  • Start date set to 12/29/2025
Actions #6

Updated by John Lee 2 months ago

  • Description updated (diff)
  • Status changed from 진행(Doing) to 신규(New)
Actions #7

Updated by John Lee 2 months ago

  • Status changed from 신규(New) to 진행(Doing)
Actions #8

Updated by ziniy Kang 2 months ago

  • Description updated (diff)
Actions #9

Updated by ziniy Kang 2 months ago

  • Subject changed from API calc min discount amount coupon to API call min discount amount coupon
Actions #10

Updated by John Lee 2 months ago

Actions #11

Updated by John Lee 2 months ago

  • Status changed from 신규(New) to 진행(Doing)
Actions #12

Updated by ziniy Kang 2 months ago

  • Description updated (diff)
Actions #13

Updated by John Lee 2 months ago

QA#39 : If 'stackable',
Online + Offline => OK
Online + Online => OK
Offline + Offline => OK

Actions #14

Updated by John Lee 2 months ago

  • Status changed from 진행(Doing) to 신규(New)
Actions #15

Updated by John Lee 2 months ago

  • Status changed from 신규(New) to 진행(Doing)
Actions #16

Updated by John Lee 2 months ago

  • Status changed from 진행(Doing) to 신규(New)
Actions #17

Updated by John Lee 2 months ago

Actions #18

Updated by John Lee 2 months ago

Actions #19

Updated by John Lee about 2 months ago

  • Status changed from 신규(New) to 진행(Doing)
Actions #20

Updated by John Lee about 2 months ago

  • Due date set to 01/12/2026
  • Status changed from 진행(Doing) to 완료(Done)
  • % Done changed from 0 to 100
  • Build env. set to Dev
Actions #21

Updated by John Lee about 2 months ago

Request:

curl --location 'https://dev-newapi.ohmyhotel.com/booking/coupon/auto-select' \
--header 'accept: application/json, text/plain, */*' \
--header 'accept-language: en-GB,en;q=0.9,ja;q=0.8,en-US;q=0.7,vi;q=0.6,fr-FR;q=0.5,fr;q=0.4' \
--header 'content-type: application/json' \
--header 'origin: https://test-newwww.ohmyhotel.com' \
--header 'priority: u=1, i' \
--header 'referer: https://test-newwww.ohmyhotel.com/' \
--header 'sec-ch-ua: "Google Chrome";v="143", "Chromium";v="143", "Not A(Brand";v="24"' \
--header 'sec-ch-ua-mobile: ?0' \
--header 'sec-ch-ua-platform: "Windows"' \
--header 'sec-fetch-dest: empty' \
--header 'sec-fetch-mode: cors' \
--header 'sec-fetch-site: same-site' \
--header 'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/143.0.0.0 Safari/537.36' \
--header 'usertoken: eyJhbGciOiJIUzI1NiJ9.eyJzdWIiOiIxMTYxMzMiLCJyb2xlcyI6WyJkYXQubnQxQG9obXlob3RlbC5jb20iLCIxMTYxMzMiLCJBUUFBQUFJQUFDY1FBQUFBRUtMT0xuZ3Z6QVB6SXc0K25LRTg5bEova1BRMWZ0RDQ0byt0QVVOVHNVaXl1cVZEQXFvajluZUpiMUZVclN1akZRPT0iXSwiaWF0IjoxNzY4MjA3ODkzLCJleHAiOjE3OTk3NDM4OTN9.LEii0x0LNTPc0DhWJSmtM09vp2UuJOAbRWGuO4SjGRE' \
--data '{
    "stationTypeCode": "STN01",
    "currency": "KRW",
    "country": "KR",
    "language": "KO",
    "condition": {
        "productAmount": 400000
    }
}'

Response

{
    "result": {
        "totalDiscountAmount": 10000,
        "selectedCoupons": [
            {
                "stackable": false,
                "amount": 10000,
                "couponItemCode": "HANAOHMY2026",
                "name": "HANAOHMY2026",
                "ratePercentage": null,
                "currency": "KRW",
                "couponRateOrAmount": "A",
                "maxAmount": null
            }
        ]
    },
    "serviceCode": "/booking/coupon/auto-select",
    "succeedYn": true,
    "serviceName": "/booking/coupon/auto-select" 
}

Actions #22

Updated by John Lee about 1 month ago

  • Status changed from 완료(Done) to QA test
Actions #23

Updated by John Lee about 1 month ago

  • Assignee changed from John Lee to Tracy Truong
Actions #24

Updated by Tracy Truong about 1 month ago

  • Status changed from QA test to 완료(Done)
  • Assignee changed from Tracy Truong to John Lee

API - test by dev

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 50 MB)