Customer guide
Running a job end to end with a customer key. $KEY in the examples is your key.
| Step | Endpoint |
|---|---|
| 1. Pick | GET /catalog |
| 2. Price | POST /pricing/preview |
| 3. Slot | GET /appointment-slots |
| 4. Book | POST /bookings |
| 5. Pay | POST /payments |
| 6. Follow | GET /bookings/{id} |
| 7. Confirm | POST /bookings/{id}/confirm |
| 8. Rate | POST /ratings |
1. Pick a service
curl https://api.ustageliyor.com/v1/catalog -H "Authorization: Bearer $KEY"The chosen package's products[].variants[].id is the variant_id of the next steps. If the service has questions, send the answers in answers.
2. Show the price
Prices depend on the area. The amount to show the customer is total:
curl -X POST https://api.ustageliyor.com/v1/pricing/preview \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"items":[{"variant_id":"variant_…"}],"city":"İstanbul","district":"Kadıköy"}'3. Pick a slot
GET /appointment-slots?date=2026-10-06 returns the free slots (slots[].slot).
4. Book
curl -X POST https://api.ustageliyor.com/v1/bookings \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{
"items": [{ "variant_id": "variant_…" }],
"appointment_date": "2026-10-06",
"appointment_slot": "09:00-11:00",
"city": "İstanbul",
"district": "Kadıköy",
"address_summary": "Moda Cad. No: 12 D: 3"
}'You get request.id back; use it from here on. An area we don't serve gets 422 SERVICE_AREA_NOT_COVERED.
5. Pay
No usta sees the job until it is paid. Two ways:
Bank transfer
curl -X POST https://api.ustageliyor.com/v1/payments \
-H "Authorization: Bearer $KEY" -H "Content-Type: application/json" \
-d '{"service_request_id":"sreq_…","payment_method":"bank_transfer"}'You get amount, accounts (IBANs) and reference. The customer sends the amount to one of those accounts with reference in the description. Once the transfer is seen, the payment becomes held.
Card
The same request with "payment_method":"card" returns payment.payment_url. Send the customer there; card data and 3D Secure stay on the bank's page and never pass through this API.
Cards are not open yet
Until the card page is connected to the bank, a card request gets 503 HOSTED_PAYMENT_UNAVAILABLE; use bank transfer. GET /payment-methods shows what is open.
Follow the payment with GET /payments?service_request_id=…: held = paid.
6. Follow the job
GET /bookings/{id}, or GET /notifications/sync for new events.
- When the usta heads out, the customer sees a start code; the usta asks for it at the door.
- When the usta finishes, the customer gets a completion code by SMS.
7. Confirm, 8. rate
Once the job is completed, POST /bookings/{id}/confirm releases the payment to the usta (money scope). Then POST /ratings.
When something goes wrong
| Situation | What to do |
|---|---|
| The customer wants to cancel | POST /bookings/{id}/cancel — the team settles it |
| The usta asked for extra | POST /extra-work/{id}/approve or /reject |
| A problem with the work | POST /payments/{id}/dispute |
| Anything else | POST /tickets |