Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

What's New in this Release?

...

Bug Fixes

Following Bugs have been fixed in this release:

...

Using API's one can manage the activities (partners, schemas , mapping etc) from the external applications. The API's provide the way to create, Update, delete activities without GUI.

 

List of API's

Partners API's

S. NoOperationMethodAPI EndpointEx. PayloadRemarks
1Create PartnerPOST/rest/company
Code Block
titleCreate Partner
collapsetrue
{
	"Company": {
		"name": "Test Name",
		"partnerNetworks": [{
			"id": 1
		}
		"primaryContact": "test@test.com",
		"phoneNumber": "7835802439",
		"address": "",
		"country": "",
		"status": 200,
		"enableSelfOnboard": false,
		"spokeCompany": false
	}
}

 

 

 
2Update PartnerPUT/rest/company/{partnerId}
Code Block
titleUpdate Partner
collapsetrue
{
	"Company": {
		"name": "Updated Name"
	}
}
 
3Delete PartnerDELETE/rest/company/{partnerId}EMPTY 
4Update Partner ParametersPUT/rest/company/{partnerId}
Code Block
titleUpdate Partner Parameters
collapsetrue
{
	"Company": {
		"partnerParameter": [{
			"id": "-0",
			"paramId": {
				"id": "11518430417328"
			},
			"value": "p1"
		},
		{
			"id": "-1",
			"paramId": {
				"id": "11518430417329"
			},
			"value": "c"
		}]
}
  • Passing Company.partnerParameter.Id as Negative value will create a new parameter for that partner.
4Grant All Templates Access to PartnerPOSTrest/templatepartnerlinkage
Code Block
titleGrant Access to Partner
collapsetrue
{
	"TemplatePartnerLinkage": {
		"partner": {
			"id": 11535091945351
		}
	}
}
 
5Revoke all templates Access to PartnerDELETErest/templatepartnerlinkage/{partnerId}

 

EMPTY

 
6Grant a Template Access to partnerPOSTrest/templatepartnerlinkage?isTemplate=true
Code Block
titleGrant access to particular template
collapsetrue
{
	"TemplatePartnerLinkage": {
		"partner": {
			"id": 11535091945351
		},
		"transactionTemplate": {
			"id": 11535091945352
		}
	}
}
  • Note to pass isTemplate query param for this endpoint
7Revoke template access from PartnerDELETErest/templatepartnerlinkage/{LinkageId}?isTemplate=trueEMPTY
  • Note to pass isTemplate query param for this endpoint
8Move Partner from One Network to another------
Code Block
titleChange Partner Network
collapsetrue
{
	"Company": {
		"partnerNetworks": [{
			"id": 1
		}
		]
	}
}
  • Use Update partner Endpoint
9Convert Internal Partner to ExternalPOSTrest/company/enableSelfOnbaord
Code Block
collapsetrue
{
"partnerId" : "11529580510902",
"firstName" : "Name",
"lastName" : "lastName",
"userId" : "testId",
"email" : "example@example.com",
"password" : "P@ssw0rd"
}
 
10Convert Internal Partner to External API 2POSTrest/users/import

Multipart Request

ContentType : multipart/form-data

form-data Part1 :

  • name : csvFile
  • value : csv file containing user information

form-data Part2:

  • name : isPartner
  • value : true

 

 

 

This api is asynchronous in nature and the user creation process runs in background.

 

You can check the status of the process by below endpoint

rest/users/checkthreadstatus?isPartner=true

if this endpoint return success that means the Partner is successfully converted to external

 

Transaction API's

S. NoOperationMethodAPI EndpointEx. Request PayloadRemarks
1Create TransactionPOST/rest/transaction
Code Block
titleCreate Transaction
collapsetrue
{
	"Transaction": {
		"entityName": "New Transaction",
		"description": "Transaction description",
		"templateId": "1111111111100"
	}
}
 
2Create Transaction with ParametersPOST/rest/transaction
Code Block
titleCreate Transaction with Parameters
collapsetrue
{
	"Transaction": {
		"entityName": "New Transaction",
		"description": "Transaction description",
		"templateId": "547658658658658",
		"variableInfo": "{\"param1\" : \"value1\",\"param2\":\"value2\"}"
	}
}
 
3Update TransactionPUT/rest/transaction/{transactionId}
Code Block
titleUpdate Transaction
collapsetrue
{
	"Transaction": {
		"description": "Updated Transaction description",
	}
}
 
4Update Transaction parametersPUT/rest/transaction/{transactionId}
Code Block
titleUpdate Transaction Parameters
collapsetrue
{
	"Transaction": {
		"variableInfo": "{\"param1\" : \"value1\",\"param2\":\"value2\"}"
	}
}
 
3DELETEDELETE/rest/transaction/{transactionId}EMPTY 

 

Schema and Mapping API's

S. NoOperationMethodAPI EndpointEx. PayloadRemarks
1Get All Schema and Mapping activities available to Partner GET /rest/activities/{partnerId} 

 By default this endpoint lists all the activities available to partner.

To retrieve specific activities pass the comma separated service name query parameter as below

?services=TextSchema,ExcelSchema

Valid Service Names are

  • TextSchema
  • ExcelSchema
  • AdvanceTextSchema
  • PositionalSchema
  • AdvancePositionalSchema
  • XMLSchema
  • JSONSchema
  • EDISchema
  • DataMapping

By default all the available fields of all activities are returned in response. To limit the number of fields and to get specific fields pass the "fields" query param and pass the comma separated field names as below

?fields=id,entityName


Note:

Only those activities will be returned in response to which the requesting user is authorized to view as per permission settings.

Admin will get all activities.

 

2Get All Schema and Mapping activities used by Partner in transactions of a particular TemplateGET /rest/activities/{partnerId}/{templateId} 

By default this endpoint lists all the activities used by partner for a particular template.

To retrieve specific activities pass the comma separated service name query parameter as below

?services=TextSchema,ExcelSchema (See above the list of valid service Names)

 

By default all the available fields of all activities are returned in response. To limit the number of fields and to get specific fields pass the "fields" query param and pass the comma separated field names as below

?fields=id,entityName


 

 

Known Issues with API's

  1. Issue while updating Partner Parameters
    1. Empty Partner parameters [ { }, { } ] create parameters with NULL param Id and Value
    2. Different Network Parameters can be associated to partner, to which Networks the partner does not belong.
    3. Passing Empty array( [ ]) of Partner parameters do not remove existing parameters.

 

Info
iconfalse
titleNotes
  • Numbers mentioned in the parens (ACE-1234) are for the internal reference, external users may avoid this information.
  • Click here to new features in Developer's Studio of Adeptia Connect.

...