Developers
V1
V2

Get balance API (for split payment transaction)

Gets the balance of a transaction paid for using multiple payment methods.

GET https://api.iamport.kr/payments/{imp_uid}/balance

Gets the balance of a transaction paid for using multiple payment methods.

This is currently supported only by PAYCO.

Parameters

Path

imp_uid*
String

iโ€™mport order ID

Responses

200: OK
Success

code * integer

Response code

0: success, Not 0: check the message

message * string

Response message

A non-zero code includes a message like โ€˜Invalid payment infoโ€™.

response`` (PaymentBalanceResponseAnnotation, optional)

amount`` Integer

Total amount

cash_receipt`` (PaymentBalanceAnnotation):

Cash receipt amount

primary`` (PaymentBalanceAnnotation):

Payment method 1(credit card, account transfer, virtual account, mobile micropayment) amount

secondary`` (PaymentBalanceAnnotation):

Payment method 2 PG/credit card points amount

discount`` (PaymentBalanceAnnotation):

PG/credit card discount amount

histories`` (Array[PaymentBalanceBaseAnnotation], optional)

PaymentBalance history

tax_free`` Integer

Tax free amount (excludes any refunded amount)

supply`` Integer

Taxed amount (excludes any refunded amount)

vat Integer

Tax (excludes any refunded amount)

service`` Integer

Fee (excludes any refunded amount)

cash_receipt`` (PaymentBalanceAnnotation):

Cash receipt amount

primary`` (PaymentBalanceAnnotation):

Payment method 1(credit card, account transfer, virtual account, mobile micropayment) amount

secondary`` (PaymentBalanceAnnotation):

Payment method 2 PG/credit card points amount

discount`` (PaymentBalanceAnnotation):

PG/credit card discount amount

created *`` integer

Balance created at (UNIX timestamp)

401: Unauthorized
Missing or invalid access token
{
  // Response
}
404: Not Found
Invalid imp_uid
{
  // Response
}

Response Model Schema

{
  "code": 0,
  "message": "string",
  "response": {
    "amount": 0,
    "cash_receipt": {
      "tax_free": 0,
      "supply": 0,
      "vat": 0,
      "service": 0
    },
    "primary": {
      "tax_free": 0,
      "supply": 0,
      "vat": 0,
      "service": 0
    },
    "secondary": {
      "tax_free": 0,
      "supply": 0,
      "vat": 0,
      "service": 0
    },
    "discount": {
      "tax_free": 0,
      "supply": 0,
      "vat": 0,
      "service": 0
    },
    "histories": [
      {
        "cash_receipt": {
          "tax_free": 0,
          "supply": 0,
          "vat": 0,
          "service": 0
        },
        "primary": {
          "tax_free": 0,
          "supply": 0,
          "vat": 0,
          "service": 0
        },
        "secondary": {
          "tax_free": 0,
          "supply": 0,
          "vat": 0,
          "service": 0
        },
        "discount": {
          "tax_free": 0,
          "supply": 0,
          "vat": 0,
          "service": 0
        },
        "created": 0
      }
    ]
  }
}