EBP API Docs v0.5.12
EN

Purchase API - Get Payment Details #

1. API Overview #

Purpose #

This API retrieves detailed information about a specific payment request.
It returns payment status, amount, buyer details, and transaction history based on orderNo.
The response includes approval status, settlement completion, cancellation details, item-level payment amounts, and processing history.
This API is useful for checking payment progress or providing detailed information for customer support.

Note

  • orderNo is the order number issued by EBP.

Details #

ItemValue
API NameGet Payment Details
API Path/api/v2/payment/detail
API IDEBP_API_237
HTTP MethodPOST
RegionGlobal

2. Request Specification #

2.1 Request Header #

For detailed header information, please refer to the Common Headers documentation.

2.2 Request Data Schema #

depthFieldDetails & Description
-1orderNo

string

🔴 Required

EBP order number

2.3 Request Examples #

JSON Example #

{
  "orderNo": "ORD-202511274242111"
}

3. Response Specification #

3.1 Response Data Schema #

depthFieldDetails & Description
-1resultCode

string

🔴 Required

Result code

e.g., "0" for success, "EBP-A-0001" for error
-1message

string

🔴 Required

Result message

-1requestId

string

🔴 Required

Unique request identifier for tracking

-1timestamp

string

🔴 Required

Response timestamp in ISO 8601 format

e.g., 2025-12-19T14:24:00+09:00
-1data

object

🔴 Required

Response data

0orderNo

string

🔴 Required

Unique order number identifying the transaction

0storeRequestNo

string

🔴 Required

Store-side request number for merchant system correlation

0pgTransactionId

string

Optional

Payment gateway transaction identifier for original payment

0pgCancelTransactionId

string

Optional

Payment gateway transaction identifier for cancellation/refund

0buyerName

string

Optional

Buyer/customer name

0paymentStatus

string

🔴 Required

Current payment status

e.g., REQUESTED, APPROVED, CANCELED, PARTIAL_CANCELED
0countryCode

string

Optional

Country code, ISO 3166-1 alpha-2

e.g., KR, US
0countryName

string

Optional

Country name (English or localized)

0paymentRequestedAt

string

🔴 Required

Timestamp when payment was requested

0approvedAt

string

Optional

Timestamp when payment was approved

0settlementCompletedAt

string

Optional

Timestamp when payment was approved

0canceledAt

string

Optional

Timestamp when payment was canceled

0cancellationDetail

string

Optional

Cancellation detail or notes

0paymentMethodName

string

🔴 Required

Human-readable payment method name

e.g., Credit Card, Tokenized Card
0storeName

string

🔴 Required

Name of the store or merchant

0purchaseChannel

string

Optional

Name of the purchase channel

e.g., Online, POS
0currencyCode

string

🔴 Required

Currency code ISO 4217

e.g., USD, KRW
0productAmount

string

🔴 Required

Total amount for products before discounts

0discountAmount

string

Optional

Discount amount applied to the order

0deliveryFee

string

Optional

Delivery/shipping fee

0totalPaymentAmount

string

🔴 Required

Total payment amount after discounts and fees

0productTaxAmount

string

Optional

Tax amount applied to products

0deliveryFeeTaxAmount

string

Optional

Tax amount applied to delivery fee

0cancelAmount

string

Optional

-

0items

array

🔴 Required

List of items

1seq

number

🔴 Required

Sequence number

1itemType

string

🔴 Required

Product type

e.g., PHYSICAL, DIGITAL, SUBSCRIPTION, DELIVERY, SERVICE
1itemId

string

🔴 Required

Unique product identifier

1itemName

string

🔴 Required

Name of the product

1sellerNo

string

🔴 Required

Seller identifier

1unitPrice

number

🔴 Required

Original item amount

1subtotalAmount

number

🔴 Required

