Skip to content

Customer guide ​

Running a job end to end with a customer key. $KEY in the examples is your key.

StepEndpoint
1. PickGET /catalog
2. PricePOST /pricing/preview
3. SlotGET /appointment-slots
4. BookPOST /bookings
5. PayPOST /payments
6. FollowGET /bookings/{id}
7. ConfirmPOST /bookings/{id}/confirm
8. RatePOST /ratings

1. Pick a service ​

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

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

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

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

SituationWhat to do
The customer wants to cancelPOST /bookings/{id}/cancel — the team settles it
The usta asked for extraPOST /extra-work/{id}/approve or /reject
A problem with the workPOST /payments/{id}/dispute
Anything elsePOST /tickets