Get default information by batch
curl --request GET \
--url https://staging-api.propaga.io/v1/corner-store/default-information \
--header 'Authorization: <api-key>'import requests
url = "https://staging-api.propaga.io/v1/corner-store/default-information"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://staging-api.propaga.io/v1/corner-store/default-information', 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 => "https://staging-api.propaga.io/v1/corner-store/default-information",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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 := "https://staging-api.propaga.io/v1/corner-store/default-information"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://staging-api.propaga.io/v1/corner-store/default-information")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging-api.propaga.io/v1/corner-store/default-information")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"paymentDefaults": [
{
"userId": "3b275b2f-3b40-4ff2-86ff-2499de0cdcfa",
"paymentDefaultAmount": 200,
"paymentDefaultCreatedDate": "2024-01-01T00:00:00Z",
"paymentDefaultPaidDate": "2024-01-01T00:00:00Z",
"externalId": "12345"
}
],
"totalPages": 1,
"totalElements": 1,
"last": true,
"first": true
}
Corner store
Get default information by batch
Gets default information for corner stores
GET
/
corner-store
/
default-information
Get default information by batch
curl --request GET \
--url https://staging-api.propaga.io/v1/corner-store/default-information \
--header 'Authorization: <api-key>'import requests
url = "https://staging-api.propaga.io/v1/corner-store/default-information"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://staging-api.propaga.io/v1/corner-store/default-information', 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 => "https://staging-api.propaga.io/v1/corner-store/default-information",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$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 := "https://staging-api.propaga.io/v1/corner-store/default-information"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://staging-api.propaga.io/v1/corner-store/default-information")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging-api.propaga.io/v1/corner-store/default-information")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"paymentDefaults": [
{
"userId": "3b275b2f-3b40-4ff2-86ff-2499de0cdcfa",
"paymentDefaultAmount": 200,
"paymentDefaultCreatedDate": "2024-01-01T00:00:00Z",
"paymentDefaultPaidDate": "2024-01-01T00:00:00Z",
"externalId": "12345"
}
],
"totalPages": 1,
"totalElements": 1,
"last": true,
"first": true
}
{
"paymentDefaults": [
{
"userId": "3b275b2f-3b40-4ff2-86ff-2499de0cdcfa",
"paymentDefaultAmount": 200,
"paymentDefaultCreatedDate": "2024-01-01T00:00:00Z",
"paymentDefaultPaidDate": "2024-01-01T00:00:00Z",
"externalId": "12345"
}
],
"totalPages": 1,
"totalElements": 1,
"last": true,
"first": true
}
Body
string
default:"1"
required
Page number
Response
array
number
Total number of pages
number
Total number of elements
boolean
Indicates if it is the last page
boolean
Indicates if it is the first page
Was this page helpful?
⌘I

