POST api/Link

Use this method to authorize a link between a user and your service, allowing your service to post data on their behalf.

Request Information

URI Parameters

None.

Body Parameters

The Authorization Code provided by the user and the App Id supplied by your service.

Link
NameDescriptionTypeAdditional information
AuthorizationCode

The Authorization Code the user supplies to the provider authorizing them to post transactional information on their behalf. The user generates this code from the main website, not through the API.

globally unique identifier

Required

AppId

The App Id supplied by the provider. This must match an app that belongs to the account that is used to get an authorization token.

globally unique identifier

Required

Request Formats

application/json, text/json

Sample:
{
  "authorizationCode": "00a3d075-557c-4c0b-95e5-dbda6fc6b75c",
  "appId": "80182cf4-9b82-42f6-bbee-d6804cc8936f"
}

application/xml, text/xml

Sample:
<Link xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TScunts.Models.API">
  <AppId>80182cf4-9b82-42f6-bbee-d6804cc8936f</AppId>
  <AuthorizationCode>00a3d075-557c-4c0b-95e5-dbda6fc6b75c</AuthorizationCode>
</Link>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

The link created, if successful

Link
NameDescriptionTypeAdditional information
AuthorizationCode

The Authorization Code the user supplies to the provider authorizing them to post transactional information on their behalf. The user generates this code from the main website, not through the API.

globally unique identifier

Required

AppId

The App Id supplied by the provider. This must match an app that belongs to the account that is used to get an authorization token.

globally unique identifier

Required

Response Formats

application/json, text/json

Sample:
{
  "authorizationCode": "ad9c935f-f9e7-4dff-a9ea-8b5b052dd918",
  "appId": "b4ce2924-0602-4816-99cc-73d6f78ab9ba"
}

application/xml, text/xml

Sample:
<Link xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TScunts.Models.API">
  <AppId>b4ce2924-0602-4816-99cc-73d6f78ab9ba</AppId>
  <AuthorizationCode>ad9c935f-f9e7-4dff-a9ea-8b5b052dd918</AuthorizationCode>
</Link>