Register for Machine Translation package as new user

How to register a new customer account for the Machine Translation feature

Sandbox endpoint 

https://api.platform.sandbox.easytranslate.com/api/v1/oauth/registration/customer/translate-yourself

To register a new customer account for the Machine Translation feature, you need to send a POST request. 

In your request's header, you need to specify that json should be accepted. To do so, add "Accept" as a key and "application/json" as its value. You also need to specify the content-type, add "Content-Type" as a key and "application/json" as its value. 

Finally, you need to pass the following data in the body of your request: 

{
"data": {
"type": "customer",
"attributes": {
"email": "maisha-email@example.com",
"password": "password",
"password_confirmation": "password",
"first_name": "maishaa",
"last_name": "maishaa",
"company_name": "maishaa",
"phone": "+45100456356",
"invoice_language": "en",
"timezone": "Europe/Copenhagen",
"consents": {
"terms": true,
"ai": false,
"marketing": false
}
}
}
}
    • type: this field should not be modified, the value should be "customer".
    • email: Add the email you wish to use for the creation of your account.
    • password: Add the password you wish to use to connect to your account.'
    • password_confirmation: Confirm your password by typing it again.
    • first_name: Add your first name.
    • last_name: Add your last name.
    • company_name: Add the name of your company.
    • phone: Add a phone number to your account.
    • invoice_language: the language your invoice should be in
    • Timezone: Your timezone
    • terms: You need to agree to the EasyTranslate terms and conditions to be able to proceed and create projects for translation. The "terms" key value should therefore always be "true". 
    • ai: If you wish to take part in the EasyTranslate AI-Learning Program and benefit from smarter, faster, data-driven analyses of your work, the value of this key should be "true" instead of "false".
    • marketing: If you consent to receive marketing content via e-mails from EasyTranslate A/S regarding product categories, this value should be "true" otherwise, it should be "false". 

 

Request example

curl --location --request POST 'https://api.platform.sandbox.easytranslate.com/api/v1/oauth/registration/customer/translate-yourself' \
--header 'Accept: application/json' \
--header 'Content-Type: application/json' \
--data-raw '{
"data": {
"type": "customer",
"attributes": {
"email": "maisha-email@example.com",
"password": "password",
"password_confirmation": "password",
"first_name": "maishaa",
"last_name": "maishaa",
"company_name": "maishaa",
"phone": "+45100456356",
"invoice_language": "en",
"timezone": "Europe/Copenhagen",
"consents": {
"terms": true,
"ai": false,
"marketing": false
}
}
}
}'

 

Response example

{
"data": {
"type": "customer",
"id": "",
"attributes": {
"email": "maisha-email@example.com",
"first_name": "maishaa",
"last_name": "maishaa",
"phone": "+45100456356",
"timezone": "Europe/Copenhagen",
"avatar": null,
"created_at": "2021-06-07T08:35:15.000000Z",
"updated_at": "2021-06-07T08:35:15.000000Z"
},
"relationships": {
"account": {
"id": "",
"type": "account"
}
}
},
"included": [
{
"type": "account",
"id": "",
"attributes": {
"company_name": "maishaa",
"company_email": "maisha-email@example.com",
"phone": "+45100456356",
"team_identifier": "maishaa",
"is_parent": true,
"invoice_language": "en",
"receipt_email": "maisha-email@example.com",
"alerts": {
"conversations": []
},
"subscription": {
"plan_identifier": "translate_yourself",
"plan_name": "Translate Yourself",
"status": "active",
"started_at": "2021-06-07T08:35:20.000000Z",
"ends_at": "2021-06-08T08:35:20.000000Z",
"trial_ends_at": "2021-06-07T08:35:20.000000Z",
"is_active": true
},
"created_at": "2021-06-07T08:35:14.000000Z",
"updated_at": "2021-06-07T08:35:14.000000Z"
},
"relationships": []
}
],
"meta": {
"copyright": "Copyright 2021 EasyTranslate A/S",
"environment": "local"
}
}