Bulk Mark Transactions Processed
curl --request POST \
--url https://api.procuros.io/v2/transactions/bulk/mark-processed \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
[
{
"procurosTransactionId": "949b2ef2-3f40-465e-a7ee-ea3f9f189860",
"success": true
},
{
"procurosTransactionId": "949b2f25-fd9d-4c58-8899-b4dc277f8cf9",
"success": false,
"errorReason": "Product GTIN '0001647296281' not found",
"errorType": "DATA"
}
]
EOFimport requests
url = "https://api.procuros.io/v2/transactions/bulk/mark-processed"
payload = [
{
"procurosTransactionId": "949b2ef2-3f40-465e-a7ee-ea3f9f189860",
"success": True
},
{
"procurosTransactionId": "949b2f25-fd9d-4c58-8899-b4dc277f8cf9",
"success": False,
"errorReason": "Product GTIN '0001647296281' not found",
"errorType": "DATA"
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{procurosTransactionId: '949b2ef2-3f40-465e-a7ee-ea3f9f189860', success: true},
{
procurosTransactionId: '949b2f25-fd9d-4c58-8899-b4dc277f8cf9',
success: false,
errorReason: 'Product GTIN \'0001647296281\' not found',
errorType: 'DATA'
}
])
};
fetch('https://api.procuros.io/v2/transactions/bulk/mark-processed', 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://api.procuros.io/v2/transactions/bulk/mark-processed",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'procurosTransactionId' => '949b2ef2-3f40-465e-a7ee-ea3f9f189860',
'success' => true
],
[
'procurosTransactionId' => '949b2f25-fd9d-4c58-8899-b4dc277f8cf9',
'success' => false,
'errorReason' => 'Product GTIN \'0001647296281\' not found',
'errorType' => 'DATA'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.procuros.io/v2/transactions/bulk/mark-processed"
payload := strings.NewReader("[\n {\n \"procurosTransactionId\": \"949b2ef2-3f40-465e-a7ee-ea3f9f189860\",\n \"success\": true\n },\n {\n \"procurosTransactionId\": \"949b2f25-fd9d-4c58-8899-b4dc277f8cf9\",\n \"success\": false,\n \"errorReason\": \"Product GTIN '0001647296281' not found\",\n \"errorType\": \"DATA\"\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))
}HttpResponse<String> response = Unirest.post("https://api.procuros.io/v2/transactions/bulk/mark-processed")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"procurosTransactionId\": \"949b2ef2-3f40-465e-a7ee-ea3f9f189860\",\n \"success\": true\n },\n {\n \"procurosTransactionId\": \"949b2f25-fd9d-4c58-8899-b4dc277f8cf9\",\n \"success\": false,\n \"errorReason\": \"Product GTIN '0001647296281' not found\",\n \"errorType\": \"DATA\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.procuros.io/v2/transactions/bulk/mark-processed")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"procurosTransactionId\": \"949b2ef2-3f40-465e-a7ee-ea3f9f189860\",\n \"success\": true\n },\n {\n \"procurosTransactionId\": \"949b2f25-fd9d-4c58-8899-b4dc277f8cf9\",\n \"success\": false,\n \"errorReason\": \"Product GTIN '0001647296281' not found\",\n \"errorType\": \"DATA\"\n }\n]"
response = http.request(request)
puts response.read_body{
"data": [
{
"procurosTransactionId": "949b2ef2-3f40-465e-a7ee-ea3f9f189860",
"message": "OK."
},
{
"procurosTransactionId": "949b2f25-fd9d-4c58-8899-b4dc277f8cf9",
"message": "OK.",
"errorUrl": "https://portal.procuros.io/transactions/{{procurosTransactionId}}/errors"
}
]
}{
"message": "<string>",
"errors": {}
}{
"message": "<string>"
}{
"message": "<string>"
}Incoming Transactions
Bulk Mark Transactions Processed
Mark a list of incoming transactions as processed.
POST
/
v2
/
transactions
/
bulk
/
mark-processed
Bulk Mark Transactions Processed
curl --request POST \
--url https://api.procuros.io/v2/transactions/bulk/mark-processed \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data @- <<EOF
[
{
"procurosTransactionId": "949b2ef2-3f40-465e-a7ee-ea3f9f189860",
"success": true
},
{
"procurosTransactionId": "949b2f25-fd9d-4c58-8899-b4dc277f8cf9",
"success": false,
"errorReason": "Product GTIN '0001647296281' not found",
"errorType": "DATA"
}
]
EOFimport requests
url = "https://api.procuros.io/v2/transactions/bulk/mark-processed"
payload = [
{
"procurosTransactionId": "949b2ef2-3f40-465e-a7ee-ea3f9f189860",
"success": True
},
{
"procurosTransactionId": "949b2f25-fd9d-4c58-8899-b4dc277f8cf9",
"success": False,
"errorReason": "Product GTIN '0001647296281' not found",
"errorType": "DATA"
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{procurosTransactionId: '949b2ef2-3f40-465e-a7ee-ea3f9f189860', success: true},
{
procurosTransactionId: '949b2f25-fd9d-4c58-8899-b4dc277f8cf9',
success: false,
errorReason: 'Product GTIN \'0001647296281\' not found',
errorType: 'DATA'
}
])
};
fetch('https://api.procuros.io/v2/transactions/bulk/mark-processed', 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://api.procuros.io/v2/transactions/bulk/mark-processed",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'procurosTransactionId' => '949b2ef2-3f40-465e-a7ee-ea3f9f189860',
'success' => true
],
[
'procurosTransactionId' => '949b2f25-fd9d-4c58-8899-b4dc277f8cf9',
'success' => false,
'errorReason' => 'Product GTIN \'0001647296281\' not found',
'errorType' => 'DATA'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.procuros.io/v2/transactions/bulk/mark-processed"
payload := strings.NewReader("[\n {\n \"procurosTransactionId\": \"949b2ef2-3f40-465e-a7ee-ea3f9f189860\",\n \"success\": true\n },\n {\n \"procurosTransactionId\": \"949b2f25-fd9d-4c58-8899-b4dc277f8cf9\",\n \"success\": false,\n \"errorReason\": \"Product GTIN '0001647296281' not found\",\n \"errorType\": \"DATA\"\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))
}HttpResponse<String> response = Unirest.post("https://api.procuros.io/v2/transactions/bulk/mark-processed")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"procurosTransactionId\": \"949b2ef2-3f40-465e-a7ee-ea3f9f189860\",\n \"success\": true\n },\n {\n \"procurosTransactionId\": \"949b2f25-fd9d-4c58-8899-b4dc277f8cf9\",\n \"success\": false,\n \"errorReason\": \"Product GTIN '0001647296281' not found\",\n \"errorType\": \"DATA\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.procuros.io/v2/transactions/bulk/mark-processed")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"procurosTransactionId\": \"949b2ef2-3f40-465e-a7ee-ea3f9f189860\",\n \"success\": true\n },\n {\n \"procurosTransactionId\": \"949b2f25-fd9d-4c58-8899-b4dc277f8cf9\",\n \"success\": false,\n \"errorReason\": \"Product GTIN '0001647296281' not found\",\n \"errorType\": \"DATA\"\n }\n]"
response = http.request(request)
puts response.read_body{
"data": [
{
"procurosTransactionId": "949b2ef2-3f40-465e-a7ee-ea3f9f189860",
"message": "OK."
},
{
"procurosTransactionId": "949b2f25-fd9d-4c58-8899-b4dc277f8cf9",
"message": "OK.",
"errorUrl": "https://portal.procuros.io/transactions/{{procurosTransactionId}}/errors"
}
]
}{
"message": "<string>",
"errors": {}
}{
"message": "<string>"
}{
"message": "<string>"
}Authorizations
The API Token of your ERP Connection.
Body
application/json
Expected parameters to mark transactions as processed.
Required array length:
1 - 1000 elementsShow child attributes
Show child attributes
Response
Success
Minimum array length:
1Show child attributes
Show child attributes
Was this page helpful?
⌘I