cURL
curl -X POST 'https://api.legitmark.com/api/v2/sr/8e61c991-553a-4a58-9eb6-561b64c11908/submit' \
-H 'Authorization: Bearer leo_your_api_key'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({exemption_decisions: [{}]})
};
fetch('https://api.legitmark.com/api/v2/sr/{sr_uuid}/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
response = requests.post(
f'https://api.legitmark.com/api/v2/sr/{sr_uuid}/submit',
headers={'Authorization': 'Bearer leo_your_api_key'},
)
result = response.json()
print(result['sr']['state'])package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.legitmark.com/api/v2/sr/{sr_uuid}/submit"
payload := strings.NewReader("{\n \"exemption_decisions\": [\n {}\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"message": "Service request submitted for authentication.",
"sr": {
"uuid": "8e61c991-553a-4a58-9eb6-561b64c11908",
"micro_id": "998001",
"state": {
"primary": "QC",
"supplement": "PENDING"
}
}
}{
"success": false,
"error": {
"code": 123,
"timestamp": "2023-11-07T05:31:56Z",
"message": "<string>",
"details": "<string>"
}
}{
"success": false,
"error": {
"code": 123,
"timestamp": "2023-11-07T05:31:56Z",
"message": "<string>",
"details": "<string>"
}
}{
"success": false,
"error": {
"code": 123,
"timestamp": "2023-11-07T05:31:56Z",
"message": "<string>",
"details": "<string>"
}
}Service Requests
Submit SR
Submit a draft service request for authentication after all required images are uploaded.
Call Get Full SR with ?sides=true&item=true first and verify sr.sides.progress.met is true (or use the Get Progress endpoint).
On success the SR transitions from DRAFT to QC / PENDING.
POST
/
api
/
v2
/
sr
/
{sr_uuid}
/
submit
cURL
curl -X POST 'https://api.legitmark.com/api/v2/sr/8e61c991-553a-4a58-9eb6-561b64c11908/submit' \
-H 'Authorization: Bearer leo_your_api_key'const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({exemption_decisions: [{}]})
};
fetch('https://api.legitmark.com/api/v2/sr/{sr_uuid}/submit', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
response = requests.post(
f'https://api.legitmark.com/api/v2/sr/{sr_uuid}/submit',
headers={'Authorization': 'Bearer leo_your_api_key'},
)
result = response.json()
print(result['sr']['state'])package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.legitmark.com/api/v2/sr/{sr_uuid}/submit"
payload := strings.NewReader("{\n \"exemption_decisions\": [\n {}\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"success": true,
"message": "Service request submitted for authentication.",
"sr": {
"uuid": "8e61c991-553a-4a58-9eb6-561b64c11908",
"micro_id": "998001",
"state": {
"primary": "QC",
"supplement": "PENDING"
}
}
}{
"success": false,
"error": {
"code": 123,
"timestamp": "2023-11-07T05:31:56Z",
"message": "<string>",
"details": "<string>"
}
}{
"success": false,
"error": {
"code": 123,
"timestamp": "2023-11-07T05:31:56Z",
"message": "<string>",
"details": "<string>"
}
}{
"success": false,
"error": {
"code": 123,
"timestamp": "2023-11-07T05:31:56Z",
"message": "<string>",
"details": "<string>"
}
}Authorizations
Bearer token authentication. Use your API key in the format: Bearer leo_xxxxxxxx
Path Parameters
Service request UUID
Body
application/json
Optional partner-batched customer decisions (e.g., image cannot be taken). Applied atomically with submission.
Response
Service request submitted successfully
Example:
true
Example:
"Service request submitted for authentication."