Create a new delivery note
curl --request POST \
--url http://localhost/api/delivery-notes \
--header 'Content-Type: application/json' \
--data '
{
"identification": {
"seller": {
"pink_id": "<string>",
"gln": "<string>"
},
"buyer": {
"pink_id": "<string>",
"gln": "<string>"
},
"pink_id": "<string>",
"seller_delivery_note_id": "<string>"
},
"issue_date": "2023-11-07T05:31:56Z",
"delivery_date": "2023-11-07T05:31:56Z",
"lines": [
{
"line_number": "<string>",
"product_name": "<string>",
"quantity": 123,
"product_id": "<string>",
"batch_number": "<string>",
"expiry_date": "2023-11-07T05:31:56Z",
"origin": {
"generic": "<string>"
}
}
],
"references": [
{
"seller_document_id": "<string>",
"pink_id": "<string>"
}
]
}
'import requests
url = "http://localhost/api/delivery-notes"
payload = {
"identification": {
"seller": {
"pink_id": "<string>",
"gln": "<string>"
},
"buyer": {
"pink_id": "<string>",
"gln": "<string>"
},
"pink_id": "<string>",
"seller_delivery_note_id": "<string>"
},
"issue_date": "2023-11-07T05:31:56Z",
"delivery_date": "2023-11-07T05:31:56Z",
"lines": [
{
"line_number": "<string>",
"product_name": "<string>",
"quantity": 123,
"product_id": "<string>",
"batch_number": "<string>",
"expiry_date": "2023-11-07T05:31:56Z",
"origin": { "generic": "<string>" }
}
],
"references": [
{
"seller_document_id": "<string>",
"pink_id": "<string>"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
identification: {
seller: {pink_id: '<string>', gln: '<string>'},
buyer: {pink_id: '<string>', gln: '<string>'},
pink_id: '<string>',
seller_delivery_note_id: '<string>'
},
issue_date: '2023-11-07T05:31:56Z',
delivery_date: '2023-11-07T05:31:56Z',
lines: [
{
line_number: '<string>',
product_name: '<string>',
quantity: 123,
product_id: '<string>',
batch_number: '<string>',
expiry_date: '2023-11-07T05:31:56Z',
origin: {generic: '<string>'}
}
],
references: [{seller_document_id: '<string>', pink_id: '<string>'}]
})
};
fetch('http://localhost/api/delivery-notes', 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 => "http://localhost/api/delivery-notes",
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([
'identification' => [
'seller' => [
'pink_id' => '<string>',
'gln' => '<string>'
],
'buyer' => [
'pink_id' => '<string>',
'gln' => '<string>'
],
'pink_id' => '<string>',
'seller_delivery_note_id' => '<string>'
],
'issue_date' => '2023-11-07T05:31:56Z',
'delivery_date' => '2023-11-07T05:31:56Z',
'lines' => [
[
'line_number' => '<string>',
'product_name' => '<string>',
'quantity' => 123,
'product_id' => '<string>',
'batch_number' => '<string>',
'expiry_date' => '2023-11-07T05:31:56Z',
'origin' => [
'generic' => '<string>'
]
]
],
'references' => [
[
'seller_document_id' => '<string>',
'pink_id' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"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 := "http://localhost/api/delivery-notes"
payload := strings.NewReader("{\n \"identification\": {\n \"seller\": {\n \"pink_id\": \"<string>\",\n \"gln\": \"<string>\"\n },\n \"buyer\": {\n \"pink_id\": \"<string>\",\n \"gln\": \"<string>\"\n },\n \"pink_id\": \"<string>\",\n \"seller_delivery_note_id\": \"<string>\"\n },\n \"issue_date\": \"2023-11-07T05:31:56Z\",\n \"delivery_date\": \"2023-11-07T05:31:56Z\",\n \"lines\": [\n {\n \"line_number\": \"<string>\",\n \"product_name\": \"<string>\",\n \"quantity\": 123,\n \"product_id\": \"<string>\",\n \"batch_number\": \"<string>\",\n \"expiry_date\": \"2023-11-07T05:31:56Z\",\n \"origin\": {\n \"generic\": \"<string>\"\n }\n }\n ],\n \"references\": [\n {\n \"seller_document_id\": \"<string>\",\n \"pink_id\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
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("http://localhost/api/delivery-notes")
.header("Content-Type", "application/json")
.body("{\n \"identification\": {\n \"seller\": {\n \"pink_id\": \"<string>\",\n \"gln\": \"<string>\"\n },\n \"buyer\": {\n \"pink_id\": \"<string>\",\n \"gln\": \"<string>\"\n },\n \"pink_id\": \"<string>\",\n \"seller_delivery_note_id\": \"<string>\"\n },\n \"issue_date\": \"2023-11-07T05:31:56Z\",\n \"delivery_date\": \"2023-11-07T05:31:56Z\",\n \"lines\": [\n {\n \"line_number\": \"<string>\",\n \"product_name\": \"<string>\",\n \"quantity\": 123,\n \"product_id\": \"<string>\",\n \"batch_number\": \"<string>\",\n \"expiry_date\": \"2023-11-07T05:31:56Z\",\n \"origin\": {\n \"generic\": \"<string>\"\n }\n }\n ],\n \"references\": [\n {\n \"seller_document_id\": \"<string>\",\n \"pink_id\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/api/delivery-notes")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"identification\": {\n \"seller\": {\n \"pink_id\": \"<string>\",\n \"gln\": \"<string>\"\n },\n \"buyer\": {\n \"pink_id\": \"<string>\",\n \"gln\": \"<string>\"\n },\n \"pink_id\": \"<string>\",\n \"seller_delivery_note_id\": \"<string>\"\n },\n \"issue_date\": \"2023-11-07T05:31:56Z\",\n \"delivery_date\": \"2023-11-07T05:31:56Z\",\n \"lines\": [\n {\n \"line_number\": \"<string>\",\n \"product_name\": \"<string>\",\n \"quantity\": 123,\n \"product_id\": \"<string>\",\n \"batch_number\": \"<string>\",\n \"expiry_date\": \"2023-11-07T05:31:56Z\",\n \"origin\": {\n \"generic\": \"<string>\"\n }\n }\n ],\n \"references\": [\n {\n \"seller_document_id\": \"<string>\",\n \"pink_id\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Delivery note created successfully",
"transmission_id": "<string>",
"": "<string>"
}{
"error": "<string>"
}{
"message": "<string>"
}{
"error": "Invalid request data",
"errors": "<string>"
}DeliveryNote
Create a new delivery note
POST
/
delivery-notes
Create a new delivery note
curl --request POST \
--url http://localhost/api/delivery-notes \
--header 'Content-Type: application/json' \
--data '
{
"identification": {
"seller": {
"pink_id": "<string>",
"gln": "<string>"
},
"buyer": {
"pink_id": "<string>",
"gln": "<string>"
},
"pink_id": "<string>",
"seller_delivery_note_id": "<string>"
},
"issue_date": "2023-11-07T05:31:56Z",
"delivery_date": "2023-11-07T05:31:56Z",
"lines": [
{
"line_number": "<string>",
"product_name": "<string>",
"quantity": 123,
"product_id": "<string>",
"batch_number": "<string>",
"expiry_date": "2023-11-07T05:31:56Z",
"origin": {
"generic": "<string>"
}
}
],
"references": [
{
"seller_document_id": "<string>",
"pink_id": "<string>"
}
]
}
'import requests
url = "http://localhost/api/delivery-notes"
payload = {
"identification": {
"seller": {
"pink_id": "<string>",
"gln": "<string>"
},
"buyer": {
"pink_id": "<string>",
"gln": "<string>"
},
"pink_id": "<string>",
"seller_delivery_note_id": "<string>"
},
"issue_date": "2023-11-07T05:31:56Z",
"delivery_date": "2023-11-07T05:31:56Z",
"lines": [
{
"line_number": "<string>",
"product_name": "<string>",
"quantity": 123,
"product_id": "<string>",
"batch_number": "<string>",
"expiry_date": "2023-11-07T05:31:56Z",
"origin": { "generic": "<string>" }
}
],
"references": [
{
"seller_document_id": "<string>",
"pink_id": "<string>"
}
]
}
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({
identification: {
seller: {pink_id: '<string>', gln: '<string>'},
buyer: {pink_id: '<string>', gln: '<string>'},
pink_id: '<string>',
seller_delivery_note_id: '<string>'
},
issue_date: '2023-11-07T05:31:56Z',
delivery_date: '2023-11-07T05:31:56Z',
lines: [
{
line_number: '<string>',
product_name: '<string>',
quantity: 123,
product_id: '<string>',
batch_number: '<string>',
expiry_date: '2023-11-07T05:31:56Z',
origin: {generic: '<string>'}
}
],
references: [{seller_document_id: '<string>', pink_id: '<string>'}]
})
};
fetch('http://localhost/api/delivery-notes', 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 => "http://localhost/api/delivery-notes",
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([
'identification' => [
'seller' => [
'pink_id' => '<string>',
'gln' => '<string>'
],
'buyer' => [
'pink_id' => '<string>',
'gln' => '<string>'
],
'pink_id' => '<string>',
'seller_delivery_note_id' => '<string>'
],
'issue_date' => '2023-11-07T05:31:56Z',
'delivery_date' => '2023-11-07T05:31:56Z',
'lines' => [
[
'line_number' => '<string>',
'product_name' => '<string>',
'quantity' => 123,
'product_id' => '<string>',
'batch_number' => '<string>',
'expiry_date' => '2023-11-07T05:31:56Z',
'origin' => [
'generic' => '<string>'
]
]
],
'references' => [
[
'seller_document_id' => '<string>',
'pink_id' => '<string>'
]
]
]),
CURLOPT_HTTPHEADER => [
"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 := "http://localhost/api/delivery-notes"
payload := strings.NewReader("{\n \"identification\": {\n \"seller\": {\n \"pink_id\": \"<string>\",\n \"gln\": \"<string>\"\n },\n \"buyer\": {\n \"pink_id\": \"<string>\",\n \"gln\": \"<string>\"\n },\n \"pink_id\": \"<string>\",\n \"seller_delivery_note_id\": \"<string>\"\n },\n \"issue_date\": \"2023-11-07T05:31:56Z\",\n \"delivery_date\": \"2023-11-07T05:31:56Z\",\n \"lines\": [\n {\n \"line_number\": \"<string>\",\n \"product_name\": \"<string>\",\n \"quantity\": 123,\n \"product_id\": \"<string>\",\n \"batch_number\": \"<string>\",\n \"expiry_date\": \"2023-11-07T05:31:56Z\",\n \"origin\": {\n \"generic\": \"<string>\"\n }\n }\n ],\n \"references\": [\n {\n \"seller_document_id\": \"<string>\",\n \"pink_id\": \"<string>\"\n }\n ]\n}")
req, _ := http.NewRequest("POST", url, payload)
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("http://localhost/api/delivery-notes")
.header("Content-Type", "application/json")
.body("{\n \"identification\": {\n \"seller\": {\n \"pink_id\": \"<string>\",\n \"gln\": \"<string>\"\n },\n \"buyer\": {\n \"pink_id\": \"<string>\",\n \"gln\": \"<string>\"\n },\n \"pink_id\": \"<string>\",\n \"seller_delivery_note_id\": \"<string>\"\n },\n \"issue_date\": \"2023-11-07T05:31:56Z\",\n \"delivery_date\": \"2023-11-07T05:31:56Z\",\n \"lines\": [\n {\n \"line_number\": \"<string>\",\n \"product_name\": \"<string>\",\n \"quantity\": 123,\n \"product_id\": \"<string>\",\n \"batch_number\": \"<string>\",\n \"expiry_date\": \"2023-11-07T05:31:56Z\",\n \"origin\": {\n \"generic\": \"<string>\"\n }\n }\n ],\n \"references\": [\n {\n \"seller_document_id\": \"<string>\",\n \"pink_id\": \"<string>\"\n }\n ]\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost/api/delivery-notes")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"identification\": {\n \"seller\": {\n \"pink_id\": \"<string>\",\n \"gln\": \"<string>\"\n },\n \"buyer\": {\n \"pink_id\": \"<string>\",\n \"gln\": \"<string>\"\n },\n \"pink_id\": \"<string>\",\n \"seller_delivery_note_id\": \"<string>\"\n },\n \"issue_date\": \"2023-11-07T05:31:56Z\",\n \"delivery_date\": \"2023-11-07T05:31:56Z\",\n \"lines\": [\n {\n \"line_number\": \"<string>\",\n \"product_name\": \"<string>\",\n \"quantity\": 123,\n \"product_id\": \"<string>\",\n \"batch_number\": \"<string>\",\n \"expiry_date\": \"2023-11-07T05:31:56Z\",\n \"origin\": {\n \"generic\": \"<string>\"\n }\n }\n ],\n \"references\": [\n {\n \"seller_document_id\": \"<string>\",\n \"pink_id\": \"<string>\"\n }\n ]\n}"
response = http.request(request)
puts response.read_body{
"message": "Delivery note created successfully",
"transmission_id": "<string>",
"": "<string>"
}{
"error": "<string>"
}{
"message": "<string>"
}{
"error": "Invalid request data",
"errors": "<string>"
}Body
application/json
DeliveryNote
Show child attributes
Show child attributes
Show child attributes
Show child attributes
Document references
Show child attributes
Show child attributes
⌘I