Save Onboarding Establishment Draft
curl --request POST \
--url http://localhost:8000/auth/onboarding/establishment/save \
--header 'Content-Type: application/json' \
--data '
{
"onboarding_ticket": "<string>",
"establishment_code": "<string>",
"emission_point_code": "<string>",
"establishment_name": "<string>",
"address": "<string>",
"next_sequence": "000000000",
"next_step": "establishment"
}
'import requests
url = "http://localhost:8000/auth/onboarding/establishment/save"
payload = {
"onboarding_ticket": "<string>",
"establishment_code": "<string>",
"emission_point_code": "<string>",
"establishment_name": "<string>",
"address": "<string>",
"next_sequence": "000000000",
"next_step": "establishment"
}
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({
onboarding_ticket: '<string>',
establishment_code: '<string>',
emission_point_code: '<string>',
establishment_name: '<string>',
address: '<string>',
next_sequence: '000000000',
next_step: 'establishment'
})
};
fetch('http://localhost:8000/auth/onboarding/establishment/save', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8000",
CURLOPT_URL => "http://localhost:8000/auth/onboarding/establishment/save",
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([
'onboarding_ticket' => '<string>',
'establishment_code' => '<string>',
'emission_point_code' => '<string>',
'establishment_name' => '<string>',
'address' => '<string>',
'next_sequence' => '000000000',
'next_step' => 'establishment'
]),
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:8000/auth/onboarding/establishment/save"
payload := strings.NewReader("{\n \"onboarding_ticket\": \"<string>\",\n \"establishment_code\": \"<string>\",\n \"emission_point_code\": \"<string>\",\n \"establishment_name\": \"<string>\",\n \"address\": \"<string>\",\n \"next_sequence\": \"000000000\",\n \"next_step\": \"establishment\"\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:8000/auth/onboarding/establishment/save")
.header("Content-Type", "application/json")
.body("{\n \"onboarding_ticket\": \"<string>\",\n \"establishment_code\": \"<string>\",\n \"emission_point_code\": \"<string>\",\n \"establishment_name\": \"<string>\",\n \"address\": \"<string>\",\n \"next_sequence\": \"000000000\",\n \"next_step\": \"establishment\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8000/auth/onboarding/establishment/save")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"onboarding_ticket\": \"<string>\",\n \"establishment_code\": \"<string>\",\n \"emission_point_code\": \"<string>\",\n \"establishment_name\": \"<string>\",\n \"address\": \"<string>\",\n \"next_sequence\": \"000000000\",\n \"next_step\": \"establishment\"\n}"
response = http.request(request)
puts response.read_body{
"current_step": "<string>",
"data": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Authentication
Save Onboarding Establishment Draft
Persist establishment step onboarding draft and current wizard step.
POST
/
auth
/
onboarding
/
establishment
/
save
Save Onboarding Establishment Draft
curl --request POST \
--url http://localhost:8000/auth/onboarding/establishment/save \
--header 'Content-Type: application/json' \
--data '
{
"onboarding_ticket": "<string>",
"establishment_code": "<string>",
"emission_point_code": "<string>",
"establishment_name": "<string>",
"address": "<string>",
"next_sequence": "000000000",
"next_step": "establishment"
}
'import requests
url = "http://localhost:8000/auth/onboarding/establishment/save"
payload = {
"onboarding_ticket": "<string>",
"establishment_code": "<string>",
"emission_point_code": "<string>",
"establishment_name": "<string>",
"address": "<string>",
"next_sequence": "000000000",
"next_step": "establishment"
}
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({
onboarding_ticket: '<string>',
establishment_code: '<string>',
emission_point_code: '<string>',
establishment_name: '<string>',
address: '<string>',
next_sequence: '000000000',
next_step: 'establishment'
})
};
fetch('http://localhost:8000/auth/onboarding/establishment/save', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_PORT => "8000",
CURLOPT_URL => "http://localhost:8000/auth/onboarding/establishment/save",
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([
'onboarding_ticket' => '<string>',
'establishment_code' => '<string>',
'emission_point_code' => '<string>',
'establishment_name' => '<string>',
'address' => '<string>',
'next_sequence' => '000000000',
'next_step' => 'establishment'
]),
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:8000/auth/onboarding/establishment/save"
payload := strings.NewReader("{\n \"onboarding_ticket\": \"<string>\",\n \"establishment_code\": \"<string>\",\n \"emission_point_code\": \"<string>\",\n \"establishment_name\": \"<string>\",\n \"address\": \"<string>\",\n \"next_sequence\": \"000000000\",\n \"next_step\": \"establishment\"\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:8000/auth/onboarding/establishment/save")
.header("Content-Type", "application/json")
.body("{\n \"onboarding_ticket\": \"<string>\",\n \"establishment_code\": \"<string>\",\n \"emission_point_code\": \"<string>\",\n \"establishment_name\": \"<string>\",\n \"address\": \"<string>\",\n \"next_sequence\": \"000000000\",\n \"next_step\": \"establishment\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("http://localhost:8000/auth/onboarding/establishment/save")
http = Net::HTTP.new(url.host, url.port)
request = Net::HTTP::Post.new(url)
request["Content-Type"] = 'application/json'
request.body = "{\n \"onboarding_ticket\": \"<string>\",\n \"establishment_code\": \"<string>\",\n \"emission_point_code\": \"<string>\",\n \"establishment_name\": \"<string>\",\n \"address\": \"<string>\",\n \"next_sequence\": \"000000000\",\n \"next_step\": \"establishment\"\n}"
response = http.request(request)
puts response.read_body{
"current_step": "<string>",
"data": {}
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>",
"input": "<unknown>",
"ctx": {}
}
]
}Body
application/json
Short-lived onboarding ticket
Required string length:
3Pattern:
^\d{3}$Required string length:
3Pattern:
^\d{3}$Required string length:
1 - 255Required string length:
1 - 500Next available sequence number for new establishments (zero-padded 9-digit string)
Pattern:
^\d{9}$Current or next onboarding step after saving
⌘I