This POST API allows pushing Approval details to SMART for further processing.
URL Format: https://<Instance>/smartBulkInterfaceAPI/api/contact/Approvaldetails
[   
   {
      "ContactCode": "string",
      "Key": "string",
      "currencyCode": "string",
      "authorityAmount": "decimal",
      "authorityAmountInBaseCurrency": "decimal",
      "startDate": "datetime",
      "endDate": "datetime",
      "IsActive": "boolean",
      "Additionalfields": 
      [         
         {
            "fieldName": "string",
            "fieldValue": "string"
         },         
         {
            "fieldName": "string",
            "fieldValue": "string"
         },         
         {
            "fieldName": "string",
            "fieldValue": "string"
         }
      ]
   }
]
{
   "statusCode": 202,
   "url": "string",
   "batchId": "string",
   "interval": 0,
   "interval Type": "string",
   "recived Count": 0
}
Success Scenario - Request
[   
   {
      "ContactCode": "CC-2020.004664",
      "Key": "12",
      "currencyCode": "RSD",
      "authorityAmount": 169.3456,
      "authorityAmountInBaseCurrency": 0,
      "startDate": null,
      "endDate": "4/24/2020",
      "IsActive": true,
      "Additionalfields": 
      [         
         {
            "fieldName": "CommodityCode",
            "fieldValue": "New record1"
         },         
         {
            "fieldName": "CommodityName",
            "fieldValue": "CCN2"
         },         
         {
            "fieldName": "CountryCode",
            "fieldValue": "all"
         }
      ]
   }
]
Success Scenario – Response
{
   "statusCode": 202,
   "url": "https://api-smartdev.gep.com/SmartBulkInterfaceAPI/api/BulkResult/GetBulkResult?batchId=b5ae83cd486344cca1da7fa171cfeeb0",
   "batchID": "b5ae83cd486344cca1da7fa171cfeeb0",
   "interval": 60,
   "interval Type": "Seconds",
   "receivedCount": 1000
}
Error Scenario – Request
[   
   {
      "ContactCode": "",
      "Key": "12",
      "currencyCode": "RSD",
      "authorityAmount": 169.3456,
      "authorityAmountInBaseCurrency": 0,
      "startDate": null,
      "endDate": "4/24/2020",
      "IsActive": true,
      "Additionalfields": 
      [         
         {
            "fieldName": "CommodityCode",
            "fieldValue": "New record1"
         },         
         {
            "fieldName": "CommodityName",
            "fieldValue": "CCN2"
         },         
         {
            "fieldName": "CountryCode",
            "fieldValue": "all"
         }
      ]
   }
]
Error Scenario – Response
{
   "status": "401",
   "errorDetails": 
   [      
      {
         "key": "",
         "description": "UnAuthorized Access to BulkInterfaces."
      }
   ],
   "successDetails": []
}
| 
			 AuthorityDetails  | 
		||||
| 
			 Property  | 
			
			 Required?  | 
			
			 Data type  | 
			
			 Description  | 
			
			 Validations / Exceptions  | 
		
| 
			 Key  | 
			
			 Yes  | 
			
			 String  | 
			
			 DelegationId of Authoritydetails  | 
			
			 Key is mandatory.  | 
		
| 
			 ContactCode  | 
			
			 Yes  | 
			
			 string  | 
			
			 ContactCode of Authoritydetails  | 
			
			 Contact Code is mandatory.  | 
		
| 
			 Currency Code  | 
			
			 Yes  | 
			
			 string  | 
			
			 CurrencyCode of Authoritydetails  | 
			
			 CurrencyCode is mandatory.  | 
		
| 
			 AuthorityAmount  | 
			
			 Yes  | 
			
			 Decimal  | 
			
			 AuthorityAmount of Authoritydetails  | 
			
			 AuthorityAmount is mandatory.  | 
		
| 
			 AuthorityAmountInBaseCurrency  | 
			
			 No  | 
			
			 Decimal  | 
			
			 AuthorityAmountInBaseCurrency of AuthorityDetails  | 
			|
| 
			 StartDate  | 
			
			 Yes  | 
			
			 Datetime  | 
			
			 StartDate of AuthorityDetails  | 
			
			 AuthorityAmount is mandatory.  | 
		
| 
			 EndDate  | 
			
			 No  | 
			
			 Datetime  | 
			
			 EndDate of Authoritydetails  | 
			|
| 
			 IsActive  | 
			
			 No  | 
			
			 Boolean  | 
			
			 IsActive of AuthorityDetails  | 
			|
| 
			 AdditionalFields  | 
			
			 Yes  | 
			
			 List of FieldDetails  | 
			||
| 
			 Additional Fields  | 
		||||
| 
			 Property  | 
			
			 Required?  | 
			
			 Data type  | 
			
			 Description  | 
			
			 Validations / Exceptions  | 
		
| 
			 FieldName  | 
			
			 Yes  | 
			
			 String  | 
			
			 Field Name of Additional Fields  | 
			
			 Mandatory or not based on Mapping Table.  | 
		
| 
			 FieldValue  | 
			
			 Yes  | 
			
			 String  | 
			
			 If sourceType is Org entity, then FieldName is Entity Type  | 
			
			 Mandatory or not based on Mapping Table.  |