Skip to main content

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

  1. Customer downloads the UDS app at promo.uds.app.

  2. Customer shows a promo code (6 digits) from the app to a cashier.

  3. Cashier registers this code and information on the customer is displayed (first name, last name, the balance of points).

  4. Cashier enters the number of points to be deducted, 1 point = 1 ruble.

  5. 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.

  6. 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uds_lib_test-0.1.2.tar.gz (19.7 kB view details)

Uploaded Source

File details

Details for the file uds_lib_test-0.1.2.tar.gz.

File metadata

  • Download URL: uds_lib_test-0.1.2.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

Hashes for uds_lib_test-0.1.2.tar.gz
Algorithm Hash digest
SHA256 26404468ab06c4b3bd9e05c9435e6247028124ebd43aeea5f73aed575984d170
MD5 0e6b3435bbe790f1e928bf3ddb04d9a9
BLAKE2b-256 128f756226853f3460d56766bf4ce0b5bbcb8a13f852790b1d9cf713ab282ba4

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page