Uplaćeno Docs
sr en

API reference

Sandbox

Test environment helpers (no live money).

POST /v1/sandbox/simulacija-uplate

Simulacija uplate (samo sandbox)

Samo okruzenje=sandbox (inace 409 samo_sandbox). Creates laznu uplatu (proformas ili poziv_na_broj, iznos, opciono platilac) koja prolazi kroz pravo uparivanje i salje prave sandbox webhookove (uplata.primljena, proforma.placena/delimicno_placena, faktura.placena). Navesti bar jedno od proformas i poziv_na_broj.

Authentication and scopes

  • Session (HttpOnly cookie)
  • OAuth2: uplate:pisanje
  • API key (Authorization: Bearer upl_live_…)

Parameters

NameInRequiredTypeDescription
X-Organizacija-Idheadernostring (uuid)Active organization. Required for user OIDC tokens with multiple orgs; for API key/client credentials the org is in the credential (header must match or be omitted).
Idempotency-KeyheaderyesstringRequired on every POST. Response cached 24 h (KV); same key + different body → 409 ponovljen_kljuc_idempotentnosti. Response includes Idempotent-Replayed: true on replay. Exceptions (optional key): /v1/nalog/*, /v1/nalog/pristupni-kljucevi/*, /v1/ja/sesije/opozovi-ostale, public /plati/*.

Request body

FieldTypeRequiredDescription
profaktura_idstring (uuid)no
poziv_na_brojstringnoAlternativa proinvoice_id: testira parser/matcher
iznosstringyesAmount in RSD as a decimal string with 2 fraction digits; currency is always RSD (no currency field)
platilacstringno
nacinenum: direktno | emailnoemail = generate a test bank email through the full ingest pipeline
bankaenum: intesa | otp | raiffeisenno

Responses

201 Success
{
  "id": "0192e4a1-7c3b-7d4e-9a10-3f5b2c8d9e01",
  "objekat": "uplata",
  "izvor": "email",
  "iznos": "12000.00",
  "proknjizeno": "2026-11-01T08:00:00Z",
  "status": "primljena",
  "kreirano": "2026-11-01T08:00:00Z"
}
400 Bad request
401 Missing or invalid token/key
404 Not found (or not in this organization/environment)
409 409 samo_sandbox: radi samo sa sandbox kredencijalom (okruzenje=sandbox)
422 Validation failed
429 Too many requests
default Unexpected error

Example (curl)

curl -sS -X POST "https://api.uplaceno.rs/api/v1/sandbox/simulacija-uplate" \
  -H "Authorization: Bearer upl_live_VAS_KLJUC" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: $(uuidgen)" \
  -d '{}'