Usta guide
Taking and running jobs with an usta key.
| Step | Endpoint |
|---|---|
| 1. See jobs | GET /jobs |
| 2. Accept | POST /jobs/{id}/accept |
| 3. Head out | POST /jobs/{id}/on-the-way |
| 4. Start with the code | POST /jobs/{id}/start |
| 5. Request the end code | POST /jobs/{id}/completion-code |
| 6. Finish with the code | POST /jobs/{id}/complete |
| 7. Approve the payout | POST /payouts/{id}/approve |
First: can you take jobs?
You need a shop (POST /shop), at least one category, and approval by the UstaGeliyor team. Otherwise GET /jobs comes back empty with the reason in usta_block. GET /shop/onboarding lists what is missing.
1–2. See and accept a job
GET /jobs returns the jobs open to you. Before you accept, the address is city-level only. POST /jobs/{id}/accept — first to accept gets it. Not for you? POST /jobs/{id}/reject.
3–4. Head out, start with the code
POST /jobs/{id}/on-the-way notifies the customer and shows a start code on their screen. Get it from the customer at the door and send it:
curl -X POST https://api.ustageliyor.com/v1/jobs/sreq_…/start \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"code":"482913"}'A wrong code gets 400 VISIT_CODE_INVALID.
5–6. Finish with the code
POST /jobs/{id}/completion-code texts the customer a completion code. Get it from them and close the job:
{
"code": "907145",
"note": "Serviced the AC, cleaned the filters, measured the gas pressure.",
"photos": [{ "url": "https://…" }]
}The note needs at least 50 characters, plus 1–5 photos (upload them first with POST /uploads/photo). When the customer confirms, the money is yours.
7. Payouts
GET /payouts lists your weekly statements; POST /payouts/{id}/approve approves one (money scope). Without an IBAN you get 409 PAYOUT_DETAILS_REQUIRED — add it with POST /shop.
Extra work and quotes
| Situation | Endpoint |
|---|---|
| Extra work turned up on site | POST /extra-work — the customer approves |
| The customer said no; a lower offer | POST /extra-work/{id}/counter-offer (at most twice) |
| You can't agree | POST /extra-work/{id}/escalate — the team decides |
| A job priced after inspection | POST /quotes — accepted, it becomes the job's amount |