v3SalesGet
### Request Parameters - `ingestion-time` (optional): The time at which the data was ingested in Unix Timestamp format (e.g. 1715608793). Maximum `ingestion-time` allowed is 24 hours back from the current time. - `last-idempotency-id` (optional): The idempotency id to continue the data retrieval from. This is used to retrieve the data from the last idempotency id which is provided in the response if there are more data to fetch. (e.g. 017fe537-bb13-7c35-b52a-cb5490cce7be)
/v3/sales
Usage and SDK Samples
curl -X GET \
-H "Accept: */*" \
"https://api.smart-now.com/v3/sales?ingestion-time=ingestionTime_example&last-idempotency-id=lastIdempotencyId_example"
import org.openapitools.client.*;
import org.openapitools.client.auth.*;
import org.openapitools.client.model.*;
import org.openapitools.client.api.DefaultApi;
import java.io.File;
import java.util.*;
public class DefaultApiExample {
public static void main(String[] args) {
// Create an instance of the API class
DefaultApi apiInstance = new DefaultApi();
String ingestionTime = ingestionTime_example; // String |
String lastIdempotencyId = lastIdempotencyId_example; // String |
try {
array[SalesResponse] result = apiInstance.v3SalesGet(ingestionTime, lastIdempotencyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#v3SalesGet");
e.printStackTrace();
}
}
}
import 'package:openapi/api.dart';
final api_instance = DefaultApi();
final String ingestionTime = new String(); // String |
final String lastIdempotencyId = new String(); // String |
try {
final result = await api_instance.v3SalesGet(ingestionTime, lastIdempotencyId);
print(result);
} catch (e) {
print('Exception when calling DefaultApi->v3SalesGet: $e\n');
}
import org.openapitools.client.api.DefaultApi;
public class DefaultApiExample {
public static void main(String[] args) {
DefaultApi apiInstance = new DefaultApi();
String ingestionTime = ingestionTime_example; // String |
String lastIdempotencyId = lastIdempotencyId_example; // String |
try {
array[SalesResponse] result = apiInstance.v3SalesGet(ingestionTime, lastIdempotencyId);
System.out.println(result);
} catch (ApiException e) {
System.err.println("Exception when calling DefaultApi#v3SalesGet");
e.printStackTrace();
}
}
}
// Create an instance of the API class
DefaultApi *apiInstance = [[DefaultApi alloc] init];
String *ingestionTime = ingestionTime_example; // (optional) (default to null)
String *lastIdempotencyId = lastIdempotencyId_example; // (optional) (default to null)
[apiInstance v3SalesGetWith:ingestionTime
lastIdempotencyId:lastIdempotencyId
completionHandler: ^(array[SalesResponse] output, NSError* error) {
if (output) {
NSLog(@"%@", output);
}
if (error) {
NSLog(@"Error: %@", error);
}
}];
var SmartNowApi = require('smart_now_api');
// Create an instance of the API class
var api = new SmartNowApi.DefaultApi()
var opts = {
'ingestionTime': ingestionTime_example, // {String}
'lastIdempotencyId': lastIdempotencyId_example // {String}
};
var callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
api.v3SalesGet(opts, callback);
using System;
using System.Diagnostics;
using Org.OpenAPITools.Api;
using Org.OpenAPITools.Client;
using Org.OpenAPITools.Model;
namespace Example
{
public class v3SalesGetExample
{
public void main()
{
// Create an instance of the API class
var apiInstance = new DefaultApi();
var ingestionTime = ingestionTime_example; // String | (optional) (default to null)
var lastIdempotencyId = lastIdempotencyId_example; // String | (optional) (default to null)
try {
array[SalesResponse] result = apiInstance.v3SalesGet(ingestionTime, lastIdempotencyId);
Debug.WriteLine(result);
} catch (Exception e) {
Debug.Print("Exception when calling DefaultApi.v3SalesGet: " + e.Message );
}
}
}
}
<?php
require_once(__DIR__ . '/vendor/autoload.php');
// Create an instance of the API class
$api_instance = new OpenAPITools\Client\Api\DefaultApi();
$ingestionTime = ingestionTime_example; // String |
$lastIdempotencyId = lastIdempotencyId_example; // String |
try {
$result = $api_instance->v3SalesGet($ingestionTime, $lastIdempotencyId);
print_r($result);
} catch (Exception $e) {
echo 'Exception when calling DefaultApi->v3SalesGet: ', $e->getMessage(), PHP_EOL;
}
?>
use Data::Dumper;
use WWW::OPenAPIClient::Configuration;
use WWW::OPenAPIClient::DefaultApi;
# Create an instance of the API class
my $api_instance = WWW::OPenAPIClient::DefaultApi->new();
my $ingestionTime = ingestionTime_example; # String |
my $lastIdempotencyId = lastIdempotencyId_example; # String |
eval {
my $result = $api_instance->v3SalesGet(ingestionTime => $ingestionTime, lastIdempotencyId => $lastIdempotencyId);
print Dumper($result);
};
if ($@) {
warn "Exception when calling DefaultApi->v3SalesGet: $@\n";
}
from __future__ import print_statement
import time
import openapi_client
from openapi_client.rest import ApiException
from pprint import pprint
# Create an instance of the API class
api_instance = openapi_client.DefaultApi()
ingestionTime = ingestionTime_example # String | (optional) (default to null)
lastIdempotencyId = lastIdempotencyId_example # String | (optional) (default to null)
try:
api_response = api_instance.v3_sales_get(ingestionTime=ingestionTime, lastIdempotencyId=lastIdempotencyId)
pprint(api_response)
except ApiException as e:
print("Exception when calling DefaultApi->v3SalesGet: %s\n" % e)
extern crate DefaultApi;
pub fn main() {
let ingestionTime = ingestionTime_example; // String
let lastIdempotencyId = lastIdempotencyId_example; // String
let mut context = DefaultApi::Context::default();
let result = client.v3SalesGet(ingestionTime, lastIdempotencyId, &context).wait();
println!("{:?}", result);
}
Scopes
Parameters
| Name | Description |
|---|---|
| ingestion-time |
String
|
| last-idempotency-id |
String
|