Fetch All or Search Transactions or Orders

Fetch all Transactions or Search Transactions

You can retrieve the transaction details with the help of our [Fetch or Search all Transactions API] (https://docs.geidea.net/reference/fetch-or-search-all-transactions). You can use this feature to retrieve the completed or in progress payments, check the status of any payment and fulfil use cases like running automated message delivery jobs and so on.

๐Ÿ“˜

You can programmatically loop through and search through all the payments or orders returned as the response for this API call and act on an individual or group of or all payments or orders according to your use case.

You need to pass the following parameter(s) as path parameter(s) in the API request

ParameterDatatypeDescriptionMandatory
FromDatedatetimeStart DateNo
ToDatedatetimeEnd DateNo
FromAmountdoubleAmount range begin, min amountNo
ToAmountdoubleAmount range end, max amountNo
CurrencystringCurrency in which payment link is createdNo
SortOrderstringOrder of sorting of payment links (ASC, DESC)No
SortBystringIndicates the field to sort byNo
SkipintegerNo
TakeintegerNo
TotalCountOnlybooleanNo
EInvoiceUploadIdstringNo
StaticPaylinkIdstringNo
NumberintegerNo
HasOrdersbooleanNo
FromPaidDatedatetimeNo
ToPaidDatedatetimeNo
CustomerNamestringNo
ReferencestringNo
SubscriptionIdstringNo
DetailedStatusbooleanNo
StatusstringNo

Sample API Request

๐Ÿ‘

GET

https://api.merchant.geidea.net/pgw/api/v1/direct/order

You must use the GET HTTP method when executing this API call.

API Response

The parameters returned in the API response are as follows:

ParameterDescription
ordersOrders object. List of orders with the filter criteria
totalAmountAmount for which payment is carried out
totalCountNumber of payment links in the paymentIntents object
responseCodeCode associated with response message returned by the gateway
detailedResponseCodeDetailed Code associated with response message returned by the gateway

A sample response for a Fetch payment link API call is as follows:

"orders": [
        {
            "orderId": "007b1230-e063-47b7-7936-08db004750e0",
            "amount": 1.00,
            "tipAmount": 0.00,
            "convenienceFeeAmount": 0.00,
            "totalAmount": 1.00,
            "settleAmount": 1.00,
            "currency": "SAR",
            "settleCurrency": "SAR",
            "language": "en",
            "detailedStatus": "OrderFailed",
            "status": "Failed",
            "threeDSecureId": "eb0c7e1b-b66a-4acf-5659-08db004734b9",
            "merchantId": "e80ece7e-fb2a-4c0b-de94-08d8a29a107b",
            "merchantPublicKey": "a087f4ca-9890-407b-9c2f-7630836cc020",
            "parentOrderId": null,
            "merchantReferenceId": "340",
            "mcc": null,
            "callbackUrl": "https://woocommerce.avalab.io/?wc-api=geidea",
            "customerEmail": null,
            "billingAddress": {
                "countryCode": null,
                "street": null,
                "city": null,
                "postCode": null
            },
            "shippingAddress": {
                "countryCode": null,
                "street": null,
                "city": null,
                "postCode": null
            },
            "returnUrl": null,
            "cardOnFile": false,
            "tokenId": null,
            "initiatedBy": "Internet",
            "agreementId": null,
            "agreementType": null,
            "paymentOperation": "Pay",
            "custom": null,
            "paymentIntent": null,
            "restrictPaymentMethods": false,
            "paymentMethods": null,
            "platform": null,
            "statementDescriptor": null,
            "description": null,
            "createCustomer": false,
            "setDefaultPaymentMethod": false,
            "customerReferenceId": null,
            "customerId": null,
            "recurrence": null,
            "transactions": [],
            "orderItems": [],
            "isTokenPayment": false,
            "paymentMethod": null,
            "totalAuthorizedAmount": 0,
            "totalCapturedAmount": 0,
            "totalRefundedAmount": 0,
            "orderSource": "GeideaGateway",
            "paymentBrands": [],
            "multiCurrency": {
                "authCurrency": "SAR",
                "authAmount": 1.00,
                "settleCurrency": "SAR",
                "settleAmount": 1.00,
                "exchangeRate": null,
                "exchangeFeePercentage": null,
                "exchangeFeeAmount": null
            },
            "isTest": true,
            "cashOnDelivery": false,
            "amountToCollect": null,
            "isDownPayment": false,
            "exchangeRate": null,
            "exchangeFeePercentage": null,
            "exchangeFeeAmount": null,
            "deviceId": "4b9cb866-7ce6-4872-69fc-08dafface957",
            "gatewayDecision": "ContinueToPayer",
            "subscriptionId": null,
            "subscriptionOccurrenceId": null,
            "customerPhoneNumber": null,
            "customerPhoneCountryCode": null,
            "createdDate": "2023-01-30T10:58:14.2163599",
            "createdBy": "PGW",
            "updatedDate": "2023-01-30T11:14:01.0834332",
            "updatedBy": "PGW"
        },
        {
            "orderId": "cdffc192-fb52-44e6-7907-08db004750e0",
            "amount": 2.00,
            "tipAmount": 0.00,
            "convenienceFeeAmount": 0.00,
            "totalAmount": 2.00,
            "settleAmount": 2.00,
            "currency": "SAR",
            "settleCurrency": "SAR",
            "language": "en",
            "detailedStatus": "Paid",
            "status": "Success",
            "threeDSecureId": "efc2d22d-1233-431f-5611-08db004734b9",
            "merchantId": "e80ece7e-fb2a-4c0b-de94-08d8a29a107b",
            "merchantPublicKey": "a087f4ca-9890-407b-9c2f-7630836cc020",
            "parentOrderId": null,
            "merchantReferenceId": "339",
            "mcc": null,
            "callbackUrl": "https://woocommerce.avalab.io/?wc-api=geidea",
            "customerEmail": null,
            "billingAddress": {
                "countryCode": "SAU",
                "street": "a",
                "city": "a",
                "postCode": "12243"
            },
            "shippingAddress": {
                "countryCode": "SAU",
                "street": "a",
                "city": "a",
                "postCode": "12243"
            },
            "returnUrl": null,
            "cardOnFile": false,
            "tokenId": null,
            "initiatedBy": "Internet",
            "agreementId": null,
            "agreementType": null,
            "paymentOperation": "Pay",
            "custom": null,
            "paymentIntent": null,
            "restrictPaymentMethods": false,
            "paymentMethods": null,
            "platform": null,
            "statementDescriptor": null,
            "description": null,
            "createCustomer": false,
            "setDefaultPaymentMethod": false,
            "customerReferenceId": null,
            "customerId": null,
            "recurrence": null,
            "transactions": [],
            "orderItems": [],
            "isTokenPayment": false,
            "paymentMethod": null,
            "totalAuthorizedAmount": 0,
            "totalCapturedAmount": 0,
            "totalRefundedAmount": 0,
            "orderSource": "GeideaGateway",
            "paymentBrands": [],
            "multiCurrency": {
                "authCurrency": "SAR",
                "authAmount": 2.00,
                "settleCurrency": "SAR",
                "settleAmount": 2.00,
                "exchangeRate": null,
                "exchangeFeePercentage": null,
                "exchangeFeeAmount": null
            },
            "isTest": true,
            "cashOnDelivery": false,
            "amountToCollect": null,
            "isDownPayment": false,
            "exchangeRate": null,
            "exchangeFeePercentage": null,
            "exchangeFeeAmount": null,
            "deviceId": "4b9cb866-7ce6-4872-69fc-08dafface957",
            "gatewayDecision": "ContinueToPay",
            "subscriptionId": null,
            "subscriptionOccurrenceId": null,
            "customerPhoneNumber": null,
            "customerPhoneCountryCode": null,
            "createdDate": "2023-01-30T10:23:18.2023383",
            "createdBy": "PGW",
            "updatedDate": "2023-01-30T10:23:42.0339625",
            "updatedBy": "PGW"
        }
  ],
    "totalCount": 3,
    "totalAmount": 0,
    "responseCode": "000",
    "detailedResponseCode": "000"
}

Search Payment or Order

You can search for a Payment with the [Fetch or Search all Transactions API] (https://docs.geidea.net/reference/fetch-or-search-all-transactions). Using this API, you can search for Payments or orders with varied criteria such as date ranges, statuses, and so on.