Get transaction
curl --request GET \
--url http://staging.qshop.ng/apiv2/{transactionId}import requests
url = "http://staging.qshop.ng/apiv2/{transactionId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://staging.qshop.ng/apiv2/{transactionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://staging.qshop.ng/apiv2/{transactionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://staging.qshop.ng/apiv2/{transactionId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://staging.qshop.ng/apiv2/{transactionId}")
.asString();require 'uri'
require 'net/http'
url = URI("http://staging.qshop.ng/apiv2/{transactionId}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"__v": 0,
"_id": "62ea571509bd2e9be7de9edd",
"amount": 18500,
"breakdown": {
"aggregate": 816.875,
"amount": 18500,
"bankCharge": 76.875,
"payout": 17683.125,
"qshopCharge": 740
},
"createdAt": "2022-08-03T11:08:05.921Z",
"meta": {
"accountNumber": "9978770274",
"channelId": "1",
"currency": "NGN",
"feeAmount": "500",
"initiationTranRef": "",
"sessionId": "0000042103011805345648005069266636442358859209",
"settledAmount": "18500",
"settlementId": "202210301006807500001631",
"sourceAccountName": "CASAFINA CREDIT-EASY LOAN",
"sourceAccountNumber": "2093566866",
"sourceBankName": "UNITED BANK FOR AFRICA",
"tranDateTime": "2021-03-01 18:06:20.000",
"tranRemarks": "FROM UBA/ CASAFINA CREDIT-EASY LOAN-NIP/SEYI OLUFEMI/CASAFINA CAP/0000042103015656180548005069266636",
"transactionAmount": "19000",
"vatAmount": "0",
"virtualBankAccount": {
"__v": 0,
"_id": "62ea499b1908431f9caf727b",
"accountName": "MERCHANT(Qshop/Egoli)",
"accountNumber": "9978770274",
"created": "2022-08-03T10:10:35.667Z",
"isUsed": true,
"meta": {
"account_name": "MERCHANT(Qshop/Egoli)",
"account_number": "9978770274",
"bvn": "",
"requestSuccessful": true,
"responseCode": "00",
"responseMessage": "Reserved Account Generated Successfully"
},
"order": "62ea498e1908431f9caf7276",
"orderTotal": 22000,
"platformKey": "providus",
"platformName": "Providus",
"shop": "61a956d91a113f7e13c45c15"
}
},
"paymentPlatform": {
"__v": 1,
"_id": "61a6406c18ae008099246a8d",
"image": "providus-logo.png",
"imageId": "8dea64c5-21b3-4106-9f94-17372c5788b3",
"imageUrl": "https://ucarecdn.com/8dea64c5-21b3-4106-9f94-17372c5788b3/-/resize/",
"key": "providus",
"name": "Providus bank",
"subscription": {
"supportedCurrencies": []
},
"supportedCountries": [
"628c8d3c21ce8313e6293c8e"
],
"supportedCurrencies": [
"60aa6cd79aed9f2aa1b677db"
],
"supportsRecurringPayments": false
},
"shop": {
"_id": "61a956d91a113f7e13c45c15",
"domainActive": false,
"domainName": "staar.pre",
"name": "Egoli",
"slug": "egoli-3"
},
"status": {
"__v": 0,
"_id": "62597ba57b912008a11e1206",
"key": "pending",
"name": "Pending",
"notes": "Transaction has been created but no action as been taken at all"
},
"statusLogs": [
{
"__v": 0,
"_id": "62597ba57b912008a11e1206",
"key": "pending",
"name": "Pending",
"notes": "Transaction has been created but no action as been taken at all"
}
],
"transactionReference": "202210301006807500001631",
"type": "order-payment",
"virtualBankAccount": {
"__v": 0,
"_id": "62ea499b1908431f9caf727b",
"accountName": "MERCHANT(Qshop/Egoli)",
"accountNumber": "9978770274",
"created": "2022-08-03T10:10:35.667Z",
"isUsed": true,
"meta": {
"account_name": "MERCHANT(Qshop/Egoli)",
"account_number": "9978770274",
"bvn": "",
"requestSuccessful": true,
"responseCode": "00",
"responseMessage": "Reserved Account Generated Successfully"
},
"order": "62ea498e1908431f9caf7276",
"orderTotal": 22000,
"platformKey": "providus",
"platformName": "Providus",
"shop": "61a956d91a113f7e13c45c15"
}
},
"msg": "Transaction found",
"success": true
}Transactions
Get transaction
GET
/
{transactionId}
Get transaction
curl --request GET \
--url http://staging.qshop.ng/apiv2/{transactionId}import requests
url = "http://staging.qshop.ng/apiv2/{transactionId}"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('http://staging.qshop.ng/apiv2/{transactionId}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "http://staging.qshop.ng/apiv2/{transactionId}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "http://staging.qshop.ng/apiv2/{transactionId}"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("http://staging.qshop.ng/apiv2/{transactionId}")
.asString();require 'uri'
require 'net/http'
url = URI("http://staging.qshop.ng/apiv2/{transactionId}")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"data": {
"__v": 0,
"_id": "62ea571509bd2e9be7de9edd",
"amount": 18500,
"breakdown": {
"aggregate": 816.875,
"amount": 18500,
"bankCharge": 76.875,
"payout": 17683.125,
"qshopCharge": 740
},
"createdAt": "2022-08-03T11:08:05.921Z",
"meta": {
"accountNumber": "9978770274",
"channelId": "1",
"currency": "NGN",
"feeAmount": "500",
"initiationTranRef": "",
"sessionId": "0000042103011805345648005069266636442358859209",
"settledAmount": "18500",
"settlementId": "202210301006807500001631",
"sourceAccountName": "CASAFINA CREDIT-EASY LOAN",
"sourceAccountNumber": "2093566866",
"sourceBankName": "UNITED BANK FOR AFRICA",
"tranDateTime": "2021-03-01 18:06:20.000",
"tranRemarks": "FROM UBA/ CASAFINA CREDIT-EASY LOAN-NIP/SEYI OLUFEMI/CASAFINA CAP/0000042103015656180548005069266636",
"transactionAmount": "19000",
"vatAmount": "0",
"virtualBankAccount": {
"__v": 0,
"_id": "62ea499b1908431f9caf727b",
"accountName": "MERCHANT(Qshop/Egoli)",
"accountNumber": "9978770274",
"created": "2022-08-03T10:10:35.667Z",
"isUsed": true,
"meta": {
"account_name": "MERCHANT(Qshop/Egoli)",
"account_number": "9978770274",
"bvn": "",
"requestSuccessful": true,
"responseCode": "00",
"responseMessage": "Reserved Account Generated Successfully"
},
"order": "62ea498e1908431f9caf7276",
"orderTotal": 22000,
"platformKey": "providus",
"platformName": "Providus",
"shop": "61a956d91a113f7e13c45c15"
}
},
"paymentPlatform": {
"__v": 1,
"_id": "61a6406c18ae008099246a8d",
"image": "providus-logo.png",
"imageId": "8dea64c5-21b3-4106-9f94-17372c5788b3",
"imageUrl": "https://ucarecdn.com/8dea64c5-21b3-4106-9f94-17372c5788b3/-/resize/",
"key": "providus",
"name": "Providus bank",
"subscription": {
"supportedCurrencies": []
},
"supportedCountries": [
"628c8d3c21ce8313e6293c8e"
],
"supportedCurrencies": [
"60aa6cd79aed9f2aa1b677db"
],
"supportsRecurringPayments": false
},
"shop": {
"_id": "61a956d91a113f7e13c45c15",
"domainActive": false,
"domainName": "staar.pre",
"name": "Egoli",
"slug": "egoli-3"
},
"status": {
"__v": 0,
"_id": "62597ba57b912008a11e1206",
"key": "pending",
"name": "Pending",
"notes": "Transaction has been created but no action as been taken at all"
},
"statusLogs": [
{
"__v": 0,
"_id": "62597ba57b912008a11e1206",
"key": "pending",
"name": "Pending",
"notes": "Transaction has been created but no action as been taken at all"
}
],
"transactionReference": "202210301006807500001631",
"type": "order-payment",
"virtualBankAccount": {
"__v": 0,
"_id": "62ea499b1908431f9caf727b",
"accountName": "MERCHANT(Qshop/Egoli)",
"accountNumber": "9978770274",
"created": "2022-08-03T10:10:35.667Z",
"isUsed": true,
"meta": {
"account_name": "MERCHANT(Qshop/Egoli)",
"account_number": "9978770274",
"bvn": "",
"requestSuccessful": true,
"responseCode": "00",
"responseMessage": "Reserved Account Generated Successfully"
},
"order": "62ea498e1908431f9caf7276",
"orderTotal": 22000,
"platformKey": "providus",
"platformName": "Providus",
"shop": "61a956d91a113f7e13c45c15"
}
},
"msg": "Transaction found",
"success": true
}Was this page helpful?
⌘I