post https://example.com/programs//hosted/ux
This API calls the configuration api from PCI widget to create and save a code, return the corresponding url and code according to the activity.
Business Logic
Check Activity -- This field should be mandatory,the matching relationship is saved in the configuration file,will check whether the corresponding path can be found.
Find productCode -- Find the productCode according to the programcode and AccountIdentifier.
Call PciWidget configuration api --Create and save code use redis or memoryCache,return the corresponding url and code according to the activity.
Http Status Codes
Http Code | Code | SubCode | Message | Description |
200 | 0 | 0 | success | Successful response |
400 | 600 | 0 | Activity is invalid | Activity cannot find the corresponding path |
400 | 600 | 10013 | Activity Data is invalid | Activity Data is invalid |
400 | 9003 | 0 | FX internal error. | FX internal error. |
400 | 9003 | 10013 | Internal error. | product code not found error |
400 | 9002 | 0 | time out | APIM timeout |
400 | 9001 | 0 | invalid subscription key | APIM call invocation failed due to invalid Subscription_Key |
400 | 350 | 0 | AccountIdentifier is not a guid | AccountIdentifier is invalid. |
400 | 101 | 0 | Activity is required. | Activity is required. |
400 | 101 | 0 | SuccessUrl is required. | SuccessUrl is required. |
400 | 101 | 0 | ErrorUrl is required. | ErrorUrl is required. |