/
1002: Get account data

1002: Get account data

Retrieves data for an entity/account. The returned data will always contain the Rubiq entity ID and optionally a key with an external type. In addition, the payload contains the data specified in the contract between the calling application and the Rubiq API.


Endpoint ID:

1002
Method:GET
URL:

/entity/id/{entity-id}/data/{contract-id}

/entity/ext-key/{ext-key}/{ext-type}/data/{contract-id}


entity-id

Rubiq entity ID that uniquely identifies an account to return data for


ext-key

External key that uniquely identifies an account to return data for


ext-type

Type of external key


contract-id

Identifies the set of contract fields to return. If omitted, the default contract for the particular app is used.

Request body:None

Response body:

JSON data with properties corresponding to the fields in the specified contract. The result will always hold the Rubiq entity ID and if the app making the request is configured to use a specific external key, this key is also included in the response.

Please note that fields with null value is not returned by this end point.

Example 1 - Contract specifies full name and email:
{
	"id": 123456,
	"name": "John Doe",
	"email": "mailbox@mailserver.com"
}
Status codes:200

Account found with success


404

Account was not found

The following sub codes may be returned:

404.1User not found
404.2External user could not be found

Related content

1006: Enumerate children
1006: Enumerate children
More like this
1011: Search
1011: Search
More like this
1003: Update account data
1003: Update account data
More like this
1100: Create lead
1100: Create lead
Read with this
1001: Create account
1001: Create account
More like this
Endpoints
Endpoints
Read with this