Lib for UDS API
Project description
This library for API calls to UDS App
All information about UDS App API: https://docs.uds.app/
Data Types
There are special notices regarding data types used by Partner API. Please consider these notices as requirements since not following them may result in lack of functionality, errors or unpredictable behavior.
Numbers and Rounding
All numbers given to API must be rounded off to two decimal places by the round half up method. All responses from the server shall also follow this rule; so every field which is calculated on the server side will have not more than two decimal digits and the number will be rounded off by the “half up” method.
UUID
Partner API uses UUID 4 (or similar) to distinguish each request sent by the application. Clients should set headers X-Origin-Request-Id in requests and log (if possible) X-Request-Id set by the server in order to simplify debugging and to get proper support in case of errors. It should be guaranteed that there will be no duplication in these identifiers at least during a reasonable time period. At least this identifier shall not be reused for further requests.
Standard integration scenario
Customer downloads the UDS app at promo.uds.app.
Customer shows a promo code (6 digits) from the app to a cashier.
Cashier registers this code and information on the customer is displayed (first name, last name, the balance of points).
Cashier enters the number of points to be deducted, 1 point = 1 ruble.
Total bill amount is reduced by the number of deducted points. For example, the amount payable is 100, 30 points to be deducted and 70 rubles are to be paid in total.
When the payment is completed, information on this transaction would be sent to UDS.
A detailed description of called methods.
Requirements API key (token) and company id used for integration with POS system shall not be hardcoded. I.e., when setting up the integration module, it should be possible to register API key and id in some configuration file (config), because they are different for each company.
Warning! If error 401 unauthorized is returned when sending requests, API key or company id are incorrect.
The integration module shall be accompanied by documentation on how to configure this module so that any cash processing specialist can do this.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file uds_lib_test-0.1.1.tar.gz
.
File metadata
- Download URL: uds_lib_test-0.1.1.tar.gz
- Upload date:
- Size: 19.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.4.2 importlib_metadata/4.6.3 pkginfo/1.7.1 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.62.0 CPython/3.9.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b2eb3d6aebfa349fde9e71bc28cab2b05b37703030779a7d833f675ca3ad623c |
|
MD5 | 607d73607c8d91066616e4af98eeef59 |
|
BLAKE2b-256 | 91931fbe3b46868c638555c55179db12d0df9762c76ea79e1becaffcec7aedf6 |