Loading...

Account Creation


You can get your Trial account by registering here . If you want additional child or sub accounts, follow the steps below.


Step 1: Create a new subaccount

Several TrueDialog partners require the creation and management of subaccounts to better organize their contacts. Send an HTTP/1.1 POST to the account endpoint:

POST   https://api.3seventy.com/api/v2.1/account

POST Body:

{
  "ParentId": "{ParentAccountId}",
  "Name": "My First Merchant"
}

NOTE To send an XML object instead, set the Accept & Content-Type header to application/xml. A "415 Unsupported Media Type" error will be returned ifContent-Type is to an unrecognized type.

By default, all accounts are created with a status of 0 (zero) to indicate their active status.

To add a subaccount to a subaccount, pass in the AccountId of the desired parent account in the ParentId parameter. By default, the ParentId is set to the AccountId of the authenticated user.

NOTE Hierarchy may be used to create an account structure and go several layers deep.

Response:

201 CREATED
Content-Type: application/json
{
  "Id": "{AccountId}",
  "ParentId": "{ParentId}",
  "Name": "My First Merchant",
  "Status": 0,
  "AllowCallback": false,
  "CallbackToken": null
} 

Create a subaccount with curl

curl -v --user {apiKey}:{Secret}  "https://api.3seventy.com/api/v2.1/account" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"ParentId": "{ParentAccountId}","Name": "My First Merchant"}' 

Step 2: Verify new subaccount

To verify that the subaccount was created in Step 2, perform a HTTP/1.1 GET operation on the new resouce:

GET   https://api.3seventy.com/api/v2.1/account/{NewAccountId}

Verify the subaccount with curl

curl -v --user {apiKey}:{Secret} "https://api.3seventy.com/api/v2.1/account/{NewAccountId}" \
-H "Content-Type: application/json" \
-H "Accept: application/json"