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

Information

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

Request Details

Query Parameters for Filtering

ParameterTypeMandatoryDescriptionExample
reff_noStringOptionalFilter by reference number (partial match)12917720251024134439474
statusStringOptionalFilter by transaction statuspaid
payment_method_nameStringOptionalFilter by payment method name (partial match)VA BRI
payment_method_valueStringOptionalFilter by payment method value (partial match)5588867273870397
amountDecimalOptionalFilter by exact amount1200000.00
amount_minDecimalOptionalFilter by minimum amount100000.00
amount_maxDecimalOptionalFilter by maximum amount5000000.00
has_settleBooleanOptionalFilter by settlement statustrue
created_at_fromStringOptionalFilter by minimum creation date (ISO 8601)2025-10-24T00:00:00+07:00
created_at_toStringOptionalFilter by maximum creation date (ISO 8601)2025-10-24T23:59:59+07:00
payment_date_fromStringOptionalFilter by minimum payment date (ISO 8601)2025-10-24T00:00:00+07:00
payment_date_toStringOptionalFilter by maximum payment date (ISO 8601)2025-10-24T23:59:59+07:00
processed_timestamp_fromStringOptionalFilter by minimum processed timestamp (ISO 8601)2025-10-24T00:00:00+07:00
processed_timestamp_toStringOptionalFilter by maximum processed timestamp (ISO 8601)2025-10-24T23:59:59+07:00
settle_at_fromStringOptionalFilter by minimum settlement date (ISO 8601)2025-10-24T00:00:00+07:00
settle_at_toStringOptionalFilter by maximum settlement date (ISO 8601)2025-10-24T23:59:59+07:00
sort_byStringOptionalSort by field (default: id)id, created_at, amount
sort_orderStringOptionalSort order (default: desc)asc, desc
per_pageIntegerOptionalItems per page (default: 25)25, 50, 100

Request Example with Filters

Example 1: Filter by Status and Amount Range

GET /api/v1.0/payment-link-histories/01K8AESCCKYSD98Z3P9RSDA36W?status=paid&amount_min=100000&amount_max=5000000&sort_by=created_at&sort_order=desc

cURL Example:

curl -X GET "https://api.singapay.id/api/v1.0/payment-link-histories/01K8AESCCKYSD98Z3P9RSDA36W?status=paid&amount_min=100000&amount_max=5000000&sort_by=created_at&sort_order=desc" \
  -H "X-PARTNER-ID: b3ed7d4b-a96c-6c08-b3c7-12c3124242d9" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9..."

Example 2: Filter by Payment Method and Settlement Status

GET /api/v1.0/payment-link-histories/01K8AESCCKYSD98Z3P9RSDA36W?payment_method_name=VA BRI&has_settle=true&per_page=50

cURL Example:

curl -X GET "https://api.singapay.id/api/v1.0/payment-link-histories/01K8AESCCKYSD98Z3P9RSDA36W?payment_method_name=VA%20BRI&has_settle=true&per_page=50" \
  -H "X-PARTNER-ID: b3ed7d4b-a96c-6c08-b3c7-12c3124242d9" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9..."

Example 3: Filter by Reference Number and Payment Date Range

GET /api/v1.0/payment-link-histories/01K8AESCCKYSD98Z3P9RSDA36W?reff_no=12917720251024134439474&payment_date_from=2025-10-24T00:00:00+07:00&payment_date_to=2025-10-24T23:59:59+07:00

cURL Example:

curl -X GET "https://api.singapay.id/api/v1.0/payment-link-histories/01K8AESCCKYSD98Z3P9RSDA36W?reff_no=12917720251024134439474&payment_date_from=2025-10-24T00:00:00%2B07:00&payment_date_to=2025-10-24T23:59:59%2B07:00" \
  -H "X-PARTNER-ID: b3ed7d4b-a96c-6c08-b3c7-12c3124242d9" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9..."

Example 4: Filter by Settlement Date Range and Pagination

GET /api/v1.0/payment-link-histories/01K8AESCCKYSD98Z3P9RSDA36W?settle_at_from=2025-10-24T00:00:00+07:00&settle_at_to=2025-10-30T23:59:59+07:00&sort_by=settle_at&sort_order=asc&per_page=100&page=1

cURL Example:

curl -X GET "https://api.singapay.id/api/v1.0/payment-link-histories/01K8AESCCKYSD98Z3P9RSDA36W?settle_at_from=2025-10-24T00:00:00%2B07:00&settle_at_to=2025-10-30T23:59:59%2B07:00&sort_by=settle_at&sort_order=asc&per_page=100&page=1" \
  -H "X-PARTNER-ID: b3ed7d4b-a96c-6c08-b3c7-12c3124242d9" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9..."

Example 5: Filter by Payment Method Value and Creation Date

GET /api/v1.0/payment-link-histories/01K8AESCCKYSD98Z3P9RSDA36W?payment_method_value=5588867273870397&created_at_from=2025-10-24T00:00:00+07:00&created_at_to=2025-10-24T23:59:59+07:00

cURL Example:

curl -X GET "https://api.singapay.id/api/v1.0/payment-link-histories/01K8AESCCKYSD98Z3P9RSDA36W?payment_method_value=5588867273870397&created_at_from=2025-10-24T00:00:00%2B07:00&created_at_to=2025-10-24T23:59:59%2B07:00" \
  -H "X-PARTNER-ID: b3ed7d4b-a96c-6c08-b3c7-12c3124242d9" \
  -H "Accept: application/json" \
  -H "Authorization: Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9..."

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
dataArray ObjectMandatory-An array containing a list of transaction details.-
> 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
paginationObjectMandatory-Object containing pagination metadata.-
> countNumericMandatory-Number of items in the current page.1
> totalNumericMandatory-Total number of items across all pages.1
> perPageNumericMandatory-Items per page setting.25
> currentPageNumericMandatory-The current page number.1
> totalPagesNumericMandatory-The total number of pages.1
> linksObjectMandatory-Object containing pagination links.

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"
            }
        }
    ],
    "pagination": {
        "count": 1,
        "total": 1,
        "perPage": 25,
        "currentPage": 1,
        "totalPages": 1,
        "links": {}
    }
}