BizKitHub
DocsAPI ReferencePurchase Invoice/bff/purchase-document/inbox/link
postPurchase InvoiceAdmin BFF

/bff/purchase-document/inbox/link

The file must already have been uploaded via POST /bff/blob/upload (which returned the token). This endpoint fetches the blob, computes its SHA-256, and inserts a row into shop__purchase_document_inbox with status=pending. Content-level dedup per organisation: uploading the same bytes twice returns the existing row (dedup=true) and the fresh blob becomes an orphan for the periodic sweep.

PurchaseInvoicepostBffPurchase-documentInboxLink

Parameters

JSON body

Request body

application/json
blobTokenstringRequired

Blob token from a prior POST /bff/blob/upload.

Exampleblb_abc123xyz

Response schema

1 status code documented

200Success

This response returns no JSON body.

Response example

application/json
{
  "success": true
}

Request example

POST /bff/purchase-document/inbox/link

post
curl -X POST "https://api.bizkithub.com/bff/purchase-document/inbox/link" \
  -H "Content-Type: application/json" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -d '{
  "blobToken": "blb_abc123xyz"
}'

Need an API key?

All BizKitHub public API endpoints require authentication via API key.

Get API Key