Skip to content

Usta guide ​

Taking and running jobs with an usta key.

StepEndpoint
1. See jobsGET /jobs
2. AcceptPOST /jobs/{id}/accept
3. Head outPOST /jobs/{id}/on-the-way
4. Start with the codePOST /jobs/{id}/start
5. Request the end codePOST /jobs/{id}/completion-code
6. Finish with the codePOST /jobs/{id}/complete
7. Approve the payoutPOST /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:

sh
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:

json
{
  "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 ​

SituationEndpoint
Extra work turned up on sitePOST /extra-work — the customer approves
The customer said no; a lower offerPOST /extra-work/{id}/counter-offer (at most twice)
You can't agreePOST /extra-work/{id}/escalate — the team decides
A job priced after inspectionPOST /quotes — accepted, it becomes the job's amount