Associate sales documents with a pipeline record
patch/api/v1/pipelines/records/{recordId}/sales-documentsAssociate multiple sales documents with a single pipeline record. This API supports linking sales documents that are not already associated with any pipeline record.
Code snippet
curl -X 'PATCH' \
'https://{yourdomain}/api/v1/pipelines/records/{recordId}/sales-documents' \
-H 'accept: text/plain; x-api-version=1.0' \
-H 'x-api-key: {your API key}' \
-H 'Content-Type: application/json-patch+json; x-api-version=1.0' \
-d '{
"documentNumbers": [
"IDT-0032"
]
}'
Path parameters
| recordIdlongRequired | The unique identifier of the pipeline record to which the documents will be linked. |
Request body
| Field | Description | Example | Validation |
| documentNumbersarrayRequired | List of document numbers to link to the pipeline record. | "documentNumbers": ["IDT-0032"] | Each document must not already be linked to a pipeline record. |
Example response
200 Success
{
"message": "Documents linked to pipeline record successfully."
}