OPay as a Service

Get an OPay request by merchant reference

Looks up only source_reference for the authenticated business and credential state.

GET
/api/v1/opaas/source-reference/{sourceReference}

Authorization

BearerAuth
AuthorizationBearer <token>

In: header

Path Parameters

sourceReference*string

Response Body

application/json

curl -X GET "https://example.com/api/v1/opaas/source-reference/string"
{
  "requestId": "string",
  "requestTimestamp": "string",
  "message": "string",
  "statusCode": 0,
  "data": {
    "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
    "businessState": "string",
    "reference": "OPA_A1B2C3D4",
    "sourceReference": "order-123",
    "status": "provisioning",
    "cashierUrl": "http://example.com",
    "merchantRedirectUrl": "http://example.com",
    "merchantCancelUrl": "http://example.com",
    "feeBearer": "MERCHANT",
    "opayOrderNo": "string",
    "amount": {
      "value": 1000,
      "currency": "NGN",
      "formatted": "NGN1000"
    },
    "fee": {
      "value": 1000,
      "currency": "NGN",
      "formatted": "NGN1000"
    },
    "total": {
      "value": 1000,
      "currency": "NGN",
      "formatted": "NGN1000"
    },
    "currency": "NGN",
    "expiresAt": "2019-08-24T14:15:22Z",
    "createdAt": "2019-08-24T14:15:22Z",
    "metadata": {},
    "customer": {},
    "transaction": {
      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
      "type": "credit",
      "sourceReference": "string",
      "parentTransactionReference": "string",
      "reference": "TRN_123",
      "status": "successful",
      "amount": {
        "value": 1000,
        "currency": "NGN",
        "formatted": "NGN1000"
      },
      "balanceBefore": {
        "value": 1000,
        "currency": "NGN",
        "formatted": "NGN1000"
      },
      "balanceAfter": {
        "value": 1000,
        "currency": "NGN",
        "formatted": "NGN1000"
      },
      "createdAt": "22/10/2026 05:00pm",
      "fee": [
        {}
      ],
      "customer": {},
      "paymentLink": {}
    }
  }
}
Empty
Empty

How is this guide?

Last updated on