Singapay Home Page
Logo Icon
  1. Payment Link History
  2. Show

Information

MethodPathFormatAuthentication
GET/api/v1.0/payment-link-histories/{account_id}/{history_id}jsonOAuth 2.0 with Access Token

Request Details

Headers Structure

FieldValueTypeMandatoryLengthDescriptionExample
X-PARTNER-IDapi_keyAlphanumericMandatoryAPI key obtained from the merchant dashboard.b3ed7d4b-a96c-6c08-b3c7-12c3124242d9
Acceptapplication/jsonAlphabeticMandatorySpecifies JSON as the expected response format.application/json
AuthorizationBearer {bearerToken}AlphanumericMandatoryBearer token obtained from the get access token endpoint.Bearer eyJ0eXAiOiJKV1{…}

Response Details

Response Structure

FieldTypeMandatoryLengthDescriptionExample
statusNumericMandatory3HTTP Status Code.200
successBooleanMandatory1Indicates successful request.true
dataObjectMandatory-Object containing the single transaction detail.-
> idNumericMandatory-Internal ID of the Transaction.58
> reff_noAlphanumericMandatory-Transaction reference number.12917720251024134439474
> payment_method_nameStringMandatory-Human-readable name of the payment method used.VA BRI
> payment_method_valueAlphanumericMandatory-The payment value (e.g., Virtual Account number).5588867273870397
> payment_method_additionalString/NullConditional-Additional data specific to the payment method.null
> expired_atDatetime/NullConditional-The expiration date/time of the transaction (ISO 8601).2025-10-25T13:44:39+07:00
> is_expiredBooleanMandatory1Indicates whether the transaction is expired.true
> amountString/NumericMandatory-The transaction amount.1200000.00
> payment_dateDatetime/NullConditional-Date/time of the successful payment.2025-10-24T13:45:07+07:00
> balance_afterString/Numeric/NullConditional-The balance of the user’s account after the transaction.2500000.00
> statusAlphabeticMandatory-The transaction status (e.g., paid).paid
> status_computedAlphabeticMandatory-The calculated status of the transaction.paid
> customer_nameStringConditional-Customer’s name associated with the transaction.""
> customer_emailStringConditional-Customer’s email associated with the transaction.""
> customer_phoneStringConditional-Customer’s phone number.""
> ip_addressStringConditional-The IP address(es) from which the transaction was made.103.133.68.7, 103.133.68.7
> locationsString/NullConditional-Geographical location information.null
> vendor_feeString/NumericMandatory-The fee charged by the payment method vendor.1500.00
> our_marginString/NumericMandatory-The platform’s margin/fee from the transaction.1000.00
> processed_timestampDatetime/NullConditional-Date/time when the transaction was fully processed.2025-10-24T13:45:07+07:00
> has_settleBooleanMandatory-Indicates whether the transaction has been settled.true
> settle_atDatetime/NullConditional-Date/time when the transaction was settled.2025-10-24T15:00:00+07:00
> created_atDatetimeMandatory-Date/time the transaction was created.2025-10-24T13:44:39+07:00
> updated_atDatetimeMandatory-Date/time the transaction was last updated.2025-10-29T11:12:17+07:00
> payment_linkObjectMandatory-Detailed information about the associated Payment Link.-
>> idNumericMandatory-Payment Link ID.129
>> reff_noAlphanumericMandatory-Payment Link reference number.invoice_travelan01
>> titleStringMandatory-Payment Link title.Pembelian Tiket Pesawat
>> payment_urlStringMandatory-Payment Link URL.https://sandbox-paymentlink.singapay.id/b2b/invoice_travelan01
>> statusAlphabeticMandatory-Payment Link status (e.g., open).open
>> status_computedAlphabeticMandatory-Computed Payment Link status (e.g., expired).expired
>> required_customer_detailBooleanMandatory1If customer detail is required.false
>> max_usageNumericMandatory-Max usage count.1
>> current_usageNumericMandatory-Current usage count.1
>> expired_atDatetime/NullConditional-Payment Link expiry date.2025-10-25T13:41:00+07:00
>> is_expiredBooleanMandatory1If Payment Link is expired.true
>> total_amountString/NumericMandatory-Payment Link total amount.1200000.00
>> itemsArray Object/NullConditional-List of items in the Payment Link.-
>>> nameAlphabeticMandatory-Item name.Pembelian TIket Pesawat
>>> quantityString/NumericMandatory-Item quantity.1
>>> unit_priceString/NumericMandatory-Item unit price.700000
>>> subtotalNumericMandatory-Item subtotal.700000
>> whitelisted_payment_methodArray String/NullConditional-List of whitelisted payment codes.[ “VA_BRI”, “VA_DANAMON”, “VA_MAYBANK”, “INDOMARET”, “ALFAMART”, “QRIS” ]
>> redirect_urlString/NullConditional-Redirect URL set on the Payment Link.https://example.com/thank-you
>> payment_dateDatetime/NullConditional-Last payment date for the link.2025-10-24T13:42:55+07:00
>> created_atDatetimeMandatory-Payment Link creation date.2025-10-24T13:42:55+07:00
>> updated_atDatetimeMandatory-Payment Link last updated date.2025-10-24T13:45:07+07:00
>> accountObjectMandatory-Associated Account information.-
>>> idAlphanumericMandatory-Account ID.01K8AESCCKYSD98Z3P9RSDA36W
>>> nameStringMandatory-Account name.Travelan
>>> emailStringMandatory-Account email.travelan@gmail.com
>>> phoneStringMandatory-Account phone number.085673574337633
>>> statusAlphabeticMandatory-Account status.active
> payment_methodObjectMandatory-Detailed information about the payment method used for this transaction.-
>> idNumericMandatory-Payment Method ID.1
>> codeStringMandatory-Payment Method code.VA_BRI
>> nameStringMandatory-Payment Method name.VA BRI
>> descStringConditional-Payment Method description.Virtual Account BRI
>> statusAlphabeticMandatory-Payment Method status (e.g., active).active
>> groupAlphabeticMandatory-Payment Method group (e.g., va).va
>> inactive_reasonString/NullConditional-Reason if the method is inactive.null
>> bank_vendor_idNumeric/NullConditional-ID of the bank/vendor.null
>> had_payment_linkBooleanMandatory1If the method supports Payment Link.true
>> kindAlphabeticMandatory-Type of the method (e.g., transaction).transaction
>> created_atDatetimeMandatory-Payment Method creation date.2025-08-14T15:39:56+07:00
>> updated_atDatetimeMandatory-Payment Method last updated date.2025-08-14T15:39:56+07:00

