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

Information

MethodPathFormatAuthentication
GET/api/v1.0/payment-link-manage/{account_id}/{payment_link_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 the success of the request.true
dataObjectMandatory-The main object containing the details of a single payment link.-
> idNumericMandatory-Internal ID of the Payment Link.103
> reff_noAlphanumericMandatory-Reference number of the Payment Link.PL2025102113590968f72f3df34e5
> titleAlphanumericMandatory-Title of the payment link.tes
> payment_urlStringMandatory-URL to access the payment link.http://localhost:3000/b2b/PL2025102113590968f72f3df34e5
> statusAlphabeticMandatory-Status of the payment link. Values are open or closed.open
> status_computedAlphabeticMandatory-The computed status of the payment link. Values are open, closed, or expired.open
> required_customer_detailBooleanMandatory1Indicates if customer details are required.true
> max_usageNumericMandatory-Maximum usage count for the payment link.1000
> current_usageNumericMandatory-Current usage count of the payment link.2
> expired_atDatetime/NullConditional-Expiration date of the payment link (ISO 8601 format). It is null if there is no expiration.null
> is_expiredBooleanMandatory1Indicates if the payment link has expired.false
> total_amountNumericMandatory-Total amount of the payment link.20000.00
> itemsArray Object/NullConditional-List of items included in the payment.-
>> nameAlphabeticMandatory-Name of the item.tes
>> quantityNumericMandatory-Quantity of the item.1
>> unit_priceNumericMandatory-Price per unit of the item.20000
>> subtotalNumericMandatory-Subtotal for the item (quantity * unit_price).20000
> whitelisted_payment_methodArray String/NullConditional-List of allowed (whitelisted) payment method codes. It is null if all methods are allowed.[ “VA_BRI”, “VA_DANAMON”, “QRIS” ]
> redirect_urlString/NullConditional-URL to redirect the customer after payment success or expiry. It is null if not set.https://example.com/thank-you
> payment_dateDatetime/NullConditional-Date/time of the last successful payment (ISO 8601 format or null).2025-10-21T13:59:40+07:00
> created_atDatetimeMandatory-Creation date/time of the payment link (ISO 8601 format).2025-10-21T13:59:40+07:00
> updated_atDatetimeMandatory-Last update date/time of the payment link (ISO 8601 format).2025-10-21T15:16:05+07:00
> accountObjectMandatory-Account information associated with the payment link.-
>> idAlphanumericMandatory-Account ID.01K7P073Q8RE2A9PQT8Q7MXPN4
>> nameAlphabeticMandatory-Account Name.Moh. Zulkifli Katili
>> emailStringMandatory-Account email address.tes@gmail.com
>> phoneNumericMandatory-Account phone number.08123993201
>> statusAlphabeticMandatory-Account Status.active

Response Example

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

{
    "status": 200,
    "success": true,
    "data": {
        "id": 103,
        "reff_no": "PL2025102113590968f72f3df34e5",
        "title": "tes",
        "payment_url": "http://localhost:3000/b2b/PL2025102113590968f72f3df34e5",
        "status": "open",
        "status_computed": "open",
        "required_customer_detail": true,
        "max_usage": 1000,
        "current_usage": 2,
        "expired_at": null,
        "is_expired": false,
        "total_amount": "20000.00",
        "items": [
            {
                "name": "tes",
                "quantity": "1",
                "unit_price": "20000",
                "subtotal": 20000
            }
        ],
        "whitelisted_payment_method": [
            "VA_BRI",
            "VA_DANAMON",
            "VA_MAYBANK",
            "QRIS"
        ],
        "redirect_url": null,
        "payment_date": "2025-10-21T13:59:40+07:00",
        "created_at": "2025-10-21T13:59:40+07:00",
        "updated_at": "2025-10-21T15:16:05+07:00",
        "account": {
            "id": "01K7P073Q8RE2A9PQT8Q7MXPN4",
            "name": "Moh. Zulkifli Katili",
            "email": "tes@gmail.com",
            "phone": "08123993201",
            "status": "active"
        }
    }
}