curl --request POST \
--url https://sandbox.ignite-checkout.ai/v1/portal/merchant-onboarding/{merchant_id}/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form expected_revision=2 \
--form file=@example-fileimport requests
url = "https://sandbox.ignite-checkout.ai/v1/portal/merchant-onboarding/{merchant_id}/documents"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = { "expected_revision": "2" }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('expected_revision', '2');
form.append('file', '<string>');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://sandbox.ignite-checkout.ai/v1/portal/merchant-onboarding/{merchant_id}/documents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import fs from 'fs';
const formData = new FormData();
formData.append('expected_revision', '2');
formData.append('file', await new Response(fs.createReadStream('example-file')).blob());
const url = 'https://sandbox.ignite-checkout.ai/v1/portal/merchant-onboarding/{merchant_id}/documents';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}, body: formData};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.ignite-checkout.ai/v1/portal/merchant-onboarding/{merchant_id}/documents"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"expected_revision\"\r\n\r\n2\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"approved_details": {},
"approved_document_ids": [
"<string>"
],
"approved_revision": 123,
"decided_at": "<string>",
"details": {},
"documents": [
{
"content_type": "<string>",
"created_at": "<string>",
"filename": "<string>",
"id": "<string>",
"kind": "trade_licence",
"sha256": "<string>",
"size": 123
}
],
"editable": true,
"merchant_id": "<string>",
"merchant_status": "<string>",
"missing": [
"<string>"
],
"review_note": "<string>",
"revision": 123,
"status": "draft",
"submitted_at": "<string>"
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}Upload a merchant business document
Upload a PDF, PNG or JPEG of at most 1.5 MB as multipart form data; a newer upload of the same kind replaces the current one. Wrong type or size returns 422 merchant_document_type or merchant_document_size, and the per-merchant upload limit returns 429. Requires dashboard sign-in as an active member of the merchant, with recent sign-in verification; Sandbox only.
Raw HTTP template
Replace path, credential and schema placeholders using valid resources. The planned host requires activation; use your assigned API URL meanwhile. Preserve a write’s original idempotency key when its contract supports retry. If sending raw HTTP/1.1, use CRLF for request and header lines. Set Content-Length to the byte length of the final encoded body after replacing placeholders, including multipart delimiters and line endings. Encode multipart delimiters and part headers with CRLF, including the blank line before each part body, even if the rendered example displays plain line breaks.
POST /v1/portal/merchant-onboarding/{merchant_id}/documents HTTP/1.1
Host: sandbox.ignite-checkout.ai
Authorization: Bearer <CustomerOIDC-credential>
Content-Type: multipart/form-data; boundary=ignite-example
Content-Length: <body-length-in-bytes>
--ignite-example
Content-Disposition: form-data; name="expected_revision"
1
--ignite-example
Content-Disposition: form-data; name="file"; filename="document.pdf"
Content-Type: application/pdf
<file-bytes>
--ignite-example
Content-Disposition: form-data; name="kind"
trade_licence
--ignite-example--
HTTP/2 header equivalent
Logical headers over negotiated HTTPS HTTP/2, not a wire-format message. The endpoint, JSON and idempotency rules are unchanged. See HTTP and transport.
:method: POST
:scheme: https
:authority: sandbox.ignite-checkout.ai
:path: /v1/portal/merchant-onboarding/{merchant_id}/documents
authorization: Bearer <CustomerOIDC-credential>
content-type: multipart/form-data; boundary=ignite-example
--ignite-example
Content-Disposition: form-data; name="expected_revision"
1
--ignite-example
Content-Disposition: form-data; name="file"; filename="document.pdf"
Content-Type: application/pdf
<file-bytes>
--ignite-example
Content-Disposition: form-data; name="kind"
trade_licence
--ignite-example--
curl --request POST \
--url https://sandbox.ignite-checkout.ai/v1/portal/merchant-onboarding/{merchant_id}/documents \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: multipart/form-data' \
--form expected_revision=2 \
--form file=@example-fileimport requests
url = "https://sandbox.ignite-checkout.ai/v1/portal/merchant-onboarding/{merchant_id}/documents"
files = { "file": ("example-file", open("example-file", "rb")) }
payload = { "expected_revision": "2" }
headers = {"Authorization": "Bearer <token>"}
response = requests.post(url, data=payload, files=files, headers=headers)
print(response.text)const form = new FormData();
form.append('expected_revision', '2');
form.append('file', '<string>');
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}};
options.body = form;
fetch('https://sandbox.ignite-checkout.ai/v1/portal/merchant-onboarding/{merchant_id}/documents', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import fs from 'fs';
const formData = new FormData();
formData.append('expected_revision', '2');
formData.append('file', await new Response(fs.createReadStream('example-file')).blob());
const url = 'https://sandbox.ignite-checkout.ai/v1/portal/merchant-onboarding/{merchant_id}/documents';
const options = {method: 'POST', headers: {Authorization: 'Bearer <token>'}, body: formData};
fetch(url, options)
.then(res => res.json())
.then(json => console.log(json))
.catch(err => console.error(err));package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://sandbox.ignite-checkout.ai/v1/portal/merchant-onboarding/{merchant_id}/documents"
payload := strings.NewReader("-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"expected_revision\"\r\n\r\n2\r\n-----011000010111000001101001\r\nContent-Disposition: form-data; name=\"file\"; filename=\"example-file\"\r\nContent-Type: application/octet-stream\r\n\r\n<string>\r\n-----011000010111000001101001--")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}{
"approved_details": {},
"approved_document_ids": [
"<string>"
],
"approved_revision": 123,
"decided_at": "<string>",
"details": {},
"documents": [
{
"content_type": "<string>",
"created_at": "<string>",
"filename": "<string>",
"id": "<string>",
"kind": "trade_licence",
"sha256": "<string>",
"size": 123
}
],
"editable": true,
"merchant_id": "<string>",
"merchant_status": "<string>",
"missing": [
"<string>"
],
"review_note": "<string>",
"revision": 123,
"status": "draft",
"submitted_at": "<string>"
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
],
"message": "<string>",
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"details": "<unknown>",
"message": "<string>",
"request_id": "<string>"
}
}Authorizations
Customer access token; current membership, role and app selection are enforced. Protected actions use recent email-code verification in the configured Sandbox or recent authenticator verification in legacy password mode. Available when customer authentication is enabled.
Body
Response
Successful Response