N-Ways
Developer docsRider app

Rider app

Invite riders to N-Ways Business, the companies' phone app (background position sharing, jobs, proof of delivery).

On this page
Note:

Send your key as key=YOUR_API_KEY on the address, or in the X-NWays-Api-Key header. API keys

Base address: https://nways.ng/maps/v1/fleet

The rider's invitations to N-Ways Business (never their codes), newest first

GET https://nways.ng/maps/v1/fleet/drivers/{id}/invites

Parameters

NameInTypeDescription
idpathstringRequired.
cURL
curl "https://nways.ng/maps/v1/fleet/drivers/string/invites" \
  -H "X-NWays-Api-Key: YOUR_API_KEY"
JavaScript
const res = await fetch('https://nways.ng/maps/v1/fleet/drivers/string/invites', {
  headers: { 'X-NWays-Api-Key': process.env.NWAYS_API_KEY },
})
const data = await res.json()
Python
import os
import requests

res = requests.get(
    "https://nways.ng/maps/v1/fleet/drivers/string/invites",
    headers={"X-NWays-Api-Key": os.environ["NWAYS_API_KEY"]},
    timeout=10,
)
data = res.json()

Response

Invitations

FieldTypeDescription
invitesRiderInvite[]Required.
invites[].idstringRequired.
invites[].driverIdstringRequired.
invites[].codestringOnly when made.
invites[].urlstring (uri)Only when made: https://nways.ng/r/<code>.
invites[].createdBystringRequired.
invites[].createdAtstring (date-time)Required.
invites[].expiresAtstring (date-time)Required.
invites[].usedAtstring (date-time) | nullRequired.
invites[].revokedAtstring (date-time) | nullRequired.
invites[].activebooleanRequired.
200 OK
{
  "invites": [
    {
      "id": "string",
      "driverId": "string",
      "code": "string",
      "url": "string",
      "createdBy": "string",
      "createdAt": "2026-10-15T09:00:00+01:00",
      "expiresAt": "2026-10-15T09:00:00+01:00",
      "usedAt": "2026-10-15T09:00:00+01:00",
      "revokedAt": "2026-10-15T09:00:00+01:00",
      "active": true
    }
  ]
}

Errors

  • default Error

Invite the rider to N-Ways Business

POST https://nways.ng/maps/v1/fleet/drivers/{id}/invites

The answer's code (8 characters, shown as XXXX-XXXX) and url (https://nways.ng/r/…) are shown once: send them to the rider. On a phone with N-Ways Business the link opens the app; otherwise the rider installs it, signs in with their N-Ways account and types the code. Joining binds the rider's account to this driver: the app then shares the phone's position in the background while the rider is on duty (for the vehicle whose driverId is this driver), shows that vehicle's tasks and marks them picked up, delivered or failed with photo or signature proof. A new invitation replaces the rider's earlier ones; each works once.

Parameters

NameInTypeDescription
idpathstringRequired.

Request body

FieldTypeDescription
daysintegerHow long the code works. Default: 7. ≥ 1, ≤ 30.
cURL
curl -X POST "https://nways.ng/maps/v1/fleet/drivers/string/invites" \
  -H "X-NWays-Api-Key: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"days":7}'
JavaScript
const res = await fetch('https://nways.ng/maps/v1/fleet/drivers/string/invites', {
  method: 'POST',
  headers: { 'X-NWays-Api-Key': process.env.NWAYS_API_KEY, 'Content-Type': 'application/json' },
  body: JSON.stringify({
    "days": 7
  }),
})
const data = await res.json()
Python
import os
import requests

res = requests.post(
    "https://nways.ng/maps/v1/fleet/drivers/string/invites",
    headers={"X-NWays-Api-Key": os.environ["NWAYS_API_KEY"]},
    json={"days": 7},
    timeout=10,
)
data = res.json()

Response

The invitation with its code and url

FieldTypeDescription
idstringRequired.
driverIdstringRequired.
codestringOnly when made.
urlstring (uri)Only when made: https://nways.ng/r/<code>.
createdBystringRequired.
createdAtstring (date-time)Required.
expiresAtstring (date-time)Required.
usedAtstring (date-time) | nullRequired.
revokedAtstring (date-time) | nullRequired.
activebooleanRequired.
201 OK
{
  "id": "string",
  "driverId": "string",
  "code": "string",
  "url": "string",
  "createdBy": "string",
  "createdAt": "2026-10-15T09:00:00+01:00",
  "expiresAt": "2026-10-15T09:00:00+01:00",
  "usedAt": "2026-10-15T09:00:00+01:00",
  "revokedAt": "2026-10-15T09:00:00+01:00",
  "active": true
}

Errors

  • default Error

Withdraw an invitation (its code stops working)

DELETE https://nways.ng/maps/v1/fleet/invites/{inviteId}

Parameters

NameInTypeDescription
inviteIdpathstringRequired.
cURL
curl -X DELETE "https://nways.ng/maps/v1/fleet/invites/string" \
  -H "X-NWays-Api-Key: YOUR_API_KEY"
JavaScript
const res = await fetch('https://nways.ng/maps/v1/fleet/invites/string', {
  method: 'DELETE',
  headers: { 'X-NWays-Api-Key': process.env.NWAYS_API_KEY },
})
const data = await res.json()
Python
import os
import requests

res = requests.delete(
    "https://nways.ng/maps/v1/fleet/invites/string",
    headers={"X-NWays-Api-Key": os.environ["NWAYS_API_KEY"]},
    timeout=10,
)
data = res.json()

Response

Withdrawn

No content.

Errors

  • default Error

Take the rider's N-Ways account off this driver

DELETE https://nways.ng/maps/v1/fleet/drivers/{id}/app

The app stops sharing the rider's position and showing their jobs at once. Invite them again to bring them back.

Parameters

NameInTypeDescription
idpathstringRequired.
cURL
curl -X DELETE "https://nways.ng/maps/v1/fleet/drivers/string/app" \
  -H "X-NWays-Api-Key: YOUR_API_KEY"
JavaScript
const res = await fetch('https://nways.ng/maps/v1/fleet/drivers/string/app', {
  method: 'DELETE',
  headers: { 'X-NWays-Api-Key': process.env.NWAYS_API_KEY },
})
const data = await res.json()
Python
import os
import requests

res = requests.delete(
    "https://nways.ng/maps/v1/fleet/drivers/string/app",
    headers={"X-NWays-Api-Key": os.environ["NWAYS_API_KEY"]},
    timeout=10,
)
data = res.json()

Response

Unlinked

No content.

Errors

  • default Error