// install dependency
// $ composer require guzzlehttp/guzzle
<?php
require_once('vendor/autoload.php');
$client = new \GuzzleHttp\Client();
$transaction = [
"type" => "WORK_ORDER",
"content" => [
"header" => [
"workOrderIdentifier" => "WO-2026-004711",
"workOrderDate" => "2026-09-28T08:30:00Z",
"type" => "ASSEMBLY",
"requestedStartDate" => "2026-10-05T06:00:00Z",
"requestedCompletionDate" => "2026-10-09T16:00:00Z",
"workNotes" => "Assembly of autumn gift sets",
"buyer" => [
"name" => "Lager & Service Nord GmbH",
"identifiers" => [
[
"domain" => "GS1",
"identifier" => "4012345999990"
]
]
],
"supplier" => [
"name" => "Honigmanufaktur Beispiel GmbH",
"identifiers" => [
[
"domain" => "GS1",
"identifier" => "4012345000000"
]
]
]
],
"outputItems" => [
[
"workOrderLineIdentifier" => "10",
"identifiers" => [
[
"domain" => "SUPPLIER",
"identifier" => "GIFTSET-001"
]
],
"description" => "Gift set with two jars of honey",
"unitOfMeasure" => "EA",
"quantity" => 500,
"workNotes" => "Assemble set, apply customer label on the lid",
"inputItems" => [
[
"workOrderLineIdentifier" => "10.1",
"identifiers" => [
[
"domain" => "SUPPLIER",
"identifier" => "HONEY-250"
]
],
"description" => "Acacia honey 250 g",
"unitOfMeasure" => "EA",
"quantity" => 1000,
"location" => [
"identifier" => "WH-A-02-11",
"status" => "AVAILABLE"
]
],
[
"workOrderLineIdentifier" => "10.2",
"identifiers" => [
[
"domain" => "SUPPLIER",
"identifier" => "BOX-GIFT-02"
]
],
"description" => "Gift box for two jars",
"unitOfMeasure" => "EA",
"quantity" => 500
]
]
]
]
]
];
$response = $client->request('POST', 'https://api.procuros.io/v2/transactions', [
'headers' => [
'Accept' => 'application/json',
'Authorization' => 'Bearer <your-api-token>',
],
'json' => $transaction,
]);