EBP API Docs v0.5.12
EN

Purchase API - Get Tax Info #

1. API Overview #

Purpose #

This API calculates the estimated tax based on product and shipping information.
It retrieves tax details using the provided delivery and billing addresses, item amounts, discounts, and shipping charges.
The response includes the total tax amount and detailed tax breakdown per item.
The API is used to confirm tax information before payment to ensure accurate billing.

Note: The TAX calculation feature is dependent on the PG. Please contact the Billing Team (ebp-server@lge.com) to check if TAX calculation is supported for your PG.

Details #

ItemValue
API NameGet Tax Info
API Path/api/v2/payment/taxes
API IDEBP_API_227
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
0userNo

string

πŸ”΄ Required

Unique identifier for user

0isTaxIncluded

string

πŸ”΄ Required

Indicates whether tax is included in product price

0deliveryAddress

object

πŸ”΄ Required

Delivery address information

1recipientLocalName

string

πŸ”΄ Required

Recipient's local name

1recipientLocalFirstName

string

βšͺ Optional

Recipient's local first name

1countryCode

string

🟑 Conditional

Delivery country code (ISO standard)

1streetAddress

string

βšͺ Optional

Street name for delivery address

1addressLine1

string

βšͺ Optional

Primary delivery address line

1addressLine2

string

βšͺ Optional

Secondary delivery address line

1city

string

βšͺ Optional

City or province for delivery

1postalCode

string

βšͺ Optional

Postal code for delivery address

0billingAddress

object

-

Billing address information (required for tax invoice)

1billingEmail

string≀ 128

βšͺ Optional

Billing contact email address

1billingLastName

string≀ 100

🟑 Conditional

Billing contact last name (local language)

1billingFirstName

string≀ 100

🟑 Conditional

Billing contact first name (local language)

1billingCountry

string≀ 3

🟑 Conditional

ISO 3166-1 alpha-3 country code

1billingStreet

string≀ 100

🟑 Conditional

Street name for billing address

1billingAddressLine1

string≀ 100

🟑 Conditional

Primary billing address line

1billingAddressLine2

string≀ 100

βšͺ Optional

Secondary billing address line

1billingCity

string≀ 100

🟑 Conditional

City for billing address

1billingPostalCode

string≀ 100

🟑 Conditional

Postal code for billing address

1billingState

string≀ 100

🟑 Conditional

State or province for billing address

0items

array

πŸ”΄ Required

-

1seq

number

πŸ”΄ Required

Sequence

1itemId

string

πŸ”΄ Required

Product ID

1productCode

string

πŸ”΄ Required

Product Code

1amount

number

βšͺ Optional

Product amount

1discountAmount

number

βšͺ Optional

Discount Amount

1deliveryAmount

number

βšͺ Optional

Delivery Amount

1deliveryProductCode

number

βšͺ Optional

Delivery Product Code

2.3 Request Examples #

JSON Example #

{
  "userNo": "U123456789",
  "isTaxIncluded": "Y",
  "deliveryAddress": {
    "recipientLocalName": "홍길동",
    "recipientLocalFirstName": "길동",
    "countryCode": "KR",
    "streetAddress": "123 κ°•λ‚¨λŒ€λ‘œ",
    "addressLine1": "강남ꡬ 역삼동",
    "addressLine2": "μ‚Όμ„±νƒ€μ›Œ 101호",
    "city": "μ„œμšΈ",
    "postalCode": "06236"
  },
  "billingAddress": {
    "billingEmail": "billing@example.com",
    "billingLastName": "Kim",
    "billingFirstName": "Minsoo",
    "billingCountry": "KOR",
    "billingStreet": "456 ν…Œν—€λž€λ‘œ",
    "billingAddressLine1": "강남ꡬ 삼성동",
    "billingAddressLine2": "λΉŒλ”© 202호",
    "billingCity": "μ„œμšΈ",
    "billingPostalCode": "06164",
    "billingState": "μ„œμšΈνŠΉλ³„μ‹œ"
  },
  "items": [
    {
      "seq": 1,
      "productCode": "",
      "amount": "",
      "discountAmount": 0,
      "deliveryAmount": 0,
      "deliveryProductCode": "24643"
    }
  ]
}

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

0totalTaxAmount

number

πŸ”΄ Required

Total tax amount for the user

0taxItems

array

πŸ”΄ Required

List of tax item objects

1itemSeq

number

πŸ”΄ Required

Sequence number of the tax item

1itemId

string

πŸ”΄ Required

Unique product identifier

1taxAmount

number

πŸ”΄ Required

Tax amount for the corresponding product

1taxDetails

array

πŸ”΄ Required

List of tax details

2detailSeq

number

πŸ”΄ Required

Detail sequence number

2taxType

string

πŸ”΄ Required

Tax type

e.g., VAT, Service
2taxName

string

πŸ”΄ Required

Tax name

2taxAmount

number

πŸ”΄ Required

Tax amount for the corresponding detail

3.2 Response Samples #

Success Response #

{
  "resultCode": "0",
  "message": "SUCCESS",
  "requestId": "1767142829863",
  "timestamp": "2025-12-31T01:00:29.865421800Z",
  "data": {
    "totalTaxAmount": 0.41,
    "taxItems": [
      {
        "itemSeq": 1,
        "itemId": "PD_20250000000003",
        "taxAmount": 0.41,
        "taxDetails": [
          {
            "detailSeq": 1,
            "taxType": "Sales And Use Taxes",
            "taxName": "NY Local Transit Tax",
            "taxAmount": 0.0225
          },
          {
            "detailSeq": 2,
            "taxType": "Sales And Use Taxes",
            "taxName": "NY Sales Tax",
            "taxAmount": 0.1875
          },
          {
            "detailSeq": 3,
            "taxType": "Sales And Use Taxes",
            "taxName": "NY Sales Tax",
            "taxAmount": 0.2
          }
        ]
      }
    ]
  }
}
Last updated: 2026-04-24 07:45:12 Β© 2026 LG Electronics Inc. All rights reserved.