The Sales Order object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
Default: draft
Default: Sales
Default: false
Default: Grand Total
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
{
"id": "sales-order_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"customer": "customer_example",
"customer_name": "customer_name_example",
"order_type": "Sales",
"company": "Example Corp",
"transaction_date": "2024-01-15",
"delivery_date": "2024-01-15",
"po_no": "po_no_example",
"po_date": "2024-01-15",
"tax_id": "tax_id_example",
"customer_address": "customer_address_example",
"address_display": "address_display_example",
"contact_person": "contact_person_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"contact_email": "user@example.com",
"company_address_display": "Example Corp",
"company_address": "Example Corp",
"shipping_address_name": "shipping_address_name_example",
"shipping_address": "shipping_address_example",
"customer_group": "customer_group_example",
"territory": "territory_example",
"currency": "USD",
"conversion_rate": 0,
"selling_price_list": "selling_price_list_example",
"price_list_currency": "USD",
"plc_conversion_rate": 0,
"ignore_pricing_rule": false,
"set_warehouse": "set_warehouse_example",
"scan_barcode": "scan_barcode_example",
"total_qty": 0,
"base_total": 0,
"base_net_total": 0,
"total": 0,
"net_total": 0,
"total_net_weight": 0,
"tax_category": "tax_category_example",
"shipping_rule": "shipping_rule_example",
"taxes_and_charges": "taxes_and_charges_example",
"other_charges_calculation": "other_charges_calculation_example",
"base_total_taxes_and_charges": 0,
"total_taxes_and_charges": 0,
"loyalty_points": 0,
"loyalty_amount": 0,
"coupon_code": "coupon_code_example",
"apply_discount_on": "Grand Total",
"base_discount_amount": 0,
"additional_discount_percentage": 0,
"discount_amount": 0,
"base_grand_total": 0,
"base_rounding_adjustment": 0,
"base_rounded_total": 0,
"base_in_words": "base_in_words_example",
"grand_total": 0,
"rounding_adjustment": 0,
"rounded_total": 0,
"in_words": "in_words_example",
"advance_paid": 0,
"payment_terms_template": "payment_terms_template_example",
"tc_name": "tc_name_example",
"terms": "terms_example",
"inter_company_order_reference": "Example Corp",
"project": "project_example",
"party_account_currency": "USD",
"language": "language_example",
"letter_head": "letter_head_example",
"select_print_heading": "select_print_heading_example",
"group_same_items": false,
"delivery_status": "delivery_status_example",
"per_delivered": 0,
"per_billed": 0,
"billing_status": "billing_status_example",
"sales_partner": "sales_partner_example",
"commission_rate": 0,
"total_commission": 0,
"from_date": "2024-01-15",
"to_date": "2024-01-15",
"auto_repeat": "auto_repeat_example",
"contact_phone": "contact_phone_example",
"skip_delivery_note": false,
"is_internal_customer": false,
"represents_company": "Example Corp",
"disable_rounded_total": false,
"dispatch_address_name": "dispatch_address_name_example",
"dispatch_address": "dispatch_address_example",
"amount_eligible_for_commission": 0,
"per_picked": 0,
"cost_center": "cost_center_example",
"incoterm": "incoterm_example",
"named_place": "named_place_example",
"reserve_stock": false,
"advance_payment_status": "advance_payment_status_example",
"utm_medium": "utm_medium_example",
"utm_content": "utm_content_example",
"utm_source": "utm_source_example",
"utm_campaign": "utm_campaign_example",
"company_contact_person": "Example Corp",
"has_unit_price_items": false,
"is_subcontracted": false,
"transaction_time": "transaction_time_example",
"ignore_default_payment_terms_template": false,
"title": "title_example"
} /api/crm/sales-order/{id} Retrieve a sales order
Retrieves the details of an existing sales order. Supply the unique sales order ID that was returned from a previous request.
Path parameters
The identifier of the sales order to retrieve.
Returns
Returns the sales order object if a valid identifier was provided.
curl https://api.overplane.dev/api/crm/sales-order/sales-order_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "sales-order_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"customer": "customer_example",
"customer_name": "customer_name_example",
"order_type": "Sales",
"company": "Example Corp",
"transaction_date": "2024-01-15",
"delivery_date": "2024-01-15",
"po_no": "po_no_example",
"po_date": "2024-01-15",
"tax_id": "tax_id_example",
"customer_address": "customer_address_example",
"address_display": "address_display_example",
"contact_person": "contact_person_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"contact_email": "user@example.com",
"company_address_display": "Example Corp",
"company_address": "Example Corp",
"shipping_address_name": "shipping_address_name_example",
"shipping_address": "shipping_address_example",
"customer_group": "customer_group_example",
"territory": "territory_example",
"currency": "USD",
"conversion_rate": 0,
"selling_price_list": "selling_price_list_example",
"price_list_currency": "USD",
"plc_conversion_rate": 0,
"ignore_pricing_rule": false,
"set_warehouse": "set_warehouse_example",
"scan_barcode": "scan_barcode_example",
"total_qty": 0,
"base_total": 0,
"base_net_total": 0,
"total": 0,
"net_total": 0,
"total_net_weight": 0,
"tax_category": "tax_category_example",
"shipping_rule": "shipping_rule_example",
"taxes_and_charges": "taxes_and_charges_example",
"other_charges_calculation": "other_charges_calculation_example",
"base_total_taxes_and_charges": 0,
"total_taxes_and_charges": 0,
"loyalty_points": 0,
"loyalty_amount": 0,
"coupon_code": "coupon_code_example",
"apply_discount_on": "Grand Total",
"base_discount_amount": 0,
"additional_discount_percentage": 0,
"discount_amount": 0,
"base_grand_total": 0,
"base_rounding_adjustment": 0,
"base_rounded_total": 0,
"base_in_words": "base_in_words_example",
"grand_total": 0,
"rounding_adjustment": 0,
"rounded_total": 0,
"in_words": "in_words_example",
"advance_paid": 0,
"payment_terms_template": "payment_terms_template_example",
"tc_name": "tc_name_example",
"terms": "terms_example",
"inter_company_order_reference": "Example Corp",
"project": "project_example",
"party_account_currency": "USD",
"language": "language_example",
"letter_head": "letter_head_example",
"select_print_heading": "select_print_heading_example",
"group_same_items": false,
"delivery_status": "delivery_status_example",
"per_delivered": 0,
"per_billed": 0,
"billing_status": "billing_status_example",
"sales_partner": "sales_partner_example",
"commission_rate": 0,
"total_commission": 0,
"from_date": "2024-01-15",
"to_date": "2024-01-15",
"auto_repeat": "auto_repeat_example",
"contact_phone": "contact_phone_example",
"skip_delivery_note": false,
"is_internal_customer": false,
"represents_company": "Example Corp",
"disable_rounded_total": false,
"dispatch_address_name": "dispatch_address_name_example",
"dispatch_address": "dispatch_address_example",
"amount_eligible_for_commission": 0,
"per_picked": 0,
"cost_center": "cost_center_example",
"incoterm": "incoterm_example",
"named_place": "named_place_example",
"reserve_stock": false,
"advance_payment_status": "advance_payment_status_example",
"utm_medium": "utm_medium_example",
"utm_content": "utm_content_example",
"utm_source": "utm_source_example",
"utm_campaign": "utm_campaign_example",
"company_contact_person": "Example Corp",
"has_unit_price_items": false,
"is_subcontracted": false,
"transaction_time": "transaction_time_example",
"ignore_default_payment_terms_template": false,
"title": "title_example"
} /api/crm/sales-order List all sales orders
Returns a list of sales orders. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of sales order objects.
curl https://api.overplane.dev/api/crm/sales-order \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "sales-order_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"customer": "customer_example",
"customer_name": "customer_name_example",
"order_type": "Sales",
"company": "Example Corp",
"transaction_date": "2024-01-15",
"delivery_date": "2024-01-15",
"po_no": "po_no_example",
"po_date": "2024-01-15",
"tax_id": "tax_id_example",
"customer_address": "customer_address_example",
"address_display": "address_display_example",
"contact_person": "contact_person_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"contact_email": "user@example.com",
"company_address_display": "Example Corp",
"company_address": "Example Corp",
"shipping_address_name": "shipping_address_name_example",
"shipping_address": "shipping_address_example",
"customer_group": "customer_group_example",
"territory": "territory_example",
"currency": "USD",
"conversion_rate": 0,
"selling_price_list": "selling_price_list_example",
"price_list_currency": "USD",
"plc_conversion_rate": 0,
"ignore_pricing_rule": false,
"set_warehouse": "set_warehouse_example",
"scan_barcode": "scan_barcode_example",
"total_qty": 0,
"base_total": 0,
"base_net_total": 0,
"total": 0,
"net_total": 0,
"total_net_weight": 0,
"tax_category": "tax_category_example",
"shipping_rule": "shipping_rule_example",
"taxes_and_charges": "taxes_and_charges_example",
"other_charges_calculation": "other_charges_calculation_example",
"base_total_taxes_and_charges": 0,
"total_taxes_and_charges": 0,
"loyalty_points": 0,
"loyalty_amount": 0,
"coupon_code": "coupon_code_example",
"apply_discount_on": "Grand Total",
"base_discount_amount": 0,
"additional_discount_percentage": 0,
"discount_amount": 0,
"base_grand_total": 0,
"base_rounding_adjustment": 0,
"base_rounded_total": 0,
"base_in_words": "base_in_words_example",
"grand_total": 0,
"rounding_adjustment": 0,
"rounded_total": 0,
"in_words": "in_words_example",
"advance_paid": 0,
"payment_terms_template": "payment_terms_template_example",
"tc_name": "tc_name_example",
"terms": "terms_example",
"inter_company_order_reference": "Example Corp",
"project": "project_example",
"party_account_currency": "USD",
"language": "language_example",
"letter_head": "letter_head_example",
"select_print_heading": "select_print_heading_example",
"group_same_items": false,
"delivery_status": "delivery_status_example",
"per_delivered": 0,
"per_billed": 0,
"billing_status": "billing_status_example",
"sales_partner": "sales_partner_example",
"commission_rate": 0,
"total_commission": 0,
"from_date": "2024-01-15",
"to_date": "2024-01-15",
"auto_repeat": "auto_repeat_example",
"contact_phone": "contact_phone_example",
"skip_delivery_note": false,
"is_internal_customer": false,
"represents_company": "Example Corp",
"disable_rounded_total": false,
"dispatch_address_name": "dispatch_address_name_example",
"dispatch_address": "dispatch_address_example",
"amount_eligible_for_commission": 0,
"per_picked": 0,
"cost_center": "cost_center_example",
"incoterm": "incoterm_example",
"named_place": "named_place_example",
"reserve_stock": false,
"advance_payment_status": "advance_payment_status_example",
"utm_medium": "utm_medium_example",
"utm_content": "utm_content_example",
"utm_source": "utm_source_example",
"utm_campaign": "utm_campaign_example",
"company_contact_person": "Example Corp",
"has_unit_price_items": false,
"is_subcontracted": false,
"transaction_time": "transaction_time_example",
"ignore_default_payment_terms_template": false,
"title": "title_example"
}
],
"has_more": false,
"total": 1
} /api/crm/sales-order Create a sales order
Creates a new sales order object.
Body parameters
Default: draft
Default: Sales
Default: false
Default: Grand Total
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
Returns
Returns the newly created sales order object if the call succeeded.
curl https://api.overplane.dev/api/crm/sales-order \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"customer":"customer_example","company":"Example Corp","transaction_date":"2024-01-15","currency":"USD","conversion_rate":0,"selling_price_list":"selling_price_list_example","price_list_currency":"USD","plc_conversion_rate":0}' {
"id": "sales-order_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"customer": "customer_example",
"customer_name": "customer_name_example",
"order_type": "Sales",
"company": "Example Corp",
"transaction_date": "2024-01-15",
"delivery_date": "2024-01-15",
"po_no": "po_no_example",
"po_date": "2024-01-15",
"tax_id": "tax_id_example",
"customer_address": "customer_address_example",
"address_display": "address_display_example",
"contact_person": "contact_person_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"contact_email": "user@example.com",
"company_address_display": "Example Corp",
"company_address": "Example Corp",
"shipping_address_name": "shipping_address_name_example",
"shipping_address": "shipping_address_example",
"customer_group": "customer_group_example",
"territory": "territory_example",
"currency": "USD",
"conversion_rate": 0,
"selling_price_list": "selling_price_list_example",
"price_list_currency": "USD",
"plc_conversion_rate": 0,
"ignore_pricing_rule": false,
"set_warehouse": "set_warehouse_example",
"scan_barcode": "scan_barcode_example",
"total_qty": 0,
"base_total": 0,
"base_net_total": 0,
"total": 0,
"net_total": 0,
"total_net_weight": 0,
"tax_category": "tax_category_example",
"shipping_rule": "shipping_rule_example",
"taxes_and_charges": "taxes_and_charges_example",
"other_charges_calculation": "other_charges_calculation_example",
"base_total_taxes_and_charges": 0,
"total_taxes_and_charges": 0,
"loyalty_points": 0,
"loyalty_amount": 0,
"coupon_code": "coupon_code_example",
"apply_discount_on": "Grand Total",
"base_discount_amount": 0,
"additional_discount_percentage": 0,
"discount_amount": 0,
"base_grand_total": 0,
"base_rounding_adjustment": 0,
"base_rounded_total": 0,
"base_in_words": "base_in_words_example",
"grand_total": 0,
"rounding_adjustment": 0,
"rounded_total": 0,
"in_words": "in_words_example",
"advance_paid": 0,
"payment_terms_template": "payment_terms_template_example",
"tc_name": "tc_name_example",
"terms": "terms_example",
"inter_company_order_reference": "Example Corp",
"project": "project_example",
"party_account_currency": "USD",
"language": "language_example",
"letter_head": "letter_head_example",
"select_print_heading": "select_print_heading_example",
"group_same_items": false,
"delivery_status": "delivery_status_example",
"per_delivered": 0,
"per_billed": 0,
"billing_status": "billing_status_example",
"sales_partner": "sales_partner_example",
"commission_rate": 0,
"total_commission": 0,
"from_date": "2024-01-15",
"to_date": "2024-01-15",
"auto_repeat": "auto_repeat_example",
"contact_phone": "contact_phone_example",
"skip_delivery_note": false,
"is_internal_customer": false,
"represents_company": "Example Corp",
"disable_rounded_total": false,
"dispatch_address_name": "dispatch_address_name_example",
"dispatch_address": "dispatch_address_example",
"amount_eligible_for_commission": 0,
"per_picked": 0,
"cost_center": "cost_center_example",
"incoterm": "incoterm_example",
"named_place": "named_place_example",
"reserve_stock": false,
"advance_payment_status": "advance_payment_status_example",
"utm_medium": "utm_medium_example",
"utm_content": "utm_content_example",
"utm_source": "utm_source_example",
"utm_campaign": "utm_campaign_example",
"company_contact_person": "Example Corp",
"has_unit_price_items": false,
"is_subcontracted": false,
"transaction_time": "transaction_time_example",
"ignore_default_payment_terms_template": false,
"title": "title_example"
} /api/crm/sales-order/{id} Update a sales order
Updates the specified sales order by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the sales order to update.
Body parameters
Default: draft
Default: Sales
Default: false
Default: Grand Total
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
Returns
Returns the updated sales order object.
curl https://api.overplane.dev/api/crm/sales-order/sales-order_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"status":"draft","customer":"customer_example"}' {
"id": "sales-order_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"customer": "customer_example",
"customer_name": "customer_name_example",
"order_type": "Sales",
"company": "Example Corp",
"transaction_date": "2024-01-15",
"delivery_date": "2024-01-15",
"po_no": "po_no_example",
"po_date": "2024-01-15",
"tax_id": "tax_id_example",
"customer_address": "customer_address_example",
"address_display": "address_display_example",
"contact_person": "contact_person_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"contact_email": "user@example.com",
"company_address_display": "Example Corp",
"company_address": "Example Corp",
"shipping_address_name": "shipping_address_name_example",
"shipping_address": "shipping_address_example",
"customer_group": "customer_group_example",
"territory": "territory_example",
"currency": "USD",
"conversion_rate": 0,
"selling_price_list": "selling_price_list_example",
"price_list_currency": "USD",
"plc_conversion_rate": 0,
"ignore_pricing_rule": false,
"set_warehouse": "set_warehouse_example",
"scan_barcode": "scan_barcode_example",
"total_qty": 0,
"base_total": 0,
"base_net_total": 0,
"total": 0,
"net_total": 0,
"total_net_weight": 0,
"tax_category": "tax_category_example",
"shipping_rule": "shipping_rule_example",
"taxes_and_charges": "taxes_and_charges_example",
"other_charges_calculation": "other_charges_calculation_example",
"base_total_taxes_and_charges": 0,
"total_taxes_and_charges": 0,
"loyalty_points": 0,
"loyalty_amount": 0,
"coupon_code": "coupon_code_example",
"apply_discount_on": "Grand Total",
"base_discount_amount": 0,
"additional_discount_percentage": 0,
"discount_amount": 0,
"base_grand_total": 0,
"base_rounding_adjustment": 0,
"base_rounded_total": 0,
"base_in_words": "base_in_words_example",
"grand_total": 0,
"rounding_adjustment": 0,
"rounded_total": 0,
"in_words": "in_words_example",
"advance_paid": 0,
"payment_terms_template": "payment_terms_template_example",
"tc_name": "tc_name_example",
"terms": "terms_example",
"inter_company_order_reference": "Example Corp",
"project": "project_example",
"party_account_currency": "USD",
"language": "language_example",
"letter_head": "letter_head_example",
"select_print_heading": "select_print_heading_example",
"group_same_items": false,
"delivery_status": "delivery_status_example",
"per_delivered": 0,
"per_billed": 0,
"billing_status": "billing_status_example",
"sales_partner": "sales_partner_example",
"commission_rate": 0,
"total_commission": 0,
"from_date": "2024-01-15",
"to_date": "2024-01-15",
"auto_repeat": "auto_repeat_example",
"contact_phone": "contact_phone_example",
"skip_delivery_note": false,
"is_internal_customer": false,
"represents_company": "Example Corp",
"disable_rounded_total": false,
"dispatch_address_name": "dispatch_address_name_example",
"dispatch_address": "dispatch_address_example",
"amount_eligible_for_commission": 0,
"per_picked": 0,
"cost_center": "cost_center_example",
"incoterm": "incoterm_example",
"named_place": "named_place_example",
"reserve_stock": false,
"advance_payment_status": "advance_payment_status_example",
"utm_medium": "utm_medium_example",
"utm_content": "utm_content_example",
"utm_source": "utm_source_example",
"utm_campaign": "utm_campaign_example",
"company_contact_person": "Example Corp",
"has_unit_price_items": false,
"is_subcontracted": false,
"transaction_time": "transaction_time_example",
"ignore_default_payment_terms_template": false,
"title": "title_example"
} /api/crm/sales-order/{id} Delete a sales order
Permanently deletes a sales order. This cannot be undone.
Path parameters
The identifier of the sales order to delete.
Returns
Returns a confirmation that the sales order has been deleted.
curl https://api.overplane.dev/api/crm/sales-order/sales-order_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "sales-order_abc123",
"deleted": true
} /api/crm/sales-order/{id}/submit Submit a sales order
Submits a draft sales order, transitioning its status from draft to submitted.
Path parameters
The identifier of the sales order to act on.
Returns
Returns the sales order object with updated status.
curl https://api.overplane.dev/api/crm/sales-order/sales-order_abc123/submit \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "sales-order_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"customer": "customer_example",
"customer_name": "customer_name_example",
"order_type": "Sales",
"company": "Example Corp",
"transaction_date": "2024-01-15",
"delivery_date": "2024-01-15",
"po_no": "po_no_example",
"po_date": "2024-01-15",
"tax_id": "tax_id_example",
"customer_address": "customer_address_example",
"address_display": "address_display_example",
"contact_person": "contact_person_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"contact_email": "user@example.com",
"company_address_display": "Example Corp",
"company_address": "Example Corp",
"shipping_address_name": "shipping_address_name_example",
"shipping_address": "shipping_address_example",
"customer_group": "customer_group_example",
"territory": "territory_example",
"currency": "USD",
"conversion_rate": 0,
"selling_price_list": "selling_price_list_example",
"price_list_currency": "USD",
"plc_conversion_rate": 0,
"ignore_pricing_rule": false,
"set_warehouse": "set_warehouse_example",
"scan_barcode": "scan_barcode_example",
"total_qty": 0,
"base_total": 0,
"base_net_total": 0,
"total": 0,
"net_total": 0,
"total_net_weight": 0,
"tax_category": "tax_category_example",
"shipping_rule": "shipping_rule_example",
"taxes_and_charges": "taxes_and_charges_example",
"other_charges_calculation": "other_charges_calculation_example",
"base_total_taxes_and_charges": 0,
"total_taxes_and_charges": 0,
"loyalty_points": 0,
"loyalty_amount": 0,
"coupon_code": "coupon_code_example",
"apply_discount_on": "Grand Total",
"base_discount_amount": 0,
"additional_discount_percentage": 0,
"discount_amount": 0,
"base_grand_total": 0,
"base_rounding_adjustment": 0,
"base_rounded_total": 0,
"base_in_words": "base_in_words_example",
"grand_total": 0,
"rounding_adjustment": 0,
"rounded_total": 0,
"in_words": "in_words_example",
"advance_paid": 0,
"payment_terms_template": "payment_terms_template_example",
"tc_name": "tc_name_example",
"terms": "terms_example",
"inter_company_order_reference": "Example Corp",
"project": "project_example",
"party_account_currency": "USD",
"language": "language_example",
"letter_head": "letter_head_example",
"select_print_heading": "select_print_heading_example",
"group_same_items": false,
"delivery_status": "delivery_status_example",
"per_delivered": 0,
"per_billed": 0,
"billing_status": "billing_status_example",
"sales_partner": "sales_partner_example",
"commission_rate": 0,
"total_commission": 0,
"from_date": "2024-01-15",
"to_date": "2024-01-15",
"auto_repeat": "auto_repeat_example",
"contact_phone": "contact_phone_example",
"skip_delivery_note": false,
"is_internal_customer": false,
"represents_company": "Example Corp",
"disable_rounded_total": false,
"dispatch_address_name": "dispatch_address_name_example",
"dispatch_address": "dispatch_address_example",
"amount_eligible_for_commission": 0,
"per_picked": 0,
"cost_center": "cost_center_example",
"incoterm": "incoterm_example",
"named_place": "named_place_example",
"reserve_stock": false,
"advance_payment_status": "advance_payment_status_example",
"utm_medium": "utm_medium_example",
"utm_content": "utm_content_example",
"utm_source": "utm_source_example",
"utm_campaign": "utm_campaign_example",
"company_contact_person": "Example Corp",
"has_unit_price_items": false,
"is_subcontracted": false,
"transaction_time": "transaction_time_example",
"ignore_default_payment_terms_template": false,
"title": "title_example"
} /api/crm/sales-order/{id}/cancel Cancel a sales order
Cancels a submitted sales order, transitioning its status to cancelled.
Path parameters
The identifier of the sales order to act on.
Returns
Returns the sales order object with updated status.
curl https://api.overplane.dev/api/crm/sales-order/sales-order_abc123/cancel \
-H "Authorization: Bearer sk_test_..." \
-X POST {
"id": "sales-order_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"status": "draft",
"customer": "customer_example",
"customer_name": "customer_name_example",
"order_type": "Sales",
"company": "Example Corp",
"transaction_date": "2024-01-15",
"delivery_date": "2024-01-15",
"po_no": "po_no_example",
"po_date": "2024-01-15",
"tax_id": "tax_id_example",
"customer_address": "customer_address_example",
"address_display": "address_display_example",
"contact_person": "contact_person_example",
"contact_display": "contact_display_example",
"contact_mobile": "contact_mobile_example",
"contact_email": "user@example.com",
"company_address_display": "Example Corp",
"company_address": "Example Corp",
"shipping_address_name": "shipping_address_name_example",
"shipping_address": "shipping_address_example",
"customer_group": "customer_group_example",
"territory": "territory_example",
"currency": "USD",
"conversion_rate": 0,
"selling_price_list": "selling_price_list_example",
"price_list_currency": "USD",
"plc_conversion_rate": 0,
"ignore_pricing_rule": false,
"set_warehouse": "set_warehouse_example",
"scan_barcode": "scan_barcode_example",
"total_qty": 0,
"base_total": 0,
"base_net_total": 0,
"total": 0,
"net_total": 0,
"total_net_weight": 0,
"tax_category": "tax_category_example",
"shipping_rule": "shipping_rule_example",
"taxes_and_charges": "taxes_and_charges_example",
"other_charges_calculation": "other_charges_calculation_example",
"base_total_taxes_and_charges": 0,
"total_taxes_and_charges": 0,
"loyalty_points": 0,
"loyalty_amount": 0,
"coupon_code": "coupon_code_example",
"apply_discount_on": "Grand Total",
"base_discount_amount": 0,
"additional_discount_percentage": 0,
"discount_amount": 0,
"base_grand_total": 0,
"base_rounding_adjustment": 0,
"base_rounded_total": 0,
"base_in_words": "base_in_words_example",
"grand_total": 0,
"rounding_adjustment": 0,
"rounded_total": 0,
"in_words": "in_words_example",
"advance_paid": 0,
"payment_terms_template": "payment_terms_template_example",
"tc_name": "tc_name_example",
"terms": "terms_example",
"inter_company_order_reference": "Example Corp",
"project": "project_example",
"party_account_currency": "USD",
"language": "language_example",
"letter_head": "letter_head_example",
"select_print_heading": "select_print_heading_example",
"group_same_items": false,
"delivery_status": "delivery_status_example",
"per_delivered": 0,
"per_billed": 0,
"billing_status": "billing_status_example",
"sales_partner": "sales_partner_example",
"commission_rate": 0,
"total_commission": 0,
"from_date": "2024-01-15",
"to_date": "2024-01-15",
"auto_repeat": "auto_repeat_example",
"contact_phone": "contact_phone_example",
"skip_delivery_note": false,
"is_internal_customer": false,
"represents_company": "Example Corp",
"disable_rounded_total": false,
"dispatch_address_name": "dispatch_address_name_example",
"dispatch_address": "dispatch_address_example",
"amount_eligible_for_commission": 0,
"per_picked": 0,
"cost_center": "cost_center_example",
"incoterm": "incoterm_example",
"named_place": "named_place_example",
"reserve_stock": false,
"advance_payment_status": "advance_payment_status_example",
"utm_medium": "utm_medium_example",
"utm_content": "utm_content_example",
"utm_source": "utm_source_example",
"utm_campaign": "utm_campaign_example",
"company_contact_person": "Example Corp",
"has_unit_price_items": false,
"is_subcontracted": false,
"transaction_time": "transaction_time_example",
"ignore_default_payment_terms_template": false,
"title": "title_example"
} Line items
Child objects that belong to this sales order. These are accessed via the parent's ID.
Sales Order Item
Attributes
Endpoints
/api/crm/sales-order-item?parent_id={id} /api/crm/sales-order-item /api/crm/sales-order-item/{id} /api/crm/sales-order-item/{id} /api/crm/sales-order-item/reorder {
"id": "sales-order-item_abc123",
"idx": 1,
"sales_order_id": "sales_order_id_example",
"item_code": "item_code_example",
"customer_item_code": "customer_item_code_example",
"ensure_delivery_based_on_produced_serial_no": false,
"item_name": "item_name_example",
"description": "description_example",
"delivery_date": "2024-01-15",
"image": "image_example",
"image_view": "image_view_example",
"qty": 0,
"stock_uom": "stock_uom_example",
"uom": "uom_example",
"conversion_factor": 0,
"stock_qty": 0,
"price_list_rate": 0,
"base_price_list_rate": 0,
"margin_type": "margin_type_example",
"margin_rate_or_amount": 0,
"rate_with_margin": 0,
"discount_percentage": 0,
"discount_amount": 0,
"base_rate_with_margin": 0,
"rate": 0,
"amount": 0,
"base_rate": 0,
"base_amount": 0,
"pricing_rules": "pricing_rules_example",
"is_free_item": false,
"net_rate": 0,
"net_amount": 0,
"base_net_rate": 0,
"base_net_amount": 0,
"delivered_by_supplier": false,
"supplier": "supplier_example",
"weight_per_unit": 0,
"total_weight": 0,
"weight_uom": "weight_uom_example",
"warehouse": "warehouse_example",
"target_warehouse": "target_warehouse_example",
"prevdoc_docname": "prevdoc_docname_example",
"brand": "brand_example",
"item_group": "item_group_example",
"billed_amt": 0,
"valuation_rate": 0,
"gross_profit": 0,
"blanket_order": "blanket_order_example",
"blanket_order_rate": 0,
"projected_qty": 0,
"actual_qty": 0,
"ordered_qty": 0,
"delivered_qty": 0,
"work_order_qty": 0,
"returned_qty": 0,
"item_tax_template": "item_tax_template_example",
"page_break": false,
"planned_qty": 0,
"produced_qty": 0,
"item_tax_rate": "item_tax_rate_example",
"transaction_date": "2024-01-15",
"additional_notes": "additional_notes_example",
"against_blanket_order": false,
"bom_no": "bom_no_example",
"stock_uom_rate": 0,
"grant_commission": false,
"picked_qty": 0,
"purchase_order": "purchase_order_example",
"purchase_order_item": "purchase_order_item_example",
"quotation_item": "quotation_item_example",
"material_request": "material_request_example",
"material_request_item": "material_request_item_example",
"reserve_stock": true,
"stock_reserved_qty": 0,
"production_plan_qty": 0,
"is_stock_item": false,
"distributed_discount_amount": 0,
"company_total_stock": 0,
"cost_center": "cost_center_example",
"project": "project_example",
"subcontracted_qty": 0,
"fg_item": "fg_item_example",
"fg_item_qty": 0,
"requested_qty": 0
}