Response Example

Success: Here’s an example of a successful response.

{
    "status": 200,
    "success": true,
    "data": {
        "id": 58,
        "reff_no": "12917720251024134439474",
        "payment_method_name": "VA BRI",
        "payment_method_value": "5588867273870397",
        "payment_method_additional": null,
        "expired_at": "2025-10-25T13:44:39+07:00",
        "is_expired": true,
        "amount": "1200000.00",
        "payment_date": "2025-10-24T13:45:07+07:00",
        "balance_after": "2500000.00",
        "status": "paid",
        "status_computed": "paid",
        "customer_name": "",
        "customer_email": "",
        "customer_phone": "",
        "ip_address": "103.133.68.7, 103.133.68.7",
        "locations": null,
        "vendor_fee": "1500.00",
        "our_margin": "1000.00",
        "processed_timestamp": "2025-10-24T13:45:07+07:00",
        "has_settle": true,
        "settle_at": "2025-10-24T15:00:00+07:00",
        "created_at": "2025-10-24T13:44:39+07:00",
        "updated_at": "2025-10-29T11:12:17+07:00",
        "payment_link": {
            "id": 129,
            "reff_no": "invoice_travelan01",
            "title": "Pembelian Tiket Pesawat",
            "payment_url": "https://sandbox-paymentlink.singapay.id/b2b/invoice_travelan01",
            "status": "open",
            "status_computed": "expired",
            "required_customer_detail": false,
            "max_usage": 1,
            "current_usage": 1,
            "expired_at": "2025-10-25T13:41:00+07:00",
            "is_expired": true,
            "total_amount": "1200000.00",
            "items": [
                {
                    "name": "Pembelian TIket Pesawat",
                    "quantity": "1",
                    "unit_price": "700000",
                    "subtotal": 700000
                },
                {
                    "name": "Pemesanan Hotel",
                    "quantity": "1",
                    "unit_price": "500000",
                    "subtotal": 500000
                }
            ],
            "whitelisted_payment_method": [
                "VA_BRI",
                "VA_DANAMON",
                "VA_MAYBANK",
                "INDOMARET",
                "ALFAMART",
                "QRIS"
            ],
            "redirect_url": null,
            "payment_date": "2025-10-24T13:42:55+07:00",
            "created_at": "2025-10-24T13:42:55+07:00",
            "updated_at": "2025-10-24T13:45:07+07:00",
            "account": {
                "id": "01K8AESCCKYSD98Z3P9RSDA36W",
                "name": "Travelan",
                "email": "travelan@gmail.com",
                "phone": "085673574337633",
                "status": "active"
            }
        },
        "payment_method": {
            "id": 1,
            "code": "VA_BRI",
            "name": "VA BRI",
            "desc": "Virtual Account BRI",
            "status": "active",
            "group": "va",
            "inactive_reason": null,
            "bank_vendor_id": null,
            "had_payment_link": true,
            "kind": "transaction",
            "created_at": "2025-08-14T15:39:56+07:00",
            "updated_at": "2025-08-14T15:39:56+07:00"
        }
    }
}