Verify Blockpay ( External )

Verifies the status of a BlockPay payment using the payment reference returned when the payment link was created.

This endpoint can be used by the merchant to retrieve the current status of a BlockPay collection and confirm whether the payment is still pending or has reached a final state.

Endpoint

GET /api/v1/collection/blockpay-verify

Authorization

Bearer Token

A valid Bearer Token is required to authenticate the request.

Headers

HeaderDescriptionRequired
AuthorizationBearer token used to authenticate the requestYes
x-merchant-refUnique reference identifying the merchantYes

Query Parameters

ParameterDescriptionRequired
payment_refUnique payment reference generated when the BlockPay payment link was createdYes

Request

curl --location -g '{{base_url}}/api/v1/collection/blockpay-verify?payment_ref=BPAY-TEST-VERIFY-001' \
--header 'Authorization: Bearer <token>' \
--header 'x-merchant-ref: {{vault:x-merchant-ref}}'

Response

{
  "message": "Retrieved Successfully",
  "data": {
    "user_ref": "USR_TEST_004",
    "txn_merchant_ref": "TXN_TEST_VERIFY_001",
    "status": "PENDING",
    "collection": {
      "amount": "350",
      "available_balance_after": "0",
      "available_balance_before": "0",
      "created_at": "2026-09-03T12:00:00.000000Z",
      "currency": "NGN",
      "description": "DYNAMIC_COLLECTION",
      "ledger_balance_after": "0",
      "ledger_balance_before": "0",
      "payment_reference": "BPAY-TEST-VERIFY-001"
    }
  }
}

Response Fields

FieldDescription
messageIndicates the result of the verification request.
data.user_refReference of the user associated with the payment.
data.txn_merchant_refMerchant's transaction reference associated with the collection.
data.statusCurrent status of the BlockPay payment.
data.collectionContains details of the collection transaction.
data.collection.amountAmount associated with the collection.
data.collection.available_balance_afterAvailable wallet balance after the collection.
data.collection.available_balance_beforeAvailable wallet balance before the collection.
data.collection.created_atDate and time the collection was created.
data.collection.currencyCurrency of the collection.
data.collection.descriptionDescription or type of the collection.
data.collection.ledger_balance_afterLedger balance after the collection.
data.collection.ledger_balance_beforeLedger balance before the collection.
data.collection.payment_referencePayment reference used to identify the BlockPay payment.

Payment Status

The status field indicates the current state of the payment.

For example:

PENDING

A PENDING status means the payment has not yet reached a final state. The merchant can verify the payment again later to retrieve its updated status.

How It Works

  1. The merchant creates a BlockPay payment link.
  2. LedgerBlock returns a unique payment_ref.
  3. The customer proceeds with the payment through the BlockPay checkout.
  4. The merchant can call the verification endpoint using the payment_ref.
  5. LedgerBlock returns the current payment status and collection details.
  6. The merchant can use the returned status to determine the current state of the payment.

Use Cases

The Verify BlockPay endpoint can be used to:

  • Check the current status of a BlockPay payment.
  • Verify a payment using its payment reference.
  • Retrieve collection details associated with a payment.
  • Confirm whether a payment is still pending or has reached a final state.
  • Reconcile BlockPay collections against merchant transaction references.

Note: All values in the request and response examples are dummy data for documentation purposes. Replace them with actual values when making API requests.


Did this page help you?