Gift certificate import
Since version 2022.1 it is now possible to import ready-made gift certificates created outside of the Loymax system.
Importing money certificates involves the following steps:
- Certificate type creation
- Template Creation
- Creation of certificate issue and ordering
- Creation of a ruble account for a legal entity
- Import certificates
- Updating information about certificates
Certificate type creation
You need to create certificate type to further issue and order certificates. The type of denomination and its value can be any.
Template Creation
You need to create Template to further issue and order certificates.
Creation of certificate issue and ordering
You need to create Issue and Order certificates (without pressing Execute).
Creation of a ruble account for a legal entity
Make sure that the legal entity has a ruble account. If a partner does not have a ruble account, it is necessary to add it via MMP or via API
Import certificates
Cash certificates are imported using API for cash certificates. To do this, you need to prepare a CSV file with information about money certificates. It is possible to get data about the number of import errors using a special API method.
Import file requirements
- Certificates must be uploaded to the System in CSV; file format
- Certificate identifiers which can be used during import:
- The unique number printed on the certificate (Number);
- A unique barcode printed on the certificate (Barcode);
- Information embedded in the magnetic strip (Strip1, Strip2, Strip3);
- QR code printed on the certificate (QRcode).
- Possible states of imported money certificates:
- Prepared;
- Activated;
- Redeemed;
- Canceled;
- Redunded;
- Expired.
- The certificate balance (Amount), i.e. the amount in the certificate account, can be anything in the range of 0...100000000, including fractional (rubles and kopecks).
- The dates of activation (ActivationDate) and expiration (ExpirationDate) must be transmitted in the format YYYYY-MM-DD.
Example of an imported CSV file with money certificates:
7770002105606220001;7770002105606220001;7770002105606227847=26067229740000001;Activated;555;2022-11-25;2023-11-25
7770002105606220002;7770002105606220002;7770002105606227848=26067229740000002;Activated;345;2022-11-25;2023-11-25
7770002105606220003;7770002105606220003;7770002105606227849=26067229740000003;Activated;100;2022-10-25;2024-10-25
7770002105606220004;7770002105606220004;7770002105606227850=26067229740000004;Prepared;1000;2022-10-25;2024-10-25
Updating information about certificates
If changes have been made after importing money certificates, e.g. certificates have been sold, redeemed, cancelled, etc., it is necessary to upload a CSV file with updated data on the certificates whose status has been changed.
For example, the certificate with number 7770002105606220002 has been redeemed, so you must transmit the updated status (Redeemed) and the redemption date - RedemptionDate in the format YYYY-MM-DD. The certificate with the number 7770002105606220004 has been activated, its status has changed from Activated to Activated, the data about the change should also be transmitted in the import file. An example CSV file for these certificates is shown below:
7770002105606220002;7770002105606220002;7770002105606227848=26067229740000002;Redeemed;0;2022-11-25;2023-11-25;2022-12-12
7770002105606220004;7770002105606220004;7770002105606227850=26067229740000004;Activated;1000;2022-10-25;2024-10-25