Annuler un lot
curl --request POST \
--url https://pro.resocom.com/api/v1/batches/{id}/cancel \
--header 'Authorization: Bearer <token>'import requests
url = "https://pro.resocom.com/api/v1/batches/{id}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://pro.resocom.com/api/v1/batches/{id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pro.resocom.com/api/v1/batches/{id}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://pro.resocom.com/api/v1/batches/{id}/cancel"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pro.resocom.com/api/v1/batches/{id}/cancel")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pro.resocom.com/api/v1/batches/{id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "BAT-1CBEA150-E475",
"status": "open",
"externalRef": "<string>",
"counts": {
"total": 123,
"pending": 123,
"succeeded": 123,
"errored": 123,
"canceled": 123,
"expired": 123
},
"submittedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}{
"error": "invalid_api_key"
}{
"error": "invalid_api_key"
}API Reference
Annuler un lot
Arrête le lot : les documents non traités passent canceled et ne sont jamais comptés ; les analyses déjà rendues restent acquises. Les fichiers en attente sont supprimés.
POST
/
api
/
v1
/
batches
/
{id}
/
cancel
Annuler un lot
curl --request POST \
--url https://pro.resocom.com/api/v1/batches/{id}/cancel \
--header 'Authorization: Bearer <token>'import requests
url = "https://pro.resocom.com/api/v1/batches/{id}/cancel"
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, headers=headers)
print(response.text)const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
fetch('https://pro.resocom.com/api/v1/batches/{id}/cancel', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://pro.resocom.com/api/v1/batches/{id}/cancel",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://pro.resocom.com/api/v1/batches/{id}/cancel"
req, _ := http.NewRequest("POST", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://pro.resocom.com/api/v1/batches/{id}/cancel")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://pro.resocom.com/api/v1/batches/{id}/cancel")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"id": "BAT-1CBEA150-E475",
"status": "open",
"externalRef": "<string>",
"counts": {
"total": 123,
"pending": 123,
"succeeded": 123,
"errored": 123,
"canceled": 123,
"expired": 123
},
"submittedAt": "2023-11-07T05:31:56Z",
"expiresAt": "2023-11-07T05:31:56Z",
"endedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}{
"error": "invalid_api_key"
}{
"error": "invalid_api_key"
}Authorizations
Clé API créée dans Administration → Développeurs → Clés API (licence Groupe). Une clé en lecture seule ne peut appeler que les opérations GET.
Path Parameters
Response
Lot annulé.
Lot d'analyses différées.
Example:
"BAT-1CBEA150-E475"
open : en cours de remplissage · in_progress : clôturé, en traitement · ended : terminé · canceled : annulé · expired : fenêtre dépassée.
Available options:
open, in_progress, ended, canceled, expired Votre référence de lot.
Compteurs par état de document.
Show child attributes
Show child attributes
Échéance du lot : 24 h après sa création tant qu'il est ouvert, puis 24 h après sa clôture pour rendre les résultats.

