Skip to main content
POST
/
merchant
/
invoice
/
split_payments
Get Split Payments
curl --request POST \
  --url https://api.unibee.dev/merchant/invoice/split_payments \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "invoiceId": "<string>"
}
'
{
  "code": 123,
  "data": {
    "paidAmount": 123,
    "payments": [
      {
        "createTime": 123,
        "currency": "<string>",
        "gatewayId": 123,
        "gatewayName": "<string>",
        "link": "<string>",
        "paidTime": 123,
        "paymentId": "<string>",
        "splitSequence": 123,
        "status": 123,
        "totalAmount": 123
      }
    ],
    "remainingAmount": 123,
    "totalAmount": 123
  },
  "merchantId": 123,
  "message": "<string>",
  "redirect": "<string>",
  "requestId": "<string>"
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Get all split payments for an invoice with payment statistics

invoiceId
string<string>
required

The invoice id

Response

200 - application/json
code
integer<int>
data
object
merchantId
integer<int64>
message
string<string>
redirect
string<string>
requestId
string<string>