Generate Invite Code
Authorizations
AuthenticationstringRequired
Authentication is token based. You can issue a token for your API request from the 'API' section of the settings menu. The token MUST be sent in a Authorization header with each request.
Example of authenticated request
$ curl -X GET -H "Authorization: Token <your token>" "https://api.dashdoc.eu/api/v4/"
Responses
200
Invite code generated successfully
application/json
pknumberOptionalExample:
Dashdoc's internal id.
23498phone_numberstringOptional
invite_codestringOptional
Invite code trucker needs to connect to mobile app. The code is generated by Dashdoc.
app_versionnumberOptionalExample:
Ignore. Dashdoc technical data.
180readable_app_versionstringOptionalExample:
Ignore. Dashdoc technical data.
2.7.7platformstringOptionalExample:
Ignore. Dashdoc technical data.
iosremote_idstringOptional
The ID of the trucker in your system. It has to be unique among all your truckers.
is_rentedbooleanOptional
phone_number_personalstringOptionalExample:
0601020304addressstringOptionalExample:
A random address 4 square DashdocpostcodestringOptionalExample:
44000citystringOptionalExample:
Nantescountry_codestringOptionalExample:
Only the 2-character codification is accepted (ISO 3166-1 alpha-2)
FRdriving_license_numberstringOptionalExample:
99 999 999driving_license_deadlinestring · date-timeOptionalExample:
2020-12-22T15:31:39.26167Zadr_license_deadlinestring · date-timeOptionalExample:
2020-12-22T15:31:39.26167Zcarrist_license_deadlinestring · date-timeOptionalExample:
2020-12-22T15:31:39.26167Zoccupational_health_visit_deadlinestring · date-timeOptionalExample:
2020-12-22T15:31:39.26167Znew_app_update_availablebooleanOptional
Ignore. Dashdoc technical data.
eventsobject[]Optional
Ignore. Dashdoc technical data.
post
/manager-truckers/{pk}/generate-invite-code/200
Invite code generated successfully
Last updated
Was this helpful?