Jupiter ERP
Account API

Link quotes to another document (manual related)

/api/account/quotes/{id}/document-links

POSTHTTP
post/api/account/quotes/{id}/document-links

Beispielanfrage

POST https://api.jupiter-erp.com/api/account/quotes/example-id/document-links

Code
curl -X POST 'https://api.jupiter-erp.com/api/account/quotes/example-id/document-links' \
  -H 'Authorization: Bearer YOUR_API_TOKEN' \
  -H 'X-Account-Uuid: YOUR_ACCOUNT_UUID' \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
  "target": {
    "type": "quote",
    "id": 0
  }
}'

Parameter

NameInPflichtBeschreibung
idpathja

Request Body

Erforderlich

Create a manual related link from the route document to the target

FeldTypBeschreibung
target*objectPolymorphic reference to a business document in the account

Polymorphic reference to a business document in the account

FeldTypBeschreibung
id*integer
type*string

string

  • quote
  • order_confirmation
  • delivery_note
  • invoice
  • credit_note
  • custom_document
Beispiel Request
{
  "target": {
    "type": "quote",
    "id": 0
  }
}

Antworten

201Created

Summary of a document linked to the current document (for display in detail views)

FeldTypBeschreibung
datestringDate in Y-m-d format
formatted_numberstring
id*integer
link_id*integerID of the link row (for deleting manual related links)
link_type*stringderived_from = target was created from source; related = manual association (bidirectional)

string

  • derived_from
  • related
status*string
type*string

string

  • quote
  • order_confirmation
  • delivery_note
  • invoice
  • credit_note
  • custom_document
Beispiel Response
{
  "link_id": 0,
  "type": "quote",
  "id": 0,
  "formatted_number": "string",
  "date": "2025-01-14T00:00:00.000Z",
  "status": "string",
  "link_type": "derived_from"
}
403Forbidden (e.g. cannot delete derived_from via wrong endpoint)

Kein JSON-Schema dokumentiert.

Quotes

Fragen zur Integration?

POST /api/account/quotes/{id}/document-links · Jupiter ERP