PayOrc
Manage Payment

List Orders

Fetch a paginated list of transactions with date range and status filters.

List Orders

API Version: 3.0.0

Fetch a transaction list with date range and other filters. Use this endpoint to retrieve a paginated list of orders.

Navigate to Developers → API Keys → Add new API key → Select Hosted Solution in the Channel Dropdown to generate your API credentials.

Endpoint

MethodURL
GEThttps://api.payorc.com/orders/v1/transaction-list

Please use the test credentials for sandbox testing.

Headers

HeaderTypeRequiredDescription
merchant-keyStringYesYour merchant API key (e.g., live-D111PIS13YK)
merchant-secretStringYesYour merchant API secret (e.g., sec-JI11G0P13Z0)

Query Parameters

ParameterTypeRequiredDescription
pageIntegerNoPage number (starts from 1). When provided, pagination is applied
perpageIntegerNoRecords per page (default 100, max 100)
p_order_idStringNoFilter by PayOrc order ID
transaction_idStringNoFilter by transaction / payment ID
statusStringNoFilter by order status (e.g. CAPTURED, AUTHORISED, VOID, REFUNDED)
payment_methodStringNoFilter by payment mode / method value stored on the order
payment_method_idStringNoFilter by card PAN / payment method id
m_payment_tokenStringNoFilter by card token
card_binStringNoFilter by card BIN (first digits)
processorStringNoFilter by PSP processor code
currency_codeStringNoFilter by ISO currency code
from_dateStringNoStart date (YYYY-MM-DD)
to_dateStringNoEnd date (YYYY-MM-DD)
min_amountStringNoMinimum transaction amount
max_amountStringNoMaximum transaction amount
m_customer_idStringNoFilter by merchant customer ID
customer_emailStringNoFilter by customer email
customer_mobileStringNoFilter by customer mobile
customer_countryStringNoFilter by billing country

Use status, not status_code. The API ignores status_code.


Code Examples

Example 1: List with pagination

curl --location 'https://api.payorc.com/orders/v1/transaction-list?page=1&perpage=10' \
--header 'merchant-key: {merchant-key}' \
--header 'merchant-secret: {merchant-secret}'

Example 2: Filter by Status and Date Range

curl --location 'https://api.payorc.com/orders/v1/transaction-list?status=CAPTURED&from_date=2024-01-01&to_date=2024-12-31&page=1&perpage=50' \
--header 'merchant-key: {merchant-key}' \
--header 'merchant-secret: {merchant-secret}'

Response — Success (200)

{
    "data": [
        {
            "m_order_id": "123460",
            "p_order_id": "1000012020",
            "p_request_id": 1000011100,
            "psp_ref_id": "cac9b7ca-3e84-46b1-88f4-1df276b82847",
            "transaction_id": "1000012325",
            "psp_txn_id": "583090c6-4e9f-440d-9bfc-13153de0a5cd",
            "transaction_date": "17-01-2025 09:43:08",
            "status": "CAPTURED",
            "currency": "AED",
            "amount": "310.01",
            "amount_captured": "310.01",
            "psp": "NI",
            "payment_method": "DEBIT CARD",
            "m_customer_id": "1234",
            "m_payment_token": "REhzWEgxTXl1cXlJVHNOUHljWHZZQT09",
            "payment_method_data": {
                "scheme": "VISA",
                "card_country": "POLAND",
                "card_type": "DEBIT",
                "masked_pan": "411111******1111"
            },
            "apm_name": "",
            "apm_identifier": "",
            "sub_merchant_identifier": "0000001185",
            "channel": "HOSTED",
            "channel_id": "1",
            "parameters": [
                {"alpha": ""},
                {"beta": ""},
                {"gamma": ""},
                {"delta": ""},
                {"epsilon": ""}
            ],
            "custom_data": [
                {"alpha": ""},
                {"beta": ""},
                {"gamma": ""},
                {"delta": ""},
                {"epsilon": ""}
            ]
        }
    ],
    "message": "Successfully fetched list",
    "status": "success",
    "code": "00",
    "total_records": 1990
}

Response Fields

FieldTypeDescription
dataArrayArray of transaction objects
messageStringResponse message
statusStringsuccess or fail
codeString00 for success
total_recordsIntegerTotal number of records matching the filter

Transaction Object

FieldTypeDescription
m_order_idStringOrder ID provided by the merchant
p_order_idStringOrder ID created by PayOrc
p_request_idIntegerRequest ID created by PayOrc
psp_ref_idStringReference ID associated with the PSP submission
transaction_idStringTransaction / payment ID
psp_txn_idStringPSP transaction ID
transaction_dateStringTransaction timestamp
statusStringCurrent status of the transaction
currencyStringCurrency of the transaction
amountStringTransaction amount
amount_capturedStringAmount captured so far
pspStringPayment service provider code
payment_methodStringPayment method used
m_customer_idStringMerchant customer ID
m_payment_tokenStringPayment token
apm_nameStringAlternative Payment Method name
apm_identifierStringAPM identifier
sub_merchant_identifierStringSub-merchant identifier
channelStringOrder origin / channel
channel_idStringChannel identifier

Response — Error (4xx)

{
    "message": "Invalid merchant key and secret",
    "status": "fail",
    "code": "401"
}

On this page