Total item amount (unitPrice × quantity

1discountAmount

number

Optional

Discount amount

1paymentAmount

number

🔴 Required

Final payment amount

1quantity

number

🔴 Required

Quantity sold

1confirmedAt

string

Optional

Purchase confirmation date

0cancelItems

array

🔴 Required

List of canceled items

1cancelNo

string

🔴 Required

Unique identifier for the cancellation

1pgTransactionId

string

Optional

PG transaction ID for the cancellation

1canceledAt

string

🔴 Required

Cancellation date and time

1seq

string

🔴 Required

Product sequence number

1itemType

string

🔴 Required

Item type

e.g., PHYSICAL, DIGITAL, DELIVERY, SERVICE
1itemId

string

🔴 Required

Unique product identifier

1itemName

string

🔴 Required

Name of the product

1quantity

number

🔴 Required

Number of items canceled

1paymentAmount

number

🔴 Required

Total payment amount

1cancelAmount

number

🔴 Required

Total cancellation amount

0histories

array

Optional

Payment processing audit trail

1seq

number

🔴 Required

Log sequence

1processedAt

string

🔴 Required

Processing timestamp

1eventName

string

🔴 Required

Event name

e.g., Payment Requested
1result

string

🔴 Required

Processing result

e.g., SUCCESS, FAILURE
1reason

string

Optional

Detailed reason for result

1processedBy

string

Optional

ID of system or user who processed it

3.2 Response Samples #

Success Response #

{
  "resultCode": "0",
  "message": "SUCCESS",
  "requestId": "1767146488599",
  "timestamp": "2025-12-31T02:01:28.600976Z",
  "data": {
    "orderNo": "ORD-202511274242111",
    "storeRequestNo": "P25112711771579",
    "pgTransactionId": "K202511277931269531",
    "pgCancelTransactionId": null,
    "buyerName": "Junho Sung",
    "paymentStatus": "APPROVED",
    "countryCode": "KR",
    "countryName": "Republic of Korea",
    "paymentRequestedAt": "2025-11-27T12:19:34.0Z",
    "approvedAt": "2025-11-27T12:19:50.0Z",
    "settlementCompletedAt": "2025-11-27T12:19:50.0Z",
    "canceledAt": null,
    "cancellationDetail": null,
    "paymentMethodName": "Credit Card(CNSPay)",
    "storeName": "LGE.COM",
    "purchaseChannel": "Phone Client",
    "currencyCode": "KRW",
    "productAmount": 1310000.0,
    "discountAmount": 0.0,
    "deliveryFee": 0.0,
    "totalPaymentAmount": 1310000.0,
    "productTaxAmount": 0.0,
    "deliveryFeeTaxAmount": 0.0,
    "cancelAmount": 0.0,
    "items": [
      {
        "seq": 1,
        "itemType": "PHYSICAL",
        "itemId": "75UT9300BW.AKRG",
        "itemName": "LG Ultra HD TV (Wall-mounted)",
        "sellerId": "CPKR810001",
        "productAmount": 1310000.0,
        "discountAmount": 0.0,
        "paymentAmount": 1310000.0,
        "taxAmount": 0.0,
        "quantity": 1,
        "confirmedAt": "2025-11-27T12:19:50.0Z",
        "confirmedAtLocal": "2025-11-27T21:19:50.0Z"
      }
    ],
    "cancelItems": [],
    "histories": [
      {
        "seq": 1,
        "processedAt": "2025-11-27T12:19:34.0Z",
        "processedAtLocal": "2025-11-27T21:19:34.0",
        "eventName": "Payment Requested",
        "result": "SUCCESS",
        "reason": "Client payment request initiated",
        "processedBy": "CORE"
      },
      {
        "seq": 2,
        "processedAt": "2025-11-27T12:19:50.0Z",
        "processedAtLocal": "2025-11-27T21:19:50.0",
        "eventName": "PG Approval Success",
        "result": "SUCCESS",
        "reason": "Payment gateway approved the transaction",
        "processedBy": "PG-GATEWAY"
      }
    ]
  }
}
Last updated: 2026-04-24 07:45:12 © 2026 LG Electronics Inc. All rights reserved.