Sales Documents
Sales documents represent the key paperwork used throughout the sales cycle, such as quotes, contracts, and invoices. These documents capture essential details, such as terms, pricing, and commitments, ensuring both your team and clients stay aligned at every stage of the deal.
Create a sales document
post/api/v1/sales-documentsCreates a new sales document and returns the created document details upon a successful API call.
Code snippet
curl -X 'POST' \
'https://{yourdomain}/api/v1/sales-documents?skipValidation=false' \
-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 '{
"data": {
"documentTypeId": 1,
"template": {
"id": 10
},
"name": "Enterprise Proposal - TechCorp",
"pipelineRecord": {
"id": 202730
},
"company": {
"id": 1081
},
"primaryContact": {
"id": 1
},
"totalValue": 5000,
"expirationDate": "2026-04-30",
"reason": "Contract renewal opportunity",
"isPrimary": true,
"notes": "Follow up with decision maker",
"owner": {
"id": 100
},
"status": {
"id": 1
},
"termsAndConditions": "Payment due within 30 days",
"billingStreet": "123 Main Street",
"billingCity": "New York",
"billingState": "New York",
"billingCountry": "US",
"billingPostalCode": "1252",
"shippingStreet": "123 Main Street",
"shippingCity": "New York",
"shippingState": "New York",
"shippingCountry": "US",
"shippingPostalCode": "1252",
"customFields": {
"cf_purchase_order_number": 1001
}
}
}'
Query parameters
| skipValidationboolean | A flag indicating whether to bypass validation checks during sales document creation. If set to true, the system skips checks for required fields, conditional logic, and field dependencies. When false (or unspecified), all standard validations are applied. |
Request body
| Field | Description | Example | Validation | ||
| documentTypeIdshortRequired | The unique identifier of the sales document type. | "documentTypeId": 1 | Accepts a valid document type ID. | ||
templateobjectRequired | Template that structures the sales document.
| "template": { "id": 10 } | Accepts a valid template ID. | ||
| namestringRequired | Name or title of the sales document. | "name": "Enterprise Proposal - TechCorp" | Maximum 255 characters. | ||
pipelineRecordobject | Pipeline record associated with this sales document.
| "pipelineRecord": { "id": 202730 } | Accepts a valid pipeline record ID. | ||
companyobject | Company associated with this sales document.
| "company": { "id": 1081 } | Accepts a valid company ID. | ||
primaryContactobject | Primary contact person for this sales document.
| "primaryContact": { "id": 1 } | Accepts a valid contact's ID. | ||
| totalValuedecimal | Total monetary value of the sales document. | "totalValue": 5000 | |||
| expirationDatestring | Expiration date when the document is no longer valid. | "expirationDate": "2026-04-30" | Format: YYYY-MM-DD (ISO 8601) | ||
| reasonstring | Reason for creating or updating the sales document. | "reason": "Contract renewal opportunity" | |||
| isPrimaryboolean | Indicates whether the sales document is the primary document associated with the pipeline record. | "isPrimary": true | Accepts boolean values: true or false. Supported only for Quotes. | ||
| notesstring | Internal notes or comments related to the sales document. | "notes": "Follow up with decision maker" | |||
ownerobject | User responsible for managing this sales document.
| "owner": { "id": 100 } | Accepts a valid user's ID. | ||
statusobjectRequired | Current workflow status of the sales document.
| "status": { "id": 1 } | Accepts a valid status ID. | ||
| termsAndConditionsstring | Legal terms and conditions applicable to this sales document. | "termsAndConditions": "Payment due within 30 days" | Maximum 5000 characters. | ||
| billingStreetstring | Street address for billing purposes. | "billingStreet": "123 Main Street" | Maximum 255 characters. | ||
| billingCitystring | City name in the billing address. | "billingCity": "New York" | Maximum 255 characters. | ||
| billingStatestring | State or region in the billing address. | "billingState": "New York" | Maximum 255 characters. | ||
| billingCountrystring | Country name in the billing address. | "billingCountry": "US" | Maximum 255 characters. | ||
| billingPostalCodestring | Postal or ZIP code for the billing address. | "billingPostalCode": "1252" | Maximum 255 characters. | ||
| shippingStreetstring | Street address for shipping purposes. | "shippingStreet": "123 Main Street" | Maximum 255 characters. | ||
| shippingCitystring | City name in the shipping address. | "shippingCity": "New York" | Maximum 255 characters. | ||
| shippingStatestring | State or region in the shipping address. | "shippingState": "New York" | Maximum 255 characters. | ||
| shippingCountrystring | Country name in the shipping address. | "shippingCountry": "US" | Maximum 255 characters. | ||
| shippingPostalCodestring | Postal or ZIP code for the shipping address. | "shippingPostalCode": "1252" | Maximum 255 characters. | ||
| customFieldsobject | User-defined custom fields to extend the sales document with additional information. Refer to the Field types page to learn more about field types and their request formats. | "cf_discount": 10 |
Example response
201 Created
{
"message": "Document saved successfully.",
"data": {
"id": "doc-123",
"publicDocumentId": "3a6d2234-6564-437b-aded-94a2fb56e0dc",
"documentUrl": "https://{yourdomain}.boldsalescrm.com/sales-document/review/4f7c2122-5720-41e4-94b6-7e00098f1236"
}
}