The Promotional Scheme 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: Item Code
Default: false
Default: false
Default: false
Default: false
Default: false
{
"id": "promotional-scheme_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"apply_on": "Item Code",
"disable": false,
"mixed_conditions": false,
"is_cumulative": false,
"apply_rule_on_other": "apply_rule_on_other_example",
"other_item_code": "other_item_code_example",
"other_item_group": "other_item_group_example",
"other_brand": "other_brand_example",
"selling": false,
"buying": false,
"applicable_for": "applicable_for_example",
"valid_from": "valid_from_example",
"valid_upto": "valid_upto_example",
"company": "Example Corp",
"currency": "USD"
} /api/accounts/promotional-scheme/{id} Retrieve a promotional scheme
Retrieves the details of an existing promotional scheme. Supply the unique promotional scheme ID that was returned from a previous request.
Path parameters
The identifier of the promotional scheme to retrieve.
Returns
Returns the promotional scheme object if a valid identifier was provided.
curl https://api.overplane.dev/api/accounts/promotional-scheme/promotional-scheme_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "promotional-scheme_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"apply_on": "Item Code",
"disable": false,
"mixed_conditions": false,
"is_cumulative": false,
"apply_rule_on_other": "apply_rule_on_other_example",
"other_item_code": "other_item_code_example",
"other_item_group": "other_item_group_example",
"other_brand": "other_brand_example",
"selling": false,
"buying": false,
"applicable_for": "applicable_for_example",
"valid_from": "valid_from_example",
"valid_upto": "valid_upto_example",
"company": "Example Corp",
"currency": "USD"
} /api/accounts/promotional-scheme List all promotional schemes
Returns a list of promotional schemes. 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 promotional scheme objects.
curl https://api.overplane.dev/api/accounts/promotional-scheme \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "promotional-scheme_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"apply_on": "Item Code",
"disable": false,
"mixed_conditions": false,
"is_cumulative": false,
"apply_rule_on_other": "apply_rule_on_other_example",
"other_item_code": "other_item_code_example",
"other_item_group": "other_item_group_example",
"other_brand": "other_brand_example",
"selling": false,
"buying": false,
"applicable_for": "applicable_for_example",
"valid_from": "valid_from_example",
"valid_upto": "valid_upto_example",
"company": "Example Corp",
"currency": "USD"
}
],
"has_more": false,
"total": 1
} /api/accounts/promotional-scheme Create a promotional scheme
Creates a new promotional scheme object.
Body parameters
Default: Item Code
Default: false
Default: false
Default: false
Default: false
Default: false
Returns
Returns the newly created promotional scheme object if the call succeeded.
curl https://api.overplane.dev/api/accounts/promotional-scheme \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"company":"Example Corp"}' {
"id": "promotional-scheme_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"apply_on": "Item Code",
"disable": false,
"mixed_conditions": false,
"is_cumulative": false,
"apply_rule_on_other": "apply_rule_on_other_example",
"other_item_code": "other_item_code_example",
"other_item_group": "other_item_group_example",
"other_brand": "other_brand_example",
"selling": false,
"buying": false,
"applicable_for": "applicable_for_example",
"valid_from": "valid_from_example",
"valid_upto": "valid_upto_example",
"company": "Example Corp",
"currency": "USD"
} /api/accounts/promotional-scheme/{id} Update a promotional scheme
Updates the specified promotional scheme by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the promotional scheme to update.
Body parameters
Default: Item Code
Default: false
Default: false
Default: false
Default: false
Default: false
Returns
Returns the updated promotional scheme object.
curl https://api.overplane.dev/api/accounts/promotional-scheme/promotional-scheme_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"apply_on":"Item Code","disable":false}' {
"id": "promotional-scheme_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"apply_on": "Item Code",
"disable": false,
"mixed_conditions": false,
"is_cumulative": false,
"apply_rule_on_other": "apply_rule_on_other_example",
"other_item_code": "other_item_code_example",
"other_item_group": "other_item_group_example",
"other_brand": "other_brand_example",
"selling": false,
"buying": false,
"applicable_for": "applicable_for_example",
"valid_from": "valid_from_example",
"valid_upto": "valid_upto_example",
"company": "Example Corp",
"currency": "USD"
} /api/accounts/promotional-scheme/{id} Delete a promotional scheme
Permanently deletes a promotional scheme. This cannot be undone.
Path parameters
The identifier of the promotional scheme to delete.
Returns
Returns a confirmation that the promotional scheme has been deleted.
curl https://api.overplane.dev/api/accounts/promotional-scheme/promotional-scheme_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "promotional-scheme_abc123",
"deleted": true
} Line items
Child objects that belong to this promotional scheme. These are accessed via the parent's ID.
Campaign Item
Attributes
Endpoints
/api/accounts/campaign-item?parent_id={id} /api/accounts/campaign-item /api/accounts/campaign-item/{id} /api/accounts/campaign-item/{id} /api/accounts/campaign-item/reorder {
"id": "campaign-item_abc123",
"idx": 1,
"promotional_scheme_id": "promotional_scheme_id_example",
"campaign": "campaign_example"
} Customer Group Item
Attributes
Endpoints
/api/accounts/customer-group-item?parent_id={id} /api/accounts/customer-group-item /api/accounts/customer-group-item/{id} /api/accounts/customer-group-item/{id} /api/accounts/customer-group-item/reorder {
"id": "customer-group-item_abc123",
"idx": 1,
"promotional_scheme_id": "promotional_scheme_id_example",
"customer_group": "customer_group_example"
} Customer Item
Attributes
Endpoints
/api/accounts/customer-item?parent_id={id} /api/accounts/customer-item /api/accounts/customer-item/{id} /api/accounts/customer-item/{id} /api/accounts/customer-item/reorder {
"id": "customer-item_abc123",
"idx": 1,
"promotional_scheme_id": "promotional_scheme_id_example",
"customer": "customer_example"
} Promotional Scheme Price Discount
Attributes
Endpoints
/api/accounts/promotional-scheme-price-discount?parent_id={id} /api/accounts/promotional-scheme-price-discount /api/accounts/promotional-scheme-price-discount/{id} /api/accounts/promotional-scheme-price-discount/{id} /api/accounts/promotional-scheme-price-discount/reorder {
"id": "promotional-scheme-price-discount_abc123",
"idx": 1,
"promotional_scheme_id": "promotional_scheme_id_example",
"disable": false,
"rule_description": "rule_description_example",
"min_qty": 0,
"max_qty": 0,
"min_amount": 0,
"max_amount": 0,
"rate_or_discount": "Discount Percentage",
"rate": 0,
"discount_amount": 0,
"discount_percentage": 0,
"for_price_list": "for_price_list_example",
"warehouse": "warehouse_example",
"threshold_percentage": 0,
"validate_applied_rule": false,
"priority": "priority_example",
"apply_multiple_pricing_rules": false,
"apply_discount_on_rate": false
} Promotional Scheme Product Discount
Attributes
Endpoints
/api/accounts/promotional-scheme-product-discount?parent_id={id} /api/accounts/promotional-scheme-product-discount /api/accounts/promotional-scheme-product-discount/{id} /api/accounts/promotional-scheme-product-discount/{id} /api/accounts/promotional-scheme-product-discount/reorder {
"id": "promotional-scheme-product-discount_abc123",
"idx": 1,
"promotional_scheme_id": "promotional_scheme_id_example",
"disable": false,
"rule_description": "rule_description_example",
"min_qty": 0,
"max_qty": 0,
"min_amount": 0,
"max_amount": 0,
"same_item": false,
"free_item": "free_item_example",
"free_qty": 0,
"free_item_uom": "free_item_uom_example",
"free_item_rate": 0,
"warehouse": "warehouse_example",
"threshold_percentage": 0,
"priority": "priority_example",
"apply_multiple_pricing_rules": false,
"is_recursive": false,
"recurse_for": 0,
"apply_recursion_over": 0,
"round_free_qty": false
} Sales Partner Item
Attributes
Endpoints
/api/accounts/sales-partner-item?parent_id={id} /api/accounts/sales-partner-item /api/accounts/sales-partner-item/{id} /api/accounts/sales-partner-item/{id} /api/accounts/sales-partner-item/reorder {
"id": "sales-partner-item_abc123",
"idx": 1,
"promotional_scheme_id": "promotional_scheme_id_example",
"sales_partner": "sales_partner_example"
} Supplier Group Item
Attributes
Endpoints
/api/accounts/supplier-group-item?parent_id={id} /api/accounts/supplier-group-item /api/accounts/supplier-group-item/{id} /api/accounts/supplier-group-item/{id} /api/accounts/supplier-group-item/reorder {
"id": "supplier-group-item_abc123",
"idx": 1,
"promotional_scheme_id": "promotional_scheme_id_example",
"supplier_group": "supplier_group_example"
} Supplier Item
Attributes
Endpoints
/api/accounts/supplier-item?parent_id={id} /api/accounts/supplier-item /api/accounts/supplier-item/{id} /api/accounts/supplier-item/{id} /api/accounts/supplier-item/reorder {
"id": "supplier-item_abc123",
"idx": 1,
"promotional_scheme_id": "promotional_scheme_id_example",
"supplier": "supplier_example"
} Territory Item
Attributes
Endpoints
/api/accounts/territory-item?parent_id={id} /api/accounts/territory-item /api/accounts/territory-item/{id} /api/accounts/territory-item/{id} /api/accounts/territory-item/reorder {
"id": "territory-item_abc123",
"idx": 1,
"promotional_scheme_id": "promotional_scheme_id_example",
"territory": "territory_example"
}