Go to swagger of desired environment:
Brave: https://product-recommendation-manager.apps.brave.safibank.online/swagger/views/swagger-ui/
Stage: https://product-recommendation-manager.apps.stage.safibank.online/swagger/views/swagger-ui/
This is BE service so every timestamps are in UTC timezone.
Uploading and activating new product consist of only 2 steps (1. Upload, 3. Activate Version) rest of the steps mentioned here are just optional. The process it the same for loan and overdraft.
1. Upload
Choose product type LOAN/OVERDRAFT
Choose file (CSV product table)
Hit Execute
Check the response
If upload was sucessfull you will get product version needed later (84b55536-e3f9-419c-a9ca-3269cd67406e
in this case)
By this step the new product was uploaded but not activated.
Errors
400 means there are some validation errors
You need to repair the errors in order to successfully upload the file.
There are 2 types of validation errors:
field validations - these are produced in batches (you can see them all at once)
cross validations - these are done after field validations and the validation is stopped when the first error occurs. (you can see only first cross validation error)
2. Check Uploaded Data (Optional)
Choose product type
Insert product version (from previous step)
Hit Execute
Look at the data in the response
Response example:
3. Activate Version
Choose product type
Insert product version
Hit Execute
Check the response
If response was sucessful the desired version has been activated. (We can verify it in next step.)
4. Check Active Version (Optional)
This endpoint can tell us which product version was active at any moment in the past. But we are usually asking which product is active now.
Choose product type
Insert at timestamp (or leave it empty if you are asking for currently active product version)
Hit Execute
Check the response (you can see at which moment the product was activated)
Browse uploaded versions (Optional)
If you want to active version which was uploaded, but you lost it’s product version ID. You can find it’s by using this endpoint.
Example response:
{ "items": [ { "productVersion": "84b55536-e3f9-419c-a9ca-3269cd67406e", "createdAt": "2022-11-28T12:01:19.439Z", "activatedAt": "2022-11-28T12:20:35.431Z" }, { "productVersion": "bcec5062-1d77-4e64-9121-746179bcc263", "createdAt": "2022-11-28T10:26:41.987Z", "activatedAt": null }, { "productVersion": "af25427c-a350-49f2-a109-6128e08e1937", "createdAt": "2022-11-25T14:54:18.446Z", "activatedAt": null }, { "productVersion": "8958ebb7-d9d1-40a2-851c-bd378178c3fd", "createdAt": "2022-11-01T13:57:03.564Z", "activatedAt": null } ] }
Attachments:
image-20221128-120547.png (image/png)
image-20221128-121256.png (image/png)
image-20221128-121844.png (image/png)
image-20221128-122354.png (image/png)
image-20221128-122812.png (image/png)
image-20221128-123521.png (image/png)
image-20221128-124440.png (image/png)