The Accounts API allows you register users and to access user account information. You can use it to retrieve details such as the user's e-mail address or the account's block status. You can also use it to block, and in some cases unblock, user accounts.
Accounts (1.0.0)
Request
Register a new user account. Each user account must be created with at least one of the following: user's email address or user_ID from an external payment provider (e.g. Steam or Oculus).
When a value for one of the external_platformsis specified, a special Pay on Behalf of (POBO) payment method will be created for the user, which can be used in subsequent transactions. If provided, full name and address details will be associated with the user's POBO payment method. When providing PII, state_province and country_iso must be sent together in the same request. All other fields can be sent separately. For more information about this type of interaction, refer to External Payment Platforms.
| Successful completion triggers this notification |
|---|
Account resource
The user's email information. If no external_platforms value is assigned, this property requires a valid email address. If an external_platforms property is assigned, this property must not be present.
The user's email address that's attached to the account. This value must be a valid email address. Tilia uses this address to contact the user about their account. You must notify Tilia if the user's email address changes.
The full name of the person associated with the payment method.
Address line 1 of the billing address (e.g., street, P.O. Box, or company name).
Address line 2 of the billing address (e.g., unit, apartment, suite, or building).
- Mock serverhttps://docs.tilia.io/_mock/openapi/prod/accounts/openapi/register
- Production Environmenthttps://accounts.tilia-inc.com/register
- Staging Environmenthttps://accounts.staging.tilia-inc.com/register
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.tilia.io/_mock/openapi/prod/accounts/openapi/register \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"username": "string",
"email": {
"address": "user@example.com",
"requires_verification": true
},
"external_platforms": {
"steam": {
"user_id": "<steam_id>"
},
"oculus": {
"user_id": "<oculus_id>"
},
"apple": {
"user_id": "<apple_id>"
},
"google": {
"user_id": "<google_id>"
},
"microsoft": {
"user_id": "<microsoft_id>"
},
"nintendo": {
"user_id": "<nintendo_id>"
},
"sony": {
"user_id": "<sony_id>"
}
},
"full_name": "Jessica Pley",
"street_address_1": "1 Alden Way",
"street_address_2": "BLDG 3",
"street_address_3": "APT 6",
"city": "Atlanta",
"state_province": "GA",
"country_iso": "US",
"zip_postal_code": "30301"
}'Account profile was registered successfully.
An array of short, human-readable messages describing the failure. If the request was successful, this array will be empty.
An array of failure reason codes. If the request was successful, this array will be empty.
{ "status": "Success", "message": null, "codes": null, "payload": { "account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b", "email": { … }, "external_platforms": { … }, "username": "string", "full_name": "Jessica Pley", "street_address_1": "1 Alden Way", "street_address_2": "BLDG 3", "street_address_3": "APT 6", "city": "Atlanta", "state_province": "GA", "country_iso": "US", "zip_postal_code": "30301" } }
- Mock serverhttps://docs.tilia.io/_mock/openapi/prod/accounts/openapi/v2/merge-accounts
- Production Environmenthttps://accounts.tilia-inc.com/v2/merge-accounts
- Staging Environmenthttps://accounts.staging.tilia-inc.com/v2/merge-accounts
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.tilia.io/_mock/openapi/prod/accounts/openapi/v2/merge-accounts \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"source_account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b",
"destination_account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b"
}'{ "status": "Success", "message": null, "codes": null }
Request
Prevents an account from performing the specified capability.
| Successful completion triggers this notification |
|---|
For more information about event notifications, visit Webhooks.
Block account request
Prevented account capability
Possible values:
login: Prevents account from accessing the platform. This capability includes all other block capabilities
Reason for issuing the block
Possible values:
account_close
- Mock serverhttps://docs.tilia.io/_mock/openapi/prod/accounts/openapi/v2/block
- Production Environmenthttps://accounts.tilia-inc.com/v2/block
- Staging Environmenthttps://accounts.staging.tilia-inc.com/v2/block
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.tilia.io/_mock/openapi/prod/accounts/openapi/v2/block \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b",
"block_capability": "login",
"block_reason": "account_close",
"note": "Example note"
}'{ "account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b", "blocks": { "<block_capability>": { … } } }
Request
Permit a previously blocked account capability.
| Successful completion triggers this notification |
|---|
For more information about event notifications, visit Webhooks.
- Mock serverhttps://docs.tilia.io/_mock/openapi/prod/accounts/openapi/v2/block/{account_id}/capability/{block_capability}
- Production Environmenthttps://accounts.tilia-inc.com/v2/block/{account_id}/capability/{block_capability}
- Staging Environmenthttps://accounts.staging.tilia-inc.com/v2/block/{account_id}/capability/{block_capability}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://docs.tilia.io/_mock/openapi/prod/accounts/openapi/v2/block/acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b/capability/login \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b", "blocks": { "<block_capability>": { … } } }
- Mock serverhttps://docs.tilia.io/_mock/openapi/prod/accounts/openapi/v2/block/{account_id}
- Production Environmenthttps://accounts.tilia-inc.com/v2/block/{account_id}
- Staging Environmenthttps://accounts.staging.tilia-inc.com/v2/block/{account_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.tilia.io/_mock/openapi/prod/accounts/openapi/v2/block/acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b", "blocks": { "<block_capability>": { … } } }
- Mock serverhttps://docs.tilia.io/_mock/openapi/prod/accounts/openapi/v1/user-info/{account_id}
- Production Environmenthttps://accounts.tilia-inc.com/v1/user-info/{account_id}
- Staging Environmenthttps://accounts.staging.tilia-inc.com/v1/user-info/{account_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.tilia.io/_mock/openapi/prod/accounts/openapi/v1/user-info/acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Account profile was retrieved successfully.
An array of short, human-readable messages describing the failure. If the request was successful, this array will be empty.
An array of failure reason codes. If the request was successful, this array will be empty.
{ "status": "Success", "message": null, "codes": null, "payload": { "account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b", "username": "david_gaimer@mail.io", "email": "david_gaimer@mail.io", "is_blocked": false, "blocked_capabilities": {}, "integrator": "acme", "tags": [ … ], "created": "2019-08-24T14:15:22Z" } }
- Mock serverhttps://docs.tilia.io/_mock/openapi/prod/accounts/openapi/v1/user-info/search
- Production Environmenthttps://accounts.tilia-inc.com/v1/user-info/search
- Staging Environmenthttps://accounts.staging.tilia-inc.com/v1/user-info/search
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://docs.tilia.io/_mock/openapi/prod/accounts/openapi/v1/user-info/search?username=string' \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'Account profile was retrieved successfully.
An array of short, human-readable messages describing the failure. If the request was successful, this array will be empty.
An array of failure reason codes. If the request was successful, this array will be empty.
{ "status": "Success", "message": null, "codes": null, "payload": { "account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b", "username": "david_gaimer@mail.io", "email": "david_gaimer@mail.io", "is_blocked": false, "blocked_capabilities": {}, "integrator": "acme", "tags": [ … ], "created": "2019-08-24T14:15:22Z" } }
- Mock serverhttps://docs.tilia.io/_mock/openapi/prod/accounts/openapi/user-info/{account_id}/tos/tilia
- Production Environmenthttps://accounts.tilia-inc.com/user-info/{account_id}/tos/tilia
- Staging Environmenthttps://accounts.staging.tilia-inc.com/user-info/{account_id}/tos/tilia
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.tilia.io/_mock/openapi/prod/accounts/openapi/user-info/acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b/tos/tilia \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "signed_tos": true }
- Mock serverhttps://docs.tilia.io/_mock/openapi/prod/accounts/openapi/user-info/{account_id}/tos/tilia
- Production Environmenthttps://accounts.tilia-inc.com/user-info/{account_id}/tos/tilia
- Staging Environmenthttps://accounts.staging.tilia-inc.com/user-info/{account_id}/tos/tilia
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://docs.tilia.io/_mock/openapi/prod/accounts/openapi/user-info/acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b/tos/tilia \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "status": "Success", "message": [], "codes": [], "payload": null }
- Mock serverhttps://docs.tilia.io/_mock/openapi/prod/accounts/openapi/user-info/{account_id}/tos/tilia
- Production Environmenthttps://accounts.tilia-inc.com/user-info/{account_id}/tos/tilia
- Staging Environmenthttps://accounts.staging.tilia-inc.com/user-info/{account_id}/tos/tilia
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X DELETE \
https://docs.tilia.io/_mock/openapi/prod/accounts/openapi/user-info/acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b/tos/tilia \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "status": "Success", "message": [], "codes": [], "payload": null }
- Mock serverhttps://docs.tilia.io/_mock/openapi/prod/accounts/openapi/v1/tos
- Production Environmenthttps://accounts.tilia-inc.com/v1/tos
- Staging Environmenthttps://accounts.staging.tilia-inc.com/v1/tos
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
https://docs.tilia.io/_mock/openapi/prod/accounts/openapi/v1/tos \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>'{ "tos_created": "2019-08-01", "tos_content": "These Terms of Service (Terms) are a legal agreement between you and Tilia Inc." }
Request
Update account information. This API allows for updating the contact details for an account, as well as adding an external payment platform User ID (e.g. Steam or Oculus).
When a value for external payment platform is specified, a special 'Pay on Behalf of' (POBO) payment method will be created for the user, which can be used in subsequent transactions. If provided, full name and address details will be associated with the user's POBO payment method. When providing PII state_provice and country_iso must be sent in the request together; all other fields can be sent on their own. For more information on this type of interaction, refer to External Payment Platforms.
Account resource
Address line 1 of the billing address (e.g., street, P.O. Box, or company name).
Address line 2 of the billing address (e.g., unit, apartment, suite, or building).
- Mock serverhttps://docs.tilia.io/_mock/openapi/prod/accounts/openapi/user-info/{account_id}
- Production Environmenthttps://accounts.tilia-inc.com/user-info/{account_id}
- Staging Environmenthttps://accounts.staging.tilia-inc.com/user-info/{account_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PUT \
https://docs.tilia.io/_mock/openapi/prod/accounts/openapi/user-info/acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b \
-H 'Authorization: Bearer <YOUR_TOKEN_HERE>' \
-H 'Content-Type: application/json' \
-d '{
"email": {
"address": "user@example.com",
"requires_verification": true
},
"external_platforms": {
"steam": {
"user_id": "<steam_id>"
},
"oculus": {
"user_id": "<oculus_id>"
},
"apple": {
"user_id": "<apple_id>"
},
"google": {
"user_id": "<google_id>"
},
"microsoft": {
"user_id": "<microsoft_id>"
},
"nintendo": {
"user_id": "<nintendo_id>"
},
"sony": {
"user_id": "<sony_id>"
}
},
"full_name": "Jessica Pley",
"street_address_1": "1 Alden Way",
"street_address_2": "BLDG 13",
"street_address_3": "APT 6",
"city": "Atlanta",
"state_province": "GA",
"country_iso": "US",
"zip_postal_code": "30301"
}'Account profile was updated successfully.
An array of short, human-readable messages describing the failure. If the request was successful, this array will be empty.
An array of failure reason codes. If the request was successful, this array will be empty.
{ "status": "Success", "message": null, "codes": null, "payload": { "account_id": "acct_2TiDFXHVFMlAuyy7ovvz3YPKv9b", "email": { … }, "external_platforms": { … }, "full_name": "Jessica Pley", "street_address_1": "1 Alden Way", "street_address_2": "BLDG 13", "street_address_3": "APT 6", "city": "Atlanta", "state_province": "GA", "country_iso": "US", "zip_postal_code": "30301" } }