27 - Traincu mobile app (business and personal accounts)
Navigation: Index | previous: 26 - Driver portal and Driver app | next: 28 - Customer portal Last checked against the application: 25 Nov 2026
1. Who this guide is for
- Everyone who uses the Traincu app on a phone: members of a company (Owner, Operations Manager, Staff and the ready-made roles such as dispatcher, fleet manager, finance, store manager), people with a personal (individual) account, and visitors who look around before they sign in.
- It covers the 24 phone screens of the specification, MA-01 to MA-24: welcome, log in, register, home, company switcher, equipment search, post a load, offers, load board, shipments, tracking, assigning a truck, fleet, approvals, messages, notifications, wallet, services, provider screens, support, and profile.
- It is not about the Traincu Driver app (drivers on trips): that is guide 26. A Driver app token does not open this app and the other way round.
- The phone app itself (written in Flutter) is not in the code repository. This guide therefore describes each screen from the specification (the Dev Pack) and from what the server does for it: what the phone sends, what comes back and what is refused. The look of the screens (colours, tabs, icons) belongs to the app designer.
Note - how to read this guide. The Dev Pack names screens by a design address such as
app://loads/new. These are not web addresses. The real doors are the server calls under/api/v1/app, listed completely in section 9 (141 calls, grouped by screen).
2. What you can do here (summary)
| Activity | Who | Screen(s) |
|---|---|---|
| Choose Arabic or English, browse the marketplace before signing in | Visitor | MA-01, MA-06, MA-07 |
| Log in with a password, with a one-time code (when codes are on) or with Nafath | Any login | MA-02 |
| Register a company, or a personal account | New customer | MA-03 |
| See the home cards, notices and Get started steps | Any login | MA-04 |
| Switch between my companies | Login with several companies | MA-05 |
| Search equipment, read a listing, save it, ask for a quote | Any login (visitors may look) | MA-06, MA-07 |
| Post a load in six steps, publish, edit, cancel | Shipper | MA-08, MA-09 |
| Compare offers, accept, counter, reject | Shipper; personal account for its bookings | MA-09 |
| Find a load on the board and submit an offer; agree, counter, decline, withdraw | Carrier, owner-operator | MA-10, MA-11 |
| Follow shipments, watch the live map, share a tracking link, report a delay | Shipper and carrier | MA-12, MA-13 |
| Give a won shipment its truck and driver | Carrier (dispatcher) | MA-14 |
| See the fleet map, vehicles and alerts, renew a paper, see drivers | Carrier, fleet manager | MA-15, MA-16 |
| Approve or reject a shop discount | Manager of a parts supplier | MA-17 |
| Chat about a shipment, a load, a listing, a quote request, a service request or a provider | Members with the messages permission | MA-18 |
| Read notifications, set the switches, register the phone for push | Any login | MA-19 |
| See the wallet, pay a received invoice | Finance role | MA-20 |
| Send an SOS or ordinary service request, compare quotes, confirm the work; parts, orders, policies | Companies that buy services | MA-21 |
| Answer jobs and quote requests | Equipment provider, workshop, parts supplier, insurer | MA-22 |
| See the company's verification state, upload company papers, see my account manager | Owner and people who handle papers | MA-03, MA-04 |
| Write to support | Members with the support permission | MA-23 |
| Change name, language, number style, two-factor, photo, devices; verify identity | Any login | MA-24 |
| Book a truck and answer the offers on the booking | Personal account | MA-08, MA-09 |
3. Before you begin
- An account. See 01 - Getting started and account. The app signs you in with your e-mail or mobile number and your password. A one-time code (OTP) is a platform switch that is off by default (staff switch it on in the admin console, see 22 - Admin platform settings). While it is off, nobody is asked for a code.
- Approved activities. A new company starts with every activity pending. Screens of the shipper, carrier, provider and other activities answer "Your company does not have an approved activity for this screen." until staff approve (see 06 - Verification and documents). A restricted activity keeps its screens but cannot post loads or offers.
- A role that may use the app. A role set to "web only" cannot sign in on the phone ("Your role can sign in from the web only.").
- Permissions. Every screen follows the same permission as its web twin (for example
loads.create,offers.respond,shipments.assign). A person without the permission gets a refusal and the app hides the button. - Country. Money is SAR. Mobile numbers are Saudi numbers (for example 05x xxx xxxx); the app may also send the +966 form.
- Nafath. Log in with Nafath works only when staff have switched Nafath on, and only for a person whose identity was verified with Nafath before (see 6.21).
- On the phone. Location (for the SOS pin and the map), camera (photos of papers and of the problem) and push notifications are the phone's own permissions.
- How long you stay signed in. The token lives 120 days and is not extended by use; after that you sign in again. A login that is switched off, locked or closed loses its token at the next call.
- Personal accounts open only a short list of the app's doors (home, equipment, services, bookings, messages, shipments of own bookings, support, profile). See 6.22.
4. Where to find it
The app has no web menu. The Dev Pack gives every phone screen a design address; the cards of the home open the matching screen.
| Screen | Design address | Screen | Design address |
|---|---|---|---|
| MA-01 Welcome | app://welcome |
MA-13 Shipment tracking | app://shipments/{code} |
| MA-02 Login | app://login |
MA-14 Assign truck and driver | app://shipments/{code}/assign |
| MA-03 Register | app://register |
MA-15 Fleet map | app://fleet/map |
| MA-04 Home | app://home |
MA-16 Vehicles and alerts | app://fleet |
| MA-05 Company switcher | app://companies |
MA-17 Approvals | app://approvals |
| MA-06 Equipment search | app://equipment |
MA-18 Messages | app://messages |
| MA-07 Listing detail | app://listing/{id} |
MA-19 Notifications | app://notifications |
| MA-08 Post load | app://loads/new |
MA-20 Wallet and invoices | app://wallet |
| MA-09 My loads and offers | app://loads |
MA-21 Request service | app://services/new |
| MA-10 Load board | app://loadboard |
MA-22 My listings and quotes | app://provider |
| MA-11 Submit offer | app://loadboard/{code}/offer |
MA-23 Support | app://support |
| MA-12 Shipments | app://shipments |
MA-24 Profile and settings | app://settings |
The server's own address is https://<your Traincu host>/api/v1/app/.... The same information is on the web in these guides: loads 07, load board and offers 08, trips 09, fleet 10, shipments 11, equipment 12, services 13, finance 16, personal account 04.
5. The big picture (flowchart)
flowchart TD
s1(["Open the app"]) --> a1["MA-01 Welcome: choose the language"]
a1 --> d1{"Do you have an account?"}
d1 -->|"No, just looking"| a2["Browse equipment and service providers"]
a2 --> d2{"Want to quote, save or book?"}
d2 -->|"No"| e1(["Keep browsing, nothing is stored"])
d2 -->|"Yes"| a3["MA-03 Register a company or a personal account"]
d1 -->|"No, create one"| a3
d1 -->|"Yes"| a4["MA-02 Log in: password, code or Nafath"]
a3 --> a5["The phone keeps the token and the list of companies"]
a4 --> a5
a5 --> d3{"More than one company?"}
d3 -->|"Yes"| a6["MA-05 Choose the company"]
d3 -->|"No"| a7["MA-04 Home: cards follow the activities"]
a6 --> a7
a7 --> a8["Work in the screens of your activities"]
a8 --> e2(["MA-24 Profile: switch company or sign out"])
Which screens a company gets depends on what it does:
flowchart TD
h1(["MA-04 Home"]) --> d1{"What does the company do?"}
d1 -->|"Shipper"| s1["Post load, My loads and offers, Shipments"]
d1 -->|"Carrier or owner-operator"| s2["Load board, Submit offer, Assign truck, Fleet map, Vehicles"]
d1 -->|"Equipment provider"| s3["My listings and quotes"]
d1 -->|"Workshop, parts supplier, insurer"| s4["Provider jobs, orders, policies"]
d1 -->|"Parts supplier"| s5["Discount approvals"]
d1 -->|"Every company"| s6["Search, Request service, Messages, Wallet, Support, Profile"]
d1 -->|"Personal account"| s7["Book a truck, My bookings, Equipment, Services, Support"]
6. Activities, step by step
6.1 Rules that apply to every screen (read this first)
Purpose - the same few rules decide what every screen of the app can do. Who - everybody.
The token and the company
- Signing in gives the phone a token (Bearer). The phone sends it with every call after sign-in. It belongs to this app: a Driver app token is refused with "This token is for another app." (403).
- The phone names the company it works in with the header
X-Organizationon every call. Without it the server uses the login's last company. A company the login is not an active member of is refused (403). - Data never mixes between companies: a record of another company answers 404 "not found", never "forbidden", so nobody can guess that it exists.
What comes back
Every answer has the same frame: success, message and data (or errors per field). The message is already written in the person's language - show it as it is.
| Code | Meaning for the person |
|---|---|
| 200 / 201 | Done (201 = something new was made) |
| 401 | Sign in again (no token, a token that was cut off, or a wrong password or code) |
| 403 | You may not do this: missing permission, missing activity, a token of another app, not a member of the company |
| 404 | Not found - also what you get for another company's record |
| 409 | The same request is still being processed; try again in a moment |
| 422 | A rule said no. The sentence is in message, the fields in errors |
| 423 | Locked, or "confirm it is you": sign in again first |
| 429 | Too many calls; wait (the answer says how long) |
Language. The sentences come in the language the phone asks for: ?lang=ar|en|bn, else the Accept-Language header, else the person's own language, else Arabic. Only languages that staff switched on are accepted.
Money and time. Money is {amount, currency, text}; the amount is a text with decimals - never round SAR. A figure nobody has stated is empty (null), never "0.00". Moments are ISO times in UTC; the phone turns them into the company's clock. Most prices are per truck and before VAT.
Lists. ?page= and ?per_page= (up to 100; some lists allow less). The answer carries meta (page, total, has more). Equipment search uses a cursor: send the cursor back unchanged with the same filters, or you get 422.
Safe retry (offline-safe writes)
A phone loses its network at the worst moment. For every write that has uuid in the last-but-one column of section 9, the phone makes a UUID itself and sends it as X-Client-Uuid (or client_uuid in the body). The server then does the work once.
sequenceDiagram participant P as Phone participant S as Traincu server P->>S: Write with X-Client-Uuid S->>S: First time - do the work and store the answer S-->>P: The answer is lost on the way P->>S: Same write again with the same uuid S-->>P: The first answer again, header X-Idempotent-Replay true P->>S: Same uuid sent to another address S-->>P: 422 this client id was used for another request
- A second copy that arrives while the first is still running gets 409 with "Retry-After: 2".
- An answer that is not a success is not stored: after you fix the cause, the same uuid may be sent again.
- A write sent without a uuid is not protected. Reads never need one.
- The photo and paper uploads, the SOS and the chat lines also keep their own keys, so even a retry days later answers the first result.
- Files that come back (photos, papers, chat files) are short-lived signed links (a few minutes). Fetch them when the screen needs them; do not store them.
Note - what the server gives and what the app does. The server is ready for a phone that resends. Keeping a queue of unsent writes while offline, and biometric unlock after the first login (Dev Pack note of MA-02), are the phone's own work. Reading data always needs the network. The offline replay of trip events belongs to the Driver app, not to this one.
How the server judges every call
flowchart TD
s1(["A call arrives"]) --> d1{"Token valid and made for this app?"}
d1 -->|"No"| r1(["401 sign in again or 403 token of another app"])
d1 -->|"Yes"| d2{"Active member of the company in X-Organization?"}
d2 -->|"No"| r2(["403 not a member of this company"])
d2 -->|"Yes"| d3{"Has the approved activity this screen needs?"}
d3 -->|"No"| r3(["403 company has no approved activity for this screen"])
d3 -->|"Yes"| d4{"Role holds the permission?"}
d4 -->|"No"| r4(["403 no permission"])
d4 -->|"Yes"| d5{"Is the record this company's or visible to it?"}
d5 -->|"No"| r5(["404 not found"])
d5 -->|"Yes"| d6{"Do the rules of the marketplace agree?"}
d6 -->|"No"| r6(["422 with a sentence in message"])
d6 -->|"Yes"| e1(["200 or 201 with the answer"])
Throttles. Signed-in calls: 240 a minute per person. Guest calls: 30 a minute from one address. Several writes have a lower limit of their own (the table in section 9 names them). Over the limit: 429 with how long to wait.
6.2 Choose a language and browse before signing in (MA-01, MA-06, MA-07)
Purpose - let a newcomer see the marketplace first. Who - anyone, no login.
Steps
- Open the app. MA-01 Welcome asks the language first: العربية or English. The phone reads the languages from the server; Arabic is the default and the layout mirrors right-to-left.
- Press Get started (create an account) or I have an account (log in).
- Before choosing, you may browse: Equipment search (MA-06) and a listing's detail (MA-07), and the list of service providers and the service catalogue.
- A visitor sees what the public web site shows: no phone numbers, no CR or VAT numbers, no hidden prices.
- The moment you press Request quote, Save or Request service, the app sends you to log in or register, then carries on.
flowchart TD
s1(["Open the app"]) --> a1["MA-01 Welcome: choose Arabic or English"]
a1 --> a2["Get started opens Register, I have an account opens Log in"]
a1 --> a3["Browse equipment: MA-06 search and MA-07 detail"]
a3 --> a4["Browse service providers by service and city"]
a4 --> d1{"Press Request quote, Save or Request service?"}
d1 -->|"No"| e1(["Keep browsing, nothing is stored"])
d1 -->|"Yes"| d2{"Signed in?"}
d2 -->|"Yes"| a5["The action runs in the company in use"]
d2 -->|"No"| a6["Go to MA-02 Log in or MA-03 Register"]
a6 --> a5
Buttons and actions
| Button | What it does | Who sees it |
|---|---|---|
| Get started | Opens Register (MA-03) | Everyone |
| I have an account | Opens Log in (MA-02) | Everyone |
| Language | Sets the language of the app and of the sentences from the server | Everyone |
If something goes wrong - guest calls are limited to 30 a minute from one address; over that you get 429 and wait.
6.3 Log in (MA-02)
Purpose - get a token for this phone. Who - any login that belongs to an active company or has a personal account.
There are three ways in. The normal one is the password. The other two are options the platform switches on.
6.3.1 Log in with e-mail or mobile and password
Steps
- Enter your e-mail or mobile number and your password. The phone adds its own device name (for example "Ahmed's phone"); it is shown later in the device list (MA-24).
- Press Log in.
- You receive the token, your name, the company in use and the list of your companies. The sign-in is written in your history as "mobile app".
flowchart TD
s1(["MA-02 Log in"]) --> a1["Enter e-mail or mobile and password"]
a1 --> a2["Phone sends identity, password and device name"]
a2 --> d1{"Too many tries in a minute?"}
d1 -->|"Yes"| r1(["429 wait and try again"])
d1 -->|"No"| d2{"Account found and password right?"}
d2 -->|"No"| r2(["401 Wrong mobile/email or password, tries are counted"])
r2 -->|"5 wrong tries"| r3(["423 locked for 15 minutes"])
d2 -->|"Yes"| d3{"Account active, hours and network allowed?"}
d3 -->|"No"| r4(["401 not allowed now, the sentence says why"])
d3 -->|"Yes"| d4{"Role may use the app and an active company exists?"}
d4 -->|"No"| r5(["403 web-only role or no active company"])
d4 -->|"Yes"| sys1[["Token made for this phone"]]
sys1 --> e1(["Phone keeps the token and the company list"])
Fields
| Field | What to enter | Rules/limits |
|---|---|---|
| E-mail or mobile | The e-mail or Saudi mobile number of the login | Up to 190 characters |
| Password | Your password | Up to 200 characters |
| Device name | Filled by the app | Up to 100 characters |
What happens next - the history of the account shows the sign-in; the roles' allowed hours and networks are applied. A login that is a member of one company opens it; a login with several opens the last one and the app may show MA-05.
If something goes wrong
| What you see | Meaning and fix |
|---|---|
| "Wrong mobile/email or password." (401) | Check the typing. Five wrong tries lock the account for 15 minutes |
| "This account is locked until ..." (423) | Wait, or ask an administrator to unlock it |
| "This account is not active. Contact an administrator." (401) | The login was switched off |
| "Sign-in is allowed only during these hours ..." / "Sign-in is not allowed from this network." (401) | The role has hours or networks set. Try then, or ask the administrator |
| "Your role can sign in from the web only." (403) | Use the web, or ask for a role that may use the app |
| "This login does not belong to an active company account." (403) | The company is suspended or closed |
| "This account signs in with a code. Ask for one first." (422) | Codes are on and this login (Owner, Finance) needs one: use 6.3.2 |
6.3.2 Log in with a one-time code (only while codes are switched on)
Dev Pack MA-02 shows Mobile number and One-time code. In the shipped server this way is off by default: while off, asking for a code answers 422 ("sign-in codes are off") and nobody is asked for a second step.
Steps (codes on)
- Enter your mobile number and press Send code. The answer is the same for a number nobody holds, so nobody can find out who has an account. The code goes by the platform's channel (e-mail today; SMS only when an SMS gateway exists).
- Enter the code and press Log in.
- Owner and Finance logins (two-factor roles) then see "Enter your password." Enter the password within 10 minutes.
- You receive the token.
flowchart TD
s1(["Codes are switched on"]) --> a1["Enter the mobile number and press Send code"]
a1 --> sys1[["Server sends a code and gives the same answer for any number"]]
sys1 --> a2["Enter the code and the device name"]
a2 --> d1{"Code right and not expired?"}
d1 -->|"No"| r1(["That code is wrong or expired, ask a new one"])
d1 -->|"Yes"| d2{"Owner or Finance login?"}
d2 -->|"No"| sys2[["Token made"]]
d2 -->|"Yes"| a3["Server answers password required with a challenge"]
a3 --> a4["Enter the password, the challenge lives 10 minutes"]
a4 --> d3{"Password right?"}
d3 -->|"No"| r2(["401 wrong password"])
d3 -->|"Yes"| sys2
sys2 --> e1(["Signed in"])
If something goes wrong - "That code has expired. Ask for a new one." (ask again, a new code can be asked only after a short wait); "That sign-in has expired. Start again." (the 10 minutes for the password passed).
6.3.3 Log in with Nafath
Purpose - sign in with the national identity app, no password and no code. Who - a login whose identity was verified with Nafath before (see 6.21). The platform must have Nafath switched on: the welcome call says so (nafath_available) and the app shows the button only then (the call answers 404 otherwise).
Steps
- Press Log in with Nafath and enter your national ID or iqama number (10 digits, starting with 1 or 2, with a valid check digit).
- The phone shows a number. Open the Nafath app and pick the same number.
- The phone asks for the status every 3 seconds (the request lives 3 minutes by default).
- When Nafath confirms, the token comes back. An Owner or Finance login is not asked for a code or password: Nafath is the second proof.
flowchart TD
s1(["Press Log in with Nafath"]) --> a1["Enter national ID or iqama number"]
a1 --> d1{"Nafath switched on?"}
d1 -->|"No"| r1(["The button is not shown"])
d1 -->|"Yes"| sys1[["Server starts a request: secret handle and a number"]]
sys1 --> a2["Phone shows the number"]
a2 --> o1[/"Person confirms the same number in the Nafath app"/]
o1 --> a3["Phone asks the status every 3 seconds"]
a3 --> d2{"What does the status say?"}
d2 -->|"pending"| a3
d2 -->|"rejected or expired"| r2(["No sign-in, start again"])
d2 -->|"approved"| d3{"Account rules and app rules agree?"}
d3 -->|"No"| r3(["401, 423 or 403 with a sentence"])
d3 -->|"Yes"| sys2[["Token made, no code and no password asked"]]
Good to know - the first answer has the same shape for every well-formed ID, so nobody can learn who has an account; an ID without a Nafath-verified login simply never gets approved. The request works once and only on the phone that started it. Limits: 10 starts per address per 15 minutes and 5 per ID per hour (429 with how long to wait).
6.3.4 Sign out
Press Sign out in the profile (MA-24): the phone removes its push registration and ends the token. To cut off a lost phone, sign it out from another device under Profile > Devices (see 6.21).
6.4 Register (MA-03)
6.4.1 Register a company
Purpose - create a company workspace and its Owner login. Who - a person with a commercial registration (CR). Owner-operators with a sole-proprietorship CR register here too, choosing the Owner-operator activity.
Steps
- Choose one or more Activity: Shipper, Carrier, Owner-operator, Equipment, Workshop, Parts, Insurance.
- Enter the CR number (10 digits). If the CR is already on Traincu you are told to sign in instead.
- The server asks the commercial registry (Wathq). When it answers, Company name is filled from it and cannot be typed over; when it does not answer you type the names.
- Choose the City. Optionally add the VAT number (15 digits, starts and ends with 3) and the national address (building 4 digits, street, district, postal code 5 digits, additional number 4 digits).
- Enter the owner: name, mobile, e-mail, password and the password again. The server tells you the password rule (hint on MA-01).
- Press Continue. With sign-in codes off (default) the company and the Owner login are made at once and you are signed in; with codes on, a code is sent first and you enter it within 15 minutes.
- Upload the Documents (CR, licences) with the camera or as a PDF: this is the company-papers screen (6.19).
flowchart TD
s1(["MA-03 Register"]) --> a1["Choose activities and enter the CR number"]
a1 --> d1{"CR number already on Traincu?"}
d1 -->|"Yes"| r1(["422 already registered, sign in instead"])
d1 -->|"No"| sys1[["Server looks the CR number up at the registry, if it answers"]]
sys1 --> a2["Fill city, owner name, mobile, e-mail and password"]
a2 --> d2{"Sign-in codes switched on?"}
d2 -->|"No, default"| sys2[["Company and Owner login are made at once, token returned"]]
d2 -->|"Yes"| sys3[["A code is sent and a registration handle is returned"]]
sys3 --> a3["Enter the code within 15 minutes"]
a3 --> sys2
sys2 --> sys4[["Every activity is pending until staff verify it"]]
sys4 --> a4["Upload CR and licence papers with the camera or as PDF"]
a4 --> e1(["Home shows the waiting notice"])
Fields
| Field | What to enter | Rules/limits |
|---|---|---|
| Activity | One or more of the seven activities | At least one |
| CR number | The commercial registration number | Exactly 10 digits, unique on Traincu |
| Company name | From the registry; typed only when the registry gives none | Up to 190 characters |
| City | Pick from the list of Saudi cities | Required |
| VAT number | Optional | 15 digits, starts and ends with 3 |
| Owner name, mobile, e-mail | The owner's details | Mobile and e-mail must not be used by another login |
| Password | The owner's password | Follows the platform's password rule, with confirmation |
What happens next - the company is created with all requested activities pending; the verification team decides (see 06). Home shows a waiting notice per activity and, if staff reject or restrict one, the reason in your language.
If something goes wrong - "This CR number is already registered on Traincu. Sign in with the owner's mobile number, or contact support."; "This company or owner is already registered. Sign in instead." (409, taken while you were typing); "This registration has expired. Start again." (the 15 minutes passed, codes on).
Note - not available yet. The Dev Pack says owner-operators may also register as individuals with Nafath and a vehicle registration. That path is not built: a person without a CR can open a personal account (6.4.2), which has no activities. Also, a person who already has a login and wants another company adds it on the web ("Add a company"); the app only switches between companies the login already belongs to.
6.4.2 Register a personal account
Purpose - a one-person account to book a truck, hire equipment, ask for services. Who - any person.
Steps
- Enter name, a real e-mail, mobile, city, and a password with confirmation.
- Press Continue. With codes off the account is made at once and you are signed in. With codes on, the first press sends a code; you enter it and send again with the password and the device name.
- You land in a personal account: no CR, no activities. The company screens (load board, loads, fleet, wallet...) stay closed to it (6.22).
flowchart TD
s1(["Register a personal account"]) --> a1["Enter name, real e-mail, mobile, city, password"]
a1 --> d1{"Mobile or e-mail already has a login?"}
d1 -->|"Yes"| r1(["422 on that field, sign in instead"])
d1 -->|"No"| d2{"Sign-in codes switched on?"}
d2 -->|"No, default"| sys1[["Account made at once, token returned"]]
d2 -->|"Yes"| sys2[["First call sends a code"]]
sys2 --> a2["Second call with the code, password and device name"]
a2 --> sys1
sys1 --> e1(["Personal account ready, no CR and no activities"])
If something goes wrong - "Enter a valid mobile number."; a mobile or e-mail that already has a login is refused on that field; a code asked too early gets 429.
6.5 Home and company switcher (MA-04, MA-05)
Purpose - see what needs attention and choose the company you work in. Who - any login.
Steps
- After sign-in the phone shows MA-04 Home. It reads "who am I" (person, company in use, role) and the home.
- The home has: cards (the same tiles as the web home - for example Open loads, Offers waiting, New on the board, Live shipments, Needs a truck, In transit, Delayed shipments, My listings, Quote requests waiting), notices (an activity that waits for verification, with the reason if it was rejected), requests that need attention (for example a won shipment that is about to miss its pickup) and Get started steps.
- Cards follow the company's activities and the person's permissions; a money card is shown only to a role that may see money. Each card names the screen it opens.
- To change company, open MA-05: each company shows its name, your role, its activities, an owner mark and a verified mark. Tap Switch on one.
- From then on the phone sends that company in
X-Organization; every list and card shows that company only.
flowchart TD
s1(["Signed in"]) --> sys1[["The sign-in answer already lists the companies"]]
sys1 --> d1{"More than one company?"}
d1 -->|"No"| a1["Phone sends that company in X-Organization"]
d1 -->|"Yes"| a2["MA-05 shows the list with role and verified mark"]
a2 --> a3["Tap Switch on one company"]
a3 --> sys2[["Server saves it as the company to open next time"]]
sys2 --> a1
a1 --> d2{"Active member of that company?"}
d2 -->|"No"| r1(["403 not a member"])
d2 -->|"Yes"| e1(["Home and every list now show that company only"])
What happens next - nothing is copied between companies. A company that is suspended or closed disappears from the list.
If something goes wrong - "You are not a member of this organization." (403).
6.6 Search equipment, save it, ask a quote (MA-06, MA-07)
Purpose - find equipment to buy, hire or import and ask the seller for a price. Who - visitors may search and read; saving and asking for a quote need a login (permission rfqs.create for the quote).
Steps
- Open MA-06. Type words in Search (Arabic-aware: spelling variants match), and choose Category, Buy / rent (sale, rent or import) and City. Filters also offers brand, model, condition, years and price range, and a sort (newest, lowest price, highest price, newest year).
- The list shows cards: title, price (or "Request a quote" when the seller hides it), year, condition, city, photo and the seller's name with a verified mark and its member-since date. Never a phone, e-mail, CR or VAT number.
- Scroll: the phone asks the next page with the cursor and the same filters. The category tree and brands for the filters come from the catalogue call (the phone can keep it and send the saved tag to get "not modified").
- Tap a card: MA-07 Listing detail shows photos, specifications, the seller's badges, similar listings and the buttons Request quote, Save, Rent (for hire listings) and Chat.
- Request quote: enter what you need (at least 10 characters for an open request), quantity, city, needed-by date, budget and up to 4 photos (JPG or PNG, 5 MB each). Press send.
- The seller answers with a quote. You see quotes under your requests; the other party's contact appears only after a quote is accepted.
flowchart TD
s1(["MA-06 Equipment search"]) --> a1["Type words, pick Category, Buy or rent, City"]
a1 --> sys1[["Server returns a page of public listings and a cursor"]]
sys1 --> a2["Scroll: phone sends the cursor with the same filters"]
a2 --> a3["Open one listing, MA-07 detail"]
a3 --> d1{"What next?"}
d1 -->|"Save"| a4["Listing goes to Favourites"]
d1 -->|"Chat"| a5["Opens a thread with the seller"]
d1 -->|"Request quote"| d2{"Signed in?"}
d2 -->|"No"| a6["Sign in first"]
a6 --> a7["Fill description, quantity, needed by, budget, photos"]
d2 -->|"Yes"| a7
a7 --> d3{"A rule refuses?"}
d3 -->|"Yes"| r1(["422 with the sentence, e.g. one open request per listing"])
d3 -->|"No"| sys2[["Quote request created, the seller is told"]]
sys2 --> o1[/"Seller answers with a quote"/]
o1 --> e1(["Quotes appear under my requests"])
Buttons and actions
| Button | What it does | Who sees it |
|---|---|---|
| Filters | Opens brand, model, condition, years, price and sort | Everyone |
| Request quote | Sends a quote request about the listing | Logged-in login; seller must accept requests |
| Save / remove | Adds to or removes from favourites (a login's list, the same in every company) | Logged-in login |
| Rent | Shown only for a hire listing | Everyone |
| Chat | Opens a thread with the seller of a live listing (not your own) | Logged-in login with messages.send |
If something goes wrong - a listing that is not public (draft, in review, paused, sold, expired) is simply "not found"; the same cursor with other filters is 422; a quote request can be refused by a marketplace rule (one open request per listing, daily cap, a seller that cannot take requests) with the sentence in message.
Note. Chat on a listing opens one thread per listing and buyer (kind Listing, code like LST-0042); a quote request has its own thread per provider (see 6.14). Accepting a quote on an equipment request is done on the web (12); the app lists the requests and the quotes. Asking for a service is not an equipment request: it is sent from the services screens (6.17,
POST /app/services/requests); the equipment request call refuses the type service.
6.7 Post a load from the phone (MA-08)
Purpose - put a load in front of carriers, step by step. Who - a company with the approved Shipper activity; permission to create loads (loads.create), to change and publish (loads.update).
Steps (the same six steps as the web wizard, one phone screen each)
- Cargo - cargo type, description, weight, volume, quantity, dangerous goods, temperature range, item lines.
- Truck - vehicle type, trailer type, number of trucks, special handling.
- Stops - the first stop is the pickup, the last the delivery: city, address, map pin, contact name and mobile, time window. The pin is two numbers the phone takes from its own map; the stop list you send replaces what the load had.
- Dates - Pickup window (from, to), Deliver by, trip type, urgent or not.
- Price - price type (fixed, negotiable or bid - a sealed bid needs an offer deadline), target price, optional "accept any verified carrier at or below" price. The screen may show the lane's suggested price range once enough closed trips exist.
- Visibility and review - public, groups or invited only; hide the shipper name until award; invited carriers or groups. Then Publish.
After each step the phone saves a draft (the first save creates it, later saves change it). Saving never says "required"; the one gate is Publish.
flowchart TD
s1(["MA-08 Post load"]) --> a1["Steps 1 to 5: Cargo, Truck, Stops, Dates, Price"]
a1 --> sys1[["After each step the phone saves the draft"]]
sys1 --> a2["Step 6: Visibility and review"]
a2 --> a3["Press Publish"]
a3 --> d1{"Company may publish?"}
d1 -->|"No"| r1(["422 not an approved shipper, restricted or not active"])
d1 -->|"Yes"| d2{"Anything still missing?"}
d2 -->|"Yes"| r2(["422 with the missing fields, go back to that step"])
r2 --> a1
d2 -->|"No"| sys2[["Load becomes Open for offers and shows on carrier boards"]]
sys2 --> o1[/"Carriers send offers"/]
o1 --> e1(["MA-09 shows the offers"])
Statuses of a load
stateDiagram-v2 [*] --> draft draft --> open : Publish draft --> cancelled : Cancel open --> awarded : Accept an offer open --> cancelled : Cancel open --> expired : Time passes awarded --> closed : Job finished awarded --> cancelled : Cancel
| Status | Meaning | What you can do next |
|---|---|---|
| draft | Saved, not yet visible | Edit, Publish, Cancel (throws it away) |
| open | Published, taking offers | Compare offers, edit, Cancel |
| awarded | An offer was accepted (all trucks placed) | Follow the shipment (MA-12) |
| closed | Finished | Read only |
| cancelled | Withdrawn, with a reason | Nothing |
| expired | The time ran out with no award | Post again |
| offers received (list filter) | Open loads that have offers | Compare offers |
If something goes wrong - "Your company is not an approved shipper yet." / "Your shipper activity is restricted ..." / "Your company account is not active ..." on Publish; a publish that is not ready lists every missing field in errors (for example "Choose the kind of truck the load needs."). A cancel needs a reason of 3 to 300 characters.
6.8 My loads and offers: compare, accept, counter, reject (MA-09)
Purpose - decide which carrier gets the load. Who - the shipper (permissions offers.view to read, offers.respond to counter or reject, loads.award to accept).
Steps
- MA-09 lists the company's loads, newest first, with tabs by status and Offers received.
- Open a load and press Compare offers. Each offer card shows the carrier's trade name, its verified mark and rating, price per truck before VAT, trucks, valid-until date, the carrier's note and the history of prices.
- On a card choose:
- Accept - the award. The offer is accepted, the shipment is made, the other offers are closed and their carriers told.
- Counter - send a new price (and valid-until and message). The carrier answers.
- Reject - say no, with an optional reason.
- A sealed bid load shows only the number of bids until its deadline.
flowchart TD
s1(["MA-09 My loads and offers"]) --> a1["Open a load and tap Compare offers"]
a1 --> sys1[["Offer cards: carrier, price per truck, trucks, valid until"]]
sys1 --> d1{"Sealed bid before its deadline?"}
d1 -->|"Yes"| r1(["Only the number of bids is shown"])
d1 -->|"No"| d2{"What do you choose?"}
d2 -->|"Counter"| a2["Enter new price, valid until, message"]
a2 --> o1[/"Carrier agrees, counters back or declines"/]
d2 -->|"Reject"| a3["Optional reason"]
a3 --> o2[/"Carrier is told"/]
d2 -->|"Accept"| a4["Confirm the award"]
a4 --> d3{"Carrier verified and not restricted, trucks left, your turn?"}
d3 -->|"No"| r2(["422 sentence, e.g. This carrier is not verified by Traincu"])
d3 -->|"Yes"| d4{"Approval chain inside your company?"}
d4 -->|"Yes"| r3(["The award waits for the approval"])
d4 -->|"No"| sys2[["Offer accepted, shipment made, other offers closed and told"]]
sys2 --> e1(["Load awarded, follow it in MA-12"])
Statuses of an offer
stateDiagram-v2 [*] --> submitted : Carrier submits submitted --> countered : A side counters countered --> countered : Counter again submitted --> accepted : Shipper accepts countered --> accepted : Shipper accepts submitted --> rejected : Declined or lost countered --> rejected : Declined or lost submitted --> withdrawn : Carrier withdraws countered --> withdrawn : Carrier withdraws submitted --> expired : Validity passes countered --> expired : Validity passes
| Status | Meaning | Next |
|---|---|---|
| submitted | The carrier's first price waits for the shipper | Accept, Counter, Reject |
| countered | A new price is on the table; whose turn it is is shown | The side whose turn it is answers |
| accepted | This offer won | Shipment follows |
| rejected | Declined, or the load went to another carrier / was cancelled | Nothing |
| withdrawn | The carrier took it back | Nothing |
| expired | Its validity passed | The carrier may offer again |
What happens next - the carrier is told (bell and push); a won shipment appears in the carrier's Needs a truck list; the shipper follows it in MA-12. Your own company's approval chain (if the company set one for awards) can hold the award until a colleague approves.
If something goes wrong - "The other side has to answer first." (not your turn), "The validity of this offer has passed.", "This offer has been closed and cannot be changed any more.", "Sealed bids stay closed until the bidding deadline has passed.", "This carrier is not verified by Traincu, so the load cannot be awarded to it.", "Every truck of this load has been awarded.".
6.9 Load board and submit an offer (MA-10, MA-11)
Purpose - find work and bid for it. Who - a company with the approved Carrier or Owner-operator activity; permissions loadboard.view, offers.create (new offer) and offers.respond (answer).
Steps
- MA-10 Load board: choose From, To and Truck, or open more filters (weight, volume, dates, price, trip type, urgency, special handling). Two toggles: Near my truck and Backhaul; they work only when Traincu can place your trucks (from the fleet, else from your branches) and the screen says when the answer is approximate. Search and sort are available.
- Switch between list and Map view: each row carries a rounded pickup and delivery point for the map. Backhaul matches are marked.
- Open a load: stops (cities and a rounded point only, no address or contact before the award), cargo, price (or "Request a quote" style text when hidden), shipper name ("A verified shipper" when hidden) and badges.
- Press Submit offer (MA-11): the route and cargo are shown above the form. Enter Price (SAR) (per truck; tick "VAT included" if your figure includes VAT - the server takes it out), Trucks, Valid until, optional Earliest pickup, Truck type and Note (up to 1000 characters by default).
- Press Submit offer. The shipper is told.
- Later, open your offers: filter by status or by whose turn it is. For a counter from the shipper you can agree, counter back, decline; any time you can withdraw.
flowchart TD
s1(["MA-10 Load board"]) --> a1["Choose From, To, Truck, or Near my truck and Backhaul"]
a1 --> sys1[["Server returns only loads this carrier may see"]]
sys1 --> a2["Open a load to read stops, cargo, price and shipper badges"]
a2 --> d1{"Offer allowed on this load?"}
d1 -->|"No"| r1(["Submit offer is not offered"])
d1 -->|"Yes"| a3["MA-11 Submit offer: price, trucks, valid until, note"]
a3 --> d2{"A rule refuses?"}
d2 -->|"Yes"| r2(["422 sentence, e.g. You already have an offer on this load"])
d2 -->|"No"| sys2[["Offer is submitted and the shipper is told"]]
sys2 --> o1[/"Shipper accepts, counters or rejects"/]
o1 --> d3{"Answer?"}
d3 -->|"Counter"| a4["Agree, counter back or decline from My offers"]
a4 --> o1
d3 -->|"Accept"| e1(["Offer accepted, the shipment waits in Needs a truck"])
d3 -->|"Reject"| e2(["Offer rejected"])
Fields of MA-11
| Field | What to enter | Rules/limits |
|---|---|---|
| Price (SAR) | The price per truck | Above 0 |
| VAT included | Tick if your price already holds VAT | Server divides it out |
| Trucks | How many trucks you offer | 1 up to the trucks the load needs |
| Valid until | How long the offer stands | Required. In the future, before pickup, at most 14 days by default (a platform setting); the server can give the app a safe default |
| Earliest pickup | Optional | Not after the load's pickup window |
| Note | Optional text to the shipper | Up to 1000 characters |
If something goes wrong - "Your company is not an approved carrier yet.", "Your carrier activity is restricted ...", "A company cannot offer for its own load.", "This load is not taking offers any more.", "You already have an offer on this load. Change it or withdraw it first.", "Offers on this load closed on ...". A load you may not see is "not found".
6.10 Shipments and tracking (MA-12, MA-13)
Purpose - follow a job from award to payment and share its progress. Who - the shipper and the carrier of the shipment (permission shipments.view; shipments.track for the live map and links; shipments.report to report a problem). A personal account sees its own bookings' shipments.
Steps
- MA-12 Shipments lists the company's shipments, soonest pickup first. Choose the side: shipper (shipments you sent) or carrier (shipments you carry). Filter by status (or "open"), search by code, load code, contract reference or plate.
- Tap one: MA-13 Shipment tracking shows the facts, the stops, the timeline and the tabs this side may read.
- The live map shows the truck's position, its trail, the ETA, the stops and how often to refresh. A shipper sees the truck only from the time it is at pickup until 24 hours after delivery; the carrier sees its own truck. The shipper never gets the driver's mobile before pickup.
- Share tracking link: choose consignee or shipper's customer, enter name and mobile, press share. The link is made, sent by SMS (unless you switch sending off) and shown to you once; there can be 10 live links per kind. Revoke a link from the list.
- Report delay: choose the kind (delay, breakdown, accident, road closed, other), add a note and a photo. The other side may be told. Later press Resolve to close it.
flowchart TD
s1(["MA-12 Shipments"]) --> a1["Choose Shipper or Carrier side, filter by status, search by code"]
a1 --> a2["Open one shipment, MA-13"]
a2 --> sys1[["Facts, stops, timeline and the tabs this side may read"]]
sys1 --> d1{"Shipper side and truck not yet at pickup?"}
d1 -->|"Yes"| r1(["No live position yet"])
d1 -->|"No"| a3["Live map refreshes every few seconds"]
a3 --> d2{"What do you need?"}
d2 -->|"Share tracking link"| a4["Choose consignee or customer, name, mobile"]
a4 --> sys2[["Link made and sent by SMS, the address is shown once"]]
d2 -->|"Report delay"| a5["Pick the kind, add note and photo"]
a5 --> sys3[["Problem recorded, the other side may be told"]]
d2 -->|"Resolve"| a6["Close the reported problem"]
Statuses of a shipment
stateDiagram-v2 [*] --> awarded awarded --> truck_assigned : Assign truck and driver truck_assigned --> document_issued : Transport document issued truck_assigned --> at_pickup : No document needed document_issued --> at_pickup at_pickup --> loaded at_pickup --> in_transit : Loaded step passed through loaded --> in_transit in_transit --> at_delivery at_delivery --> delivered delivered --> invoiced invoiced --> paid paid --> settled truck_assigned --> awarded : Truck taken away awarded --> cancelled at_pickup --> cancelled
Delayed, on hold and disputed are flags on top of these statuses, not statuses of their own. Cancelling is possible only until the cargo is on the truck.
If something goes wrong - a shipment of a company that is neither its shipper nor its carrier is "not found"; a link request for a cancelled shipment is refused; more than 10 live links of one kind is refused; no photo larger than the limit.
6.11 Assign truck and driver (MA-14)
Purpose - give a won shipment its truck, driver and trailer. Who - the carrier's dispatcher (permission shipments.assign).
Steps
- Open the won list: what the carrier won, shipments without a truck first. Missing marks a pickup that is close with no truck.
- Open a job. The app asks the server for the choices: trucks that are free on every day of the job and legal to assign, drivers with their duty hours left, and the findings a choice would raise.
- Pick Truck, Driver, optionally a helper and the Trailer plate. Press Assign.
- The server checks the choice. A foreign truck on a domestic job is always refused. Expired truck papers or a transport-authority block, and a driver whose papers are expired, are refused unless the company allows a legal override and you give a reason.
- On success the shipment becomes truck assigned, a work order is made for the driver, and the driver accepts or declines in the Driver app. A decline puts the shipment back to awarded.
flowchart TD
s1(["MA-14 Assign truck and driver"]) --> a1["Open the won list, jobs without a truck first"]
a1 --> a2["Open one job, the app asks for the choices"]
a2 --> sys1[["Server lists free legal trucks and drivers with hours left"]]
sys1 --> a3["Pick Truck, Driver, helper and Trailer plate"]
a3 --> sys2[["Server checks foreign truck, transport block, expired papers"]]
sys2 --> d1{"Any finding?"}
d1 -->|"None"| sys3[["Shipment becomes truck assigned, a work order is made"]]
d1 -->|"Foreign truck"| r1(["422 cannot be overridden"])
d1 -->|"Can be overridden"| d2{"Allowed to override and a reason given?"}
d2 -->|"No"| r2(["422 the findings are listed"])
d2 -->|"Yes"| sys3
sys3 --> o1[/"Driver accepts or declines in the Driver app"/]
o1 -->|"Declines"| a1
sys3 --> o2[/"Shipper is told when truck or driver changed"/]
If something goes wrong - the 422 answer carries a list of findings (key, severity, message, and whether a reason would let it through); show them. A truck of another company is "not found".
6.12 Fleet map, vehicles and alerts, drivers (MA-15, MA-16)
Purpose - watch the fleet and keep papers valid. Who - the carrier's fleet manager and dispatcher (permissions shipments.track, vehicles.view, compliance.view, vehicles.update, staff.view, staff.create, staff.update).
Steps
- MA-15 Fleet map: one row per shipment in flight with its truck, state (in transit, at pickup, at delivery, stopped, idle, no signal), ETA and position. Filters: by state and by code or plate. Refresh as the answer says.
- MA-16 Vehicles and alerts: document alerts come first - what runs out for trucks, drivers and the company, sorted by the days left, in bands (expired, 0-30, 31-60, 61-90 days, later). Below, the vehicles list: plate, type, status, document state (valid, due soon, expired), whether the truck is blocked from trips and why. Search by plate or VIN.
- Tap an alert or a truck and press Renew: take a photo or pick a PDF, choose the kind of paper, enter number, issue date and expiry date (required), press upload. The newest upload becomes the current paper and the truck's blocked state is recalculated.
- Drivers: list drivers, helpers and operators with the state of their papers; add a driver (an invitation SMS goes to the Driver app unless you switch it off), upload a driver's paper, or send the invitation again. Identity numbers, dates of birth and bank details never come to the phone.
flowchart TD
s1(["MA-16 Vehicles and alerts"]) --> a1["Alerts list: what runs out, expired first"]
a1 --> a2["Tap a paper and press Renew"]
a2 --> a3["Take a photo or pick a PDF, enter number and dates"]
a3 --> d1{"PDF, JPG or PNG up to 5 MB and the content matches?"}
d1 -->|"No"| r1(["422 the file is refused"])
d1 -->|"Yes"| sys1[["Paper saved, the newest upload is the current paper"]]
sys1 --> sys2[["The truck's blocked state is worked out again"]]
sys2 --> e1(["The alert goes when the new expiry is far enough"])
If something goes wrong - the expiry date is required for a paper that expires; a file whose real content is not what its name says is refused; a truck of another company is "not found".
6.13 Approvals (MA-17)
Purpose - let a manager approve things from the phone. Who - a manager of a company with the Parts supplier activity, with permission pos.approve and a role that may see money.
Note - what exists today. The Dev Pack describes MA-17 as the phone view of all approvals "with limits by role" (marked to confirm in the development plan). What is built is one kind: the shop counter's discount approvals. The approval chains of other things (awards, purchases and so on) are handled on the web. Treat everything else as not available yet on the phone.
Steps
- A cashier at the shop counter asks for a discount above the register's limit. A request is created and waits.
- The manager opens Approvals and sees the waiting requests, oldest first: sale, cashier, percentage and limit, amount, reason and when it runs out.
- Approve (one tap) or Reject (with a note of at least 3 characters).
- The cashier's counter goes on, or is refused.
flowchart TD
o1[/"Cashier asks for a discount above the register limit"/] --> sys1[["Request waits for a manager, once, for one cashier and one shift"]]
sys1 --> a1["Manager opens MA-17 on the phone"]
a1 --> d1{"Decision?"}
d1 -->|"Approve"| d2{"Still open, in time, and not asked by you?"}
d2 -->|"No"| r1(["422 the reason is shown"])
d2 -->|"Yes"| sys2[["The counter goes on with the discount"]]
d1 -->|"Reject"| a2["Write a note of at least 3 characters"]
a2 --> sys3[["The cashier is refused"]]
6.14 Messages (MA-18)
Purpose - chat between two companies about one record. Who - members with messages.view (read) and messages.send (write). A conversation belongs to the company, not to one login: every member with the permission reads the same threads.
Steps
- MA-18 lists the company's threads (search by reference, title or the other company's name; filter by kind) with the unread count and a preview.
- New message: choose the kind of record and type its code (for example a shipment code). One thread exists per record and pair of companies, so a second try opens the same one. A record whose own module does not allow a thread is refused.
- Open a thread: the newest 100 lines show. The phone asks for new lines every 5 seconds (nothing is pushed live).
- Type text (up to 4000 characters) and/or add up to 5 files (JPG, PNG or PDF, 10 MB each) and send. A retry with the same uuid never writes a line twice.
- Opening a thread does not mark it read: the phone sends mark read when the person has seen it. The other company sees Seen.
flowchart TD
s1(["MA-18 Messages"]) --> a1["List shows threads with unread counts"]
a1 --> d1{"Open a thread or start a new one?"}
d1 -->|"New message"| a2["Choose the kind of record and type its code"]
a2 --> d2{"The record's module allows a thread?"}
d2 -->|"No"| r1(["422 unknown record, not allowed or no other company"])
d2 -->|"Yes"| a3["Open the thread: newest 100 lines"]
d1 -->|"Existing"| a3
a3 --> a4["Phone asks for new lines every 5 seconds"]
a4 --> a5["Type text or add up to 5 files and send"]
a5 --> sys1[["Line saved once, the other company gets a bell and a push"]]
a3 --> a6["Mark the thread read when seen"]
If something goes wrong - an empty message is refused ("text or a file, at least one"); a thread whose record ended and whose read-only days passed ("read only"); a thread the company is not a party of is "not found". A chat line sends no SMS and no e-mail.
Note. Threads can be opened about a shipment, a load, a listing, a quote request, a service request and a provider's page; support tickets appear in the list but are answered in 6.20.
6.15 Notifications (MA-19)
Purpose - the bell of the app and the push messages. Who - every login; the notifications are the person's own.
Steps
- When the phone starts (and at each sign-in) it registers for push: the push token, platform (Android, iOS), app version and language. It is marked as the Traincu app, so an office notice never lands in the Driver app. At sign-out the phone removes it.
- MA-19 lists my notifications of the company in use plus platform notices. Filter by read or unread, by category and by text. The badge comes from the unread count (and how many critical ones nobody acknowledged).
- Tap a row: the app opens the related record (the row carries a path) and marks the row read. Mark all read clears every unread row of this company.
- Notification switches: for each category choose the channels (app, push, SMS, e-mail, WhatsApp) and the quiet hours (your own window, or the platform's). The in-app channel is always on; mandatory categories (security, licence, legal, support access, restriction) are locked on. Your choice is the same in every company you work in.
flowchart TD
s1(["Phone starts"]) --> a1["Register the phone: push token, platform, version"]
a1 --> sys1[["Phone is marked as the Traincu app"]]
sys1 --> o1[/"Something happens: an offer, a shipment step, a message"/]
o1 --> sys2[["Bell row written and push sent"]]
sys2 --> a2["MA-19 list and badge count"]
a2 --> d1{"What do you tap?"}
d1 -->|"One row"| a3["Opens the related record and marks it read"]
d1 -->|"Mark all read"| a4["Every unread row of this company becomes read"]
d1 -->|"Switches"| a5["Open channels, categories and quiet hours"]
a5 --> d2{"Mandatory category?"}
d2 -->|"Yes"| r1(["Locked on, cannot be switched off"])
d2 -->|"No"| e1(["Saved for the login in every company"])
If something goes wrong - somebody else's notification id is "not found"; a quiet-hours window that is not two times of the day is refused ("from" and "to" must be times and different).
6.16 Wallet and invoices (MA-20)
Purpose - see the company's money on Traincu and pay the invoices it received. Who - a finance role: wallet.view for the wallet, billing.view to list invoices, billing.pay to pay; invoices need a role that may see money.
Steps
- Wallet shows Balance, Held (and why), Pending, Due to pay (fees owed to Traincu), Available and the Next payout, the last movements and payouts. A payout is requested on the web: the app only says whether one may be asked for.
- Invoices: choose Issued or Received, filter by status (issued, partial, paid, applied, cancelled, overdue). Each row shows number, counterparty, shipment code, dates, subtotal, VAT, total, paid, balance and the e-invoice state.
- Open a received invoice that is still open and press Pay with Apple Pay or Pay with mada (the methods are mada, card, Apple Pay, STC Pay or bank transfer). The server starts the payment and returns a checkout address that the phone opens. Amounts reach the payment gateway as halalas - the server does that conversion; the phone only handles SAR text.
- When the provider confirms, the invoice is paid and the issuing company's money receipt is made.
flowchart TD
s1(["MA-20 Wallet and invoices"]) --> a1["Wallet cards: balance, held, due to pay, next payout"]
a1 --> a2["Invoices: Issued or Received"]
a2 --> a3["Open a received invoice and press Pay"]
a3 --> d1{"Role may see money and pay, and the invoice is open and received?"}
d1 -->|"No"| r1(["403 or 422 with a sentence"])
d1 -->|"Yes"| sys1[["Payment started, only one open payment per invoice"]]
sys1 --> a4["Phone opens the checkout address"]
a4 --> o1[/"Payment provider confirms"/]
o1 --> sys2[["Invoice paid and the issuer's money receipt is made"]]
If something goes wrong - "This invoice cannot be paid: only an invoice received from another company and still open can." (422); a role without the money flag gets 403.
6.17 Request a service, compare quotes, orders and policies (MA-21)
Purpose - get a tow, a tyre, a battery or a repair quickly, or ask providers for prices. Who - any company (permissions services.create, services.view, services.update); government services need gov_services.*; the lists of orders, parts and policies need orders.view, parts.view, insurance.view.
Steps
- MA-21 Request service: pick the Service (towing, tyre, battery, repair... from the catalogue tree - only leaf services can be asked), the Truck (one of your own trucks - only a snapshot goes to the provider), the Location from the current GPS (or in words), a Photo from the camera (up to 6), and describe the problem.
- For an emergency press Send SOS request: it is always "now" and goes to providers that work 24 hours, ranked by rating, response rate and distance. For an ordinary request choose now or a later time, and who to send to (best match, my providers, open to all, or one provider chosen from the directory).
- The answer says how many providers were told. If maps are down the request still goes out. If nobody is offered the job it is saved and staff route it by hand.
- The first provider that accepts wins; then the provider's contact shows (for an emergency it shows to every provider that was told). Providers may also send prices.
- Compare quotes: sort by price, rating, arrival or warranty; prices are shown without VAT and with VAT. Accept one: the job is booked, the other quotes close and their providers are told without naming the winner. You can also ask the told providers for a price (pressing twice asks once).
- When the work is done press Confirm (agree it is done). Before that you may Cancel with a reason.
- Government services (renewals and similar) are not asked for here: the app lists the trusted requests and drafts created from papers that run out, and lets you confirm or discard a draft.
- Orders, Parts (search by truck, part number or VIN fit) and Policies are read-only lists on the phone.
flowchart TD
s1(["MA-21 Request service"]) --> a1["Pick the service, Truck, Location from GPS, photo and problem"]
a1 --> d1{"Is it an emergency?"}
d1 -->|"Yes"| a2["Press Send SOS request, it is always now"]
d1 -->|"No"| a3["Choose now or a later time and who to send to"]
a2 --> d2{"Government service?"}
a3 --> d2
d2 -->|"Yes"| r1(["422 ask for it in the trusted list instead"])
d2 -->|"No"| sys1[["Request saved once, matched providers are told"]]
sys1 --> d3{"Any provider offered?"}
d3 -->|"No"| r2(["Saved with no provider told, staff route it by hand"])
d3 -->|"Yes"| o1[/"A provider accepts, the first accept wins"/]
o1 --> a4["Contact and progress appear on the request"]
a4 --> a5["Compare quotes and accept one, or wait for the work"]
a5 --> e1(["Work done: press Confirm. Cancel with a reason is possible before"])
Statuses of a service request
stateDiagram-v2 [*] --> open : Request sent open --> quoted : A provider sends a price open --> accepted : A provider takes the job quoted --> accepted : You accept a quote accepted --> scheduled : Provider sets a time accepted --> in_progress scheduled --> in_progress in_progress --> completed completed --> invoiced invoiced --> paid paid --> closed completed --> closed : You confirm open --> cancelled open --> expired open --> rejected
| Status | Meaning | What you can do |
|---|---|---|
| open | Sent, no provider yet | Cancel, ask for prices |
| quoted | Prices arrived | Compare quotes, accept one, cancel |
| accepted / scheduled / in_progress | A provider holds the job | Chat, wait |
| completed | The work is done | Confirm |
| invoiced / paid / closed | Money and closing | Read |
| cancelled / expired / rejected | Ended without work | Send a new request |
| disputed | A dispute was raised | See support |
| overdue (a derived mark) | An emergency or scheduled job is late | Wait or cancel |
If something goes wrong - a government service asked through the SOS ("use the trusted list"); a truck that is not one of the company's own; more than 20 presses a minute (429); a quote key of another request or an expired quote (422 with the sentence).
6.18 My listings and quotes: the provider's phone (MA-22)
Purpose - answer buyers quickly. Who - companies with the approved activity Equipment provider, Workshop, Parts supplier or Insurance provider.
Equipment provider (permissions listings.view, rfqs.view, rentals.view, rfqs.respond)
- The screen shows your standing, up to 20 of your listings (status, price, views), the quote requests still waiting with your state, the rentals of the next 7 days and the figures of the last 30 days (views, enquiries, quotes sent, won, saved).
- Open a waiting request and press Send quote: price, price unit, VAT included or not, valid until, delivery, terms and up to 3 PDFs. After the buyer counters, the same screen revises the quote; a second quote before that is refused.
flowchart TD
o1[/"A buyer sends a quote request on a listing"/] --> sys1[["The request reaches the provider's list"]]
sys1 --> a1["MA-22 shows quote requests still waiting"]
a1 --> a2["Press Send quote: price, VAT, valid until, terms, PDFs"]
a2 --> d1{"Already quoted and the buyer has not countered?"}
d1 -->|"Yes"| r1(["422 only one quote until the buyer counters"])
d1 -->|"No"| sys2[["Quote saved, the buyer is told"]]
sys2 --> o2[/"Buyer accepts, counters or lets it expire"/]
Workshop, parts supplier, insurer (permissions services.view, services.update, services.quote; purchase_orders.view; insurance.view)
- The summary shows the figures (new requests, emergencies, live jobs, quotes sent), the jobs waiting (emergencies first, with minutes left) and the jobs in progress. A parts supplier also sees orders to confirm; an insurer sees policies to issue.
- Open a job: customer name, truck snapshot (plate, make, model, year, VIN - no internal ids), place, problem, photos and the progress record. The customer's contact appears only after you accept (at once for an emergency).
- Accept (first accept wins), Decline (reason optional) or Send quote (price, unit, VAT, valid until, arrival hours, warranty months, notes; sending again revises it).
- Move the job: scheduled, in progress, completed. A priced job needs a photo of the finished work before completed.
- Lists of purchase orders (new, confirmed, shipped, delivered, completed, cancelled) and policies (by status and renewal) are read-only on the phone.
flowchart TD
s1(["MA-22 Provider"]) --> sys1[["Summary: new requests, emergencies, live jobs, quotes sent"]]
sys1 --> a1["Open the Waiting list, emergencies first"]
a1 --> a2["Open a job: customer, truck, place, problem, photos"]
a2 --> d1{"What do you choose?"}
d1 -->|"Decline"| a3["Optional reason"]
d1 -->|"Send quote"| a4["Price, unit, VAT, valid until, arrival, warranty"]
d1 -->|"Accept"| d2{"Already taken by another provider?"}
d2 -->|"Yes"| r1(["422 the job was taken"])
d2 -->|"No"| sys2[["You hold the job and the customer contact is shown"]]
sys2 --> a5["Move the status: scheduled, in progress, completed"]
a5 --> d3{"Priced job and no photo of the work?"}
d3 -->|"Yes"| r2(["422 add a photo first"])
d3 -->|"No"| e1(["Completed: the customer is asked to confirm"])
If something goes wrong - "the job was taken by another provider", "your licence for this restricted service ended", a quote after the validity, a move the job cannot make (422); a job this company was not told about is "not found"; a company with no provider activity gets 403.
Note - not available yet on the phone. Creating or editing a listing, placing parts orders, insurance requests and quotes, issuing invoices and asking for a government service are web actions today; the phone reads and answers.
6.19 Company papers, verification state and account manager
Purpose - keep the company verified. Who - the Owner and members who handle the company's papers (permission settings.documents); the account-manager answer is open to every member.
Steps
- Open the verification card: whether the company is verified, its CR status, each activity with its status (pending, approved, rejected, restricted) and the reason in your language, the required papers and the trust badges.
- Open Documents: each paper with status (under review, verified, due soon, expired, rejected, replaced), days left and a file link; and the list of kinds you may upload with a mark for the ones your activities require.
- Upload: choose the kind, enter number and dates (an expiry date for kinds that expire), attach a photo or PDF (PDF, JPG or PNG up to 5 MB), upload. It starts as under review and answers anything staff asked for.
- Your account manager: the main contact at Traincu (name, kind, mobile, e-mail, since when), if the company has one.
flowchart TD
s1(["Company papers"]) --> a1["Phone reads the list and the kinds of paper, required ones marked"]
a1 --> a2["Choose a kind, enter number and dates, attach a photo or PDF"]
a2 --> d1{"The kind has an expiry?"}
d1 -->|"Yes"| a3["Expiry date is required and after the issue date"]
d1 -->|"No"| a4["Press upload"]
a3 --> a4
a4 --> d2{"Allowed and the file valid?"}
d2 -->|"No"| r1(["422 per field"])
d2 -->|"Yes"| sys1[["Paper saved as under review, it answers what staff asked for"]]
sys1 --> o1[/"Verification officer verifies or rejects"/]
o1 --> e1(["Status verified or rejected with a reason in your language"])
If something goes wrong - 403 without settings.documents; "expiry date required" for a kind that expires; a vehicle's or a driver's kind of paper is refused here (they have their own screens, 6.12); more than 20 uploads a minute (429).
6.20 Support (MA-23)
Purpose - ask Traincu for help from the phone. Who - members with support.view (read) and support.create (write).
Steps
- Open Support. While you type What do you need?, the app suggests help articles (title and category). Tap one to read it whole.
- If no article helps, choose a Category and press Send ticket. The app attaches the screen name and the app version by itself; you may add a screenshot (JPG, PNG or PDF, 5 MB) and the related shipment, load, invoice, listing or trip.
- The ticket gets a code such as TCK-1180. The platform decides the priority; you see the due times and the support hours.
- Support replies; you see the shared messages only (internal notes never reach a phone). Reply on the ticket; a resolved ticket reopens. A ticket closed too long ago cannot be answered - the app opens a new one.
- Call support is shown when the platform has a support phone number set.
flowchart TD
s1(["MA-23 Support"]) --> a1["Type what you need, help articles are suggested"]
a1 --> d1{"An article answers it?"}
d1 -->|"Yes"| e1(["Read it, no ticket needed"])
d1 -->|"No"| a2["Choose Category and press Send ticket"]
a2 --> sys1[["App attaches screen name, app version, screenshot"]]
sys1 --> sys2[["Ticket made with a code like TCK-1180"]]
sys2 --> o1[/"Support replies, internal notes are never shown"/]
o1 --> a3["Reply on the ticket"]
a3 --> d2{"Ticket closed too long ago?"}
d2 -->|"Yes"| a4["422 so the app opens a new ticket"]
d2 -->|"No"| e2(["The ticket is open again"])
Fields
| Field | What to enter | Rules/limits |
|---|---|---|
| Subject | A short title | Required, up to 200 characters |
| What do you need? | The details | Required, up to 5000 characters |
| Category | From the list | Optional |
| Screenshot | Auto-attached by the app, or chosen | JPG, PNG or PDF, up to 5 MB, content checked |
6.21 Profile, settings, devices and identity check (MA-24)
Purpose - the person's own settings. Who - any login; no permission is needed and the settings belong to the login, so they are the same in every company.
Steps
- Open Profile and settings: name, e-mail and mobile (the mobile, e-mail and national ID are not changed here), photo, the Language (the languages staff switched on), Numbers (Western or Arabic-Indic digits; or follow the company default), Two-factor and the pointers to Notifications and Devices.
- Change name, language or number style and press Save.
- Two-factor on or off. It is locked when your role or an administrator requires it. Switching it off needs a token younger than 15 minutes: otherwise sign in again first. Switching it on needs a mobile or e-mail to send codes to. (It matters when sign-in codes are on.)
- Photo: upload a JPG, PNG or WebP up to 1 MB, or remove it.
- Devices: see the phones that hold a token (name, app, last used, expiry). Sign out one device, or all the others. You cannot sign out the phone you are using from this list - use Sign out.
- Verify identity with Nafath: enter your national ID or iqama number once; confirm the number in the Nafath app. The ID is never returned: you see only its last four digits.
flowchart TD
s1(["MA-24 Profile and settings"]) --> a1["Phone reads the profile card"]
a1 --> d1{"What do you change?"}
d1 -->|"Name, Language, Numbers"| a2["Press Save"]
d1 -->|"Two-factor"| d2{"Required by the role or an admin?"}
d2 -->|"Yes"| r1(["422 locked"])
d2 -->|"No"| d3{"Switching off with a token older than 15 minutes?"}
d3 -->|"Yes"| r2(["423 sign in again first"])
d3 -->|"No"| a3["Two-factor is changed"]
d1 -->|"Photo"| a4["Upload JPG, PNG or WebP up to 1 MB"]
d1 -->|"Devices"| a5["Sign one device out, or all the others"]
d1 -->|"Verify identity"| a6["Enter the national ID and confirm the number in Nafath"]
a6 --> e1(["Verified, only the last four digits are ever shown"])
If something goes wrong - "Two-factor is required for your account, so it cannot be changed here."; "Add a mobile number or an email address first, so the codes have somewhere to go."; "Please confirm it is you to continue." (423); a photo that is not what its name says; the Nafath start answers 404 when Nafath is off, 409 when you are already verified or the ID belongs to another account, 503 when Nafath does not answer, 429 after 5 starts in an hour.
6.22 A personal account on the phone: book a truck and answer the offers (MA-08, MA-09)
Purpose - a person books a truck without a company. Who - an individual (personal) account. The token's company must be the personal account; a company token on these doors gets 403 "Quick booking is for a personal account. A company posts a load with the full form."
What a personal account can open on the phone: home, equipment, favourites, quote requests, service requests, messages, support tickets, orders and parts lists, the shipments of its own bookings (list, detail, live track), bookings, notifications and the profile. The load board, loads, offers, fleet, wallet, invoices and provider screens stay closed.
Steps
- Fill the booking: pickup and delivery city (and a street or pin when both cities are the same), truck, optional cargo type, description, weight (up to 15,000 kg), helpers, and when (now, or a later time that is not in the past).
- The app asks for a quote: estimated price, distance, pickup time, whether an identity check will be asked, and which modes are possible. If no price line fits, only Get offers is possible.
- Choose Book now (fixed price; the first verified carrier that offers that price or less takes it by itself) or Get offers (carriers send offers; nothing is taken automatically). Above a platform limit (5,000 SAR by default) the person must have verified identity with Nafath first.
- Place the booking (with up to 4 photos). The booking becomes an open load.
- My bookings: one card per booking with a state, counts per state and a search by code, city or carrier.
- Open a booking: the offers on the table (carrier trade name, verified mark, rating, price before VAT, VAT, total, trucks, valid until, note - never a plate, driver or phone), then:
- Accept (the carrier wins, the others are told, a shipment is made);
- Refuse (reason optional);
- Counter-price (negotiable bookings only; not on a Book now booking and not when it is the carrier's turn);
- Cancel the booking while it is open (reason optional).
- After the award the booking shows the carrier, the shipment (code, status, truck number and driver name once named, no mobile), the payment state with a link to pay, and chat. Tracking follows in MA-13.
flowchart TD
s1(["Personal account on the phone"]) --> a1["Enter pickup, delivery, truck, cargo, weight and when"]
a1 --> sys1[["Quote: price, distance, pickup time and the modes possible"]]
sys1 --> d1{"A price line was found?"}
d1 -->|"No"| a2["Only Get offers is possible"]
d1 -->|"Yes"| a3["Choose Book now at the fixed price, or Get offers"]
a2 --> a4["Place the booking"]
a3 --> d2{"Price above the identity limit and identity not verified?"}
d2 -->|"Yes"| r1(["422 verify identity first"])
d2 -->|"No"| a4
a4 --> sys2[["The booking is an open load"]]
sys2 --> o1[/"Carriers send offers"/]
o1 --> d3{"Book now and a verified carrier offers at or below the price?"}
d3 -->|"Yes"| sys3[["Taken by itself, you get a notification"]]
d3 -->|"No"| a5["The offer waits: Accept, Refuse or Counter-price"]
a5 --> sys3
sys3 --> a6["Pay, track and chat from the booking"]
States of a booking (worked out from the load and the shipment, never typed)
stateDiagram-v2 [*] --> waiting : Booking placed waiting --> offer_received : An offer waits for you offer_received --> waiting : You counter waiting --> accepted : A carrier wins offer_received --> accepted : You accept accepted --> truck_assigned truck_assigned --> on_the_way on_the_way --> delivered waiting --> cancelled offer_received --> cancelled
| State | Meaning | What you can do |
|---|---|---|
| waiting | Open, no offer waits for your answer (includes "I countered, the carrier must answer") | Wait, cancel |
| offer_received | At least one offer waits for you | Accept, Refuse, Counter-price, Cancel |
| accepted | A carrier won it and has no truck yet | Chat |
| truck_assigned | A truck and driver are named | Track, Pay |
| on_the_way | At pickup, loaded, in transit or at delivery | Track |
| delivered | Delivered, paid or settled | Read |
| cancelled / expired | Withdrawn, or time ran out | Book again |
If something goes wrong - "Quick booking is for a personal account..." (a company token); "The other side has to answer first."; a fixed-price booking is not negotiated; the offer ran out; the booking is no longer open; another person's booking is "not found". Every write accepts a uuid, so a retry never accepts, refuses or cancels twice.
7. Screen by screen
MA-01 - Welcome
Design address app://welcome. Who - anyone, no login. What you see - a language choice (العربية / English) and two buttons, Get started and I have an account. The layout mirrors for Arabic. What you can do - choose the language; go to Register or Log in. Behind the screen - the phone reads one "meta" answer: the languages staff switched on (with a right-to-left flag and the default), the country (calling code, mobile example, currency), the activities, the cities and the password hint. See 6.2 and table 9.1.
MA-02 - Login
Design address app://login. Who - anyone with a login. What you see - the Dev Pack shows Mobile number (+966 5X XXX XXXX) and One-time code, with Log in and Log in with Nafath. In the shipped server the first way is the password (e-mail or mobile + password); the code way appears only while codes are switched on. What you can do - log in (6.3.1, 6.3.2), log in with Nafath (6.3.3). Unlocking the phone with a fingerprint or face after the first login is the phone's own feature. See table 9.1.
MA-03 - Register
Design address app://register. Who - a new customer. What you see - Activity, CR number, Company name (from the registry), City, Documents (camera or PDF) and Continue. What you can do - register a company (6.4.1) or a personal account (6.4.2); upload the papers afterwards (6.19). The Dev Pack note about owner-operators registering as individuals with Nafath is not built. See table 9.1 and 9.14.
MA-04 - Home
Design address app://home. Who - any login. What you see - cards, notices, requests that need attention, Get started steps; for a company that waits for verification, a notice per activity. The Dev Pack shows a Post a load button; it leads to MA-08. What you can do - tap a card to open its screen; see who you are and your account manager. See 6.5 and tables 9.2 and 9.14.
MA-05 - Company switcher
Design address app://companies. Who - a login that belongs to more than one company. What you see - each company's name, your role, its activities, the owner and verified marks, and which one is in use. What you can do - Switch. See 6.5 and table 9.2.
MA-06 - Equipment search
Design address app://equipment. Who - anyone. What you see - Search, Category, Buy / rent, City, and Filters; cards of public listings. The data is the same as the public web page P-02 (02). What you can do - search (Arabic-aware), filter, sort, scroll with the cursor. See 6.6 and table 9.3.
MA-07 - Listing detail
Design address app://listing/{id} (the id is the listing's uuid). Who - anyone to read; a login to act. What you see - photos, specifications, seller badges, similar listings. What you can do - Request quote (creates a quote request), Save, Rent, Chat (6.6). See table 9.3.
MA-08 - Post load
Design address app://loads/new. Who - a shipper company (a personal account books through 6.22 instead). What you see - six steps, one per screen: Cargo, Truck, Stops (with Pickup pin and Delivery pin on a map), Dates (Pickup window, Deliver by), Price, Visibility and review; Continue moves on. What you can do - save step by step, publish. See 6.7 and table 9.4.
MA-09 - My loads and offers
Design address app://loads. Who - the shipper; a personal account sees its bookings. What you see - the load list with status tabs; per load the offer cards. What you can do - Compare offers, accept, counter, reject, edit a draft or an open load, cancel. See 6.8, 6.22 and tables 9.4 and 9.17.
MA-10 - Load board
Design address app://loadboard. Who - carrier and owner-operator. What you see - From, To, Truck and more filters; list or Map view; backhaul matches marked; "new" marks. What you can do - filter, search, toggle Near my truck and Backhaul, open a load. See 6.9 and table 9.5.
MA-11 - Submit offer
Design address app://loadboard/{code}/offer. Who - carrier and owner-operator with offers.create. What you see - the route and cargo above the form: Price (SAR), Trucks, Valid until, Note. What you can do - Submit offer; later agree, counter, decline, withdraw. See 6.9 and table 9.5.
MA-12 - Shipments
Design address app://shipments. Who - shipper and carrier see their own side. What you see - the list, a Filter by status, the side switch. What you can do - filter, search, open a shipment. See 6.10 and table 9.6.
MA-13 - Shipment tracking
Design address app://shipments/{code}. Who - the two parties of the shipment. What you see - facts, stops, timeline, live map from the driver's GPS, reported problems. What you can do - Share tracking link, report and resolve a delay. See 6.10 and table 9.6.
MA-14 - Assign truck and driver
Design address app://shipments/{code}/assign. Who - the carrier with shipments.assign. What you see - Truck, Driver, Trailer, the findings. What you can do - Assign. Expired documents and drivers without papers are blocked. See 6.11 and table 9.6.
MA-15 - Fleet map
Design address app://fleet/map. Who - the carrier with shipments.track. What you see - the carrier's shipments in flight on a map, with counts per state. What you can do - Filters (state, code or plate). See 6.12 and table 9.7.
MA-16 - Vehicles and alerts
Design address app://fleet. Who - fleet manager. What you see - document alerts first, then trucks; also drivers. What you can do - Renew a paper, add a driver. See 6.12 and table 9.7.
MA-17 - Approvals
Design address app://approvals. Who - a manager of a parts supplier. What you see - the discount requests that wait. What you can do - Approve, Reject. Only this kind is built today; see the note in 6.13 and table 9.8.
MA-18 - Messages
Design address app://messages. Who - members with the messages permissions. What you see - threads per record. What you can do - New message, read, send text and files, mark read. See 6.14 and table 9.9.
MA-19 - Notifications
Design address app://notifications. Who - any login. What you see - the list, the badge, the switches. What you can do - Mark all read, tap a row to open the record, change the switches. See 6.15 and table 9.10.
MA-20 - Wallet and invoices
Design address app://wallet. Who - finance. What you see - wallet cards, invoices (issued and received). What you can do - Pay with Apple Pay, Pay with mada (and card, STC Pay, bank transfer) for a received invoice. See 6.16 and table 9.11.
MA-21 - Request service
Design address app://services/new. Who - any company buyer; a personal account too. What you see - Service (towing, tyre, battery, repair...), Truck, Location (current GPS), Photo (camera), Send SOS request. What you can do - send, compare quotes, accept, confirm, cancel; read orders, parts and policies. Emergency requests go to the nearest 24-hour providers. See 6.17 and table 9.12.
MA-22 - My listings and quotes
Design address app://provider. Who - equipment provider, workshop, parts supplier, insurer. What you see - listings and requests that wait, or jobs, orders and policies. What you can do - Send quote, accept or decline a job, move its status. See 6.18 and table 9.13.
MA-23 - Support
Design address app://support. Who - members with the support permissions. What you see - What do you need?, Category, screenshot (auto-attached), Send ticket, Call support. What you can do - read help articles, send and follow tickets. See 6.20 and table 9.15.
MA-24 - Profile and settings
Design address app://settings. Who - any login. What you see - Language, Numbers (Western or Arabic-Indic), Two-factor (on or off), Notifications, photo, devices, identity check; Save. What you can do - change them (6.21). See table 9.16 (and 9.10 for the notification switches).
8. Tips and common questions
Why does a screen say "Your company does not have an approved activity for this screen"? The company has not got that activity approved yet (a new company starts with all activities pending), or it is restricted. Check the notice on the home and the verification card, and upload the papers staff asked for (6.19).
I never get a one-time code. Sign-in codes are switched off by default. Log in with your e-mail or mobile number and password. When staff switch codes on, the code goes by the platform's channel (e-mail today; SMS only when an SMS gateway exists).
I pressed Submit twice. Did I make two offers? No. The phone sends a UUID with the write, so the server does the work once and answers the first result again. Without a UUID the server cannot know; the app sends it for you.
Why do I not see the price of a listing, a part or an amount on a card? The seller may hide the price (the card says "Request a quote"), or your role has no permission to see money. The app shows an empty value, never a made-up zero.
What does 423 mean? "Locked" or "confirm it is you". After too many wrong tries the account is locked for 15 minutes. Switching two-factor off, or starting the identity check, with a token older than 15 minutes also answers 423: sign in again, then repeat.
Why can the shipper not see the truck yet? The shipper sees a truck only from the moment it is at pickup until 24 hours after delivery. The carrier always sees its own trucks.
I lost my phone. What do I do? Sign in on another device and open Profile > Devices; sign the lost phone out (its token is deleted). Change your password on the web if you are worried.
How do I add another company to my login? On the web ("Add a company" in the company switcher). The app switches between companies you already belong to.
Does the app work without a network? Reading needs the network. For writes the server is safe to retry (uuid), but keeping an offline queue is the phone's job; there is no offline replay for this app. The offline replay of trip events belongs to the Driver app (26).
In which language do I get error sentences?
In the language the phone asks for (?lang=, or the Accept-Language header), else your own language setting, else Arabic. Names of services, statuses and sentences all follow it.
Why can my personal account not open the Load board or Fleet? A personal account has no activities. It opens only a short list of doors (6.22). A company that wants those screens registers a company (6.4.1).
Which screens are not on the phone yet? General approvals of MA-17 (only the shop discount approval exists), registering an owner-operator as an individual, accepting an equipment quote, asking for a payout, creating a government-service request, managing listings, saved searches and recurring loads. Use the web for these.
9. Page reference (for support and testing)
This guide has no web pages (section B of the assignment is empty) and no web action routes (section C is empty): the phone talks to the server only through the 141 calls below. A write is any row whose method is POST, PUT or DELETE. All addresses start with /api/v1/app. The column uuid marks the writes that accept X-Client-Uuid (safe retry, see 6.1); the module and permission names are for support and testing only.
9.1 Welcome, log in and register (MA-01 to MA-03, no token yet)
| Method | Address | Route name | Who can call | uuid | What it does |
|---|---|---|---|---|---|
| POST | /api/v1/app/auth/login |
api.v1.app.auth.login |
no sign-in | Password sign-in: e-mail or mobile number plus password plus device name. Answers with the token, the person and the companies. | |
| POST | /api/v1/app/auth/logout |
api.v1.app.auth.logout |
any signed-in login | Signs this phone out: the token is deleted. | |
| POST | /api/v1/app/auth/nafath |
api.v1.app.auth.nafath.start |
no sign-in | Starts Log in with Nafath for a national ID or iqama number. Answers with a secret request handle, the number to confirm in the Nafath app, and how often to ask. | |
| POST | /api/v1/app/auth/nafath/status |
api.v1.app.auth.nafath.status |
no sign-in | Asked every few seconds: pending, rejected, expired, or approved with the token. The request works once and only on the phone that started it. | |
| POST | /api/v1/app/auth/otp |
api.v1.app.auth.otp |
no sign-in | Asks for a one-time code for a mobile number. Works only while sign-in codes are switched on, otherwise 422. | |
| POST | /api/v1/app/auth/password |
api.v1.app.auth.password |
no sign-in | The second step after the code: the challenge, the password and the device name. Answers with the token. | |
| POST | /api/v1/app/auth/verify |
api.v1.app.auth.verify |
no sign-in | Checks the mobile number and the code. Answers with the token, or with a challenge when the account must also give its password (Owner, Finance). | |
| GET | /api/v1/app/meta |
api.v1.app.meta |
no sign-in | Everything the app needs before sign-in: languages (with right-to-left flag and the default), the country (calling code, mobile example, currency), the activities, the cities, the password hint and whether Log in with Nafath is on (nafath_available). |
|
| POST | /api/v1/app/register |
api.v1.app.register.start |
no sign-in | Registers a company: activities, CR number, company details, owner name, mobile, e-mail, password. With sign-in codes off it makes the company and the Owner login at once and answers 201 with the token (send device_name); with codes on it sends a code and answers with a registration handle. | |
| POST | /api/v1/app/register/personal |
api.v1.app.register.personal |
no sign-in | Makes a personal account: name, real e-mail, mobile, city, password. With codes on it is called twice (first without code to send it, then with code and password). | |
| POST | /api/v1/app/register/resend |
api.v1.app.register.resend |
no sign-in | Sends the registration code again (only while codes are on). | |
| POST | /api/v1/app/register/verify |
api.v1.app.register.verify |
no sign-in | Checks the code, then makes the company, its Owner login and the token (only while codes are on). The handle lives 15 minutes. |
9.2 Home, who am I, company switcher (MA-04, MA-05)
| Method | Address | Route name | Who can call | uuid | What it does |
|---|---|---|---|---|---|
| GET | /api/v1/app/home |
api.v1.app.home |
any signed-in login | The home: cards (the same tiles as the web home), notices for activities that wait, requests that need attention and the Get started steps. | |
| GET | /api/v1/app/me |
api.v1.app.me |
any signed-in login | Who is signed in: the person, the company in use and the person's role there. | |
| GET | /api/v1/app/organizations |
api.v1.app.organizations.index |
any signed-in login | The companies this login can work in, with role, activities, owner flag, verified flag and which one is in use. | |
| POST | /api/v1/app/organizations/{organization}/select |
api.v1.app.organizations.select |
any signed-in login | Makes one company the one the login opens next time. A company the login does not belong to is 403. |
9.3 Equipment search, listing detail, favourites, quote requests (MA-06, MA-07)
| Method | Address | Route name | Who can call | uuid | What it does |
|---|---|---|---|---|---|
| GET | /api/v1/app/catalogue |
api.v1.app.catalogue |
no sign-in | The category tree, the active brands and (with a brand) its models, to fill the filters. Carries an ETag; send If-None-Match to get 304. | |
| GET | /api/v1/app/equipment |
api.v1.app.equipment.index |
no sign-in | Search the equipment marketplace: text, category, brand, model, buy/rent/import, city, condition, years, price range, sort. Pages by an opaque cursor. Throttled 30 a minute. | |
| GET | /api/v1/app/equipment/{uuid} |
api.v1.app.equipment.show |
no sign-in | One public listing: photos, specifications, seller badges, the buttons (quote, save, rent, chat) and similar listings. Counts one view. | |
| GET | /api/v1/app/favourites |
api.v1.app.favourites.index |
any signed-in login | My saved things (a login's own list, the same in every company). A thing that left the market shows as no longer available. | |
| POST | /api/v1/app/favourites |
api.v1.app.favourites.store |
any signed-in login | uuid | Saves a listing to favourites (type and uuid). Saving twice changes nothing. |
| DELETE | /api/v1/app/favourites/{favourite} |
api.v1.app.favourites.destroy |
any signed-in login | Removes a favourite by its own id. Another login's id is 404. | |
| POST | /api/v1/app/rfqs |
api.v1.app.rfqs.store |
rfqs.create |
uuid | Request quote: sends a quote request about a listing (or an open request by type and category: equipment, rent or import; the type service is refused with 422, ask for a service with POST /api/v1/app/services/requests). Throttled 20 a minute. |
| GET | /api/v1/app/rfqs |
api.v1.app.rfqs.index |
rfqs.view |
The quote requests this company sent, newest first, with a filter by status. | |
| GET | /api/v1/app/rfqs/{myRfq} |
api.v1.app.rfqs.show |
rfqs.view |
One request this company sent, with the quotes received and (after a quote is accepted) the other party's contact. |
9.4 Post a load and my loads and offers - shipper (MA-08, MA-09)
| Method | Address | Route name | Who can call | uuid | What it does |
|---|---|---|---|---|---|
| GET | /api/v1/app/loads |
api.v1.app.loads.index |
loads.view + shipper activity |
The company's own loads, newest first. Filter by a stored status or by offers_received. | |
| POST | /api/v1/app/loads |
api.v1.app.loads.store |
loads.create + shipper activity |
uuid | Makes a new draft from any part of the six steps (the phone saves step by step). Throttled 60 a minute. |
| GET | /api/v1/app/loads/{load} |
api.v1.app.loads.show |
loads.view + shipper activity |
One load in full: every step, what still stops the publish, and whether it can be published now. | |
| PUT | /api/v1/app/loads/{load} |
api.v1.app.loads.update |
loads.update + shipper activity |
uuid | Changes a draft or an open load, one step or several. Throttled 60 a minute. |
| POST | /api/v1/app/loads/{load}/cancel |
api.v1.app.loads.cancel |
loads.delete + shipper activity |
uuid | Withdraws a load (a draft is thrown away the same way). A reason of 3 to 300 characters is required. |
| GET | /api/v1/app/loads/{load}/offers |
api.v1.app.loads.offers.index |
offers.view + shipper activity |
The offers on one load as cards: figures, offers and price history. A sealed bid shows only the count until its deadline. | |
| POST | /api/v1/app/loads/{load}/offers/{offer}/award |
api.v1.app.loads.offers.award |
loads.award + shipper activity |
uuid | Accept: confirms the award of one offer. The shipment is made, the other offers are closed. Throttled 30 a minute. |
| POST | /api/v1/app/loads/{load}/offers/{offer}/counter |
api.v1.app.loads.offers.counter |
offers.respond + shipper activity |
uuid | Counter: the shipper sends a new price on one offer (price, valid until, message). |
| POST | /api/v1/app/loads/{load}/offers/{offer}/reject |
api.v1.app.loads.offers.reject |
offers.respond + shipper activity |
uuid | Rejects one offer, with an optional reason. The carrier is told. |
| POST | /api/v1/app/loads/{load}/publish |
api.v1.app.loads.publish |
loads.update + shipper activity |
uuid | Publishes a draft (draft becomes open). Answers 422 with the list of what is missing. Throttled 30 a minute. |
9.5 Load board and the carrier's offers (MA-10, MA-11)
| Method | Address | Route name | Who can call | uuid | What it does |
|---|---|---|---|---|---|
| GET | /api/v1/app/loadboard |
api.v1.app.loadboard.index |
loadboard.view + carrier or owner-operator activity |
A page of loads this carrier may see, with every filter of the web board as a query parameter, near-my-truck and backhaul toggles, search and sort. | |
| GET | /api/v1/app/loadboard/options |
api.v1.app.loadboard.options |
loadboard.view + carrier or owner-operator activity |
The drop-down lists of the board (cities, trucks, trailers, cargo types, price types and more) and whether the two toggles can answer. | |
| GET | /api/v1/app/loadboard/{code} |
api.v1.app.loadboard.show |
loadboard.view + carrier or owner-operator activity |
One load as a carrier may read it: rounded stops (no exact pin or address before the award), items, shipper badges and can_offer. | |
| POST | /api/v1/app/loadboard/{load}/offer |
api.v1.app.offers.store |
offers.create + carrier or owner-operator activity |
uuid | Submit offer: price, trucks, valid until, note on one board load. Throttled 60 a minute. |
| GET | /api/v1/app/offers |
api.v1.app.offers.index |
offers.view + carrier or owner-operator activity |
The carrier's own offers, filter by status or by whose turn it is. | |
| GET | /api/v1/app/offers/{offer} |
api.v1.app.offers.show |
offers.view + carrier or owner-operator activity |
One of the carrier's offers with its price history (rounds). | |
| POST | /api/v1/app/offers/{offer}/agree |
api.v1.app.offers.agree |
offers.respond + carrier or owner-operator activity |
uuid | The carrier says yes to the shipper's price; the shipper then awards. |
| POST | /api/v1/app/offers/{offer}/counter |
api.v1.app.offers.counter |
offers.respond + carrier or owner-operator activity |
uuid | The carrier sends a new price on its offer (price, valid until, message). |
| POST | /api/v1/app/offers/{offer}/decline |
api.v1.app.offers.decline |
offers.respond + carrier or owner-operator activity |
uuid | The carrier says no to the shipper's price, with a reason. |
| POST | /api/v1/app/offers/{offer}/withdraw |
api.v1.app.offers.withdraw |
offers.respond + carrier or owner-operator activity |
uuid | The carrier takes its offer back. |
9.6 Shipments, tracking, assign truck and driver, delays (MA-12, MA-13, MA-14)
| Method | Address | Route name | Who can call | uuid | What it does |
|---|---|---|---|---|---|
| GET | /api/v1/app/shipments |
api.v1.app.shipments.index |
shipments.view |
The company's shipments, soonest pickup first. ?side=shipper or carrier chooses the half; filter by status, search by code, load code, contract reference or plate. | |
| GET | /api/v1/app/shipments/won |
api.v1.app.shipments.won |
shipments.view |
The carrier's won shipments, those without a truck first. A lane Missing is a pickup soon with no truck. | |
| GET | /api/v1/app/shipments/{code} |
api.v1.app.shipments.show |
shipments.view |
One shipment: facts, stops, timeline and the tabs the app may open. Each side reads only what it may. | |
| POST | /api/v1/app/shipments/{code}/assign |
api.v1.app.shipments.assign |
shipments.assign |
uuid | Assign: gives the shipment its truck, driver, helper and trailer plate. 422 carries findings and whether a reason would let it through. Throttled 30 a minute. |
| GET | /api/v1/app/shipments/{code}/assign-options |
api.v1.app.shipments.assign-options |
shipments.assign |
What may be chosen: free and legal trucks, drivers with hours left, and the findings a choice would raise. | |
| GET | /api/v1/app/shipments/{code}/exceptions |
api.v1.app.shipments.exceptions |
shipments.view |
The delays and problems of one shipment, and the kinds a person may report. | |
| POST | /api/v1/app/shipments/{code}/exceptions |
api.v1.app.shipments.exceptions.store |
shipments.report |
uuid | Report delay: reports a delay, breakdown, accident, road closed or other, with an optional photo (multipart). Throttled 30 a minute. |
| POST | /api/v1/app/shipments/{code}/exceptions/{exception}/resolve |
api.v1.app.shipments.exceptions.resolve |
shipments.report |
Closes one reported problem. | |
| GET | /api/v1/app/shipments/{code}/track |
api.v1.app.shipments.track |
shipments.track |
Live tracking of one shipment as the asking side may read it: position, trail, ETA, stops, centre and refresh seconds. Never cached. | |
| GET | /api/v1/app/shipments/{code}/tracking-links |
api.v1.app.shipments.tracking-links.index |
shipments.track |
The tracking links of one shipment (never a token): who, state, expiry, views. | |
| POST | /api/v1/app/shipments/{code}/tracking-links |
api.v1.app.shipments.tracking-links.store |
shipments.track |
uuid | Share tracking link: makes a link for the consignee or the shipper's customer and (by default) sends it by SMS. The address comes back once. Throttled 30 a minute. |
| DELETE | /api/v1/app/shipments/{code}/tracking-links/{link} |
api.v1.app.shipments.tracking-links.destroy |
shipments.track |
Revokes one tracking link. |
9.7 Fleet map, vehicles, alerts and drivers (MA-15, MA-16)
| Method | Address | Route name | Who can call | uuid | What it does |
|---|---|---|---|---|---|
| GET | /api/v1/app/fleet/alerts |
api.v1.app.fleet.alerts |
compliance.view |
What runs out: papers of trucks, drivers and the company, with days left and a band (expired, 0-30, 31-60, 61-90, later). | |
| GET | /api/v1/app/fleet/drivers |
api.v1.app.fleet.drivers.index |
staff.view |
The company's drivers, helpers and operators (inside the person's data scope), with licence state. No identity numbers, no bank details. | |
| POST | /api/v1/app/fleet/drivers |
api.v1.app.fleet.drivers.store |
staff.create |
uuid | Adds a driver (the fields of Add driver); an invitation SMS goes unless invite is false. Throttled 20 a minute. |
| GET | /api/v1/app/fleet/drivers/{driver} |
api.v1.app.fleet.drivers.show |
staff.view |
One driver with the state of the papers. A personal paper has no file link here. | |
| POST | /api/v1/app/fleet/drivers/{driver}/documents |
api.v1.app.fleet.drivers.documents.store |
staff.update |
uuid | Uploads a driver paper (licence, professional card, iqama and so on) with its dates and scan. Throttled 20 a minute. |
| POST | /api/v1/app/fleet/drivers/{driver}/invite |
api.v1.app.fleet.drivers.invite |
staff.update |
Sends (again) the invitation to the Driver app. Throttled 20 a minute. | |
| GET | /api/v1/app/fleet/map |
api.v1.app.fleet.map |
shipments.track |
Fleet map: one row per shipment of this carrier in flight, with state counts, centre, zoom and refresh seconds. Never cached. | |
| GET | /api/v1/app/fleet/vehicles |
api.v1.app.fleet.vehicles |
vehicles.view |
The company's trucks: plate, type, status, document state (valid, due soon, expired), blocked or not and why, driver, branch. Filter and search. | |
| POST | /api/v1/app/fleet/vehicles/{vehicle}/documents |
api.v1.app.fleet.vehicles.documents.store |
vehicles.update |
uuid | Renew: uploads a truck paper (type, number, dates, scan of PDF, JPG or PNG up to 5 MB). Throttled 20 a minute. |
9.8 Approvals - discount approvals of the shop counter (MA-17)
| Method | Address | Route name | Who can call | uuid | What it does |
|---|---|---|---|---|---|
| GET | /api/v1/app/pos/discount-approvals |
api.v1.app.pos.approvals.index |
pos.approve + parts supplier activity |
The discount requests that wait for a manager, oldest first (needs a role that may see money). | |
| POST | /api/v1/app/pos/discount-approvals/{override}/approve |
api.v1.app.pos.approvals.approve |
pos.approve + parts supplier activity |
uuid | Approve: one tap. 422 when it was already decided, ran out of time, or the caller asked for it. |
| POST | /api/v1/app/pos/discount-approvals/{override}/reject |
api.v1.app.pos.approvals.reject |
pos.approve + parts supplier activity |
uuid | Reject: refuses with a note of at least 3 characters. |
9.9 Messages (MA-18)
| Method | Address | Route name | Who can call | uuid | What it does |
|---|---|---|---|---|---|
| GET | /api/v1/app/conversations |
api.v1.app.conversations.index |
messages.view |
The company's chat threads (one per record and pair of companies) with unread counts and previews. Filter by search text or subject type. | |
| POST | /api/v1/app/conversations |
api.v1.app.conversations.store |
messages.send |
uuid | New message: opens (or finds) the thread about a record: subject type and the record's code. Throttled 30 a minute. |
| GET | /api/v1/app/conversations/{conversation}/messages |
api.v1.app.conversations.messages |
messages.view |
The lines of a thread: the newest 100, or only those after a given id (the poll every 5 seconds). Does not mark the thread read. | |
| POST | /api/v1/app/conversations/{conversation}/messages |
api.v1.app.conversations.send |
messages.send |
uuid | Sends a line: text up to 4000 characters and up to 5 files (JPG, PNG or PDF, 10 MB each). Throttled 60 a minute. |
| POST | /api/v1/app/conversations/{conversation}/read |
api.v1.app.conversations.read |
messages.view |
Marks the thread as seen as it stands (unread becomes 0). Throttled 120 a minute. |
9.10 Notifications, switches and phone registration (MA-19)
| Method | Address | Route name | Who can call | uuid | What it does |
|---|---|---|---|---|---|
| POST | /api/v1/app/devices |
api.v1.app.devices.store |
any signed-in login | uuid | Registers this phone for push messages (fcm_token, platform, app version, locale). Marked as the Traincu app, never the Driver app. |
| DELETE | /api/v1/app/devices/{device} |
api.v1.app.devices.destroy |
any signed-in login | Removes this login's push registration (call it at sign-out). Another login's id is 404. | |
| GET | /api/v1/app/notification-preferences |
api.v1.app.notification-preferences.show |
any signed-in login | The switches of the login: channels (app, push, sms, email, whatsapp), categories (mandatory ones locked) and quiet hours. | |
| PUT | /api/v1/app/notification-preferences |
api.v1.app.notification-preferences.update |
any signed-in login | Saves the switches and the quiet hours (own window or the platform's). | |
| GET | /api/v1/app/notifications |
api.v1.app.notifications.index |
any signed-in login | My notifications of the company in use plus platform notices: filter read/unread, type and text. 20 a page, up to 100. | |
| POST | /api/v1/app/notifications/read-all |
api.v1.app.notifications.read-all |
any signed-in login | Mark all read: marks every unread notification of this person in this company read. | |
| GET | /api/v1/app/notifications/unread-count |
api.v1.app.notifications.unread-count |
any signed-in login | The numbers for the badge: unread, and critical ones nobody has acknowledged. | |
| POST | /api/v1/app/notifications/{alert}/read |
api.v1.app.notifications.read |
any signed-in login | Marks one notification read. Somebody else's id is 404. |
9.11 Wallet and invoices (MA-20)
| Method | Address | Route name | Who can call | uuid | What it does |
|---|---|---|---|---|---|
| GET | /api/v1/app/invoices |
api.v1.app.invoices.index |
billing.view + role that may see money |
The trade invoices between this company and other companies: side=issued or received, status, pages. | |
| POST | /api/v1/app/invoices/{tradeDocument}/pay |
api.v1.app.invoices.pay |
billing.pay + role that may see money |
uuid | Pay with Apple Pay / Pay with mada: starts the payment of ONE received invoice (method mada, card, apple_pay, stc_pay or bank_transfer) and answers with the payment and its checkout address. |
| GET | /api/v1/app/wallet |
api.v1.app.wallet |
wallet.view |
The wallet: balance, held, pending, due to pay, available, next payout, the last 25 movements, the last 10 payouts and whether a payout may be asked for. |
9.12 Request a service, compare quotes, orders, parts, policies (MA-21)
| Method | Address | Route name | Who can call | uuid | What it does |
|---|---|---|---|---|---|
| GET | /api/v1/app/orders |
api.v1.app.orders |
orders.view |
My orders: service jobs, purchase orders and policies in one list (each kind shows only with its own permission). | |
| GET | /api/v1/app/parts |
api.v1.app.parts |
parts.view |
Spare parts by truck: search text, part number, own truck or VIN fit, kind, city, category, maker, stock. Hidden prices stay hidden. | |
| GET | /api/v1/app/policies |
api.v1.app.policies |
insurance.view |
The insurance policies this company holds, with status, dates, days left and premium. | |
| GET | /api/v1/app/services/categories |
api.v1.app.services.categories |
no sign-in | The service catalogue as a tree for the picker; requestable says which one a request may name (government services are information only). | |
| GET | /api/v1/app/services/providers |
api.v1.app.services.providers |
no sign-in | The public provider directory: filter by service, city, open 24 hours, mobile. Never a phone, e-mail, CR or VAT number. | |
| POST | /api/v1/app/services/requests |
api.v1.app.services.requests.store |
services.create |
uuid | Send SOS request / ordinary service request: category, GPS pin, truck, problem, when, who to send to, photos. Throttled 20 presses a minute. |
| GET | /api/v1/app/services/requests |
api.v1.app.services.requests.index |
services.view |
My service requests with filters: status, emergency, search by code or words. | |
| GET | /api/v1/app/services/requests/{myRequest} |
api.v1.app.services.requests.show |
services.view |
One request in full with its progress record, the quotes count, the buttons it may use and (after a provider accepts) the provider's contact. | |
| POST | /api/v1/app/services/requests/{myRequest}/cancel |
api.v1.app.services.requests.cancel |
services.update |
uuid | Cancels the request; a reason is required (up to 300 characters). |
| POST | /api/v1/app/services/requests/{myRequest}/confirm |
api.v1.app.services.requests.confirm |
services.update |
uuid | Agrees that the finished work is done (optional note). |
| GET | /api/v1/app/services/requests/{myRequest}/quotes |
api.v1.app.services.requests.quotes.index |
services.view |
Compare quotes: the prices received, net of VAT and with VAT, rating, arrival, warranty. Sort by price, rating, arrival or warranty. | |
| POST | /api/v1/app/services/requests/{myRequest}/quotes/ask |
api.v1.app.services.requests.quotes.ask |
services.create |
Asks the providers that were told for a price (pressing twice asks once). | |
| POST | /api/v1/app/services/requests/{myRequest}/quotes/{quote}/accept |
api.v1.app.services.requests.quotes.accept |
services.update |
uuid | Takes one quote (by its key): the job is booked, the other quotes are closed and their providers told. |
| GET | /api/v1/app/services/trusted |
api.v1.app.services.trusted.index |
gov_services.view |
My government service requests, drafts included (B-06). | |
| POST | /api/v1/app/services/trusted/{myRequest}/confirm |
api.v1.app.services.trusted.confirm |
gov_services.create |
uuid | Confirms a draft that was prepared from a paper that runs out (needed by day and notes optional). |
| POST | /api/v1/app/services/trusted/{myRequest}/discard |
api.v1.app.services.trusted.discard |
gov_services.create |
uuid | Throws a draft away (reason optional). |
9.13 My listings and quotes - providers (MA-22)
| Method | Address | Route name | Who can call | uuid | What it does |
|---|---|---|---|---|---|
| GET | /api/v1/app/provider/equipment |
api.v1.app.provider.equipment |
listings.view + equipment provider activity |
My listings and quotes for an equipment provider: standing, up to 20 own listings, waiting quote requests, the next week's rentals and the last 30 days' figures. | |
| GET | /api/v1/app/provider/orders |
api.v1.app.provider.orders |
purchase_orders.view + parts supplier activity |
A parts supplier's purchase orders: filter new, confirmed, shipped, delivered, completed, cancelled. | |
| GET | /api/v1/app/provider/policies |
api.v1.app.provider.policies |
insurance.view + insurance provider activity |
An insurer's policies: filter by status and renewal (due, lapsed, renewed). | |
| GET | /api/v1/app/provider/requests |
api.v1.app.provider.requests.index |
services.view + workshop, parts supplier or insurance provider activity |
The jobs this provider was told about: filter waiting, mine, emergency, overdue, by service and search. | |
| GET | /api/v1/app/provider/requests/{inboxRequest} |
api.v1.app.provider.requests.show |
services.view + workshop, parts supplier or insurance provider activity |
One job as a provider reads it; opening it writes a viewed line for the buyer. The customer's contact shows only after accepting (at once for an emergency). | |
| POST | /api/v1/app/provider/requests/{inboxRequest}/accept |
api.v1.app.provider.requests.accept |
services.update + workshop, parts supplier or insurance provider activity |
uuid | Takes the job; the first accept wins. Throttled 60 a minute. |
| POST | /api/v1/app/provider/requests/{inboxRequest}/decline |
api.v1.app.provider.requests.decline |
services.update + workshop, parts supplier or insurance provider activity |
uuid | Declines the job (reason optional). |
| POST | /api/v1/app/provider/requests/{inboxRequest}/quote |
api.v1.app.provider.requests.quote |
services.quote + workshop, parts supplier or insurance provider activity |
uuid | Send quote: a price for the job (price, unit, VAT, valid until, arrival hours, warranty months, notes). Sending again revises the price. |
| POST | /api/v1/app/provider/requests/{inboxRequest}/status |
api.v1.app.provider.requests.status |
services.update + workshop, parts supplier or insurance provider activity |
uuid | Moves the job: scheduled, in_progress or completed (a priced job needs a photo of the finished work). |
| POST | /api/v1/app/provider/rfqs/{inboxRfq}/quote |
api.v1.app.provider.rfqs.quote |
rfqs.respond + equipment provider activity |
uuid | Send quote: answers a quote request this company was told about (price, unit, VAT, valid until, delivery, terms, up to 3 PDFs). The same call revises after the buyer counters. Throttled 20 a minute. |
| GET | /api/v1/app/provider/services |
api.v1.app.provider.services |
services.view + workshop, parts supplier or insurance provider activity |
The summary for a workshop, parts supplier or insurer: standing, figures, jobs waiting, jobs being done. |
9.14 Verification, company papers, account manager (MA-03, MA-04)
| Method | Address | Route name | Who can call | uuid | What it does |
|---|---|---|---|---|---|
| GET | /api/v1/app/account-manager |
api.v1.app.account-manager |
any signed-in login | Who looks after this company at Traincu: the main contact and one entry per kind. Nothing internal. | |
| GET | /api/v1/app/documents |
api.v1.app.documents.index |
settings.documents |
The company's papers with status, days left, signed file link, and the kinds a company may upload. | |
| POST | /api/v1/app/documents |
api.v1.app.documents.store |
settings.documents |
uuid | Uploads a company paper (type, number, dates, PDF, JPG or PNG up to 5 MB). It starts as under review. Throttled 20 a minute. |
| GET | /api/v1/app/verification |
api.v1.app.verification |
settings.documents |
Where the company stands with Traincu: verified or not, CR status, each activity's status and reason, required papers, trust badges. |
9.15 Support tickets and help articles (MA-23)
| Method | Address | Route name | Who can call | uuid | What it does |
|---|---|---|---|---|---|
| GET | /api/v1/app/help-articles |
api.v1.app.help-articles |
any signed-in login | Suggestions while typing a ticket (title and category only), or one whole article with ?slug=. | |
| GET | /api/v1/app/tickets |
api.v1.app.tickets.index |
support.view |
The company's own tickets, newest first, with categories, support hours and the support phone when set. | |
| POST | /api/v1/app/tickets |
api.v1.app.tickets.store |
support.create |
uuid | Send ticket: subject, body, category, screen name and app version (attached by the app), related record and optional screenshot. Priority is decided by the platform. Throttled 30 a minute. |
| GET | /api/v1/app/tickets/{ticket} |
api.v1.app.tickets.show |
support.view |
One ticket with its shared messages (internal notes never reach a phone) and the survey. TCK-1180, tck1180 and 1180 mean the same ticket. | |
| POST | /api/v1/app/tickets/{ticket}/reply |
api.v1.app.tickets.reply |
support.create |
uuid | Replies on a ticket (body, optional screenshot). It reopens a resolved ticket; a ticket closed too long ago answers 422 and the app opens a new one. Throttled 60 a minute. |
9.16 Profile, settings, devices and identity check (MA-24)
| Method | Address | Route name | Who can call | uuid | What it does |
|---|---|---|---|---|---|
| POST | /api/v1/app/identity/start |
api.v1.app.identity.start |
any signed-in login | Starts the Nafath identity check of the signed-in login (national ID, sent once, never returned). 423 when the token is older than 15 minutes; 409 when already verified. Throttled 10 a minute. | |
| GET | /api/v1/app/identity/status |
api.v1.app.identity.status |
any signed-in login | Verified or not, masked ID (last four digits) and whether Nafath is available; with ?request= it also asks the running check. | |
| GET | /api/v1/app/profile |
api.v1.app.profile.show |
any signed-in login | The profile card: person, languages, number style, two-factor state, and the pointers to notifications and devices. | |
| PUT | /api/v1/app/profile |
api.v1.app.profile.update |
any signed-in login | Save: name, language and number style (every field optional). Mobile, e-mail and national ID sent here are ignored. | |
| GET | /api/v1/app/profile/devices |
api.v1.app.profile.devices.index |
any signed-in login | The phones that hold a token of this login (name, app, current, last used, expires), the one in use first. | |
| DELETE | /api/v1/app/profile/devices |
api.v1.app.profile.devices.destroy-others |
any signed-in login | Signs out every device except this one. | |
| DELETE | /api/v1/app/profile/devices/{device} |
api.v1.app.profile.devices.destroy |
any signed-in login | Signs one device out (its token is deleted). The device making the call is 422; another login's id is 404. | |
| POST | /api/v1/app/profile/photo |
api.v1.app.profile.photo.store |
any signed-in login | uuid | Uploads the profile photo (JPG, PNG or WebP up to 1 MB, real content checked). The old file is deleted. Throttled 20 a minute. |
| DELETE | /api/v1/app/profile/photo |
api.v1.app.profile.photo.destroy |
any signed-in login | Removes the profile photo (harmless when there is none). | |
| PUT | /api/v1/app/profile/two-factor |
api.v1.app.profile.two-factor |
any signed-in login | Switches two-factor on or off. 422 when a role or an admin requires it; 423 when switching off with a token older than 15 minutes. Throttled 20 a minute. |
9.17 Personal account: quick booking and my bookings (MA-08, MA-09)
| Method | Address | Route name | Who can call | uuid | What it does |
|---|---|---|---|---|---|
| POST | /api/v1/app/bookings |
api.v1.app.bookings.store |
loads.create + personal account only |
uuid | Places the booking: the same answers plus mode (instant or offers) and up to 4 photos. 201 with the booking. Throttled 30 a minute. |
| GET | /api/v1/app/bookings |
api.v1.app.bookings.index |
loads.view + personal account only |
My bookings with states and counts per state; filter by state and search by code, city or carrier. | |
| POST | /api/v1/app/bookings/quote |
api.v1.app.bookings.quote |
loads.create + personal account only |
The estimate, distance and pickup time for the answers sent; writes nothing. Says whether the Nafath check will be asked and which modes (instant, offers) are possible. | |
| GET | /api/v1/app/bookings/{code} |
api.v1.app.bookings.show |
loads.view + personal account only |
One booking with the offers on the table (never a plate, driver or phone), the carrier, the shipment, the payment and what the person may do. | |
| POST | /api/v1/app/bookings/{code}/cancel |
api.v1.app.bookings.cancel |
loads.delete + personal account only |
uuid | Cancels the booking while it is still open (reason optional). Its live offers close and the carriers are told in the same call. |
| POST | /api/v1/app/bookings/{code}/offers/{offer}/accept |
api.v1.app.bookings.offers.accept |
loads.award + personal account only |
uuid | Accept: this carrier wins, the other offers are closed and told, the shipment is made. Throttled 30 a minute. |
| POST | /api/v1/app/bookings/{code}/offers/{offer}/counter |
api.v1.app.bookings.offers.counter |
offers.respond + personal account only |
uuid | Counter-price: a new price before VAT per truck, message and valid until. Refused (422) on a Book now booking and when it is the carrier's turn. |
| POST | /api/v1/app/bookings/{code}/offers/{offer}/decline |
api.v1.app.bookings.offers.decline |
offers.respond + personal account only |
uuid | Refuse: declines one offer (reason optional). The carrier is told. |
| GET | /api/v1/app/my/bookings |
api.v1.app.my.bookings |
loads.view + personal account only |
The account's own bookings as loads, newest first (the first list of M04 step 10). | |
| GET | /api/v1/app/my/bookings/{code} |
api.v1.app.my.bookings.show |
loads.view + personal account only |
One booking as a load. Another account's booking is 404. |
Actions (section C). None: every button of the app is one of the POST, PUT or DELETE rows above.