Get Payment by Merchant Reference

Retrieves the latest status and details of a payment using your own merchant payment reference.

This endpoint is useful when your application only stores the merchantPaymentReference and needs to retrieve the corresponding payment.

Recommendation

Use this endpoint when you want to look up a payment using your own payment reference. If you already know the Overdrive Connect referenceNumber, use the Get Payment endpoint instead.

Endpoint

GET /api/payments/merchant/{merchantPaymentReference}

Path Parameters

Parameter Description
merchantPaymentReference Your unique payment reference.

Request Headers

Header Value
Authorization Basic API_KEY:API_SECRET
Accept application/json

Example Request

curl \
-u YOUR_API_KEY:YOUR_API_SECRET \
-H "Accept: application/json" \
https://api.example.com/api/payments/merchant-reference/ORDER-100001

Example Response

{
    "referenceNumber": "0197d3fd-f9e8-7f90-8e5c-bcba2a57fef8",
    "merchantPaymentReference": "ORDER-100001",
    "provider": "maya",
    "providerReference": "pay_xxxxxxxxx",
    "status": "pending",
    "redirectUrl": "https://checkout.example.com/pay/0197d3fd-f9e8-7f90-8e5c-bcba2a57fef8",
    "createdAt": "2026-07-06T12:30:15+08:00",
    "updatedAt": "2026-07-06T12:30:15+08:00"
}

Payment Statuses

Status Description
pending The payment has been created and is awaiting customer action.
paid The payment completed successfully.
failed The payment could not be completed.
cancelled The customer cancelled the payment before completion.

Possible Errors

HTTP Status Error Code
401 INVALID_CREDENTIALS
404 PAYMENT_NOT_FOUND
429 RATE_LIMIT_EXCEEDED

Next Step

Continue to the POST Redirect guide to learn how to initiate a payment without using the Merchant API.