Skip to content

Invite User

Request

Security
key
Bodyapplication/json
first_namestring, <= 256 charactersrequired
Example:"John"
last_namestring, <= 256 charactersrequired
Example:"Doe"
emailstring, (email), <= 50 charactersrequired

Case-insensitive. Must not be used by another invitation or registered user

Example:"jhondoe@gmail.com"
phonestring or null, <= 128 characters

Required for positions 1 (Driver) and 17 (Manager / Driver). Must not be used by another invitation or member. Validated against the merchant's countries

Example:"+61400000000"
positioninteger

32 Admin Manager, 16 Manager, 8 Group manager, 4 Sub brand manager, 2 Observer, 1 Driver, 17 Manager / Driver

Default:1
Enum:3216842117
Example:4
microsoft_tenant_idstring or null, <= 36 characters

Required for all positions except 1 (Driver)

Example:"72f988bf-86f1-41af-91ab-2d7cd011db47"
microsoft_object_idstring or null, <= 36 characters

Required for all positions except 1 (Driver)

Example:"4f1c2a9e-3b7d-4e8a-9c21-6d5e8f0a1b23"
merchantinteger

Required for a multi-merchant API key and must be one of the key's merchants. Ignored for a single-merchant API key, the key's merchant is used

Example:12
merchantsArray of integers

Required for position 8 (Group manager). Allowed for positions 16 (Manager) and 32 (Admin Manager), creates a Bonded Manager. Must contain the invitation's merchant

Example:
[]
sub_brandinginteger

Required for position 4 (Sub brand manager) and allowed only for it. Must belong to the invitation's merchant

Example:5
sub_brandingsArray of integers

Allowed only for position 8 (Group manager). Each sub-brand must belong to one of merchants

Example:
[]
curl -i -X POST \
  'https://developer.radaro.com.au/_mock/split-external-api/api/webhooks/invitations/?key=YOUR_API_KEY_HERE' \
  -H 'Content-Type: application/json' \
  -d '{
    "first_name": "John",
    "last_name": "Doe",
    "email": "jhondoe@gmail.com",
    "phone": "+61400000000",
    "position": 4,
    "microsoft_tenant_id": "72f988bf-86f1-41af-91ab-2d7cd011db47",
    "microsoft_object_id": "4f1c2a9e-3b7d-4e8a-9c21-6d5e8f0a1b23",
    "merchant": 12,
    "merchants": [],
    "sub_branding": 5,
    "sub_brandings": []
  }'

Responses

201

Bodyapplication/json
first_namestring, <= 256 charactersrequired
Example:"John"
last_namestring, <= 256 charactersrequired
Example:"Doe"
emailstring, (email), <= 50 charactersrequired

Case-insensitive. Must not be used by another invitation or registered user

Example:"jhondoe@gmail.com"
phonestring or null, <= 128 charactersrequired

Required for positions 1 (Driver) and 17 (Manager / Driver). Must not be used by another invitation or member. Validated against the merchant's countries

Example:"+61400000000"
positionintegerrequired

32 Admin Manager, 16 Manager, 8 Group manager, 4 Sub brand manager, 2 Observer, 1 Driver, 17 Manager / Driver

Default:1
Enum:3216842117
Example:4
microsoft_tenant_idstring or null, <= 36 charactersrequired

Required for all positions except 1 (Driver)

Example:"72f988bf-86f1-41af-91ab-2d7cd011db47"
microsoft_object_idstring or null, <= 36 charactersrequired

Required for all positions except 1 (Driver)

Example:"4f1c2a9e-3b7d-4e8a-9c21-6d5e8f0a1b23"
merchantintegerrequired

Required for a multi-merchant API key and must be one of the key's merchants. Ignored for a single-merchant API key, the key's merchant is used

Example:12
merchantsArray of integersrequired

Required for position 8 (Group manager). Allowed for positions 16 (Manager) and 32 (Admin Manager), creates a Bonded Manager. Must contain the invitation's merchant

Example:
[]
sub_brandingintegerrequired

Required for position 4 (Sub brand manager) and allowed only for it. Must belong to the invitation's merchant

Example:5
sub_brandingsArray of integersrequired

Allowed only for position 8 (Group manager). Each sub-brand must belong to one of merchants

Example:
[]
idintegerrequired
Example:101
invitedinteger or nullrequired

ID of the member created from the invitation, null until the invitation is accepted

Example:null
Response
{ "id": 1, "phone": "+61400000000", "email": "johndoe@gmail.com", "invited": null, "position": 1, "first_name": "John", "last_name": "Doe", "microsoft_tenant_id": null, "microsoft_object_id": null, "merchant": 2, "merchants": [], "sub_branding": null, "sub_brandings": [] }