Download OpenAPI specification:Download
This reference specification outlines all the available HTTP operations of the LeafLink API.
See the LeafLink Developer Hub for guides, how-to, and general information of the API.
Returns cashback statistics for a company.
marketplace_slug required | string |
LeafLink-Version | string <date> |
{- "buyer_cashback_invoice_count": -2147483648,
- "buyer_cashback_potential_earnings": -9999999999
}
Create an invoice's recorded payment.
amount required | string non-empty Quantity in USD |
payment_date required | string <date> Date payment was made in YYYY-MM-DD |
payment_reason required | string non-empty Reason payment was made. choices: ['invoice_purchase', 'reversal', 'adjustment', 'principal', 'extension_fee', 'factor_fee', 'direct_pay_fee', 'direct_pay_fee_reversal', 'direct_pay_fee_batch', 'cashback_reward', 'standard', 'ach_error', 'marketplace_payment', 'other', 'sell_through'] |
payment_method required | string non-empty The way the payment was made. choices:['ach', 'wire', 'money_order', 'cash_pickup', 'check', 'other'] |
check_number | string non-empty Check number if the method is check |
source_id required | string non-empty The ID of this payment in your system |
{- "amount": "string",
- "payment_date": "2019-08-24",
- "payment_reason": "string",
- "payment_method": "string",
- "check_number": "string",
- "source_id": "string"
}
{- "amount": "string",
- "payment_date": "2019-08-24",
- "payment_reason": "string",
- "payment_method": "string",
- "check_number": "string",
- "source_id": "string"
}
Managed Companies collection view. Companies you are the admin of
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "dba": "string",
- "legal_entity": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "street_address": "string",
- "city": "string",
- "zipcode": "string",
- "unit_number": "string",
- "state": "string",
- "country": "string",
- "lexis_nexis_id": "string",
- "rep_first_name": "string",
- "rep_last_name": "string",
- "rep_title": "string",
- "phone": "string"
}, - "has_linked_bank_account": true
}
]
}
Managed Companies collection view. Companies you are the admin of
id required | string <uuid> |
LeafLink-Version | string <date> |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "dba": "string",
- "legal_entity": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "street_address": "string",
- "city": "string",
- "zipcode": "string",
- "unit_number": "string",
- "state": "string",
- "country": "string",
- "lexis_nexis_id": "string",
- "rep_first_name": "string",
- "rep_last_name": "string",
- "rep_title": "string",
- "phone": "string"
}, - "has_linked_bank_account": true
}
Licenses for a company
id required | string |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "number": "string",
- "state": {
- "id": "string",
- "name": "string"
}, - "verification_date": "2019-08-24T14:15:22Z",
- "verification_status": "active",
- "issued_date": "2019-08-24T14:15:22Z",
- "expiration_date": "2019-08-24T14:15:22Z",
- "type": "medical"
}
]
}
Managed Companies collection view. Companies you are the admin of
marketplace_slug required | string |
LeafLink-Version | string <date> |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "dba": "string",
- "legal_entity": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "street_address": "string",
- "city": "string",
- "zipcode": "string",
- "unit_number": "string",
- "state": "string",
- "country": "string",
- "lexis_nexis_id": "string",
- "rep_first_name": "string",
- "rep_last_name": "string",
- "rep_title": "string",
- "phone": "string"
}, - "has_linked_bank_account": true
}
List multiple payment contracts.
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "docusign_id": "string",
- "status": "active",
- "buyer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "dba": "string",
- "name": "string",
- "street_address": "string",
- "unit_number": "string",
- "city": "string",
- "state": "string",
- "licenses": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "number": "string",
- "state": {
- "id": "string",
- "name": "string"
}, - "verification_date": "2019-08-24T14:15:22Z",
- "verification_status": "active",
- "issued_date": "2019-08-24T14:15:22Z",
- "expiration_date": "2019-08-24T14:15:22Z",
- "type": "medical"
}
], - "zipcode": "string",
- "country": "string",
- "phone": "string",
- "marketplace_id": 0,
- "marketplace_slug": "string",
- "marketplace_dashboard_url": "string",
- "has_signed_terms_and_conditions": "string",
- "in_direct_enabled_state": "string",
- "type": "seller",
- "url": "string",
- "legal_entity": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "street_address": "string",
- "city": "string",
- "zipcode": "string",
- "unit_number": "string",
- "state": "string",
- "country": "string",
- "lexis_nexis_id": "string",
- "rep_first_name": "string",
- "rep_last_name": "string",
- "rep_title": "string",
- "phone": "string"
}, - "status": "not_onboarded",
- "b2b_enabled": true,
- "flexible_enabled": true,
- "image": "string",
- "timezone": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "excluded_from_automated_payments": true,
- "preferred_payment_program": "do_not_process",
- "default_flexible_payment_strategy": "factored",
- "default_flexible_payment_term": "string",
- "available_terms": "string",
- "exempted_from_term_validation": true,
- "collection_day_preference": "monday",
- "excluded_from_funding_on_t": true,
- "cashback_rewards_enabled": true
}, - "seller": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "dba": "string",
- "name": "string",
- "street_address": "string",
- "unit_number": "string",
- "city": "string",
- "state": "string",
- "licenses": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "number": "string",
- "state": {
- "id": "string",
- "name": "string"
}, - "verification_date": "2019-08-24T14:15:22Z",
- "verification_status": "active",
- "issued_date": "2019-08-24T14:15:22Z",
- "expiration_date": "2019-08-24T14:15:22Z",
- "type": "medical"
}
], - "zipcode": "string",
- "country": "string",
- "phone": "string",
- "marketplace_id": 0,
- "marketplace_slug": "string",
- "marketplace_dashboard_url": "string",
- "has_signed_terms_and_conditions": "string",
- "in_direct_enabled_state": "string",
- "type": "seller",
- "url": "string",
- "legal_entity": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "street_address": "string",
- "city": "string",
- "zipcode": "string",
- "unit_number": "string",
- "state": "string",
- "country": "string",
- "lexis_nexis_id": "string",
- "rep_first_name": "string",
- "rep_last_name": "string",
- "rep_title": "string",
- "phone": "string"
}, - "status": "not_onboarded",
- "b2b_enabled": true,
- "flexible_enabled": true,
- "image": "string",
- "timezone": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "excluded_from_automated_payments": true,
- "preferred_payment_program": "do_not_process",
- "docusign_id": "9cb58ca6-cede-49c2-9f01-cc5c9b4c1238",
- "brands": "string",
- "marketplace_customers_url": "string",
- "direct_payment_processing_rate": -99,
- "default_flexible_payment_strategy": "factored",
- "default_flexible_payment_term": "string",
- "collection_day_preference": "monday",
- "excluded_from_funding_on_t": true
}, - "contract_stats": {
- "first_completed_invoice_date": "2019-08-24T14:15:22Z",
- "most_recent_eligible_invoice_date": "2019-08-24T14:15:22Z",
- "most_recent_assigned_invoice_date": "2019-08-24T14:15:22Z",
- "eligible_invoice_count": -2147483648,
- "eligible_invoice_total": -9999999999,
- "funded_invoice_total": -9999999999,
- "funded_invoice_count": -2147483648,
- "funded_invoice_percentage": -999,
- "invoice_count": -2147483648,
- "invoice_total": -9999999999
}, - "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "default_payment_program": "do_not_process",
- "default_flexible_payment_strategy": "factored",
- "custom_direct_payment_term_type": "string",
- "custom_reverse_factor_auto_assignment": true
}
]
}
Create a payment contract.
docusign_id | string or null <= 200 characters |
status | string Default: "active" |
buyer_id required | string <uuid> |
seller_id required | string <uuid> |
default_payment_program | string Default: "do_not_process" Enum: "do_not_process" "flexible" "direct" "factoring" "b2b" |
default_flexible_payment_strategy | string (DefaultFlexiblePaymentStrategyEnum) Enum: "factored" "reverse_factored" |
custom_direct_payment_term_type | string non-empty |
custom_reverse_factor_auto_assignment | boolean or null |
{- "docusign_id": "string",
- "status": "active",
- "buyer_id": "2a8aae71-324e-470e-b3d1-589903cf2f45",
- "seller_id": "28f4dc41-8499-4ead-9976-f2fa20a45fd1",
- "default_payment_program": "do_not_process",
- "default_flexible_payment_strategy": "factored",
- "custom_direct_payment_term_type": "string",
- "custom_reverse_factor_auto_assignment": true
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "docusign_id": "string",
- "status": "active",
- "buyer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "dba": "string",
- "name": "string",
- "street_address": "string",
- "unit_number": "string",
- "city": "string",
- "state": "string",
- "licenses": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "number": "string",
- "state": {
- "id": "string",
- "name": "string"
}, - "verification_date": "2019-08-24T14:15:22Z",
- "verification_status": "active",
- "issued_date": "2019-08-24T14:15:22Z",
- "expiration_date": "2019-08-24T14:15:22Z",
- "type": "medical"
}
], - "zipcode": "string",
- "country": "string",
- "phone": "string",
- "marketplace_id": 0,
- "marketplace_slug": "string",
- "marketplace_dashboard_url": "string",
- "has_signed_terms_and_conditions": "string",
- "in_direct_enabled_state": "string",
- "type": "seller",
- "url": "string",
- "legal_entity": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "street_address": "string",
- "city": "string",
- "zipcode": "string",
- "unit_number": "string",
- "state": "string",
- "country": "string",
- "lexis_nexis_id": "string",
- "rep_first_name": "string",
- "rep_last_name": "string",
- "rep_title": "string",
- "phone": "string"
}, - "status": "not_onboarded",
- "b2b_enabled": true,
- "flexible_enabled": true,
- "image": "string",
- "timezone": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "excluded_from_automated_payments": true,
- "preferred_payment_program": "do_not_process",
- "default_flexible_payment_strategy": "factored",
- "default_flexible_payment_term": "string",
- "available_terms": "string",
- "exempted_from_term_validation": true,
- "collection_day_preference": "monday",
- "excluded_from_funding_on_t": true,
- "cashback_rewards_enabled": true
}, - "seller": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "dba": "string",
- "name": "string",
- "street_address": "string",
- "unit_number": "string",
- "city": "string",
- "state": "string",
- "licenses": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "number": "string",
- "state": {
- "id": "string",
- "name": "string"
}, - "verification_date": "2019-08-24T14:15:22Z",
- "verification_status": "active",
- "issued_date": "2019-08-24T14:15:22Z",
- "expiration_date": "2019-08-24T14:15:22Z",
- "type": "medical"
}
], - "zipcode": "string",
- "country": "string",
- "phone": "string",
- "marketplace_id": 0,
- "marketplace_slug": "string",
- "marketplace_dashboard_url": "string",
- "has_signed_terms_and_conditions": "string",
- "in_direct_enabled_state": "string",
- "type": "seller",
- "url": "string",
- "legal_entity": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "street_address": "string",
- "city": "string",
- "zipcode": "string",
- "unit_number": "string",
- "state": "string",
- "country": "string",
- "lexis_nexis_id": "string",
- "rep_first_name": "string",
- "rep_last_name": "string",
- "rep_title": "string",
- "phone": "string"
}, - "status": "not_onboarded",
- "b2b_enabled": true,
- "flexible_enabled": true,
- "image": "string",
- "timezone": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "excluded_from_automated_payments": true,
- "preferred_payment_program": "do_not_process",
- "docusign_id": "9cb58ca6-cede-49c2-9f01-cc5c9b4c1238",
- "brands": "string",
- "marketplace_customers_url": "string",
- "direct_payment_processing_rate": -99,
- "default_flexible_payment_strategy": "factored",
- "default_flexible_payment_term": "string",
- "collection_day_preference": "monday",
- "excluded_from_funding_on_t": true
}, - "contract_stats": {
- "first_completed_invoice_date": "2019-08-24T14:15:22Z",
- "most_recent_eligible_invoice_date": "2019-08-24T14:15:22Z",
- "most_recent_assigned_invoice_date": "2019-08-24T14:15:22Z",
- "eligible_invoice_count": -2147483648,
- "eligible_invoice_total": -9999999999,
- "funded_invoice_total": -9999999999,
- "funded_invoice_count": -2147483648,
- "funded_invoice_percentage": -999,
- "invoice_count": -2147483648,
- "invoice_total": -9999999999
}, - "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "default_payment_program": "do_not_process",
- "default_flexible_payment_strategy": "factored",
- "custom_direct_payment_term_type": "string",
- "custom_reverse_factor_auto_assignment": true
}
Get a single payment contracts.
contract_id required | string |
LeafLink-Version | string <date> |
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "docusign_id": "string",
- "status": "active",
- "buyer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "dba": "string",
- "name": "string",
- "street_address": "string",
- "unit_number": "string",
- "city": "string",
- "state": "string",
- "licenses": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "number": "string",
- "state": {
- "id": "string",
- "name": "string"
}, - "verification_date": "2019-08-24T14:15:22Z",
- "verification_status": "active",
- "issued_date": "2019-08-24T14:15:22Z",
- "expiration_date": "2019-08-24T14:15:22Z",
- "type": "medical"
}
], - "zipcode": "string",
- "country": "string",
- "phone": "string",
- "marketplace_id": 0,
- "marketplace_slug": "string",
- "marketplace_dashboard_url": "string",
- "has_signed_terms_and_conditions": "string",
- "in_direct_enabled_state": "string",
- "type": "seller",
- "url": "string",
- "legal_entity": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "street_address": "string",
- "city": "string",
- "zipcode": "string",
- "unit_number": "string",
- "state": "string",
- "country": "string",
- "lexis_nexis_id": "string",
- "rep_first_name": "string",
- "rep_last_name": "string",
- "rep_title": "string",
- "phone": "string"
}, - "status": "not_onboarded",
- "b2b_enabled": true,
- "flexible_enabled": true,
- "image": "string",
- "timezone": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "excluded_from_automated_payments": true,
- "preferred_payment_program": "do_not_process",
- "default_flexible_payment_strategy": "factored",
- "default_flexible_payment_term": "string",
- "available_terms": "string",
- "exempted_from_term_validation": true,
- "collection_day_preference": "monday",
- "excluded_from_funding_on_t": true,
- "cashback_rewards_enabled": true
}, - "seller": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "dba": "string",
- "name": "string",
- "street_address": "string",
- "unit_number": "string",
- "city": "string",
- "state": "string",
- "licenses": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "number": "string",
- "state": {
- "id": "string",
- "name": "string"
}, - "verification_date": "2019-08-24T14:15:22Z",
- "verification_status": "active",
- "issued_date": "2019-08-24T14:15:22Z",
- "expiration_date": "2019-08-24T14:15:22Z",
- "type": "medical"
}
], - "zipcode": "string",
- "country": "string",
- "phone": "string",
- "marketplace_id": 0,
- "marketplace_slug": "string",
- "marketplace_dashboard_url": "string",
- "has_signed_terms_and_conditions": "string",
- "in_direct_enabled_state": "string",
- "type": "seller",
- "url": "string",
- "legal_entity": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "street_address": "string",
- "city": "string",
- "zipcode": "string",
- "unit_number": "string",
- "state": "string",
- "country": "string",
- "lexis_nexis_id": "string",
- "rep_first_name": "string",
- "rep_last_name": "string",
- "rep_title": "string",
- "phone": "string"
}, - "status": "not_onboarded",
- "b2b_enabled": true,
- "flexible_enabled": true,
- "image": "string",
- "timezone": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "excluded_from_automated_payments": true,
- "preferred_payment_program": "do_not_process",
- "docusign_id": "9cb58ca6-cede-49c2-9f01-cc5c9b4c1238",
- "brands": "string",
- "marketplace_customers_url": "string",
- "direct_payment_processing_rate": -99,
- "default_flexible_payment_strategy": "factored",
- "default_flexible_payment_term": "string",
- "collection_day_preference": "monday",
- "excluded_from_funding_on_t": true
}, - "contract_stats": {
- "first_completed_invoice_date": "2019-08-24T14:15:22Z",
- "most_recent_eligible_invoice_date": "2019-08-24T14:15:22Z",
- "most_recent_assigned_invoice_date": "2019-08-24T14:15:22Z",
- "eligible_invoice_count": -2147483648,
- "eligible_invoice_total": -9999999999,
- "funded_invoice_total": -9999999999,
- "funded_invoice_count": -2147483648,
- "funded_invoice_percentage": -999,
- "invoice_count": -2147483648,
- "invoice_total": -9999999999
}, - "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "default_payment_program": "do_not_process",
- "default_flexible_payment_strategy": "factored",
- "custom_direct_payment_term_type": "string",
- "custom_reverse_factor_auto_assignment": true
}
Replace a single payment contracts.
contract_id required | string |
LeafLink-Version | string <date> |
docusign_id | string or null <= 200 characters |
status | string Default: "active" |
buyer_id required | string <uuid> |
seller_id required | string <uuid> |
default_payment_program | string Default: "do_not_process" Enum: "do_not_process" "flexible" "direct" "factoring" "b2b" |
default_flexible_payment_strategy | string (DefaultFlexiblePaymentStrategyEnum) Enum: "factored" "reverse_factored" |
custom_direct_payment_term_type | string non-empty |
custom_reverse_factor_auto_assignment | boolean or null |
{- "docusign_id": "string",
- "status": "active",
- "buyer_id": "2a8aae71-324e-470e-b3d1-589903cf2f45",
- "seller_id": "28f4dc41-8499-4ead-9976-f2fa20a45fd1",
- "default_payment_program": "do_not_process",
- "default_flexible_payment_strategy": "factored",
- "custom_direct_payment_term_type": "string",
- "custom_reverse_factor_auto_assignment": true
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "docusign_id": "string",
- "status": "active",
- "buyer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "dba": "string",
- "name": "string",
- "street_address": "string",
- "unit_number": "string",
- "city": "string",
- "state": "string",
- "licenses": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "number": "string",
- "state": {
- "id": "string",
- "name": "string"
}, - "verification_date": "2019-08-24T14:15:22Z",
- "verification_status": "active",
- "issued_date": "2019-08-24T14:15:22Z",
- "expiration_date": "2019-08-24T14:15:22Z",
- "type": "medical"
}
], - "zipcode": "string",
- "country": "string",
- "phone": "string",
- "marketplace_id": 0,
- "marketplace_slug": "string",
- "marketplace_dashboard_url": "string",
- "has_signed_terms_and_conditions": "string",
- "in_direct_enabled_state": "string",
- "type": "seller",
- "url": "string",
- "legal_entity": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "street_address": "string",
- "city": "string",
- "zipcode": "string",
- "unit_number": "string",
- "state": "string",
- "country": "string",
- "lexis_nexis_id": "string",
- "rep_first_name": "string",
- "rep_last_name": "string",
- "rep_title": "string",
- "phone": "string"
}, - "status": "not_onboarded",
- "b2b_enabled": true,
- "flexible_enabled": true,
- "image": "string",
- "timezone": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "excluded_from_automated_payments": true,
- "preferred_payment_program": "do_not_process",
- "default_flexible_payment_strategy": "factored",
- "default_flexible_payment_term": "string",
- "available_terms": "string",
- "exempted_from_term_validation": true,
- "collection_day_preference": "monday",
- "excluded_from_funding_on_t": true,
- "cashback_rewards_enabled": true
}, - "seller": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "dba": "string",
- "name": "string",
- "street_address": "string",
- "unit_number": "string",
- "city": "string",
- "state": "string",
- "licenses": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "number": "string",
- "state": {
- "id": "string",
- "name": "string"
}, - "verification_date": "2019-08-24T14:15:22Z",
- "verification_status": "active",
- "issued_date": "2019-08-24T14:15:22Z",
- "expiration_date": "2019-08-24T14:15:22Z",
- "type": "medical"
}
], - "zipcode": "string",
- "country": "string",
- "phone": "string",
- "marketplace_id": 0,
- "marketplace_slug": "string",
- "marketplace_dashboard_url": "string",
- "has_signed_terms_and_conditions": "string",
- "in_direct_enabled_state": "string",
- "type": "seller",
- "url": "string",
- "legal_entity": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "street_address": "string",
- "city": "string",
- "zipcode": "string",
- "unit_number": "string",
- "state": "string",
- "country": "string",
- "lexis_nexis_id": "string",
- "rep_first_name": "string",
- "rep_last_name": "string",
- "rep_title": "string",
- "phone": "string"
}, - "status": "not_onboarded",
- "b2b_enabled": true,
- "flexible_enabled": true,
- "image": "string",
- "timezone": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "excluded_from_automated_payments": true,
- "preferred_payment_program": "do_not_process",
- "docusign_id": "9cb58ca6-cede-49c2-9f01-cc5c9b4c1238",
- "brands": "string",
- "marketplace_customers_url": "string",
- "direct_payment_processing_rate": -99,
- "default_flexible_payment_strategy": "factored",
- "default_flexible_payment_term": "string",
- "collection_day_preference": "monday",
- "excluded_from_funding_on_t": true
}, - "contract_stats": {
- "first_completed_invoice_date": "2019-08-24T14:15:22Z",
- "most_recent_eligible_invoice_date": "2019-08-24T14:15:22Z",
- "most_recent_assigned_invoice_date": "2019-08-24T14:15:22Z",
- "eligible_invoice_count": -2147483648,
- "eligible_invoice_total": -9999999999,
- "funded_invoice_total": -9999999999,
- "funded_invoice_count": -2147483648,
- "funded_invoice_percentage": -999,
- "invoice_count": -2147483648,
- "invoice_total": -9999999999
}, - "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "default_payment_program": "do_not_process",
- "default_flexible_payment_strategy": "factored",
- "custom_direct_payment_term_type": "string",
- "custom_reverse_factor_auto_assignment": true
}
Update a single payment contract.
contract_id required | string |
LeafLink-Version | string <date> |
docusign_id | string or null <= 200 characters |
status | string Default: "active" |
buyer_id | string <uuid> |
seller_id | string <uuid> |
default_payment_program | string Default: "do_not_process" Enum: "do_not_process" "flexible" "direct" "factoring" "b2b" |
default_flexible_payment_strategy | string (DefaultFlexiblePaymentStrategyEnum) Enum: "factored" "reverse_factored" |
custom_direct_payment_term_type | string non-empty |
custom_reverse_factor_auto_assignment | boolean or null |
{- "docusign_id": "string",
- "status": "active",
- "buyer_id": "2a8aae71-324e-470e-b3d1-589903cf2f45",
- "seller_id": "28f4dc41-8499-4ead-9976-f2fa20a45fd1",
- "default_payment_program": "do_not_process",
- "default_flexible_payment_strategy": "factored",
- "custom_direct_payment_term_type": "string",
- "custom_reverse_factor_auto_assignment": true
}
{- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "docusign_id": "string",
- "status": "active",
- "buyer": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "dba": "string",
- "name": "string",
- "street_address": "string",
- "unit_number": "string",
- "city": "string",
- "state": "string",
- "licenses": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "number": "string",
- "state": {
- "id": "string",
- "name": "string"
}, - "verification_date": "2019-08-24T14:15:22Z",
- "verification_status": "active",
- "issued_date": "2019-08-24T14:15:22Z",
- "expiration_date": "2019-08-24T14:15:22Z",
- "type": "medical"
}
], - "zipcode": "string",
- "country": "string",
- "phone": "string",
- "marketplace_id": 0,
- "marketplace_slug": "string",
- "marketplace_dashboard_url": "string",
- "has_signed_terms_and_conditions": "string",
- "in_direct_enabled_state": "string",
- "type": "seller",
- "url": "string",
- "legal_entity": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "street_address": "string",
- "city": "string",
- "zipcode": "string",
- "unit_number": "string",
- "state": "string",
- "country": "string",
- "lexis_nexis_id": "string",
- "rep_first_name": "string",
- "rep_last_name": "string",
- "rep_title": "string",
- "phone": "string"
}, - "status": "not_onboarded",
- "b2b_enabled": true,
- "flexible_enabled": true,
- "image": "string",
- "timezone": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "excluded_from_automated_payments": true,
- "preferred_payment_program": "do_not_process",
- "default_flexible_payment_strategy": "factored",
- "default_flexible_payment_term": "string",
- "available_terms": "string",
- "exempted_from_term_validation": true,
- "collection_day_preference": "monday",
- "excluded_from_funding_on_t": true,
- "cashback_rewards_enabled": true
}, - "seller": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "dba": "string",
- "name": "string",
- "street_address": "string",
- "unit_number": "string",
- "city": "string",
- "state": "string",
- "licenses": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "number": "string",
- "state": {
- "id": "string",
- "name": "string"
}, - "verification_date": "2019-08-24T14:15:22Z",
- "verification_status": "active",
- "issued_date": "2019-08-24T14:15:22Z",
- "expiration_date": "2019-08-24T14:15:22Z",
- "type": "medical"
}
], - "zipcode": "string",
- "country": "string",
- "phone": "string",
- "marketplace_id": 0,
- "marketplace_slug": "string",
- "marketplace_dashboard_url": "string",
- "has_signed_terms_and_conditions": "string",
- "in_direct_enabled_state": "string",
- "type": "seller",
- "url": "string",
- "legal_entity": {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "name": "string",
- "street_address": "string",
- "city": "string",
- "zipcode": "string",
- "unit_number": "string",
- "state": "string",
- "country": "string",
- "lexis_nexis_id": "string",
- "rep_first_name": "string",
- "rep_last_name": "string",
- "rep_title": "string",
- "phone": "string"
}, - "status": "not_onboarded",
- "b2b_enabled": true,
- "flexible_enabled": true,
- "image": "string",
- "timezone": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "excluded_from_automated_payments": true,
- "preferred_payment_program": "do_not_process",
- "docusign_id": "9cb58ca6-cede-49c2-9f01-cc5c9b4c1238",
- "brands": "string",
- "marketplace_customers_url": "string",
- "direct_payment_processing_rate": -99,
- "default_flexible_payment_strategy": "factored",
- "default_flexible_payment_term": "string",
- "collection_day_preference": "monday",
- "excluded_from_funding_on_t": true
}, - "contract_stats": {
- "first_completed_invoice_date": "2019-08-24T14:15:22Z",
- "most_recent_eligible_invoice_date": "2019-08-24T14:15:22Z",
- "most_recent_assigned_invoice_date": "2019-08-24T14:15:22Z",
- "eligible_invoice_count": -2147483648,
- "eligible_invoice_total": -9999999999,
- "funded_invoice_total": -9999999999,
- "funded_invoice_count": -2147483648,
- "funded_invoice_percentage": -999,
- "invoice_count": -2147483648,
- "invoice_total": -9999999999
}, - "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "default_payment_program": "do_not_process",
- "default_flexible_payment_strategy": "factored",
- "custom_direct_payment_term_type": "string",
- "custom_reverse_factor_auto_assignment": true
}
List multiple Brands.
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
List recommended recently purchased Brands.
company_id required | integer The ID of the viewing company |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "name": "string",
- "sponsorship": {
- "rank": 0,
- "provider_id": "string",
- "ad_id": "string",
- "campaign_id": "string",
- "target_url": "string",
- "click_url": "string",
- "creative": {
- "property1": null,
- "property2": null
}, - "impression_url": "string",
- "items": [
], - "page_load_id": "string",
- "placement": {
- "id": "string",
- "style": "string",
- "provider": "string"
}, - "target_company_id": 0,
- "target_user_id": 0,
- "target_resource_id": "string",
- "target_resource_name": "string"
},
}
]
}
List brands and sponsorships for the Shop Brands page.
ancillary_type | string Enum: "all" "preferred" |
badge | Array of strings Filter by badge code |
category | Array of strings Filter by category slug |
company_id required | integer The ID of the viewing company |
has_ordered_from | boolean Filter by brands that were ordered from previously |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
payment_method | Array of strings Items Enum: "direct_pay" "flex_pay" "payment_on_sell_through" |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 420,
- "content": {
- "sponsorships": {
- "banners": [
- {
- "sponsorship": {
- "rank": 0,
- "provider_id": "string",
- "ad_id": "string",
- "campaign_id": "string",
- "target_url": "string",
- "click_url": "string",
- "creative": {
- "property1": null,
- "property2": null
}, - "impression_url": "string",
- "items": [
], - "page_load_id": "string",
- "placement": {
- "id": "string",
- "style": "string",
- "provider": "string"
}, - "target_company_id": 0,
- "target_user_id": 0,
- "target_resource_id": "string",
- "target_resource_name": "string"
}
}
], - "listing": [
- {
- "sponsorship": {
- "rank": 0,
- "provider_id": "string",
- "ad_id": "string",
- "campaign_id": "string",
- "target_url": "string",
- "click_url": "string",
- "creative": {
- "property1": null,
- "property2": null
}, - "impression_url": "string",
- "items": [
], - "page_load_id": "string",
- "placement": {
- "id": "string",
- "style": "string",
- "provider": "string"
}, - "target_company_id": 0,
- "target_user_id": 0,
- "target_resource_id": "string",
- "target_resource_name": "string"
}, - "resource": {
- "resource_id": 0,
- "resource_name": "string",
- "name": "string",
- "description": "string",
- "owner": {
- "resource_id": 0,
- "resource_name": "string",
- "name": "string",
- "slug": "string",
- "enable_vendor_menu": true
}, - "product_categories": [
- "string"
], - "badges": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "self_identify": true
}
], - "social_equity_programs": [
- "string"
], - "sponsored": true,
- "tagline": "string",
- "company_s2s_integration_type": "string"
}
}
], - "skyscrapers": [
- {
- "ad_id": "string",
- "campaign_id": "string",
- "creative": {
- "property1": null,
- "property2": null
}, - "creative_id": "string",
- "custom_text": "string",
- "page_load_id": "string",
- "placement_name": "string",
- "products": [
- {
- "id": "string",
- "display_price": "string",
- "name": "string"
}
], - "provider_id": "string",
- "target_company_id": 0,
- "target_user_id": 0,
- "banner": {
- "property1": null,
- "property2": null
}, - "brand": {
- "id": "string",
- "name": "string",
- "company_name": "string",
- "company_id": "string",
- "enable_vendor_menu": true
}
}
]
}, - "collection": [
- {
- "resource_id": 0,
- "resource_name": "string",
- "name": "string",
- "description": "string",
- "owner": {
- "resource_id": 0,
- "resource_name": "string",
- "name": "string",
- "slug": "string",
- "enable_vendor_menu": true
}, - "product_categories": [
- "string"
], - "badges": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "self_identify": true
}
], - "social_equity_programs": [
- "string"
], - "sponsored": true,
- "tagline": "string",
- "company_s2s_integration_type": "string"
}
]
}
}
List multiple Product Images.
company | integer |
company_slug | string |
id | Array of integers Multiple values may be separated by commas. |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
product | integer |
product__id | Array of integers Multiple values may be separated by commas. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "product": 0,
- "position": 1
}
]
}
Get a single Product Image.
id required | integer A unique integer value identifying this product image. |
LeafLink-Version | string <date> |
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "product": 0,
- "position": 1
}
List all discussions
from_date | string Filter discussions from this date (YYYY-MM-DD) |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string Search term for filtering messages content |
status | string Filter by discussion status ('in_progress' or 'completed') |
to_date | string Filter discussions until this date (YYYY-MM-DD) |
LeafLink-Version | string <date> |
{- "count": 420,
- "current_page": 0,
- "results": [
- {
- "id": 0,
- "topic": "string",
- "status": "in_progress",
- "sender_company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "recipient_company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "creator": 0,
- "latest_message": {
- "id": 0,
- "message": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "read_by_sender": "2019-08-24T14:15:22Z",
- "read_by_recipient": "2019-08-24T14:15:22Z",
- "author": {
- "id": 0,
- "company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "user": 0,
- "name": "string",
- "email": "string"
}
}
}
]
}
Create a new discussion with the first message.
topic required | string non-empty |
required | object (CompanyRequest) Company serializer |
required | object (CompanyRequest) Company serializer |
creator | integer or null Discussion Creator |
required | object Discussion Message serializer |
{- "topic": "string",
- "sender_company": {
- "id": 0,
- "name": "string"
}, - "recipient_company": {
- "id": 0,
- "name": "string"
}, - "creator": 0,
- "first_message": {
- "message": "string"
}
}
{- "id": 0,
- "topic": "string",
- "status": "in_progress",
- "sender_company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "recipient_company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "creator": 0,
- "latest_message": {
- "id": 0,
- "message": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "read_by_sender": "2019-08-24T14:15:22Z",
- "read_by_recipient": "2019-08-24T14:15:22Z",
- "author": {
- "id": 0,
- "company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "user": 0,
- "name": "string",
- "email": "string"
}
}
}
LeafLink API for Marketplace discussions.
id required | integer A unique integer value identifying this chat. |
LeafLink-Version | string <date> |
{- "id": 0,
- "topic": "string",
- "status": "in_progress",
- "sender_company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "recipient_company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "creator": 0,
- "latest_message": {
- "id": 0,
- "message": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "read_by_sender": "2019-08-24T14:15:22Z",
- "read_by_recipient": "2019-08-24T14:15:22Z",
- "author": {
- "id": 0,
- "company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "user": 0,
- "name": "string",
- "email": "string"
}
}
}
LeafLink API for Marketplace discussions.
id required | integer A unique integer value identifying this chat. |
LeafLink-Version | string <date> |
topic required | string non-empty |
required | object (CompanyRequest) Company serializer |
required | object (CompanyRequest) Company serializer |
creator | integer or null Discussion Creator |
required | object Discussion Message serializer |
{- "topic": "string",
- "sender_company": {
- "id": 0,
- "name": "string"
}, - "recipient_company": {
- "id": 0,
- "name": "string"
}, - "creator": 0,
- "first_message": {
- "message": "string"
}
}
{- "id": 0,
- "topic": "string",
- "status": "in_progress",
- "sender_company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "recipient_company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "creator": 0,
- "latest_message": {
- "id": 0,
- "message": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "read_by_sender": "2019-08-24T14:15:22Z",
- "read_by_recipient": "2019-08-24T14:15:22Z",
- "author": {
- "id": 0,
- "company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "user": 0,
- "name": "string",
- "email": "string"
}
}
}
LeafLink API for Marketplace discussions.
id required | integer A unique integer value identifying this chat. |
LeafLink-Version | string <date> |
topic | string non-empty |
object (CompanyRequest) Company serializer | |
object (CompanyRequest) Company serializer | |
creator | integer or null Discussion Creator |
object Discussion Message serializer |
{- "topic": "string",
- "sender_company": {
- "id": 0,
- "name": "string"
}, - "recipient_company": {
- "id": 0,
- "name": "string"
}, - "creator": 0,
- "first_message": {
- "message": "string"
}
}
{- "id": 0,
- "topic": "string",
- "status": "in_progress",
- "sender_company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "recipient_company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "creator": 0,
- "latest_message": {
- "id": 0,
- "message": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "read_by_sender": "2019-08-24T14:15:22Z",
- "read_by_recipient": "2019-08-24T14:15:22Z",
- "author": {
- "id": 0,
- "company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "user": 0,
- "name": "string",
- "email": "string"
}
}
}
Mark a specific message as read
id required | integer A unique integer value identifying this chat. |
message_id required | integer A unique integer value identifying this message. |
LeafLink-Version | string <date> |
read_by_sender_company | boolean |
read_by_recipient_company | boolean |
{- "read_by_sender_company": true,
- "read_by_recipient_company": true
}
{- "id": 0,
- "topic": "string",
- "status": "in_progress",
- "sender_company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "recipient_company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "creator": 0,
- "latest_message": {
- "id": 0,
- "message": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "read_by_sender": "2019-08-24T14:15:22Z",
- "read_by_recipient": "2019-08-24T14:15:22Z",
- "author": {
- "id": 0,
- "company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "user": 0,
- "name": "string",
- "email": "string"
}
}
}
Takes a list of chat IDs and updates their status to the given status. Status must be one of: in_progress, completed
status | string Enum: "in_progress" "completed" |
chats | Array of integers |
{- "status": "in_progress",
- "chats": [
- 0
]
}
Get or post messages for a discussion
id required | integer A unique integer value identifying this chat. |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 420,
- "current_page": 0,
- "results": [
- {
- "id": 0,
- "message": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "read_by_sender": "2019-08-24T14:15:22Z",
- "read_by_recipient": "2019-08-24T14:15:22Z",
- "author": {
- "id": 0,
- "company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "user": 0,
- "name": "string",
- "email": "string"
}
}
]
}
Get or post messages for a discussion
id required | integer A unique integer value identifying this chat. |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
message required | string non-empty |
{- "message": "string"
}
{- "count": 420,
- "current_page": 0,
- "results": [
- {
- "id": 0,
- "message": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "read_by_sender": "2019-08-24T14:15:22Z",
- "read_by_recipient": "2019-08-24T14:15:22Z",
- "author": {
- "id": 0,
- "company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "user": 0,
- "name": "string",
- "email": "string"
}
}
]
}
Unified API Buyer Notification Settings.
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string Search term for filtering companies by name |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "address": "string",
- "city": "string",
- "state": "string",
- "zipcode": "string",
- "business_identifier": "string",
- "business_license_name": "string",
- "name": "string",
- "seller": true,
- "slug": "string"
}
]
}
Unified API Buyer Notification Settings.
id required | integer A unique integer value identifying this company. |
LeafLink-Version | string <date> |
{- "id": 0,
- "address": "string",
- "city": "string",
- "state": "string",
- "zipcode": "string",
- "business_identifier": "string",
- "business_license_name": "string",
- "name": "string",
- "seller": true,
- "slug": "string"
}
Unified API to list company license types
company_id required | integer The ID of the viewing company |
is_buyer_license | boolean Return buyer license types |
is_seller_license | boolean Return seller license types |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
used_by_company | boolean Only return license types that are used by the provide company, otherwise return all for the company's state |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "active_for_registration": true,
- "classification": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "description": "string",
- "display_type": "string",
- "has_medical_line_items": true,
- "id": 0,
- "modified": "2019-08-24T14:15:22Z",
- "post_2018_CA": true,
- "pre_2018_CA": true,
- "require_ein": true,
- "state_id": 0,
- "type": "string"
}
]
}
Unified API to list company license types
id required | string |
LeafLink-Version | string <date> |
{- "active_for_registration": true,
- "classification": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "description": "string",
- "display_type": "string",
- "has_medical_line_items": true,
- "id": 0,
- "modified": "2019-08-24T14:15:22Z",
- "post_2018_CA": true,
- "pre_2018_CA": true,
- "require_ein": true,
- "state_id": 0,
- "type": "string"
}
Unified API to list company licenses
company_id | Array of integers Multiple values may be separated by commas. |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "number": "string",
- "type": {
- "id": 0,
- "type": "string",
- "display_type": "string",
- "classification": "string",
- "state": 0,
- "require_ein": true,
- "has_medical_line_items": true,
- "active_for_registration": true,
- "description": "string",
- "pre_2018_CA": true,
- "post_2018_CA": true,
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "state_abbr": "string"
}, - "display_type": "string",
- "classification": "string"
}
]
}
Create new licenses from a list of licenses directly from a seed-to-sale vendor.
company_id required | integer The ID of the viewing company |
LeafLink-Version | string <date> |
number required | string non-empty |
start_date required | string or null <date> |
end_date required | string <date> |
type_id required | integer |
[- {
- "number": "string",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24",
- "type_id": 0
}
]
{- "license_ids": [
- 0
]
}
Unified API to list company licenses
id required | integer A unique integer value identifying this license. |
LeafLink-Version | string <date> |
{- "number": "string",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24",
- "type_id": 0
}
List multiple Contacts.
company_slug | string |
created_date | string <date-time> |
delete | string <date-time> |
string <email> | |
first_name | string |
id | integer |
last_name | string |
modified_date | string <date-time> |
ordering | string Which field to use when ordering the results. |
owner | integer |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
Get a single Contact.
id required | string |
LeafLink-Version | string <date> |
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "owner": 0,
- "first_name": "string",
- "last_name": "string",
- "email": "user@example.com",
- "secondary_email": "user@example.com",
- "role": "string",
- "description": "string",
- "phone": "string",
- "phone_extension": "string",
- "secondary_phone": "string",
- "secondary_phone_extension": "string",
- "delete": true
}
LeafLink API for Marketplace contacts.
owner required | integer |
first_name required | string [ 1 .. 30 ] characters |
last_name | string <= 30 characters |
string or null <email> (Email address) <= 255 characters | |
secondary_email | string or null <email> (Secondary email address) <= 255 characters |
role | string or null (Position) <= 400 characters Position or role at company |
description | string or null <= 1500 characters An overview of the contact |
phone | string or null <= 400 characters ^(\d{10})?$ Phone Number of Brand |
phone_extension | string or null <= 20 characters |
secondary_phone | string or null <= 400 characters ^(\d{10})?$ Secondary Phone Number of Brand |
secondary_phone_extension | string or null <= 20 characters |
delete | boolean (Contact deleted) Is this Contact marked as deleted? |
{- "owner": 0,
- "first_name": "string",
- "last_name": "string",
- "email": "user@example.com",
- "secondary_email": "user@example.com",
- "role": "string",
- "description": "string",
- "phone": "string",
- "phone_extension": "string",
- "secondary_phone": "string",
- "secondary_phone_extension": "string",
- "delete": true
}
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "owner": 0,
- "first_name": "string",
- "last_name": "string",
- "email": "user@example.com",
- "secondary_email": "user@example.com",
- "role": "string",
- "description": "string",
- "phone": "string",
- "phone_extension": "string",
- "secondary_phone": "string",
- "secondary_phone_extension": "string",
- "delete": true
}
LeafLink API for Marketplace contacts.
id required | string |
LeafLink-Version | string <date> |
owner required | integer |
first_name required | string [ 1 .. 30 ] characters |
last_name | string <= 30 characters |
string or null <email> (Email address) <= 255 characters | |
secondary_email | string or null <email> (Secondary email address) <= 255 characters |
role | string or null (Position) <= 400 characters Position or role at company |
description | string or null <= 1500 characters An overview of the contact |
phone | string or null <= 400 characters ^(\d{10})?$ Phone Number of Brand |
phone_extension | string or null <= 20 characters |
secondary_phone | string or null <= 400 characters ^(\d{10})?$ Secondary Phone Number of Brand |
secondary_phone_extension | string or null <= 20 characters |
delete | boolean (Contact deleted) Is this Contact marked as deleted? |
{- "owner": 0,
- "first_name": "string",
- "last_name": "string",
- "email": "user@example.com",
- "secondary_email": "user@example.com",
- "role": "string",
- "description": "string",
- "phone": "string",
- "phone_extension": "string",
- "secondary_phone": "string",
- "secondary_phone_extension": "string",
- "delete": true
}
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "owner": 0,
- "first_name": "string",
- "last_name": "string",
- "email": "user@example.com",
- "secondary_email": "user@example.com",
- "role": "string",
- "description": "string",
- "phone": "string",
- "phone_extension": "string",
- "secondary_phone": "string",
- "secondary_phone_extension": "string",
- "delete": true
}
LeafLink API for Marketplace contacts.
id required | string |
LeafLink-Version | string <date> |
owner | integer |
first_name | string [ 1 .. 30 ] characters |
last_name | string <= 30 characters |
string or null <email> (Email address) <= 255 characters | |
secondary_email | string or null <email> (Secondary email address) <= 255 characters |
role | string or null (Position) <= 400 characters Position or role at company |
description | string or null <= 1500 characters An overview of the contact |
phone | string or null <= 400 characters ^(\d{10})?$ Phone Number of Brand |
phone_extension | string or null <= 20 characters |
secondary_phone | string or null <= 400 characters ^(\d{10})?$ Secondary Phone Number of Brand |
secondary_phone_extension | string or null <= 20 characters |
delete | boolean (Contact deleted) Is this Contact marked as deleted? |
{- "owner": 0,
- "first_name": "string",
- "last_name": "string",
- "email": "user@example.com",
- "secondary_email": "user@example.com",
- "role": "string",
- "description": "string",
- "phone": "string",
- "phone_extension": "string",
- "secondary_phone": "string",
- "secondary_phone_extension": "string",
- "delete": true
}
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "owner": 0,
- "first_name": "string",
- "last_name": "string",
- "email": "user@example.com",
- "secondary_email": "user@example.com",
- "role": "string",
- "description": "string",
- "phone": "string",
- "phone_extension": "string",
- "secondary_phone": "string",
- "secondary_phone_extension": "string",
- "delete": true
}
General purpose Sponsorship Content
company_id required | integer The ID of the viewing company |
placement required | Array of strings Items Enum: "buyer-dash-hero-1" "buyer-dash-hero-2" "buyer-dash-hero-3" "buyer-dash-hero-4" "buyer-dash-hero-5" "buyer-dash-hero-6" "deals-page-1" "deals-page-2" "deals-page-3" "deals-page-4" "discovery-left" "discovery-right" "order-submit-1" "order-submit-2" "order-submit-3" "order-submit-4" "product-spotlight-carousel" "recommended-brands-recently-purchased" "recommended-products-cart" "recommended-products-order" "recommended-products-pdm-alternative" "recommended-products-pdp-alternative" "recommended-products-shop-brands" "recommended-products-shop-discover-products" "recommended-products-shop-products" "recommended-products-top-purchased" "seller-dash-hero-1" "seller-dash-hero-2" "seller-dash-hero-3" "seller-dash-hero-4" "seller-dash-hero-5" "seller-dash-hero-6" "shop-brands-featured-brand" "shop-brands-featured-brand-2" "shop-brands-featured-brand-3" "shop-brands-featured-brand-4" "shop-brands-featured-brand-5" "shop-brands-sidebar-3" "shop-brands-sidebar-4" "shop-brands-sidebar-bottom" "shop-brands-sidebar-top" "shop-brands-skyscraper-1" "shop-brands-skyscraper-2" "shop-brands-skyscraper-3" "shop-brands-skyscraper-4" "shop-products-1" "shop-products-2" "shop-products-3" "shop-products-4" "shop-products-5" The ID of an ad location (can be repeated) |
LeafLink-Version | string <date> |
{- "content": {
- "sponsorships": {
- "banners": [
- {
- "sponsorship": {
- "rank": 0,
- "provider_id": "string",
- "ad_id": "string",
- "campaign_id": "string",
- "target_url": "string",
- "click_url": "string",
- "creative": {
- "property1": null,
- "property2": null
}, - "impression_url": "string",
- "items": [
], - "page_load_id": "string",
- "placement": {
- "id": "string",
- "style": "string",
- "provider": "string"
}, - "target_company_id": 0,
- "target_user_id": 0,
- "target_resource_id": "string",
- "target_resource_name": "string"
}
}
], - "listing": [
- {
- "sponsorship": {
- "rank": 0,
- "provider_id": "string",
- "ad_id": "string",
- "campaign_id": "string",
- "target_url": "string",
- "click_url": "string",
- "creative": {
- "property1": null,
- "property2": null
}, - "impression_url": "string",
- "items": [
], - "page_load_id": "string",
- "placement": {
- "id": "string",
- "style": "string",
- "provider": "string"
}, - "target_company_id": 0,
- "target_user_id": 0,
- "target_resource_id": "string",
- "target_resource_name": "string"
}, - "resource": {
- "resource_id": 0,
- "resource_name": "string",
- "name": "string",
- "description": "string",
- "owner": {
- "resource_id": 0,
- "resource_name": "string",
- "name": "string",
- "slug": "string",
- "enable_vendor_menu": true
}, - "product_categories": [
- "string"
], - "badges": [
- {
- "id": 0,
- "name": "string",
- "code": "string",
- "self_identify": true
}
], - "social_equity_programs": [
- "string"
], - "sponsored": true,
- "tagline": "string",
- "company_s2s_integration_type": "string"
}
}
], - "skyscrapers": [
- {
- "ad_id": "string",
- "campaign_id": "string",
- "creative": {
- "property1": null,
- "property2": null
}, - "creative_id": "string",
- "custom_text": "string",
- "page_load_id": "string",
- "placement_name": "string",
- "products": [
- {
- "id": "string",
- "display_price": "string",
- "name": "string"
}
], - "provider_id": "string",
- "target_company_id": 0,
- "target_user_id": 0,
- "banner": {
- "property1": null,
- "property2": null
}, - "brand": {
- "id": "string",
- "name": "string",
- "company_name": "string",
- "company_id": "string",
- "enable_vendor_menu": true
}
}
]
}
}
}
List multiple Company Customer Status.
company_slug | string |
description | string |
hex_color | string |
id | integer |
is_stock | boolean |
order | integer |
ordering | string Which field to use when ordering the results. |
owner | integer |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
state | string |
LeafLink-Version | string <date> |
List multiple Customers.
address | string |
address__in | string |
address__startswith | string |
archived | boolean |
brand | string |
brand__in | Array of strings Multiple values may be separated by commas. |
brand__startswith | string |
business_identifier | string |
business_identifier__in | Array of strings Multiple values may be separated by commas. |
business_identifier__startswith | string |
business_license_name | string |
business_license_name__in | string |
business_license_name__startswith | string |
company_slug | string |
created_on__gt | string <date-time> |
created_on__gte | string <date-time> |
created_on__lt | string <date-time> |
created_on__lte | string <date-time> |
dba | string |
dba__in | string |
dba__startswith | string |
delinquent | boolean |
discount_percent__gt | number |
discount_percent__gte | number |
discount_percent__lt | number |
discount_percent__lte | number |
ein | string |
ein__in | string |
ein__startswith | string |
string | |
email__in | Array of strings Multiple values may be separated by commas. |
email__startswith | string |
ext_acct_id | string |
ext_acct_id__in | Array of strings Multiple values may be separated by commas. |
ext_acct_id__isnull | boolean |
ext_acct_id__startswith | string |
external_id | string |
external_id__in | Array of strings Multiple values may be separated by commas. |
external_id__startswith | string |
external_id_key | string |
external_id_unmapped | boolean |
external_id_values | string |
id | Array of integers Multiple values may be separated by commas. |
id__in | Array of integers Multiple values may be separated by commas. |
is_archived | boolean |
leaflink_source | boolean |
license_inactive | boolean |
license_number | string |
license_type | string |
modified__gt | string <date-time> |
modified__gte | string <date-time> |
modified__lt | string <date-time> |
modified__lte | string <date-time> |
name | string |
name__in | string |
name__startswith | string |
next_contact_date__gt | string <date> |
next_contact_date__gte | string <date> |
next_contact_date__lt | string <date> |
next_contact_date__lte | string <date> |
nickname | string |
nickname__in | Array of strings Multiple values may be separated by commas. |
nickname__startswith | string |
old_license_number | string |
old_license_number__in | Array of strings Multiple values may be separated by commas. |
old_license_number__startswith | string |
ordering | string Which field to use when ordering the results. |
owner | integer |
owner__slug | string |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
partner | integer |
payment_term | Array of integers Multiple values may be separated by commas. |
phone | string |
phone__in | string |
phone__startswith | string |
price_schedule | Array of integers Multiple values may be separated by commas. |
search | string A search term. |
service_zone | Array of integers Multiple values may be separated by commas. |
state | Array of integers Multiple values may be separated by commas. |
status | Array of integers Multiple values may be separated by commas. |
tier | Array of integers Multiple values may be separated by commas. |
website | string |
website__in | string |
website__startswith | string |
LeafLink-Version | string <date> |
LeafLink API for Marketplace company customer status.
state required | string (Customer Status) [ 1 .. 40 ] characters Customer Status State |
order | integer (Sort Order) [ 1 .. 2147483647 ] Sort order, lower is first. |
description | string or null <= 1500 characters Description of status |
owner required | integer or null (Company) The Company that created the custom status. |
is_stock | boolean (Is a LeafLink Stock Status) Is this a stock LeafLink status? |
hex_color | string or null <= 40 characters ^#[0-9a-fA-F]{6}$ Hex color for customer status |
{- "state": "string",
- "order": 1,
- "description": "string",
- "owner": 0,
- "is_stock": true,
- "hex_color": "string"
}
{- "id": 0,
- "state": "string",
- "order": 1,
- "description": "string",
- "owner": 0,
- "is_stock": true,
- "hex_color": "string"
}
LeafLink API for Marketplace company customer status.
id required | integer A unique integer value identifying this company customer status. |
LeafLink-Version | string <date> |
state required | string (Customer Status) [ 1 .. 40 ] characters Customer Status State |
order | integer (Sort Order) [ 1 .. 2147483647 ] Sort order, lower is first. |
description | string or null <= 1500 characters Description of status |
owner required | integer or null (Company) The Company that created the custom status. |
is_stock | boolean (Is a LeafLink Stock Status) Is this a stock LeafLink status? |
hex_color | string or null <= 40 characters ^#[0-9a-fA-F]{6}$ Hex color for customer status |
{- "state": "string",
- "order": 1,
- "description": "string",
- "owner": 0,
- "is_stock": true,
- "hex_color": "string"
}
{- "id": 0,
- "state": "string",
- "order": 1,
- "description": "string",
- "owner": 0,
- "is_stock": true,
- "hex_color": "string"
}
LeafLink API for Marketplace company customer status.
id required | integer A unique integer value identifying this company customer status. |
LeafLink-Version | string <date> |
state | string (Customer Status) [ 1 .. 40 ] characters Customer Status State |
order | integer (Sort Order) [ 1 .. 2147483647 ] Sort order, lower is first. |
description | string or null <= 1500 characters Description of status |
owner | integer or null (Company) The Company that created the custom status. |
is_stock | boolean (Is a LeafLink Stock Status) Is this a stock LeafLink status? |
hex_color | string or null <= 40 characters ^#[0-9a-fA-F]{6}$ Hex color for customer status |
{- "state": "string",
- "order": 1,
- "description": "string",
- "owner": 0,
- "is_stock": true,
- "hex_color": "string"
}
{- "id": 0,
- "state": "string",
- "order": 1,
- "description": "string",
- "owner": 0,
- "is_stock": true,
- "hex_color": "string"
}
LeafLink API for Marketplace customers.
managers | Array of integers |
phone | string or null non-empty |
phone_extension | string or null non-empty |
string or null <email> (Email address) <= 255 characters | |
website | string or null non-empty |
next_contact_date | string or null <date> |
(TierEnum (integer or null)) or (NullEnum-unified-upstream-marketplace (number or null)) (Company customer tier) [ -2147483648 .. 2147483647 ] Company customer tier | |
name required | string non-empty |
license_number | string non-empty |
old_license_number | string or null (Old License Number (stored after a transfer)) <= 100 characters Old License Number (stored after a transfer) |
is_license_inactive | boolean Default: false License inactive or transferred for this customer |
business_identifier | string or null (Business Identifier / UBI) <= 100 characters Company identifier distinct from license numbers |
directions | string or null <= 6000 characters (Driving) Directions to the Customer location for deliveries |
delivery_preferences | string or null non-empty |
shipping_charge | string or null <decimal> ^-?\d{0,8}(?:\.\d{0,2})?$ Additional Shipping Charge |
brand | string or null (Brand Name) <= 400 characters Known Brand name of Company or Parent Company |
business_license_name | string or null non-empty |
description | string or null non-empty |
notes | string or null <= 3000 characters Other information on customer |
is_archived | boolean Default: false Is the customer a relevent part of your CRM |
is_delinquent | boolean Default: false Is this account delinquent on billing |
discount_percent | string <decimal> ^-?\d{0,8}(?:\.\d{0,4})?$ Discount percent for orders of company customer |
external_ids | string |
owner_id required | integer Owner ID for customer |
partner_id | integer Partner ID for customer |
price_schedule_id | integer Price schedule ID for the customer |
service_zone_id | integer Service zone ID for the customer |
status_id | integer Status ID for the customer |
{- "managers": [
- 0
], - "phone": "string",
- "phone_extension": "string",
- "email": "user@example.com",
- "website": "string",
- "next_contact_date": "2019-08-24",
- "tier": 1,
- "name": "string",
- "license_number": "string",
- "old_license_number": "string",
- "is_license_inactive": false,
- "business_identifier": "string",
- "directions": "string",
- "delivery_preferences": "string",
- "shipping_charge": "string",
- "brand": "string",
- "business_license_name": "string",
- "description": "string",
- "notes": "string",
- "is_archived": false,
- "is_delinquent": false,
- "discount_percent": "string",
- "external_ids": "string",
- "owner_id": 0,
- "partner_id": 0,
- "price_schedule_id": 0,
- "service_zone_id": 0,
- "status_id": 0
}
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "dba": "string",
- "managers": [
- 0
], - "phone": "string",
- "phone_extension": "string",
- "email": "user@example.com",
- "website": "string",
- "next_contact_date": "2019-08-24",
- "tier": 1,
- "name": "string",
- "nickname": "string",
- "license_number": "string",
- "old_license_number": "string",
- "is_license_inactive": false,
- "business_identifier": "string",
- "ein": "string",
- "directions": "string",
- "delivery_preferences": "string",
- "currency": "string",
- "shipping_charge": "string",
- "brand": "string",
- "business_license_name": "string",
- "description": "string",
- "corporate_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}, - "delivery_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}, - "notes": "string",
- "leaflink_last_viewed": "2019-08-24T14:15:22Z",
- "leaflink_source": true,
- "is_archived": false,
- "is_delinquent": false,
- "discount_percent": "string",
- "external_ids": "string",
- "owner_id": 0,
- "partner_id": 0,
- "price_schedule_id": 0,
- "service_zone": {
- "id": 0,
- "name": "string",
- "description": "string",
- "company": 0
}, - "license_type": 0,
- "status": {
- "id": 0,
- "state": "string",
- "order": 1,
- "description": "string",
- "owner": 0,
- "is_stock": true,
- "hex_color": "string"
}, - "available_payment_options": [
- {
- "id": 0,
- "is_default": false,
- "payment_method": {
- "id": 0,
- "method": "string"
}, - "payment_program": "direct",
- "payment_strategy": "direct",
- "payment_term": {
- "id": 0,
- "term": "string",
- "days": 0,
- "code": "string"
}
}
]
}
LeafLink API for Marketplace customers.
id required | integer A unique integer value identifying this company customer. |
LeafLink-Version | string <date> |
managers | Array of integers |
phone | string or null non-empty |
phone_extension | string or null non-empty |
string or null <email> (Email address) <= 255 characters | |
website | string or null non-empty |
next_contact_date | string or null <date> |
(TierEnum (integer or null)) or (NullEnum-unified-upstream-marketplace (number or null)) (Company customer tier) [ -2147483648 .. 2147483647 ] Company customer tier | |
name required | string non-empty |
license_number | string non-empty |
old_license_number | string or null (Old License Number (stored after a transfer)) <= 100 characters Old License Number (stored after a transfer) |
is_license_inactive | boolean Default: false License inactive or transferred for this customer |
business_identifier | string or null (Business Identifier / UBI) <= 100 characters Company identifier distinct from license numbers |
directions | string or null <= 6000 characters (Driving) Directions to the Customer location for deliveries |
delivery_preferences | string or null non-empty |
shipping_charge | string or null <decimal> ^-?\d{0,8}(?:\.\d{0,2})?$ Additional Shipping Charge |
brand | string or null (Brand Name) <= 400 characters Known Brand name of Company or Parent Company |
business_license_name | string or null non-empty |
description | string or null non-empty |
notes | string or null <= 3000 characters Other information on customer |
is_archived | boolean Default: false Is the customer a relevent part of your CRM |
is_delinquent | boolean Default: false Is this account delinquent on billing |
discount_percent | string <decimal> ^-?\d{0,8}(?:\.\d{0,4})?$ Discount percent for orders of company customer |
external_ids | string |
owner_id required | integer Owner ID for customer |
partner_id | integer Partner ID for customer |
price_schedule_id | integer Price schedule ID for the customer |
service_zone_id | integer Service zone ID for the customer |
status_id | integer Status ID for the customer |
{- "managers": [
- 0
], - "phone": "string",
- "phone_extension": "string",
- "email": "user@example.com",
- "website": "string",
- "next_contact_date": "2019-08-24",
- "tier": 1,
- "name": "string",
- "license_number": "string",
- "old_license_number": "string",
- "is_license_inactive": false,
- "business_identifier": "string",
- "directions": "string",
- "delivery_preferences": "string",
- "shipping_charge": "string",
- "brand": "string",
- "business_license_name": "string",
- "description": "string",
- "notes": "string",
- "is_archived": false,
- "is_delinquent": false,
- "discount_percent": "string",
- "external_ids": "string",
- "owner_id": 0,
- "partner_id": 0,
- "price_schedule_id": 0,
- "service_zone_id": 0,
- "status_id": 0
}
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "dba": "string",
- "managers": [
- 0
], - "phone": "string",
- "phone_extension": "string",
- "email": "user@example.com",
- "website": "string",
- "next_contact_date": "2019-08-24",
- "tier": 1,
- "name": "string",
- "nickname": "string",
- "license_number": "string",
- "old_license_number": "string",
- "is_license_inactive": false,
- "business_identifier": "string",
- "ein": "string",
- "directions": "string",
- "delivery_preferences": "string",
- "currency": "string",
- "shipping_charge": "string",
- "brand": "string",
- "business_license_name": "string",
- "description": "string",
- "corporate_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}, - "delivery_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}, - "notes": "string",
- "leaflink_last_viewed": "2019-08-24T14:15:22Z",
- "leaflink_source": true,
- "is_archived": false,
- "is_delinquent": false,
- "discount_percent": "string",
- "external_ids": "string",
- "owner_id": 0,
- "partner_id": 0,
- "price_schedule_id": 0,
- "service_zone": {
- "id": 0,
- "name": "string",
- "description": "string",
- "company": 0
}, - "license_type": 0,
- "status": {
- "id": 0,
- "state": "string",
- "order": 1,
- "description": "string",
- "owner": 0,
- "is_stock": true,
- "hex_color": "string"
}, - "available_payment_options": [
- {
- "id": 0,
- "is_default": false,
- "payment_method": {
- "id": 0,
- "method": "string"
}, - "payment_program": "direct",
- "payment_strategy": "direct",
- "payment_term": {
- "id": 0,
- "term": "string",
- "days": 0,
- "code": "string"
}
}
]
}
LeafLink API for Marketplace customers.
id required | integer A unique integer value identifying this company customer. |
LeafLink-Version | string <date> |
managers | Array of integers |
phone | string or null non-empty |
phone_extension | string or null non-empty |
string or null <email> (Email address) <= 255 characters | |
website | string or null non-empty |
next_contact_date | string or null <date> |
(TierEnum (integer or null)) or (NullEnum-unified-upstream-marketplace (number or null)) (Company customer tier) [ -2147483648 .. 2147483647 ] Company customer tier | |
name | string non-empty |
license_number | string non-empty |
old_license_number | string or null (Old License Number (stored after a transfer)) <= 100 characters Old License Number (stored after a transfer) |
is_license_inactive | boolean Default: false License inactive or transferred for this customer |
business_identifier | string or null (Business Identifier / UBI) <= 100 characters Company identifier distinct from license numbers |
directions | string or null <= 6000 characters (Driving) Directions to the Customer location for deliveries |
delivery_preferences | string or null non-empty |
shipping_charge | string or null <decimal> ^-?\d{0,8}(?:\.\d{0,2})?$ Additional Shipping Charge |
brand | string or null (Brand Name) <= 400 characters Known Brand name of Company or Parent Company |
business_license_name | string or null non-empty |
description | string or null non-empty |
notes | string or null <= 3000 characters Other information on customer |
is_archived | boolean Default: false Is the customer a relevent part of your CRM |
is_delinquent | boolean Default: false Is this account delinquent on billing |
discount_percent | string <decimal> ^-?\d{0,8}(?:\.\d{0,4})?$ Discount percent for orders of company customer |
external_ids | string |
owner_id | integer Owner ID for customer |
partner_id | integer Partner ID for customer |
price_schedule_id | integer Price schedule ID for the customer |
service_zone_id | integer Service zone ID for the customer |
status_id | integer Status ID for the customer |
{- "managers": [
- 0
], - "phone": "string",
- "phone_extension": "string",
- "email": "user@example.com",
- "website": "string",
- "next_contact_date": "2019-08-24",
- "tier": 1,
- "name": "string",
- "license_number": "string",
- "old_license_number": "string",
- "is_license_inactive": false,
- "business_identifier": "string",
- "directions": "string",
- "delivery_preferences": "string",
- "shipping_charge": "string",
- "brand": "string",
- "business_license_name": "string",
- "description": "string",
- "notes": "string",
- "is_archived": false,
- "is_delinquent": false,
- "discount_percent": "string",
- "external_ids": "string",
- "owner_id": 0,
- "partner_id": 0,
- "price_schedule_id": 0,
- "service_zone_id": 0,
- "status_id": 0
}
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "dba": "string",
- "managers": [
- 0
], - "phone": "string",
- "phone_extension": "string",
- "email": "user@example.com",
- "website": "string",
- "next_contact_date": "2019-08-24",
- "tier": 1,
- "name": "string",
- "nickname": "string",
- "license_number": "string",
- "old_license_number": "string",
- "is_license_inactive": false,
- "business_identifier": "string",
- "ein": "string",
- "directions": "string",
- "delivery_preferences": "string",
- "currency": "string",
- "shipping_charge": "string",
- "brand": "string",
- "business_license_name": "string",
- "description": "string",
- "corporate_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}, - "delivery_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}, - "notes": "string",
- "leaflink_last_viewed": "2019-08-24T14:15:22Z",
- "leaflink_source": true,
- "is_archived": false,
- "is_delinquent": false,
- "discount_percent": "string",
- "external_ids": "string",
- "owner_id": 0,
- "partner_id": 0,
- "price_schedule_id": 0,
- "service_zone": {
- "id": 0,
- "name": "string",
- "description": "string",
- "company": 0
}, - "license_type": 0,
- "status": {
- "id": 0,
- "state": "string",
- "order": 1,
- "description": "string",
- "owner": 0,
- "is_stock": true,
- "hex_color": "string"
}, - "available_payment_options": [
- {
- "id": 0,
- "is_default": false,
- "payment_method": {
- "id": 0,
- "method": "string"
}, - "payment_program": "direct",
- "payment_strategy": "direct",
- "payment_term": {
- "id": 0,
- "term": "string",
- "days": 0,
- "code": "string"
}
}
]
}
Action route for interfacing with the corporate address
id required | integer A unique integer value identifying this company customer. |
LeafLink-Version | string <date> |
address required | string [ 1 .. 400 ] characters Address |
unit_number | string (Unit #) <= 400 characters Unit # |
city required | string [ 1 .. 400 ] characters City |
county | string <= 400 characters County |
state | string non-empty |
zipcode required | string [ 1 .. 7 ] characters Zipcode |
{- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}
{- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}
Action route for interfacing with the corporate address
id required | integer A unique integer value identifying this company customer. |
LeafLink-Version | string <date> |
address | string [ 1 .. 400 ] characters Address |
unit_number | string (Unit #) <= 400 characters Unit # |
city | string [ 1 .. 400 ] characters City |
county | string <= 400 characters County |
state | string non-empty |
zipcode | string [ 1 .. 7 ] characters Zipcode |
{- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}
{- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}
Action route for interfacing with the delivery address
id required | integer A unique integer value identifying this company customer. |
LeafLink-Version | string <date> |
address required | string [ 1 .. 400 ] characters Address |
unit_number | string (Unit #) <= 400 characters Unit # |
city required | string [ 1 .. 400 ] characters City |
county | string <= 400 characters County |
state | string non-empty |
zipcode required | string [ 1 .. 7 ] characters Zipcode |
{- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}
{- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}
Action route for interfacing with the delivery address
id required | integer A unique integer value identifying this company customer. |
LeafLink-Version | string <date> |
address | string [ 1 .. 400 ] characters Address |
unit_number | string (Unit #) <= 400 characters Unit # |
city | string [ 1 .. 400 ] characters City |
county | string <= 400 characters County |
state | string non-empty |
zipcode | string [ 1 .. 7 ] characters Zipcode |
{- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}
{- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}
List multiple Company Active Entries.
author | integer |
author_id | Array of integers Multiple values may be separated by commas. |
brand | Array of integers Multiple values may be separated by commas. |
brand_id | Array of integers Multiple values may be separated by commas. |
company | integer |
company_id | Array of integers Multiple values may be separated by commas. |
company_slug | string |
contact | Array of integers Multiple values may be separated by commas. |
contact_id | Array of integers Multiple values may be separated by commas. |
created_on__gt | string <date-time> |
created_on__gte | string <date-time> |
created_on__lt | string <date-time> |
created_on__lte | string <date-time> |
customer | integer |
customer_id | Array of integers Multiple values may be separated by commas. |
date__gt | string <date-time> |
date__gte | string <date-time> |
date__lt | string <date-time> |
date__lte | string <date-time> |
delete | boolean |
entry | string |
entry__in | Array of strings Multiple values may be separated by commas. |
entry__startswith | string |
id | integer |
is_deleted | boolean |
modified__gt | string <date-time> |
modified__gte | string <date-time> |
modified__lt | string <date-time> |
modified__lte | string <date-time> |
ordering | string Which field to use when ordering the results. |
owner | integer |
owner_id | Array of integers Multiple values may be separated by commas. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
staff | integer |
staff_id | Array of integers Multiple values may be separated by commas. |
type | Array of strings Multiple values may be separated by commas. |
LeafLink-Version | string <date> |
List new brands, products with deals, and sponsored products on the dashboard.
company_id required | integer The ID of the viewing company |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "name": "string",
- "company_id": "string",
- "company_name": "string",
- "enable_vendor_menu": true,
- "slug": "string",
- "featured": true,
- "spotlight_badges": [
- "deal"
], - "display_price": "string",
- "display_unit_price": "string",
- "unit_price": "string",
- "base_unit_price": "string",
- "sale_or_deal_price": 0.1,
- "discount_percent": 0,
- "minimum_order": "string",
- "sponsorship": {
- "rank": 0,
- "provider_id": "string",
- "ad_id": "string",
- "campaign_id": "string",
- "target_url": "string",
- "click_url": "string",
- "creative": {
- "property1": null,
- "property2": null
}, - "impression_url": "string",
- "items": [
], - "page_load_id": "string",
- "placement": {
- "id": "string",
- "style": "string",
- "provider": "string"
}, - "target_company_id": 0,
- "target_user_id": 0,
- "target_resource_id": "string",
- "target_resource_name": "string"
}
}
]
}
List multiple Products.
archived | boolean |
base_units_per_unit__isnull | boolean |
batch_associated__isnull | boolean |
brand | integer |
buyer | number |
category | integer |
company | integer |
company_slug | string |
created_on__gt | string <date-time> |
created_on__gte | string <date-time> |
created_on__lt | string <date-time> |
created_on__lte | string <date-time> |
display_name | string |
extern_sts_ids | Array of numbers Multiple values may be separated by commas. |
external_id_key | string |
external_id_unmapped | boolean |
external_id_values | string |
external_ids | string |
has_children | boolean |
id | Array of integers Multiple values may be separated by commas. |
last_edit__gt | string <date-time> |
last_edit__gte | string <date-time> |
last_edit__lt | string <date-time> |
last_edit__lte | string <date-time> |
license | Array of integers Multiple values may be separated by commas. |
license__isnull | boolean |
license__type | Array of integers Multiple values may be separated by commas. |
listing_state | string |
modified__gt | string <date-time> |
modified__gte | string <date-time> |
modified__lt | string <date-time> |
modified__lte | string <date-time> |
name | string |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
parent | Array of integers Multiple values may be separated by commas. |
parent__isnull | boolean |
product_line | Array of integers Multiple values may be separated by commas. |
reconcile_inventory | boolean |
s2s_connected | boolean |
search | string A search term. |
sku | Array of strings Multiple values may be separated by commas. |
strains | Array of integers Multiple values may be separated by commas. |
sub_category | Array of integers Multiple values may be separated by commas. |
sub_category__isnull | boolean |
LeafLink-Version | string <date> |
Update Multiple Products.
selector required | string Value: "product_line" association or field to select products. Currently only supports 'product_line'. |
selector_values required | Array of integers |
required | Array of objects (UnifiedProductBulkUpdateDataRequest) |
[- {
- "selector": "product_line",
- "selector_values": [
- 0
], - "update_data": [
- {
- "type": "percentage_delta",
- "field": "wholesale_price",
- "value": 0.1
}
]
}
]
{- "updated": 2,
- "expected": 4,
- "errors": {
- "wholesale_price": [
- {
- "message": "The price must be a positive number.",
- "products": [
- {
- "id": 1,
- "name": "Nifty Product",
- "display_name": "A Nifty Product"
}
]
}
], - "sale_price": [
- {
- "message": "The sale price must be less than the wholesale price.",
- "products": [
- {
- "id": 2,
- "name": "Widget",
- "display_name": "A Widget"
}
]
}
]
}
}
List product recommendations.
ad_count | integer The number of ads to request |
brand_id | string The brand to restrict recommendations to. |
category | Array of integers Filter by category id |
company_id required | integer The ID of the viewing company |
object_id | Array of integers One or more Object IDs |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
placement required | string Enum: "buyer-dash-hero-1" "buyer-dash-hero-2" "buyer-dash-hero-3" "buyer-dash-hero-4" "buyer-dash-hero-5" "buyer-dash-hero-6" "deals-page-1" "deals-page-2" "deals-page-3" "deals-page-4" "discovery-left" "discovery-right" "order-submit-1" "order-submit-2" "order-submit-3" "order-submit-4" "product-spotlight-carousel" "recommended-brands-recently-purchased" "recommended-products-cart" "recommended-products-order" "recommended-products-pdm-alternative" "recommended-products-pdp-alternative" "recommended-products-shop-brands" "recommended-products-shop-discover-products" "recommended-products-shop-products" "recommended-products-top-purchased" "seller-dash-hero-1" "seller-dash-hero-2" "seller-dash-hero-3" "seller-dash-hero-4" "seller-dash-hero-5" "seller-dash-hero-6" "shop-brands-featured-brand" "shop-brands-featured-brand-2" "shop-brands-featured-brand-3" "shop-brands-featured-brand-4" "shop-brands-featured-brand-5" "shop-brands-sidebar-3" "shop-brands-sidebar-4" "shop-brands-sidebar-bottom" "shop-brands-sidebar-top" "shop-brands-skyscraper-1" "shop-brands-skyscraper-2" "shop-brands-skyscraper-3" "shop-brands-skyscraper-4" "shop-products-1" "shop-products-2" "shop-products-3" "shop-products-4" "shop-products-5" The ID of an ad location |
product_count | integer The number of products to request |
search | string A search term. |
subcategory | string The product sub-category id to restrict recommendations to. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "name": "string",
- "company_id": "string",
- "company_name": "string",
- "enable_vendor_menu": true,
- "slug": "string",
- "featured": true,
- "spotlight_badges": [
- "deal"
], - "display_price": "string",
- "display_unit_price": "string",
- "unit_price": "string",
- "base_unit_price": "string",
- "sale_or_deal_price": 0.1,
- "discount_percent": 0,
- "minimum_order": "string",
- "sponsorship": {
- "rank": 0,
- "provider_id": "string",
- "ad_id": "string",
- "campaign_id": "string",
- "target_url": "string",
- "click_url": "string",
- "creative": {
- "property1": null,
- "property2": null
}, - "impression_url": "string",
- "items": [
], - "page_load_id": "string",
- "placement": {
- "id": "string",
- "style": "string",
- "provider": "string"
}, - "target_company_id": 0,
- "target_user_id": 0,
- "target_resource_id": "string",
- "target_resource_name": "string"
}, - "score": 0.1,
- "is_on_purchase_list": true
}
]
}
Unified API product categories.
buyer | string |
delivery_date | string <date> |
limit | integer Number of results to return per page. |
offset | integer The initial index from which to return the results. |
order_invoice_number | string |
ordering | string Which field to use when ordering the results. |
pickup_date | string <date> |
requested_date | string <date> |
search | string A search term. |
sort_by | Array of strings Items Enum: "-created_on" "-display_delivery_date" "-requested_pickup_date" "created_on" "display_delivery_date" "requested_pickup_date" Ordering |
status | Array of strings (Status of L3Order) Items Enum: "assigned" "created" "delivered" "planned" "shipped" "uploaded" |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "number": "string",
- "invoice_number": "string",
- "mp_order_number": "string",
- "transport_order_id": "string",
- "payment_expected": "string",
- "customer": {
- "property1": null,
- "property2": null
}, - "pickup_address": {
- "property1": null,
- "property2": null
}, - "destination": {
- "property1": null,
- "property2": null
}, - "status": "uploaded",
- "requested_pickup_date": "2019-08-24",
- "expected_pickup_datetime": "2019-08-24T14:15:22Z",
- "actual_pickup_datetime": "2019-08-24T14:15:22Z",
- "requested_delivery_date": "2019-08-24",
- "expected_delivery_datetime": "2019-08-24T14:15:22Z",
- "actual_delivery_datetime": "2019-08-24T14:15:22Z",
- "display_delivery_date": "2019-08-24T14:15:22Z",
- "pickup_driver": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true,
- "transport_company_id": 0
}, - "additional_pickup_drivers": [
- {
- "property1": null,
- "property2": null
}
], - "pickup_vehicle": {
- "id": 0,
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true
}, - "delivery_driver": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true,
- "transport_company_id": 0
}, - "delivery_vehicle": {
- "id": 0,
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true
}, - "payment_method": {
- "id": 0,
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "method": "string",
- "description": "string"
}, - "payment_term": {
- "id": 0,
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "term": "string",
- "description": "string"
}, - "customer_notes": "string",
- "notes": "string",
- "eligible_payment_methods": [
- "string"
], - "payment_method_collected": "string",
- "collected_payment_amount": "string",
- "delivery_driver_comment": "string",
- "metrc_transfer": {
- "property1": null,
- "property2": null
}, - "created_on": "2019-08-24T14:15:22Z",
- "transport_company": {
- "transport_company_id": 0,
- "name": "string",
- "medical_license_number": "string",
- "adult_use_license_number": "string",
- "state": "string"
}, - "brand": {
- "id": 0,
- "display_name": "string",
- "licenses": [
- {
- "id": 0,
- "number": "string",
- "type": "string",
- "display_type": "string",
- "classification": "string"
}
], - "delivery_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}, - "corporate_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}
}
}
]
}
Unified API product categories.
payment_expected required | string |
status | string (Status of L3Order) Enum: "uploaded" "created" "assigned" "planned" "shipped" "delivered" "deleted" |
requested_pickup_date | string or null <date> (Requested pick up date) Requested pick up date |
expected_pickup_datetime | string or null <date-time> (Expected pick up datetime) Expected pick up date and time |
actual_pickup_datetime | string or null <date-time> (Actual pick up datetime) Actual date time the order was picked up |
requested_delivery_date | string or null <date> Requested delivery date for the order |
expected_delivery_datetime | string or null <date-time> Expected delivery date and time for the order |
actual_delivery_datetime | string or null <date-time> Actual delivery date and time for the order |
required | object (DriverRequest) serializer for Driver Model. |
required | object (InternalVehicleRequest) Internal serializer for Vehicle Model. |
required | object (DriverRequest) serializer for Driver Model. |
required | object (InternalVehicleRequest) Internal serializer for Vehicle Model. |
required | object (PaymentMethodRequest) Serialize payment method. |
required | object (PaymentTermRequest) Serialize payment term. |
customer_notes | string or null Customer notes for the L3 Order |
notes | string or null (Additional Notes) Additional notes for the L3 Order |
eligible_payment_methods | Array of strings (Eligible payment methods for this order) [ items [ 1 .. 100 ] characters ] A selection of eligible payment methods for this order |
payment_method_collected | string (Collected Payment Method) <= 100 characters Payment method used for this order |
collected_payment_amount | string or null <decimal> ^-?\d{0,8}(?:\.\d{0,2})?$ Payment collected at delivery |
delivery_driver_comment | string <= 500 characters Comment from delivery driver for this order |
required | object (InternalLogisticsCompanyRequest) Internal serializer for the Company model to be used by L3 endpoints. |
{- "payment_expected": "string",
- "status": "uploaded",
- "requested_pickup_date": "2019-08-24",
- "expected_pickup_datetime": "2019-08-24T14:15:22Z",
- "actual_pickup_datetime": "2019-08-24T14:15:22Z",
- "requested_delivery_date": "2019-08-24",
- "expected_delivery_datetime": "2019-08-24T14:15:22Z",
- "actual_delivery_datetime": "2019-08-24T14:15:22Z",
- "pickup_driver": {
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true
}, - "pickup_vehicle": {
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true
}, - "delivery_driver": {
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true
}, - "delivery_vehicle": {
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true
}, - "payment_method": {
- "method": "string",
- "description": "string"
}, - "payment_term": {
- "term": "string",
- "description": "string"
}, - "customer_notes": "string",
- "notes": "string",
- "eligible_payment_methods": [
- "string"
], - "payment_method_collected": "string",
- "collected_payment_amount": "string",
- "delivery_driver_comment": "string",
- "brand": {
- "display_name": "string"
}
}
{- "number": "string",
- "invoice_number": "string",
- "mp_order_number": "string",
- "transport_order_id": "string",
- "payment_expected": "string",
- "customer": {
- "property1": null,
- "property2": null
}, - "pickup_address": {
- "property1": null,
- "property2": null
}, - "destination": {
- "property1": null,
- "property2": null
}, - "status": "uploaded",
- "requested_pickup_date": "2019-08-24",
- "expected_pickup_datetime": "2019-08-24T14:15:22Z",
- "actual_pickup_datetime": "2019-08-24T14:15:22Z",
- "requested_delivery_date": "2019-08-24",
- "expected_delivery_datetime": "2019-08-24T14:15:22Z",
- "actual_delivery_datetime": "2019-08-24T14:15:22Z",
- "display_delivery_date": "2019-08-24T14:15:22Z",
- "pickup_driver": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true,
- "transport_company_id": 0
}, - "additional_pickup_drivers": [
- {
- "property1": null,
- "property2": null
}
], - "pickup_vehicle": {
- "id": 0,
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true
}, - "delivery_driver": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true,
- "transport_company_id": 0
}, - "delivery_vehicle": {
- "id": 0,
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true
}, - "payment_method": {
- "id": 0,
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "method": "string",
- "description": "string"
}, - "payment_term": {
- "id": 0,
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "term": "string",
- "description": "string"
}, - "customer_notes": "string",
- "notes": "string",
- "eligible_payment_methods": [
- "string"
], - "payment_method_collected": "string",
- "collected_payment_amount": "string",
- "delivery_driver_comment": "string",
- "metrc_transfer": {
- "property1": null,
- "property2": null
}, - "created_on": "2019-08-24T14:15:22Z",
- "transport_company": {
- "transport_company_id": 0,
- "name": "string",
- "medical_license_number": "string",
- "adult_use_license_number": "string",
- "state": "string"
}, - "brand": {
- "id": 0,
- "display_name": "string",
- "licenses": [
- {
- "id": 0,
- "number": "string",
- "type": "string",
- "display_type": "string",
- "classification": "string"
}
], - "delivery_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}, - "corporate_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}
}
}
Get a single Transport Order.
id required | integer A unique integer value identifying this l3 order. |
LeafLink-Version | string <date> |
{- "number": "string",
- "invoice_number": "string",
- "mp_order_number": "string",
- "transport_order_id": "string",
- "payment_expected": "string",
- "customer": {
- "property1": null,
- "property2": null
}, - "pickup_address": {
- "property1": null,
- "property2": null
}, - "destination": {
- "property1": null,
- "property2": null
}, - "status": "uploaded",
- "requested_pickup_date": "2019-08-24",
- "expected_pickup_datetime": "2019-08-24T14:15:22Z",
- "actual_pickup_datetime": "2019-08-24T14:15:22Z",
- "requested_delivery_date": "2019-08-24",
- "expected_delivery_datetime": "2019-08-24T14:15:22Z",
- "actual_delivery_datetime": "2019-08-24T14:15:22Z",
- "display_delivery_date": "2019-08-24T14:15:22Z",
- "pickup_driver": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true,
- "transport_company_id": 0
}, - "additional_pickup_drivers": [
- {
- "property1": null,
- "property2": null
}
], - "pickup_vehicle": {
- "id": 0,
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true
}, - "delivery_driver": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true,
- "transport_company_id": 0
}, - "delivery_vehicle": {
- "id": 0,
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true
}, - "payment_method": {
- "id": 0,
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "method": "string",
- "description": "string"
}, - "payment_term": {
- "id": 0,
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "term": "string",
- "description": "string"
}, - "customer_notes": "string",
- "notes": "string",
- "eligible_payment_methods": [
- "string"
], - "payment_method_collected": "string",
- "collected_payment_amount": "string",
- "delivery_driver_comment": "string",
- "metrc_transfer": {
- "property1": null,
- "property2": null
}, - "created_on": "2019-08-24T14:15:22Z",
- "transport_company": {
- "transport_company_id": 0,
- "name": "string",
- "medical_license_number": "string",
- "adult_use_license_number": "string",
- "state": "string"
}, - "brand": {
- "id": 0,
- "display_name": "string",
- "licenses": [
- {
- "id": 0,
- "number": "string",
- "type": "string",
- "display_type": "string",
- "classification": "string"
}
], - "delivery_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}, - "corporate_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}
}
}
List all transport companies.
limit | integer Number of results to return per page. |
offset | integer The initial index from which to return the results. |
ordering | string Which field to use when ordering the results. |
search | string A search term. |
state_abbr | string |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "transport_company_id": 0,
- "name": "string",
- "medical_license_number": "string",
- "adult_use_license_number": "string",
- "state": "string"
}
]
}
Get active drivers for given transport partner, by default returns only active drivers.
include_inactive required | any If set to 'true' endpoint will return all Drivers, both active and inactive. |
limit | integer Number of results to return per page. |
offset | integer The initial index from which to return the results. |
ordering | string Which field to use when ordering the results. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true,
- "transport_company": {
- "id": 0,
- "name": "string",
- "medical_license_number": "string",
- "adult_use_license_number": "string"
}
}
]
}
Create Driver
string | |
first_name | string |
last_name | string |
license_number | string |
metrc_employee_id | string |
phone | string |
LeafLink-Version | string <date> |
first_name required | string (First Name of Driver) [ 1 .. 100 ] characters First Name |
last_name required | string [ 1 .. 100 ] characters Last Name of Driver |
metrc_employee_id required | string [ 1 .. 100 ] characters METRC Employee ID for Driver |
license_number required | string [ 1 .. 15 ] characters License Number of Driver |
phone required | string [ 1 .. 15 ] characters Phone Number of Driver |
is_active | boolean (Active) Is an active driver? |
{- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true
}
{- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true,
- "transport_company": {
- "id": 0,
- "name": "string",
- "medical_license_number": "string",
- "adult_use_license_number": "string"
}
}
List multiple Transport Order.
buyer | string |
delivery_date | string <date> |
limit | integer Number of results to return per page. |
offset | integer The initial index from which to return the results. |
order_invoice_number | string |
ordering | string Which field to use when ordering the results. |
pickup_date | string <date> |
requested_date | string <date> |
search | string A search term. |
sort_by | Array of strings Items Enum: "-created_on" "-display_delivery_date" "-requested_pickup_date" "created_on" "display_delivery_date" "requested_pickup_date" Ordering |
status | Array of strings (Status of L3Order) Items Enum: "assigned" "created" "delivered" "planned" "shipped" "uploaded" |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "number": "string",
- "invoice_number": "string",
- "mp_order_number": "string",
- "transport_order_id": "string",
- "payment_expected": "string",
- "customer": {
- "property1": null,
- "property2": null
}, - "pickup_address": {
- "property1": null,
- "property2": null
}, - "destination": {
- "property1": null,
- "property2": null
}, - "status": "uploaded",
- "requested_pickup_date": "2019-08-24",
- "expected_pickup_datetime": "2019-08-24T14:15:22Z",
- "actual_pickup_datetime": "2019-08-24T14:15:22Z",
- "requested_delivery_date": "2019-08-24",
- "expected_delivery_datetime": "2019-08-24T14:15:22Z",
- "actual_delivery_datetime": "2019-08-24T14:15:22Z",
- "display_delivery_date": "2019-08-24T14:15:22Z",
- "pickup_driver": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true,
- "transport_company_id": 0
}, - "additional_pickup_drivers": [
- {
- "property1": null,
- "property2": null
}
], - "pickup_vehicle": {
- "id": 0,
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true
}, - "delivery_driver": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true,
- "transport_company_id": 0
}, - "delivery_vehicle": {
- "id": 0,
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true
}, - "payment_method": {
- "id": 0,
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "method": "string",
- "description": "string"
}, - "payment_term": {
- "id": 0,
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "term": "string",
- "description": "string"
}, - "customer_notes": "string",
- "notes": "string",
- "eligible_payment_methods": [
- "string"
], - "payment_method_collected": "string",
- "collected_payment_amount": "string",
- "delivery_driver_comment": "string",
- "metrc_transfer": {
- "property1": null,
- "property2": null
}, - "created_on": "2019-08-24T14:15:22Z",
- "transport_company": {
- "transport_company_id": 0,
- "name": "string",
- "medical_license_number": "string",
- "adult_use_license_number": "string",
- "state": "string"
}, - "brand": {
- "id": 0,
- "display_name": "string",
- "licenses": [
- {
- "id": 0,
- "number": "string",
- "type": "string",
- "display_type": "string",
- "classification": "string"
}
], - "delivery_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}, - "corporate_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}
}
}
]
}
Get a single Transport Order.
id required | integer A unique integer value identifying this l3 order. |
LeafLink-Version | string <date> |
{- "number": "string",
- "invoice_number": "string",
- "mp_order_number": "string",
- "transport_order_id": "string",
- "payment_expected": "string",
- "customer": {
- "property1": null,
- "property2": null
}, - "pickup_address": {
- "property1": null,
- "property2": null
}, - "destination": {
- "property1": null,
- "property2": null
}, - "status": "uploaded",
- "requested_pickup_date": "2019-08-24",
- "expected_pickup_datetime": "2019-08-24T14:15:22Z",
- "actual_pickup_datetime": "2019-08-24T14:15:22Z",
- "requested_delivery_date": "2019-08-24",
- "expected_delivery_datetime": "2019-08-24T14:15:22Z",
- "actual_delivery_datetime": "2019-08-24T14:15:22Z",
- "display_delivery_date": "2019-08-24T14:15:22Z",
- "pickup_driver": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true,
- "transport_company_id": 0
}, - "additional_pickup_drivers": [
- {
- "property1": null,
- "property2": null
}
], - "pickup_vehicle": {
- "id": 0,
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true
}, - "delivery_driver": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true,
- "transport_company_id": 0
}, - "delivery_vehicle": {
- "id": 0,
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true
}, - "payment_method": {
- "id": 0,
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "method": "string",
- "description": "string"
}, - "payment_term": {
- "id": 0,
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "term": "string",
- "description": "string"
}, - "customer_notes": "string",
- "notes": "string",
- "eligible_payment_methods": [
- "string"
], - "payment_method_collected": "string",
- "collected_payment_amount": "string",
- "delivery_driver_comment": "string",
- "metrc_transfer": {
- "property1": null,
- "property2": null
}, - "created_on": "2019-08-24T14:15:22Z",
- "transport_company": {
- "transport_company_id": 0,
- "name": "string",
- "medical_license_number": "string",
- "adult_use_license_number": "string",
- "state": "string"
}, - "brand": {
- "id": 0,
- "display_name": "string",
- "licenses": [
- {
- "id": 0,
- "number": "string",
- "type": "string",
- "display_type": "string",
- "classification": "string"
}
], - "delivery_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}, - "corporate_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}
}
}
List all transport partners for all companies to which the requesting user has access.
company_slug | string |
limit | integer Number of results to return per page. |
offset | integer The initial index from which to return the results. |
ordering | string Which field to use when ordering the results. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "transport_company": {
- "transport_company_id": 0,
- "name": "string",
- "medical_license_number": "string",
- "adult_use_license_number": "string",
- "state": "string"
}
}
]
}
Company transport partner view set.
transport_company_id required | integer |
company_id | integer |
{- "transport_company_id": 0,
- "company_id": 0
}
{- "id": 0,
- "company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "transport_company": {
- "transport_company_id": 0,
- "name": "string",
- "medical_license_number": "string",
- "adult_use_license_number": "string",
- "state": "string"
}
}
Company transport partner view set.
id required | integer A unique integer value identifying this company transport partner. |
LeafLink-Version | string <date> |
transport_company_id | integer |
company_id | integer |
{- "transport_company_id": 0,
- "company_id": 0
}
{- "id": 0,
- "company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "transport_company": {
- "transport_company_id": 0,
- "name": "string",
- "medical_license_number": "string",
- "adult_use_license_number": "string",
- "state": "string"
}
}
Get vehicles for given transport partner.
limit | integer Number of results to return per page. |
offset | integer The initial index from which to return the results. |
ordering | string Which field to use when ordering the results. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true,
- "state": {
- "id": 0,
- "abbr": "st",
- "name": "string",
- "country": {
- "id": 0,
- "abbr": "str",
- "iso_code": "string",
- "name": "string"
}
}
}
]
}
Create Vehicle
has_air_conditioner | boolean |
license_number | string |
make | string |
model_name | string |
model_year | integer |
state_id | integer |
LeafLink-Version | string <date> |
make | string or null (Vehicle Make) <= 255 characters Vehicle Make |
model_year | integer or null [ -2147483648 .. 2147483647 ] Vehicle Model Year |
model_name | string or null <= 255 characters Vehicle Model Name |
license_number required | string or null <= 15 characters License Number of Vehicle |
capacity | integer or null [ -2147483648 .. 2147483647 ] Vehicle Capacity |
has_air_conditioner | boolean Vehicle Has Air Conditioner |
{- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true
}
{- "id": 0,
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true,
- "state": {
- "id": 0,
- "abbr": "st",
- "name": "string",
- "country": {
- "id": 0,
- "abbr": "str",
- "iso_code": "string",
- "name": "string"
}
}
}
List Notification Preferences Groups.
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "name": "string",
- "display_description": "string",
- "items": [
- {
- "name": "string",
- "default_value": true,
- "description": "string",
- "available_medium": [
- "string"
]
}
]
}
]
}
Get a user's notification preferences.
user_id required | string |
LeafLink-Version | string <date> |
[- {
- "topic": "string",
- "medium": "string",
- "enabled_timestamp": "2019-08-24T14:15:22Z"
}
]
Update a user's notification preferences.
user_id required | string |
LeafLink-Version | string <date> |
topic required | string |
medium required | string |
enabled_timestamp required | boolean |
[- {
- "topic": "string",
- "medium": "string",
- "enabled_timestamp": true
}
]
[- {
- "topic": "string",
- "medium": "string",
- "enabled_timestamp": "2019-08-24T14:15:22Z"
}
]
Unified Notification Preferences view set.
id required | integer A unique integer value identifying this notification preference group. |
LeafLink-Version | string <date> |
{- "name": "string",
- "display_description": "string",
- "items": [
- {
- "name": "string",
- "default_value": true,
- "description": "string",
- "available_medium": [
- "string"
]
}
]
}
ViewSet for handling requests related to order payments.
created_date_from | string <date> |
created_date_to | string <date> |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "order": "93b532b3-a125-4cd2-9b71-9996b1e164ce",
- "payment_date": "2019-08-24T14:15:22Z",
- "total": "string",
- "currency": "string",
- "payment_type": "other",
- "customer": {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "dba": "string",
- "managers": [
- 0
], - "phone": "string",
- "phone_extension": "string",
- "email": "user@example.com",
- "website": "string",
- "next_contact_date": "2019-08-24",
- "tier": 1,
- "name": "string",
- "nickname": "string",
- "license_number": "string",
- "old_license_number": "string",
- "is_license_inactive": false,
- "business_identifier": "string",
- "ein": "string",
- "directions": "string",
- "delivery_preferences": "string",
- "currency": "string",
- "shipping_charge": "string",
- "brand": "string",
- "business_license_name": "string",
- "description": "string",
- "corporate_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}, - "delivery_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}, - "notes": "string",
- "leaflink_last_viewed": "2019-08-24T14:15:22Z",
- "leaflink_source": true,
- "is_archived": false,
- "is_delinquent": false,
- "discount_percent": "string",
- "external_ids": "string",
- "owner_id": 0,
- "partner_id": 0,
- "price_schedule_id": 0,
- "service_zone": {
- "id": 0,
- "name": "string",
- "description": "string",
- "company": 0
}, - "license_type": 0,
- "status": {
- "id": 0,
- "state": "string",
- "order": 1,
- "description": "string",
- "owner": 0,
- "is_stock": true,
- "hex_color": "string"
}, - "available_payment_options": [
- {
- "id": 0,
- "is_default": false,
- "payment_method": {
- "id": 0,
- "method": "string"
}, - "payment_program": "direct",
- "payment_strategy": "direct",
- "payment_term": {
- "id": 0,
- "term": "string",
- "days": 0,
- "code": "string"
}
}
]
}
}
]
}
ViewSet for handling requests related to order payments.
order required | string <uuid> |
payment_date | string or null <date-time> Date that the was submitted. |
total required | string <decimal> ^-?\d{0,8}(?:\.\d{0,2})?$ Total Paid |
payment_type | string Enum: "other" "cash" "check" "credit" "trade" "ach" "wire" "cashier" "leaflink_direct_payment" "leaflink_flexible_payment" "leaflink_financial" How this payment was submitted. |
{- "order": "93b532b3-a125-4cd2-9b71-9996b1e164ce",
- "payment_date": "2019-08-24T14:15:22Z",
- "total": "string",
- "payment_type": "other"
}
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "order": "93b532b3-a125-4cd2-9b71-9996b1e164ce",
- "payment_date": "2019-08-24T14:15:22Z",
- "total": "string",
- "currency": "string",
- "payment_type": "other",
- "customer": {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "dba": "string",
- "managers": [
- 0
], - "phone": "string",
- "phone_extension": "string",
- "email": "user@example.com",
- "website": "string",
- "next_contact_date": "2019-08-24",
- "tier": 1,
- "name": "string",
- "nickname": "string",
- "license_number": "string",
- "old_license_number": "string",
- "is_license_inactive": false,
- "business_identifier": "string",
- "ein": "string",
- "directions": "string",
- "delivery_preferences": "string",
- "currency": "string",
- "shipping_charge": "string",
- "brand": "string",
- "business_license_name": "string",
- "description": "string",
- "corporate_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}, - "delivery_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}, - "notes": "string",
- "leaflink_last_viewed": "2019-08-24T14:15:22Z",
- "leaflink_source": true,
- "is_archived": false,
- "is_delinquent": false,
- "discount_percent": "string",
- "external_ids": "string",
- "owner_id": 0,
- "partner_id": 0,
- "price_schedule_id": 0,
- "service_zone": {
- "id": 0,
- "name": "string",
- "description": "string",
- "company": 0
}, - "license_type": 0,
- "status": {
- "id": 0,
- "state": "string",
- "order": 1,
- "description": "string",
- "owner": 0,
- "is_stock": true,
- "hex_color": "string"
}, - "available_payment_options": [
- {
- "id": 0,
- "is_default": false,
- "payment_method": {
- "id": 0,
- "method": "string"
}, - "payment_program": "direct",
- "payment_strategy": "direct",
- "payment_term": {
- "id": 0,
- "term": "string",
- "days": 0,
- "code": "string"
}
}
]
}
}
ViewSet for handling requests related to order payments.
id required | integer A unique integer value identifying this order payment. |
LeafLink-Version | string <date> |
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "order": "93b532b3-a125-4cd2-9b71-9996b1e164ce",
- "payment_date": "2019-08-24T14:15:22Z",
- "total": "string",
- "currency": "string",
- "payment_type": "other",
- "customer": {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "dba": "string",
- "managers": [
- 0
], - "phone": "string",
- "phone_extension": "string",
- "email": "user@example.com",
- "website": "string",
- "next_contact_date": "2019-08-24",
- "tier": 1,
- "name": "string",
- "nickname": "string",
- "license_number": "string",
- "old_license_number": "string",
- "is_license_inactive": false,
- "business_identifier": "string",
- "ein": "string",
- "directions": "string",
- "delivery_preferences": "string",
- "currency": "string",
- "shipping_charge": "string",
- "brand": "string",
- "business_license_name": "string",
- "description": "string",
- "corporate_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}, - "delivery_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}, - "notes": "string",
- "leaflink_last_viewed": "2019-08-24T14:15:22Z",
- "leaflink_source": true,
- "is_archived": false,
- "is_delinquent": false,
- "discount_percent": "string",
- "external_ids": "string",
- "owner_id": 0,
- "partner_id": 0,
- "price_schedule_id": 0,
- "service_zone": {
- "id": 0,
- "name": "string",
- "description": "string",
- "company": 0
}, - "license_type": 0,
- "status": {
- "id": 0,
- "state": "string",
- "order": 1,
- "description": "string",
- "owner": 0,
- "is_stock": true,
- "hex_color": "string"
}, - "available_payment_options": [
- {
- "id": 0,
- "is_default": false,
- "payment_method": {
- "id": 0,
- "method": "string"
}, - "payment_program": "direct",
- "payment_strategy": "direct",
- "payment_term": {
- "id": 0,
- "term": "string",
- "days": 0,
- "code": "string"
}
}
]
}
}
Handle the 'APPROVAL' endpoint for a POMS Order. See the CartOrderApprovalAction choices for supported actions that can be performed.
order_id | integer Order ID from POMS system |
purchase_order_number required | string <uuid> UUID of Order for approval |
status required | string Enum: "approved" "rejected" "completed" "error" Status of the POMS order that defines the action to be taken |
message | string non-empty Optional message |
{- "order_id": 0,
- "purchase_order_number": "68164fc0-d678-4371-93ef-dd2a85d0ac7f",
- "status": "approved",
- "message": "string"
}
{- "order_id": 0,
- "purchase_order_number": "68164fc0-d678-4371-93ef-dd2a85d0ac7f",
- "status": "approved",
- "message": "string"
}
List multiple product categories.
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "name": "string",
- "slug": "string",
- "description": "string"
}
]
}
Get a single product category.
id required | integer A unique integer value identifying this product category. |
LeafLink-Version | string <date> |
{- "id": 0,
- "name": "string",
- "slug": "string",
- "description": "string"
}
List Grow Operation Types.
ordering | string Which field to use when ordering the results. |
search | string A search term. |
LeafLink-Version | string <date> |
[- {
- "value": "string",
- "display_value": "string"
}
]
List multiple Product Images.
company | integer |
company_slug | string |
id | Array of integers Multiple values may be separated by commas. |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
product | integer |
product__id | Array of integers Multiple values may be separated by commas. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "product": 0,
- "position": 0,
- "crop_x": 2147483647,
- "crop_y": 2147483647,
- "crop_w": 2147483647,
- "crop_h": 2147483647
}
]
}
LeafLink API for Marketplace product images.
image required | string <binary> The uploaded file, sent via multipart form data. Retrieved as a url link. |
product required | integer The Product this image is attached to |
position required | integer The position of the image in the product image gallery |
crop_x | integer or null (Crop Box X Position) [ 0 .. 2147483647 ] The X position of the image crop box |
crop_y | integer or null (Crop Box Y Position) [ 0 .. 2147483647 ] The Y position of the image crop box |
crop_w | integer or null (Crop Box Width) [ 0 .. 2147483647 ] The width of the image crop box |
crop_h | integer or null (Crop Box Height) [ 0 .. 2147483647 ] The height of the image crop box |
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "product": 0,
- "position": 0,
- "crop_x": 2147483647,
- "crop_y": 2147483647,
- "crop_w": 2147483647,
- "crop_h": 2147483647
}
Get a single Product Image.
id required | integer A unique integer value identifying this product image. |
LeafLink-Version | string <date> |
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "product": 0,
- "position": 0,
- "crop_x": 2147483647,
- "crop_y": 2147483647,
- "crop_w": 2147483647,
- "crop_h": 2147483647
}
Clone a Product Image via the CloneProductImageService service.
id required | integer A unique integer value identifying this product image. |
LeafLink-Version | string <date> |
product required | integer The Product this image is attached to |
position required | integer The position of the image in the product image gallery |
crop_x | integer or null (Crop Box X Position) [ 0 .. 2147483647 ] The X position of the image crop box |
crop_y | integer or null (Crop Box Y Position) [ 0 .. 2147483647 ] The Y position of the image crop box |
crop_w | integer or null (Crop Box Width) [ 0 .. 2147483647 ] The width of the image crop box |
crop_h | integer or null (Crop Box Height) [ 0 .. 2147483647 ] The height of the image crop box |
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "product": 0,
- "position": 0,
- "crop_x": 2147483647,
- "crop_y": 2147483647,
- "crop_w": 2147483647,
- "crop_h": 2147483647
}
LeafLink API for Marketplace product images.
product_id required | integer Product ID |
images required | Array of strings <binary> non-empty [ items <binary > ] |
positions required | Array of integers non-empty |
{- "product_id": 0,
- "positions": [
- 0
]
}
List multiple Product Lines.
brand | integer |
company | integer |
company_slug | string |
id | Array of integers Multiple values may be separated by commas. |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "name": "string",
- "display_name": "string",
- "brand": {
- "id": 0,
- "name": "string"
}, - "menu_position": 2147483647,
- "products": [
- {
- "id": 0,
- "name": "string"
}
]
}
]
}
LeafLink API for Marketplace product lines.
name required | string (Product Line) [ 1 .. 100 ] characters Name of Product Line |
brand_id required | integer Brand ID for the product line |
menu_position | integer or null (Product Line Menu Position) [ 0 .. 2147483647 ] The position of ordering |
product_ids | Array of integers List of product IDs associated with this product line |
{- "name": "string",
- "brand_id": 0,
- "menu_position": 2147483647,
- "product_ids": [
- 0
]
}
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "name": "string",
- "display_name": "string",
- "brand": {
- "id": 0,
- "name": "string"
}, - "menu_position": 2147483647,
- "products": [
- {
- "id": 0,
- "name": "string"
}
]
}
Get a single Product Line.
id required | integer A unique integer value identifying this product line. |
LeafLink-Version | string <date> |
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "name": "string",
- "display_name": "string",
- "brand": {
- "id": 0,
- "name": "string"
}, - "menu_position": 2147483647,
- "products": [
- {
- "id": 0,
- "name": "string"
}
]
}
LeafLink API for Marketplace product lines.
id required | integer A unique integer value identifying this product line. |
LeafLink-Version | string <date> |
name | string (Product Line) [ 1 .. 100 ] characters Name of Product Line |
brand_id | integer Brand ID for the product line |
menu_position | integer or null (Product Line Menu Position) [ 0 .. 2147483647 ] The position of ordering |
{- "name": "string",
- "brand_id": 0,
- "menu_position": 2147483647
}
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "name": "string",
- "display_name": "string",
- "brand": {
- "id": 0,
- "name": "string"
}, - "menu_position": 2147483647,
- "products": [
- {
- "id": 0,
- "name": "string"
}
]
}
List Listing States.
ordering | string Which field to use when ordering the results. |
search | string A search term. |
LeafLink-Version | string <date> |
[- {
- "value": "string",
- "display_value": "string"
}
]
List multiple product promotions.
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "moloco_id": "string",
- "status": "Pending",
- "period": "Weekly",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24",
- "max_cpc": {
- "amount": 0,
- "currency": "string"
}, - "max_budget": {
- "amount": 0,
- "currency": "string"
}, - "budget_per_period": {
- "amount": 0,
- "currency": "string"
}, - "approver_email": "user@example.com",
- "brand": {
- "id": 0,
- "name": "string"
}, - "company": {
- "id": 0,
- "name": "string"
}, - "billing_company": {
- "id": 0,
- "name": "string"
}, - "products": [
- 0
]
}
]
}
Create a product promotion.
moloco_id | string non-empty |
status required | string (ProductPromotionStatusEnum) Enum: "Pending" "Approved" "Completed" |
period | string Default: "Weekly" Enum: "Daily" "Weekly" "Monthly" |
start_date required | string <date> |
end_date | string or null <date> |
required | object |
required | object |
required | object |
approver_email | string or null <email> non-empty |
brand_id required | integer |
company_id required | integer |
billing_company_id | integer |
products required | Array of integers |
{- "moloco_id": "string",
- "status": "Pending",
- "period": "Weekly",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24",
- "max_cpc": {
- "amount": 0,
- "currency": "string"
}, - "max_budget": {
- "amount": 0,
- "currency": "string"
}, - "budget_per_period": {
- "amount": 0,
- "currency": "string"
}, - "approver_email": "user@example.com",
- "brand_id": 0,
- "company_id": 0,
- "billing_company_id": 0,
- "products": [
- 0
]
}
{- "id": 0,
- "moloco_id": "string",
- "status": "Pending",
- "period": "Weekly",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24",
- "max_cpc": {
- "amount": 0,
- "currency": "string"
}, - "max_budget": {
- "amount": 0,
- "currency": "string"
}, - "budget_per_period": {
- "amount": 0,
- "currency": "string"
}, - "approver_email": "user@example.com",
- "brand": {
- "id": 0,
- "name": "string"
}, - "company": {
- "id": 0,
- "name": "string"
}, - "billing_company": {
- "id": 0,
- "name": "string"
}, - "products": [
- 0
]
}
Get a single product promotion.
id required | string |
LeafLink-Version | string <date> |
{- "id": 0,
- "moloco_id": "string",
- "status": "Pending",
- "period": "Weekly",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24",
- "max_cpc": {
- "amount": 0,
- "currency": "string"
}, - "max_budget": {
- "amount": 0,
- "currency": "string"
}, - "budget_per_period": {
- "amount": 0,
- "currency": "string"
}, - "approver_email": "user@example.com",
- "brand": {
- "id": 0,
- "name": "string"
}, - "company": {
- "id": 0,
- "name": "string"
}, - "billing_company": {
- "id": 0,
- "name": "string"
}, - "products": [
- 0
]
}
Update a product promotion.
id required | string |
LeafLink-Version | string <date> |
moloco_id | string non-empty |
status | string (ProductPromotionStatusEnum) Enum: "Pending" "Approved" "Completed" |
period | string Default: "Weekly" Enum: "Daily" "Weekly" "Monthly" |
start_date | string <date> |
end_date | string or null <date> |
object | |
object | |
object | |
approver_email | string or null <email> non-empty |
brand_id | integer |
company_id | integer |
billing_company_id | integer |
products | Array of integers |
{- "moloco_id": "string",
- "status": "Pending",
- "period": "Weekly",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24",
- "max_cpc": {
- "amount": 0,
- "currency": "string"
}, - "max_budget": {
- "amount": 0,
- "currency": "string"
}, - "budget_per_period": {
- "amount": 0,
- "currency": "string"
}, - "approver_email": "user@example.com",
- "brand_id": 0,
- "company_id": 0,
- "billing_company_id": 0,
- "products": [
- 0
]
}
{- "id": 0,
- "moloco_id": "string",
- "status": "Pending",
- "period": "Weekly",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24",
- "max_cpc": {
- "amount": 0,
- "currency": "string"
}, - "max_budget": {
- "amount": 0,
- "currency": "string"
}, - "budget_per_period": {
- "amount": 0,
- "currency": "string"
}, - "approver_email": "user@example.com",
- "brand": {
- "id": 0,
- "name": "string"
}, - "company": {
- "id": 0,
- "name": "string"
}, - "billing_company": {
- "id": 0,
- "name": "string"
}, - "products": [
- 0
]
}
API endpoint to create, view, and edit ProductPromotions for a company.
id required | string |
LeafLink-Version | string <date> |
moloco_id | string non-empty |
status required | string (ProductPromotionStatusEnum) Enum: "Pending" "Approved" "Completed" |
period | string Default: "Weekly" Enum: "Daily" "Weekly" "Monthly" |
start_date required | string <date> |
end_date | string or null <date> |
required | object |
required | object |
required | object |
approver_email | string or null <email> non-empty |
brand_id required | integer |
company_id required | integer |
billing_company_id | integer |
products required | Array of integers |
{- "moloco_id": "string",
- "status": "Pending",
- "period": "Weekly",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24",
- "max_cpc": {
- "amount": 0,
- "currency": "string"
}, - "max_budget": {
- "amount": 0,
- "currency": "string"
}, - "budget_per_period": {
- "amount": 0,
- "currency": "string"
}, - "approver_email": "user@example.com",
- "brand_id": 0,
- "company_id": 0,
- "billing_company_id": 0,
- "products": [
- 0
]
}
{- "id": 0,
- "moloco_id": "string",
- "status": "Pending",
- "period": "Weekly",
- "start_date": "2019-08-24",
- "end_date": "2019-08-24",
- "max_cpc": {
- "amount": 0,
- "currency": "string"
}, - "max_budget": {
- "amount": 0,
- "currency": "string"
}, - "budget_per_period": {
- "amount": 0,
- "currency": "string"
}, - "approver_email": "user@example.com",
- "brand": {
- "id": 0,
- "name": "string"
}, - "company": {
- "id": 0,
- "name": "string"
}, - "billing_company": {
- "id": 0,
- "name": "string"
}, - "products": [
- 0
]
}
List multiple product subcategories.
category_id | integer |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
subcategory_id | integer |
subcategory_name | string |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "name": "string",
- "category": 0,
- "base_unit_of_measure": 0
}
]
}
Get a single product subcategory.
id required | integer A unique integer value identifying this product sub category. |
LeafLink-Version | string <date> |
{- "id": 0,
- "name": "string",
- "category": 0,
- "base_unit_of_measure": 0
}
List multiple product templates.
company_id required | integer |
name | string |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "template_name": "string",
- "listing_state": "Available",
- "inventory_management": "inherited",
- "unit_of_measure": 0,
- "sell_in_unit_of_measure": 0,
- "sell_in_multiples": false,
- "unit_multiplier": 2147483647,
- "unit_denomination": 0,
- "base_units_per_unit": "string",
- "retail_price": "string",
- "wholesale_price": "string",
- "sale_price": "string",
- "minimum_order": "string",
- "maximum_order": "string",
- "description": "string",
- "category": 0,
- "sub_category": 0,
- "seller": 0,
- "brand": 0,
- "product_line": 0,
- "strain_classification": "sativa",
- "license": 0,
- "SHOW_QUANTITY": true,
- "AVAILABLE_FOR_SAMPLES": true,
- "threshold_value": 2147483647,
- "threshold_action": "default",
- "is_medical_line_item": true,
- "allow_fractional_quantities": true,
- "extern_income_acct_id": "string",
- "cost": "string"
}
]
}
Create a new product template.
company_id required | integer |
LeafLink-Version | string <date> |
template_name required | string [ 1 .. 400 ] characters Template Name |
(ListingStateEnum (string or null)) or (BlankEnum-unified-upstream-marketplace (any or null)) or (NullEnum-unified-upstream-marketplace (any or null)) | |
InventoryManagementEnum (string) or BlankEnum-unified-upstream-marketplace (any) (Product Inventory Management) The state that determines how inventory is handled for the Product | |
unit_of_measure | integer or null Unit of measure |
sell_in_unit_of_measure | integer or null Unit of measure that buyers see |
sell_in_multiples | boolean Default: false |
unit_multiplier | integer or null [ 0 .. 2147483647 ] How many individual units are sold when checking out by Unit of Measure |
unit_denomination | integer or null The denomination of unit for the Product. |
base_units_per_unit | string or null <decimal> ^-?\d{0,5}(?:\.\d{0,15})?$ Number of base units in one unit of this product template |
retail_price | string or null <decimal> ^-?\d{0,8}(?:\.\d{0,2})?$ Manufacturer's Suggested Retail Price (MSRP) |
wholesale_price | string or null <decimal> ^-?\d{0,8}(?:\.\d{0,2})?$ Max Wholesale Price |
sale_price | string or null <decimal> ^-?\d{0,8}(?:\.\d{0,2})?$ Sale Price |
minimum_order | string or null <decimal> ^-?\d{0,32}(?:\.\d{0,6})?$ Minimum Units per Order |
maximum_order | string or null <decimal> ^-?\d{0,32}(?:\.\d{0,6})?$ Maximum Units per Order |
description | string or null <= 7000 characters Brand Description |
category | integer or null |
sub_category | integer or null The sub-category of the Product (e.g. Bulk Flower, Live Resin, etc) |
seller required | integer (Manufacturer) Company who is selling the Product |
brand | integer or null Brand of product |
product_line | integer or null Product Line of product |
(StrainClassificationEnum (string or null)) or (BlankEnum-unified-upstream-marketplace (any or null)) or (NullEnum-unified-upstream-marketplace (any or null)) | |
license | integer or null |
SHOW_QUANTITY | boolean or null (Show Product quantity) Show Product Quantity |
AVAILABLE_FOR_SAMPLES | boolean or null This product is available for samples |
threshold_value | integer or null (Product threshold value) [ 0 .. 2147483647 ] When Product inventory reaches below this value, take various actions |
threshold_action | string (Product threshold action) Enum: "default" "backorder" "unavailable" "internal" Action to take when Product inventory reaches below a specified value |
is_medical_line_item | boolean Is this a medical line item? |
allow_fractional_quantities | boolean or null This product quantity can contain decimal places |
{- "template_name": "string",
- "listing_state": "Available",
- "inventory_management": "inherited",
- "unit_of_measure": 0,
- "sell_in_unit_of_measure": 0,
- "sell_in_multiples": false,
- "unit_multiplier": 2147483647,
- "unit_denomination": 0,
- "base_units_per_unit": "string",
- "retail_price": "string",
- "wholesale_price": "string",
- "sale_price": "string",
- "minimum_order": "string",
- "maximum_order": "string",
- "description": "string",
- "category": 0,
- "sub_category": 0,
- "seller": 0,
- "brand": 0,
- "product_line": 0,
- "strain_classification": "sativa",
- "license": 0,
- "SHOW_QUANTITY": true,
- "AVAILABLE_FOR_SAMPLES": true,
- "threshold_value": 2147483647,
- "threshold_action": "default",
- "is_medical_line_item": true,
- "allow_fractional_quantities": true
}
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "template_name": "string",
- "listing_state": "Available",
- "inventory_management": "inherited",
- "unit_of_measure": 0,
- "sell_in_unit_of_measure": 0,
- "sell_in_multiples": false,
- "unit_multiplier": 2147483647,
- "unit_denomination": 0,
- "base_units_per_unit": "string",
- "retail_price": "string",
- "wholesale_price": "string",
- "sale_price": "string",
- "minimum_order": "string",
- "maximum_order": "string",
- "description": "string",
- "category": 0,
- "sub_category": 0,
- "seller": 0,
- "brand": 0,
- "product_line": 0,
- "strain_classification": "sativa",
- "license": 0,
- "SHOW_QUANTITY": true,
- "AVAILABLE_FOR_SAMPLES": true,
- "threshold_value": 2147483647,
- "threshold_action": "default",
- "is_medical_line_item": true,
- "allow_fractional_quantities": true,
- "extern_income_acct_id": "string",
- "cost": "string"
}
Retrieve a single product template.
id required | string |
company_id required | integer |
LeafLink-Version | string <date> |
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "template_name": "string",
- "listing_state": "Available",
- "inventory_management": "inherited",
- "unit_of_measure": 0,
- "sell_in_unit_of_measure": 0,
- "sell_in_multiples": false,
- "unit_multiplier": 2147483647,
- "unit_denomination": 0,
- "base_units_per_unit": "string",
- "retail_price": "string",
- "wholesale_price": "string",
- "sale_price": "string",
- "minimum_order": "string",
- "maximum_order": "string",
- "description": "string",
- "category": 0,
- "sub_category": 0,
- "seller": 0,
- "brand": 0,
- "product_line": 0,
- "strain_classification": "sativa",
- "license": 0,
- "SHOW_QUANTITY": true,
- "AVAILABLE_FOR_SAMPLES": true,
- "threshold_value": 2147483647,
- "threshold_action": "default",
- "is_medical_line_item": true,
- "allow_fractional_quantities": true,
- "extern_income_acct_id": "string",
- "cost": "string"
}
Update an existing product template.
id required | string |
company_id required | integer |
LeafLink-Version | string <date> |
template_name | string [ 1 .. 400 ] characters Template Name |
(ListingStateEnum (string or null)) or (BlankEnum-unified-upstream-marketplace (any or null)) or (NullEnum-unified-upstream-marketplace (any or null)) | |
InventoryManagementEnum (string) or BlankEnum-unified-upstream-marketplace (any) (Product Inventory Management) The state that determines how inventory is handled for the Product | |
unit_of_measure | integer or null Unit of measure |
sell_in_unit_of_measure | integer or null Unit of measure that buyers see |
sell_in_multiples | boolean Default: false |
unit_multiplier | integer or null [ 0 .. 2147483647 ] How many individual units are sold when checking out by Unit of Measure |
unit_denomination | integer or null The denomination of unit for the Product. |
base_units_per_unit | string or null <decimal> ^-?\d{0,5}(?:\.\d{0,15})?$ Number of base units in one unit of this product template |
retail_price | string or null <decimal> ^-?\d{0,8}(?:\.\d{0,2})?$ Manufacturer's Suggested Retail Price (MSRP) |
wholesale_price | string or null <decimal> ^-?\d{0,8}(?:\.\d{0,2})?$ Max Wholesale Price |
sale_price | string or null <decimal> ^-?\d{0,8}(?:\.\d{0,2})?$ Sale Price |
minimum_order | string or null <decimal> ^-?\d{0,32}(?:\.\d{0,6})?$ Minimum Units per Order |
maximum_order | string or null <decimal> ^-?\d{0,32}(?:\.\d{0,6})?$ Maximum Units per Order |
description | string or null <= 7000 characters Brand Description |
category | integer or null |
sub_category | integer or null The sub-category of the Product (e.g. Bulk Flower, Live Resin, etc) |
seller | integer (Manufacturer) Company who is selling the Product |
brand | integer or null Brand of product |
product_line | integer or null Product Line of product |
(StrainClassificationEnum (string or null)) or (BlankEnum-unified-upstream-marketplace (any or null)) or (NullEnum-unified-upstream-marketplace (any or null)) | |
license | integer or null |
SHOW_QUANTITY | boolean or null (Show Product quantity) Show Product Quantity |
AVAILABLE_FOR_SAMPLES | boolean or null This product is available for samples |
threshold_value | integer or null (Product threshold value) [ 0 .. 2147483647 ] When Product inventory reaches below this value, take various actions |
threshold_action | string (Product threshold action) Enum: "default" "backorder" "unavailable" "internal" Action to take when Product inventory reaches below a specified value |
is_medical_line_item | boolean Is this a medical line item? |
allow_fractional_quantities | boolean or null This product quantity can contain decimal places |
{- "template_name": "string",
- "listing_state": "Available",
- "inventory_management": "inherited",
- "unit_of_measure": 0,
- "sell_in_unit_of_measure": 0,
- "sell_in_multiples": false,
- "unit_multiplier": 2147483647,
- "unit_denomination": 0,
- "base_units_per_unit": "string",
- "retail_price": "string",
- "wholesale_price": "string",
- "sale_price": "string",
- "minimum_order": "string",
- "maximum_order": "string",
- "description": "string",
- "category": 0,
- "sub_category": 0,
- "seller": 0,
- "brand": 0,
- "product_line": 0,
- "strain_classification": "sativa",
- "license": 0,
- "SHOW_QUANTITY": true,
- "AVAILABLE_FOR_SAMPLES": true,
- "threshold_value": 2147483647,
- "threshold_action": "default",
- "is_medical_line_item": true,
- "allow_fractional_quantities": true
}
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "template_name": "string",
- "listing_state": "Available",
- "inventory_management": "inherited",
- "unit_of_measure": 0,
- "sell_in_unit_of_measure": 0,
- "sell_in_multiples": false,
- "unit_multiplier": 2147483647,
- "unit_denomination": 0,
- "base_units_per_unit": "string",
- "retail_price": "string",
- "wholesale_price": "string",
- "sale_price": "string",
- "minimum_order": "string",
- "maximum_order": "string",
- "description": "string",
- "category": 0,
- "sub_category": 0,
- "seller": 0,
- "brand": 0,
- "product_line": 0,
- "strain_classification": "sativa",
- "license": 0,
- "SHOW_QUANTITY": true,
- "AVAILABLE_FOR_SAMPLES": true,
- "threshold_value": 2147483647,
- "threshold_action": "default",
- "is_medical_line_item": true,
- "allow_fractional_quantities": true,
- "extern_income_acct_id": "string",
- "cost": "string"
}
LeafLink API for Marketplace products.
name required | string non-empty Product name |
description required | string non-empty Product details |
category_id required | integer Product category ID for the product |
listing_state required | string Enum: "Available" "Archived" "Sample" "Backorder" "Internal" "Unavailable" Product listing state. Values available at the /listing-states/ endpoint. |
required | object Wholesale price displayed in the LeafLink marketplace |
unit_multiplier | integer How many individual units are sold when compared to the assigned unit of measure |
unit_denomination required | string <decimal> (Unit Denomination Value) ^-?\d{0,5}(?:\.\d{0,5})?$ The amount of individual products in one sale unit |
sku | string or null [ 1 .. 255 ] characters Stock keeping unit for the product |
brand_id required | integer Brand ID for the product |
manufacturer_id required | integer ID of the Company that manufactured the product |
seller_id required | integer Company who is selling the Product |
unit_of_measure required | string non-empty Base unit of measure for this product |
{- "name": "string",
- "description": "string",
- "category_id": 0,
- "listing_state": "Available",
- "wholesale_price": {
- "amount": 0,
- "currency": "string"
}, - "unit_multiplier": 0,
- "unit_denomination": "string",
- "sku": "string",
- "brand_id": 0,
- "manufacturer_id": 0,
- "seller_id": 0,
- "unit_of_measure": "string"
}
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "name": "string",
- "display_name": "string",
- "description": "string",
- "category": {
- "id": 0,
- "name": "string"
}, - "listing_state": "Available",
- "wholesale_price": {
- "amount": 0,
- "currency": "string"
}, - "unit_multiplier": 0,
- "unit_denomination": "string",
- "inventory": {
- "total_qty": -1e+95,
- "reserved_qty": 0.1
}, - "sku": "string",
- "brand": {
- "id": 0,
- "name": "string"
}, - "seller_id": 0,
- "external_ids": {
- "property1": null,
- "property2": null
}, - "unit_of_measure": "string"
}
LeafLink API for Marketplace products.
id required | integer A unique integer value identifying this product. |
LeafLink-Version | string <date> |
name required | string non-empty Product name |
description required | string non-empty Product details |
category_id required | integer Product category ID for the product |
listing_state required | string Enum: "Available" "Archived" "Sample" "Backorder" "Internal" "Unavailable" Product listing state. Values available at the /listing-states/ endpoint. |
required | object Wholesale price displayed in the LeafLink marketplace |
unit_multiplier | integer How many individual units are sold when compared to the assigned unit of measure |
unit_denomination required | string <decimal> (Unit Denomination Value) ^-?\d{0,5}(?:\.\d{0,5})?$ The amount of individual products in one sale unit |
sku | string or null [ 1 .. 255 ] characters Stock keeping unit for the product |
brand_id required | integer Brand ID for the product |
manufacturer_id required | integer ID of the Company that manufactured the product |
seller_id required | integer Company who is selling the Product |
unit_of_measure required | string non-empty Base unit of measure for this product |
{- "name": "string",
- "description": "string",
- "category_id": 0,
- "listing_state": "Available",
- "wholesale_price": {
- "amount": 0,
- "currency": "string"
}, - "unit_multiplier": 0,
- "unit_denomination": "string",
- "sku": "string",
- "brand_id": 0,
- "manufacturer_id": 0,
- "seller_id": 0,
- "unit_of_measure": "string"
}
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "name": "string",
- "display_name": "string",
- "description": "string",
- "category": {
- "id": 0,
- "name": "string"
}, - "listing_state": "Available",
- "wholesale_price": {
- "amount": 0,
- "currency": "string"
}, - "unit_multiplier": 0,
- "unit_denomination": "string",
- "inventory": {
- "total_qty": -1e+95,
- "reserved_qty": 0.1
}, - "sku": "string",
- "brand": {
- "id": 0,
- "name": "string"
}, - "seller_id": 0,
- "external_ids": {
- "property1": null,
- "property2": null
}, - "unit_of_measure": "string"
}
LeafLink API for Marketplace products.
id required | integer A unique integer value identifying this product. |
LeafLink-Version | string <date> |
name | string non-empty Product name |
description | string non-empty Product details |
category_id | integer Product category ID for the product |
listing_state | string Enum: "Available" "Archived" "Sample" "Backorder" "Internal" "Unavailable" Product listing state. Values available at the /listing-states/ endpoint. |
object Wholesale price displayed in the LeafLink marketplace | |
unit_multiplier | integer How many individual units are sold when compared to the assigned unit of measure |
unit_denomination | string <decimal> (Unit Denomination Value) ^-?\d{0,5}(?:\.\d{0,5})?$ The amount of individual products in one sale unit |
sku | string or null [ 1 .. 255 ] characters Stock keeping unit for the product |
brand_id | integer Brand ID for the product |
manufacturer_id | integer ID of the Company that manufactured the product |
seller_id | integer Company who is selling the Product |
unit_of_measure | string non-empty Base unit of measure for this product |
{- "name": "string",
- "description": "string",
- "category_id": 0,
- "listing_state": "Available",
- "wholesale_price": {
- "amount": 0,
- "currency": "string"
}, - "unit_multiplier": 0,
- "unit_denomination": "string",
- "sku": "string",
- "brand_id": 0,
- "manufacturer_id": 0,
- "seller_id": 0,
- "unit_of_measure": "string"
}
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "name": "string",
- "display_name": "string",
- "description": "string",
- "category": {
- "id": 0,
- "name": "string"
}, - "listing_state": "Available",
- "wholesale_price": {
- "amount": 0,
- "currency": "string"
}, - "unit_multiplier": 0,
- "unit_denomination": "string",
- "inventory": {
- "total_qty": -1e+95,
- "reserved_qty": 0.1
}, - "sku": "string",
- "brand": {
- "id": 0,
- "name": "string"
}, - "seller_id": 0,
- "external_ids": {
- "property1": null,
- "property2": null
}, - "unit_of_measure": "string"
}
Perform a 'DELETE' on a product. It will mark the specified product as Archived.
Logic is put here as the ModelViewSet destroy function doesn't use the serializer.
id required | integer A unique integer value identifying this product. |
LeafLink-Version | string <date> |
List multiple Products.
archived | boolean |
base_units_per_unit__isnull | boolean |
batch_associated__isnull | boolean |
brand | integer |
buyer | number |
category | integer |
company | integer |
company_slug | string |
created_on__gt | string <date-time> |
created_on__gte | string <date-time> |
created_on__lt | string <date-time> |
created_on__lte | string <date-time> |
display_name | string |
extern_sts_ids | Array of numbers Multiple values may be separated by commas. |
external_id_key | string |
external_id_unmapped | boolean |
external_id_values | string |
has_children | boolean |
id | Array of integers Multiple values may be separated by commas. |
last_edit__gt | string <date-time> |
last_edit__gte | string <date-time> |
last_edit__lt | string <date-time> |
last_edit__lte | string <date-time> |
license | Array of integers Multiple values may be separated by commas. |
license__isnull | boolean |
license__type | Array of integers Multiple values may be separated by commas. |
listing_state | string |
modified__gt | string <date-time> |
modified__gte | string <date-time> |
modified__lt | string <date-time> |
modified__lte | string <date-time> |
name | string |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
parent | Array of integers Multiple values may be separated by commas. |
parent__isnull | boolean |
product_line | Array of integers Multiple values may be separated by commas. |
reconcile_inventory | boolean |
s2s_connected | boolean |
search | string A search term. |
sku | Array of strings Multiple values may be separated by commas. |
strains | Array of integers Multiple values may be separated by commas. |
sub_category | Array of integers Multiple values may be separated by commas. |
sub_category__isnull | boolean |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "sku": "string",
- "seller": {
- "id": 0,
- "name": "string"
}, - "brand": {
- "id": 0,
- "name": "string"
}, - "product_line": 0,
- "name": "string",
- "display_name": "string",
- "license": {
- "id": 0,
- "number": "string",
- "type": "string",
- "display_type": "string",
- "classification": "string"
}, - "category": {
- "id": 0,
- "name": "string"
}, - "sub_category": 0,
- "unit_of_measure": {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "unit": "string",
- "plural": "string",
- "abbreviation": "string",
- "multiple": true,
- "ALLOW_FRACTIONAL": true,
- "universal_name": "string",
- "unconvertible": true,
- "base_only": true
}, - "unit_denomination": {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "value": "string",
- "name": "string",
- "label": "string",
- "description": "string"
}, - "listing_state": "Available",
- "description": "string",
- "wholesale_price": {
- "amount": 0,
- "currency": "string"
}, - "retail_price": {
- "amount": 0,
- "currency": "string"
}, - "strains": [
- 0
], - "strain_classification": "sativa",
- "is_medical_line_item": true,
- "grow_type": "greenhouse",
- "base_units_per_unit": "string",
- "threshold": {
- "regular_value": 0,
- "regular_action": "default",
- "reverse_value": 0,
- "reverse_action": "default"
}
}
]
}
LeafLink API for Marketplace products.
sku | string or null (Customer SKU) [ 1 .. 255 ] characters Stock Keeping Unit. A unique identifier for a Product, alternative to id. |
seller_id required | integer Company who is selling the Product |
brand_id required | integer Brand ID for the product |
product_line_id | integer Product Line ID of product |
name required | string (Product) [ 1 .. 400 ] characters Product Name |
license_id | integer or null License ID for the product |
category_id required | integer Product category ID for the product |
sub_category_id | integer Product sub-category ID for the product |
unit_of_measure_id required | integer Base unit of measure ID for this product |
unit_denomination_id required | integer The ID of amount of individual products in one sale unit |
listing_state required | string Enum: "Available" "Archived" "Sample" "Backorder" "Internal" "Unavailable" Product listing state. Values available at the /listing-states/ endpoint. |
description required | string [ 1 .. 7000 ] characters Brand Description |
required | object Wholesale price displayed in the LeafLink marketplace |
required | object Retail price displayed in the LeafLink marketplace |
strains | Array of integers (Strains of a product) The cannabis strains associated with this product |
StrainClassificationEnum (string) or BlankEnum-unified-upstream-marketplace (any) | |
is_medical_line_item | boolean Is this a medical line item? |
GrowTypeEnum (string) or BlankEnum-unified-upstream-marketplace (any) The type of grow operation for the flower product | |
base_units_per_unit | string or null <decimal> ^-?\d{0,5}(?:\.\d{0,15})?$ Number of base units in one unit of this product |
object or null Threshold configuration for inventory alerts |
{- "sku": "string",
- "seller_id": 0,
- "brand_id": 0,
- "product_line_id": 0,
- "name": "string",
- "license_id": 0,
- "category_id": 0,
- "sub_category_id": 0,
- "unit_of_measure_id": 0,
- "unit_denomination_id": 0,
- "listing_state": "Available",
- "description": "string",
- "wholesale_price": {
- "amount": 0,
- "currency": "string"
}, - "retail_price": {
- "amount": 0,
- "currency": "string"
}, - "strains": [
- 0
], - "strain_classification": "sativa",
- "is_medical_line_item": true,
- "grow_type": "greenhouse",
- "base_units_per_unit": "string",
- "threshold": {
- "regular_value": 0,
- "regular_action": "default",
- "reverse_value": 0,
- "reverse_action": "default"
}
}
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "sku": "string",
- "seller": {
- "id": 0,
- "name": "string"
}, - "brand": {
- "id": 0,
- "name": "string"
}, - "product_line": 0,
- "name": "string",
- "display_name": "string",
- "license": {
- "id": 0,
- "number": "string",
- "type": "string",
- "display_type": "string",
- "classification": "string"
}, - "category": {
- "id": 0,
- "name": "string"
}, - "sub_category": 0,
- "unit_of_measure": {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "unit": "string",
- "plural": "string",
- "abbreviation": "string",
- "multiple": true,
- "ALLOW_FRACTIONAL": true,
- "universal_name": "string",
- "unconvertible": true,
- "base_only": true
}, - "unit_denomination": {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "value": "string",
- "name": "string",
- "label": "string",
- "description": "string"
}, - "listing_state": "Available",
- "description": "string",
- "wholesale_price": {
- "amount": 0,
- "currency": "string"
}, - "retail_price": {
- "amount": 0,
- "currency": "string"
}, - "strains": [
- 0
], - "strain_classification": "sativa",
- "is_medical_line_item": true,
- "grow_type": "greenhouse",
- "base_units_per_unit": "string",
- "threshold": {
- "regular_value": 0,
- "regular_action": "default",
- "reverse_value": 0,
- "reverse_action": "default"
}
}
Get a single Product.
id required | integer A unique integer value identifying this product. |
LeafLink-Version | string <date> |
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "sku": "string",
- "seller": {
- "id": 0,
- "name": "string"
}, - "brand": {
- "id": 0,
- "name": "string"
}, - "product_line": 0,
- "name": "string",
- "display_name": "string",
- "license": {
- "id": 0,
- "number": "string",
- "type": "string",
- "display_type": "string",
- "classification": "string"
}, - "category": {
- "id": 0,
- "name": "string"
}, - "sub_category": 0,
- "unit_of_measure": {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "unit": "string",
- "plural": "string",
- "abbreviation": "string",
- "multiple": true,
- "ALLOW_FRACTIONAL": true,
- "universal_name": "string",
- "unconvertible": true,
- "base_only": true
}, - "unit_denomination": {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "value": "string",
- "name": "string",
- "label": "string",
- "description": "string"
}, - "listing_state": "Available",
- "description": "string",
- "wholesale_price": {
- "amount": 0,
- "currency": "string"
}, - "retail_price": {
- "amount": 0,
- "currency": "string"
}, - "strains": [
- 0
], - "strain_classification": "sativa",
- "is_medical_line_item": true,
- "grow_type": "greenhouse",
- "base_units_per_unit": "string",
- "threshold": {
- "regular_value": 0,
- "regular_action": "default",
- "reverse_value": 0,
- "reverse_action": "default"
}
}
LeafLink API for Marketplace products.
id required | integer A unique integer value identifying this product. |
LeafLink-Version | string <date> |
sku | string or null (Customer SKU) [ 1 .. 255 ] characters Stock Keeping Unit. A unique identifier for a Product, alternative to id. |
seller_id | integer Company who is selling the Product |
brand_id | integer Brand ID for the product |
product_line_id | integer Product Line ID of product |
name | string (Product) [ 1 .. 400 ] characters Product Name |
license_id | integer or null License ID for the product |
category_id | integer Product category ID for the product |
sub_category_id | integer Product sub-category ID for the product |
unit_of_measure_id | integer Base unit of measure ID for this product |
unit_denomination_id | integer The ID of amount of individual products in one sale unit |
listing_state | string Enum: "Available" "Archived" "Sample" "Backorder" "Internal" "Unavailable" Product listing state. Values available at the /listing-states/ endpoint. |
description | string [ 1 .. 7000 ] characters Brand Description |
object Wholesale price displayed in the LeafLink marketplace | |
object Retail price displayed in the LeafLink marketplace | |
strains | Array of integers (Strains of a product) The cannabis strains associated with this product |
StrainClassificationEnum (string) or BlankEnum-unified-upstream-marketplace (any) | |
is_medical_line_item | boolean Is this a medical line item? |
GrowTypeEnum (string) or BlankEnum-unified-upstream-marketplace (any) The type of grow operation for the flower product | |
base_units_per_unit | string or null <decimal> ^-?\d{0,5}(?:\.\d{0,15})?$ Number of base units in one unit of this product |
object or null Threshold configuration for inventory alerts |
{- "sku": "string",
- "seller_id": 0,
- "brand_id": 0,
- "product_line_id": 0,
- "name": "string",
- "license_id": 0,
- "category_id": 0,
- "sub_category_id": 0,
- "unit_of_measure_id": 0,
- "unit_denomination_id": 0,
- "listing_state": "Available",
- "description": "string",
- "wholesale_price": {
- "amount": 0,
- "currency": "string"
}, - "retail_price": {
- "amount": 0,
- "currency": "string"
}, - "strains": [
- 0
], - "strain_classification": "sativa",
- "is_medical_line_item": true,
- "grow_type": "greenhouse",
- "base_units_per_unit": "string",
- "threshold": {
- "regular_value": 0,
- "regular_action": "default",
- "reverse_value": 0,
- "reverse_action": "default"
}
}
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "sku": "string",
- "seller": {
- "id": 0,
- "name": "string"
}, - "brand": {
- "id": 0,
- "name": "string"
}, - "product_line": 0,
- "name": "string",
- "display_name": "string",
- "license": {
- "id": 0,
- "number": "string",
- "type": "string",
- "display_type": "string",
- "classification": "string"
}, - "category": {
- "id": 0,
- "name": "string"
}, - "sub_category": 0,
- "unit_of_measure": {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "unit": "string",
- "plural": "string",
- "abbreviation": "string",
- "multiple": true,
- "ALLOW_FRACTIONAL": true,
- "universal_name": "string",
- "unconvertible": true,
- "base_only": true
}, - "unit_denomination": {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "value": "string",
- "name": "string",
- "label": "string",
- "description": "string"
}, - "listing_state": "Available",
- "description": "string",
- "wholesale_price": {
- "amount": 0,
- "currency": "string"
}, - "retail_price": {
- "amount": 0,
- "currency": "string"
}, - "strains": [
- 0
], - "strain_classification": "sativa",
- "is_medical_line_item": true,
- "grow_type": "greenhouse",
- "base_units_per_unit": "string",
- "threshold": {
- "regular_value": 0,
- "regular_action": "default",
- "reverse_value": 0,
- "reverse_action": "default"
}
}
Clone a Product.
id required | integer A unique integer value identifying this product. |
LeafLink-Version | string <date> |
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "sku": "string",
- "seller": {
- "id": 0,
- "name": "string"
}, - "brand": {
- "id": 0,
- "name": "string"
}, - "product_line": 0,
- "name": "string",
- "display_name": "string",
- "license": {
- "id": 0,
- "number": "string",
- "type": "string",
- "display_type": "string",
- "classification": "string"
}, - "category": {
- "id": 0,
- "name": "string"
}, - "sub_category": 0,
- "unit_of_measure": {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "unit": "string",
- "plural": "string",
- "abbreviation": "string",
- "multiple": true,
- "ALLOW_FRACTIONAL": true,
- "universal_name": "string",
- "unconvertible": true,
- "base_only": true
}, - "unit_denomination": {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "value": "string",
- "name": "string",
- "label": "string",
- "description": "string"
}, - "listing_state": "Available",
- "description": "string",
- "wholesale_price": {
- "amount": 0,
- "currency": "string"
}, - "retail_price": {
- "amount": 0,
- "currency": "string"
}, - "strains": [
- 0
], - "strain_classification": "sativa",
- "is_medical_line_item": true,
- "grow_type": "greenhouse",
- "base_units_per_unit": "string",
- "threshold": {
- "regular_value": 0,
- "regular_action": "default",
- "reverse_value": 0,
- "reverse_action": "default"
}
}
Clone a Product.
id required | integer A unique integer value identifying this product. |
LeafLink-Version | string <date> |
sku | string or null (Customer SKU) [ 1 .. 255 ] characters Stock Keeping Unit. A unique identifier for a Product, alternative to id. |
seller_id required | integer Company who is selling the Product |
brand_id required | integer Brand ID for the product |
product_line_id | integer Product Line ID of product |
name required | string (Product) [ 1 .. 400 ] characters Product Name |
license_id | integer or null License ID for the product |
category_id required | integer Product category ID for the product |
sub_category_id | integer Product sub-category ID for the product |
unit_of_measure_id required | integer Base unit of measure ID for this product |
unit_denomination_id required | integer The ID of amount of individual products in one sale unit |
listing_state required | string Enum: "Available" "Archived" "Sample" "Backorder" "Internal" "Unavailable" Product listing state. Values available at the /listing-states/ endpoint. |
description required | string [ 1 .. 7000 ] characters Brand Description |
required | object Wholesale price displayed in the LeafLink marketplace |
required | object Retail price displayed in the LeafLink marketplace |
strains | Array of integers (Strains of a product) The cannabis strains associated with this product |
StrainClassificationEnum (string) or BlankEnum-unified-upstream-marketplace (any) | |
is_medical_line_item | boolean Is this a medical line item? |
GrowTypeEnum (string) or BlankEnum-unified-upstream-marketplace (any) The type of grow operation for the flower product | |
base_units_per_unit | string or null <decimal> ^-?\d{0,5}(?:\.\d{0,15})?$ Number of base units in one unit of this product |
object or null Threshold configuration for inventory alerts |
{- "sku": "string",
- "seller_id": 0,
- "brand_id": 0,
- "product_line_id": 0,
- "name": "string",
- "license_id": 0,
- "category_id": 0,
- "sub_category_id": 0,
- "unit_of_measure_id": 0,
- "unit_denomination_id": 0,
- "listing_state": "Available",
- "description": "string",
- "wholesale_price": {
- "amount": 0,
- "currency": "string"
}, - "retail_price": {
- "amount": 0,
- "currency": "string"
}, - "strains": [
- 0
], - "strain_classification": "sativa",
- "is_medical_line_item": true,
- "grow_type": "greenhouse",
- "base_units_per_unit": "string",
- "threshold": {
- "regular_value": 0,
- "regular_action": "default",
- "reverse_value": 0,
- "reverse_action": "default"
}
}
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "sku": "string",
- "seller": {
- "id": 0,
- "name": "string"
}, - "brand": {
- "id": 0,
- "name": "string"
}, - "product_line": 0,
- "name": "string",
- "display_name": "string",
- "license": {
- "id": 0,
- "number": "string",
- "type": "string",
- "display_type": "string",
- "classification": "string"
}, - "category": {
- "id": 0,
- "name": "string"
}, - "sub_category": 0,
- "unit_of_measure": {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "unit": "string",
- "plural": "string",
- "abbreviation": "string",
- "multiple": true,
- "ALLOW_FRACTIONAL": true,
- "universal_name": "string",
- "unconvertible": true,
- "base_only": true
}, - "unit_denomination": {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "value": "string",
- "name": "string",
- "label": "string",
- "description": "string"
}, - "listing_state": "Available",
- "description": "string",
- "wholesale_price": {
- "amount": 0,
- "currency": "string"
}, - "retail_price": {
- "amount": 0,
- "currency": "string"
}, - "strains": [
- 0
], - "strain_classification": "sativa",
- "is_medical_line_item": true,
- "grow_type": "greenhouse",
- "base_units_per_unit": "string",
- "threshold": {
- "regular_value": 0,
- "regular_action": "default",
- "reverse_value": 0,
- "reverse_action": "default"
}
}
Add a Product from a Template.
template_id required | string^[\d]+$ |
LeafLink-Version | string <date> |
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "sku": "string",
- "seller": {
- "id": 0,
- "name": "string"
}, - "brand": {
- "id": 0,
- "name": "string"
}, - "product_line": 0,
- "name": "string",
- "display_name": "string",
- "license": {
- "id": 0,
- "number": "string",
- "type": "string",
- "display_type": "string",
- "classification": "string"
}, - "category": {
- "id": 0,
- "name": "string"
}, - "sub_category": 0,
- "unit_of_measure": {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "unit": "string",
- "plural": "string",
- "abbreviation": "string",
- "multiple": true,
- "ALLOW_FRACTIONAL": true,
- "universal_name": "string",
- "unconvertible": true,
- "base_only": true
}, - "unit_denomination": {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "value": "string",
- "name": "string",
- "label": "string",
- "description": "string"
}, - "listing_state": "Available",
- "description": "string",
- "wholesale_price": {
- "amount": 0,
- "currency": "string"
}, - "retail_price": {
- "amount": 0,
- "currency": "string"
}, - "strains": [
- 0
], - "strain_classification": "sativa",
- "is_medical_line_item": true,
- "grow_type": "greenhouse",
- "base_units_per_unit": "string",
- "threshold": {
- "regular_value": 0,
- "regular_action": "default",
- "reverse_value": 0,
- "reverse_action": "default"
}
}
Add a Product from a Template.
template_id required | string^[\d]+$ |
LeafLink-Version | string <date> |
sku | string or null (Customer SKU) [ 1 .. 255 ] characters Stock Keeping Unit. A unique identifier for a Product, alternative to id. |
seller_id required | integer Company who is selling the Product |
brand_id required | integer Brand ID for the product |
product_line_id | integer Product Line ID of product |
name required | string (Product) [ 1 .. 400 ] characters Product Name |
license_id | integer or null License ID for the product |
category_id required | integer Product category ID for the product |
sub_category_id | integer Product sub-category ID for the product |
unit_of_measure_id required | integer Base unit of measure ID for this product |
unit_denomination_id required | integer The ID of amount of individual products in one sale unit |
listing_state required | string Enum: "Available" "Archived" "Sample" "Backorder" "Internal" "Unavailable" Product listing state. Values available at the /listing-states/ endpoint. |
description required | string [ 1 .. 7000 ] characters Brand Description |
required | object Wholesale price displayed in the LeafLink marketplace |
required | object Retail price displayed in the LeafLink marketplace |
strains | Array of integers (Strains of a product) The cannabis strains associated with this product |
StrainClassificationEnum (string) or BlankEnum-unified-upstream-marketplace (any) | |
is_medical_line_item | boolean Is this a medical line item? |
GrowTypeEnum (string) or BlankEnum-unified-upstream-marketplace (any) The type of grow operation for the flower product | |
base_units_per_unit | string or null <decimal> ^-?\d{0,5}(?:\.\d{0,15})?$ Number of base units in one unit of this product |
object or null Threshold configuration for inventory alerts |
{- "sku": "string",
- "seller_id": 0,
- "brand_id": 0,
- "product_line_id": 0,
- "name": "string",
- "license_id": 0,
- "category_id": 0,
- "sub_category_id": 0,
- "unit_of_measure_id": 0,
- "unit_denomination_id": 0,
- "listing_state": "Available",
- "description": "string",
- "wholesale_price": {
- "amount": 0,
- "currency": "string"
}, - "retail_price": {
- "amount": 0,
- "currency": "string"
}, - "strains": [
- 0
], - "strain_classification": "sativa",
- "is_medical_line_item": true,
- "grow_type": "greenhouse",
- "base_units_per_unit": "string",
- "threshold": {
- "regular_value": 0,
- "regular_action": "default",
- "reverse_value": 0,
- "reverse_action": "default"
}
}
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "sku": "string",
- "seller": {
- "id": 0,
- "name": "string"
}, - "brand": {
- "id": 0,
- "name": "string"
}, - "product_line": 0,
- "name": "string",
- "display_name": "string",
- "license": {
- "id": 0,
- "number": "string",
- "type": "string",
- "display_type": "string",
- "classification": "string"
}, - "category": {
- "id": 0,
- "name": "string"
}, - "sub_category": 0,
- "unit_of_measure": {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "unit": "string",
- "plural": "string",
- "abbreviation": "string",
- "multiple": true,
- "ALLOW_FRACTIONAL": true,
- "universal_name": "string",
- "unconvertible": true,
- "base_only": true
}, - "unit_denomination": {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "value": "string",
- "name": "string",
- "label": "string",
- "description": "string"
}, - "listing_state": "Available",
- "description": "string",
- "wholesale_price": {
- "amount": 0,
- "currency": "string"
}, - "retail_price": {
- "amount": 0,
- "currency": "string"
}, - "strains": [
- 0
], - "strain_classification": "sativa",
- "is_medical_line_item": true,
- "grow_type": "greenhouse",
- "base_units_per_unit": "string",
- "threshold": {
- "regular_value": 0,
- "regular_action": "default",
- "reverse_value": 0,
- "reverse_action": "default"
}
}
created_date_from | string <date> |
created_date_to | string <date> |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "paid_date": "2019-08-24",
- "buyer": {
- "name": "string",
- "id": 0
}, - "total": "string",
- "order": "string",
- "payment_due_date": "2019-08-24T14:15:22Z",
- "ship_date": "2019-08-24T14:15:22Z",
- "balance": "string",
- "line_items": [
- {
- "description": "string",
- "name": "string",
- "quantity": "string",
- "ordered_unit_price": "string"
}
]
}
]
}
id required | integer A unique integer value identifying this order. |
LeafLink-Version | string <date> |
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "paid_date": "2019-08-24",
- "buyer": {
- "name": "string",
- "id": 0
}, - "total": "string",
- "order": "string",
- "payment_due_date": "2019-08-24T14:15:22Z",
- "ship_date": "2019-08-24T14:15:22Z",
- "balance": "string",
- "line_items": [
- {
- "description": "string",
- "name": "string",
- "quantity": "string",
- "ordered_unit_price": "string"
}
]
}
Get buyer notification settings.
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "order_accepted": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_rejected": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_fulfilled": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_shipped": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_complete": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_detail_changed": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "flower_available": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}
}
]
}
Update buyer notification settings.
object or null | |
object or null | |
object or null | |
object or null | |
object or null | |
object or null | |
object or null |
{- "order_accepted": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_rejected": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_fulfilled": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_shipped": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_complete": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_detail_changed": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "flower_available": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}
}
{- "order_accepted": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_rejected": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_fulfilled": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_shipped": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_complete": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_detail_changed": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "flower_available": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}
}
Unified API Buyer Notification Settings.
id required | integer A unique integer value identifying this company. |
LeafLink-Version | string <date> |
{- "order_accepted": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_rejected": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_fulfilled": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_shipped": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_complete": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "order_detail_changed": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}, - "flower_available": {
- "users": [
- {
- "display_name": "string",
- "email": "user@example.com",
- "id": 0
}
]
}
}
Get split treatments for a company
company_id required | integer The ID of the viewing company |
split_name | Array of strings Items Enum: "acct_man_pod__enrollment_nue_integration" "acct_man_pod__plans_and_billing" "acct_pod__seller_order_summary" "active_experiments" "ads_dashboard_recently_purchased_carousel" "ads_enable_recently_purchased_brands_carousel" "ads_enable_share_menu" "ads_enable_top_purchased_products_carousel" "ads_enable_vueified_share_leaflink" "ads_in_platform_product_promotion" "ads_kevel_buyer_seller_dash" "ads_moloco_shop_brands_featured_brands" "ads_moloco_shop_brands_sidebar_banners" "ads_platform_promotion_automation" "ads_pod_enable_moloco_ad_reporting" "ads_product_recommendation" "ads_product_recommendation_organic_recommendations" "ads_product_spotlight" "ads_serve_algolia_recommendations" "ads_shoppable_skyscraper" "ads_sponsorships_in_product_search" "buyer_settings_store_requests_vue" "can_access_company_group_features" "ce_pod__buyer_metrc_onboarding" "collab_pod__payments_in_crm" "collab_pod__promo_code_display" "collab_pod__sales_rep_email_actions" "com_pod__cart_payment_cta" "com_pod__cart_payment_option" "com_pod__reverse_factor" "com_pod__vendor_menu" "commerce__accept_payments_payment_events" "cop_pod__bank_linking" "cop_pod__payments_exploration_dashboard_widget" "cop_pod__terms_and_conditions" "cret_pod__vueified_company_profile" "custom_menus__edit_product_redirect" "eapps_sage_enabled" "enable_logistics_permission_to_all_users" "enterprise_pod__mult_payment_methods" "enterprise_pod__order_fees" "fire_pod__cashback_rewards" "fire_pod__delinquent_lockdown" "fire_pod__direct_pay_auto_authorization" "fire_pod__direct_pay_enabled_states" "fire_pod__enable_post_weekly_sum_view" "fire_pod__mp_auto_pausing" "fire_pod__mp_balance_checks" "fire_pod__order_adjustments_event_consumer" "fire_pod__post_package_services" "fire_pod__post_settings" "force_segment_reporting" "gro_pod__order_summary_invitations" "gro_pod__printed_menu" "gro_pod__vendor_menu_ui_enhancement" "inbound_shipments_create" "int_pod__order_pdf_report" "inventory_pod__inventory_batch_support" "inventory_pod__inventory_warehouse_support" "inventory_pod__listings_allocations" "inventory_pod__new_product_list_page" "knock_notifications_toaster" "live_inventory_indicator" "llm_sigma_gpo_report" "llm_vue_seller_reports" "logistics_pod__enable_auto_update_of_metrc_templates" "logistics_pod__enable_customers_to_select_transport_partner" "logistics_pod__submit_order_via_csv_upload" "manage_license__add_integration__buyer" "manage_licenses__new_metrc_flow" "messaging_notifications" "npr_pod__integrations_seller" "ogk_pod__knock_notifications" "order_latency" "order_summary_ancillary_enhancements" "order_summary_receipt_log" "orders_internal_approvals" "orders_received_dataview" "pause_inactive_license_companies" "payment_on_sell_through__enrollment" "plat_arch_pod__oso_cloud" "plat_arch_pod__unified_hijacking" "post__sign_terms_and_conditions_for_all_staff_users" "post_allow_remove_post_flag_from_order" "post_automated_payments__calculation" "post_order_preagreement_settings" "post_sts_unit_conversion" "replenishment_catalog_page" "ret_pod__order_minimum" "ret_pod__split_orders" "retail__leaflink_plus_enrollment" "retail_category_management_self_service" "retail_product_leaderboard_negotiate" "retention_pod__brand_menu_social_links" "retention_pod__buyer_reports" "seed_to_sale__buyer_nav" "seed_to_sale__transfer_template" "seed_to_sale_coa_download" "seller_settings_vue" "settings__buyer_account_details" "settings__tax_schedules" "shipping_request_delivery_modal" "shop_brands_performance_improvement" "show_sell_through_for_non_post" "sips_pod__mp_license_service_api" "spliff_pod__collab_notification" "ssr_iframe" "supply_chain_delivered_status" "switch_customer_for_cloned_orders" "trace_pod__s2s_transfers" "trace_pod__search_by_assigned_packages" "traceability__biotrack_buyer_onboarding" "traceability__biotrack_seller_attach_manifest" "traceability__biotrack_seller_transfers_page" "traceability_pod__automated_metrc_license_validation" "traceability_pod__credential_encryption" "traceability_pod__experiment__reconcile_inventory" "traceability_pod__integration_settings" "transport_pod__ma_next_day_delivery" "transport_pod__shipping_set_order_payments" "vue_buyer_notification_settings" "vue_inventory_bulk_price_update" "vue_inventory_product_add_edit_page" "vue_inventory_product_line_page" "vue_messages_page" "vue_settings_brands_page" The names of the splits |
LeafLink-Version | string <date> |
{- "commerce__accept_payments_payment_events": "string",
- "active_experiments": "string",
- "ads_dashboard_recently_purchased_carousel": "string",
- "ads_pod_enable_moloco_ad_reporting": "string",
- "ads_enable_recently_purchased_brands_carousel": "string",
- "ads_enable_share_menu": "string",
- "ads_enable_top_purchased_products_carousel": "string",
- "ads_enable_vueified_share_leaflink": "string",
- "ads_in_platform_product_promotion": "string",
- "ads_product_recommendation": "string",
- "ads_product_spotlight": "string",
- "ads_shoppable_skyscraper": "string",
- "ads_sponsorships_in_product_search": "string",
- "fire_pod__mp_auto_pausing": "string",
- "logistics_pod__enable_auto_update_of_metrc_templates": "string",
- "traceability_pod__automated_metrc_license_validation": "string",
- "fire_pod__mp_balance_checks": "string",
- "cop_pod__bank_linking": "string",
- "traceability__biotrack_buyer_onboarding": "string",
- "ce_pod__buyer_metrc_onboarding": "string",
- "buyer_settings_store_requests_vue": "string",
- "retention_pod__buyer_reports": "string",
- "can_access_company_group_features": "string",
- "ret_pod__split_orders": "string",
- "retention_pod__brand_menu_social_links": "string",
- "com_pod__cart_payment_cta": "string",
- "com_pod__cart_payment_option": "string",
- "com_pod__reverse_factor": "string",
- "fire_pod__cashback_rewards": "string",
- "traceability_pod__credential_encryption": "string",
- "custom_menus__edit_product_redirect": "string",
- "spliff_pod__collab_notification": "string",
- "fire_pod__delinquent_lockdown": "string",
- "fire_pod__direct_pay_auto_authorization": "string",
- "fire_pod__direct_pay_enabled_states": "string",
- "fire_pod__post_settings": "string",
- "logistics_pod__enable_customers_to_select_transport_partner": "string",
- "enable_logistics_permission_to_all_users": "string",
- "plat_arch_pod__oso_cloud": "string",
- "acct_man_pod__enrollment_nue_integration": "string",
- "enterprise_pod__mult_payment_methods": "string",
- "enterprise_pod__order_fees": "string",
- "force_segment_reporting": "string",
- "ret_pod__order_minimum": "string",
- "inbound_shipments_create": "string",
- "traceability_pod__integration_settings": "string",
- "npr_pod__integrations_seller": "string",
- "orders_internal_approvals": "string",
- "inventory_pod__inventory_batch_support": "string",
- "inventory_pod__inventory_warehouse_support": "string",
- "ogk_pod__knock_notifications": "string",
- "knock_notifications_toaster": "string",
- "inventory_pod__listings_allocations": "string",
- "live_inventory_indicator": "string",
- "manage_license__add_integration__buyer": "string",
- "messaging_notifications": "string",
- "fire_pod__order_adjustments_event_consumer": "string",
- "order_latency": "string",
- "int_pod__order_pdf_report": "string",
- "order_summary_ancillary_enhancements": "string",
- "gro_pod__order_summary_invitations": "string",
- "order_summary_receipt_log": "string",
- "orders_received_dataview": "string",
- "ads_product_recommendation_organic_recommendations": "string",
- "pause_inactive_license_companies": "string",
- "payment_on_sell_through__enrollment": "string",
- "cop_pod__payments_exploration_dashboard_widget": "string",
- "collab_pod__payments_in_crm": "string",
- "shop_brands_performance_improvement": "string",
- "acct_man_pod__plans_and_billing": "string",
- "ads_platform_promotion_automation": "string",
- "post_allow_remove_post_flag_from_order": "string",
- "post_automated_payments__calculation": "string",
- "fire_pod__enable_post_weekly_sum_view": "string",
- "post_order_preagreement_settings": "string",
- "fire_pod__post_package_services": "string",
- "post__sign_terms_and_conditions_for_all_staff_users": "string",
- "post_sts_unit_conversion": "string",
- "gro_pod__printed_menu": "string",
- "inventory_pod__new_product_list_page": "string",
- "collab_pod__promo_code_display": "string",
- "replenishment_catalog_page": "string",
- "retail_category_management_self_service": "string",
- "retail__leaflink_plus_enrollment": "string",
- "retail_product_leaderboard_negotiate": "string",
- "seed_to_sale_coa_download": "string",
- "traceability_pod__experiment__reconcile_inventory": "string",
- "seed_to_sale__transfer_template": "string",
- "trace_pod__s2s_transfers": "string",
- "traceability__biotrack_seller_transfers_page": "string",
- "eapps_sage_enabled": "string",
- "collab_pod__sales_rep_email_actions": "string",
- "trace_pod__search_by_assigned_packages": "string",
- "seed_to_sale__buyer_nav": "string",
- "traceability__biotrack_seller_attach_manifest": "string",
- "llm_sigma_gpo_report": "string",
- "manage_licenses__new_metrc_flow": "string",
- "acct_pod__seller_order_summary": "string",
- "seller_settings_vue": "string",
- "ads_serve_algolia_recommendations": "string",
- "settings__buyer_account_details": "string",
- "settings__tax_schedules": "string",
- "shipping_request_delivery_modal": "string",
- "show_sell_through_for_non_post": "string",
- "sips_pod__mp_license_service_api": "string",
- "ssr_iframe": "string",
- "logistics_pod__submit_order_via_csv_upload": "string",
- "supply_chain_delivered_status": "string",
- "switch_customer_for_cloned_orders": "string",
- "cop_pod__terms_and_conditions": "string",
- "transport_pod__shipping_set_order_payments": "string",
- "transport_pod__ma_next_day_delivery": "string",
- "plat_arch_pod__unified_hijacking": "string",
- "ads_kevel_buyer_seller_dash": "string",
- "ads_moloco_shop_brands_sidebar_banners": "string",
- "ads_moloco_shop_brands_featured_brands": "string",
- "com_pod__vendor_menu": "string",
- "gro_pod__vendor_menu_ui_enhancement": "string",
- "vue_buyer_notification_settings": "string",
- "vue_inventory_bulk_price_update": "string",
- "vue_inventory_product_add_edit_page": "string",
- "vue_inventory_product_line_page": "string",
- "vue_messages_page": "string",
- "llm_vue_seller_reports": "string",
- "vue_settings_brands_page": "string",
- "cret_pod__vueified_company_profile": "string"
}
List states.
logistics_enabled required | boolean If set to 'true' endpoint will return only States that have at least one seller with enabled logistics. |
limit | integer Number of results to return per page. |
logistics_enabled | boolean |
offset | integer The initial index from which to return the results. |
ordering | string Which field to use when ordering the results. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "abbr": "st",
- "name": "string",
- "country": {
- "id": 0,
- "abbr": "str",
- "iso_code": "string",
- "name": "string"
}
}
]
}
State view set.
id required | integer A unique integer value identifying this state. |
LeafLink-Version | string <date> |
{- "id": 0,
- "abbr": "st",
- "name": "string",
- "country": {
- "id": 0,
- "abbr": "str",
- "iso_code": "string",
- "name": "string"
}
}
List multiple Strain Classifications.
ordering | string Which field to use when ordering the results. |
search | string A search term. |
LeafLink-Version | string <date> |
[- {
- "value": "string",
- "display_value": "string"
}
]
List multiple Strains.
company | Array of integers Multiple values may be separated by commas. |
company__isnull | boolean |
company_slug | string |
id | Array of integers Multiple values may be separated by commas. |
name | string |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
strain_classification | Array of strings Multiple values may be separated by commas. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "name": "string",
- "company": 0,
- "strain_classification": "sativa"
}
]
}
Get a single Strain.
id required | integer A unique integer value identifying this strain. |
LeafLink-Version | string <date> |
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "name": "string",
- "company": 0,
- "strain_classification": "sativa"
}
Get tax schedules for company.
company_id required | integer The ID of the viewing company |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "name": "string",
- "tax_type": "string",
- "tax_rate": "string",
- "unit_type": "string",
- "product_categories": [
- "string"
]
}
]
}
Create a new TaxSchedule.
company_id required | integer The ID of the viewing company |
LeafLink-Version | string <date> |
name required | string non-empty |
tax_type required | integer |
tax_rate required | string <decimal> ^-?\d{0,5}(?:\.\d{0,5})?$ |
unit_type required | integer |
product_category_ids required | Array of integers |
{- "name": "string",
- "tax_type": 0,
- "tax_rate": "string",
- "unit_type": 0,
- "product_category_ids": [
- 0
]
}
{- "id": 0
}
Get tax schedule by ID for company.
id required | integer A unique integer value identifying this tax schedule. |
company_id required | integer The ID of the viewing company |
LeafLink-Version | string <date> |
{- "id": 0,
- "name": "string",
- "tax_type": "string",
- "tax_rate": "string",
- "unit_type": "string",
- "product_categories": [
- "string"
]
}
Update a TaxSchedule by marking it as archived and creating a new one.
id required | integer A unique integer value identifying this tax schedule. |
company_id required | integer The ID of the viewing company |
LeafLink-Version | string <date> |
name | string or null non-empty |
tax_type | integer or null |
tax_rate | string or null <decimal> ^-?\d{0,5}(?:\.\d{0,5})?$ |
unit_type | integer or null |
product_category_ids | Array of integers or null |
{- "name": "string",
- "tax_type": 0,
- "tax_rate": "string",
- "unit_type": 0,
- "product_category_ids": [
- 0
]
}
{- "id": 0
}
Delete a TaxSchedule... well, mark it as archived.
id required | integer A unique integer value identifying this tax schedule. |
company_id required | integer The ID of the viewing company |
LeafLink-Version | string <date> |
Reconcile inventory for products, utilizes marketplace celery tasks + traceability service data.
company_id required | integer The ID of the viewing company |
LeafLink-Version | string <date> |
product_ids | Array of integers |
{- "product_ids": [
- 0
]
}
Perform refresh for specified resource types and optional datetime.
company_id required | integer The ID of the viewing company |
end_date | string <date> Resource refresh end date |
start_date | string <date> Resource refresh start date |
types required | string Comma-separated list of resource types to refresh |
LeafLink-Version | string <date> |
Create a new company in the traceability service.
company_id required | integer The ID of the viewing company |
LeafLink-Version | string <date> |
enable_seed_to_sale required | boolean |
enable_transfer_manifest required | boolean |
enable_sales_data required | boolean |
enable_hide_attached_packages required | boolean |
enable_license_verification | boolean or null |
required | Array of objects (CompanyApiKeyRequest) |
included_locations | Array of strings[ items non-empty ] |
included_location_ids | Array of integers |
excluded_lab_test_states required | Array of strings[ items non-empty ] |
{- "enable_seed_to_sale": true,
- "enable_transfer_manifest": true,
- "enable_sales_data": true,
- "enable_hide_attached_packages": true,
- "enable_license_verification": true,
- "api_configs": [
- {
- "api_key": "string",
- "license_ids": [
- 0
]
}
], - "included_locations": [
- "string"
], - "included_location_ids": [
- 0
], - "excluded_lab_test_states": [
- "string"
]
}
{- "company_id": 0
}
Get company by ID.
id required | integer ID of requested company |
company_id required | integer The ID of the viewing company |
LeafLink-Version | string <date> |
{- "enable_seed_to_sale": true,
- "enable_lab_test_result_sync": true,
- "enable_transfer_manifest": true,
- "enable_sales_data": true,
- "enable_hide_attached_packages": true,
- "enable_license_verification": true,
- "integration_type": "string",
- "excluded_lab_test_states": [
- "string"
], - "included_locations": [
- {
- "id": 0,
- "external_id": "string",
- "license_number": "string",
- "name": "string"
}
], - "integration_ids": [
- 0
], - "api_configs": [
- {
- "integration_id": 0,
- "api_key": "string",
- "username": "string",
- "ubi": "string",
- "licenses": [
- {
- "id": 0,
- "company_license_id": 0,
- "number": "string",
- "type": {
- "active_for_registration": true,
- "classification": "string",
- "created_on": "2019-08-24T14:15:22Z",
- "description": "string",
- "display_type": "string",
- "has_medical_line_items": true,
- "id": 0,
- "modified": "2019-08-24T14:15:22Z",
- "post_2018_CA": true,
- "pre_2018_CA": true,
- "require_ein": true,
- "state_id": 0,
- "type": "string"
}, - "issue_date": "2019-08-24",
- "expiration_date": "2019-08-24",
- "public": true,
- "archived": true,
}
], - "included_locations": {
- "id": 0,
- "external_id": "string",
- "license_number": "string",
- "name": "string"
}
}
]
}
Update a company in the traceability service.
id required | integer ID of requested company |
company_id required | integer The ID of the viewing company |
LeafLink-Version | string <date> |
enable_seed_to_sale | boolean |
enable_transfer_manifest | boolean |
enable_sales_data | boolean |
enable_hide_attached_packages | boolean |
enable_license_verification | boolean or null |
Array of objects (CompanyApiKeyRequest) | |
included_locations | Array of strings[ items non-empty ] |
included_location_ids | Array of integers |
excluded_lab_test_states | Array of strings[ items non-empty ] |
{- "enable_seed_to_sale": true,
- "enable_transfer_manifest": true,
- "enable_sales_data": true,
- "enable_hide_attached_packages": true,
- "enable_license_verification": true,
- "api_configs": [
- {
- "api_key": "string",
- "license_ids": [
- 0
]
}
], - "included_locations": [
- "string"
], - "included_location_ids": [
- 0
], - "excluded_lab_test_states": [
- "string"
]
}
{- "company_id": 0
}
Get company customers.
company_id required | integer The ID of the viewing company |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "display_name": "string",
- "license_number": "string",
- "partner_id": 0
}
]
}
Get company customer by ID.
id required | integer A unique integer value identifying this company customer. |
company_id required | integer The ID of the viewing company |
LeafLink-Version | string <date> |
{- "id": 0,
- "display_name": "string",
- "license_number": "string",
- "partner_id": 0
}
Get company licenses
company_id required | integer The ID of the viewing company |
LeafLink-Version | string <date> |
api_key required | string non-empty |
{- "api_key": "string"
}
{- "errors": [
- "string"
], - "licenses": [
- {
- "number": "string",
- "type": "string",
- "start_date": "string",
- "end_date": "string"
}
]
}
Delete a company's integration.
id required | integer ID of integration to modify |
company_id required | integer The ID of the viewing company |
LeafLink-Version | string <date> |
{- "property1": null,
- "property2": null
}
Get all drivers for company
company_id required | integer The ID of the viewing company |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string Search term to filter the list by |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "company_id": 0,
- "external_id": "string",
- "vendor_type": "string",
- "license_number": "string",
- "name": "string",
- "vendor_fields": {
- "common_driver_id": 0,
- "drivers_license_number": "string",
- "employee_id": "string"
}
}
]
}
Get all items from the traceability service for a company.
company_id required | integer The ID of the viewing company |
include_strain_data | boolean Boolean to indicate whether strain data should be included |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string Search term to filter the list by |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "metrc_id": 0,
- "name": "string",
- "description": "string",
- "ingredients": "string",
- "category_name": "string",
- "category_type": "string",
- "quantity_type": "string",
- "unit_of_measure_name": "string",
- "serving_size": "string",
- "used": true,
- "imported_from_package": true,
- "strain_name": "string",
- "strain": {
- "company_id": 0,
- "metrc_id": 0,
- "license_number": "string",
- "name": "string",
- "is_active": true,
- "indica_percentage": "string",
- "sativa_percentage": "string",
- "thc_level": "string",
- "cbd_level": "string",
- "testing_status": "string"
}, - "metrc_strain_id": 0,
- "doses": "string",
- "unit_cbd_percent": "string",
- "unit_cbd_content": "string",
- "unit_cbd_content_unit_of_measure_name": "string",
- "unit_thc_percent": "string",
- "unit_thc_content": "string",
- "unit_thc_content_unit_of_measure_name": "string",
- "unit_volume": "string",
- "unit_volume_unit_of_measure_name": "string",
- "unit_weight": "string",
- "unit_weight_unit_of_measure_name": "string",
- "unit_quantity": "string",
- "unit_quantity_unit_of_measure_name": "string"
}
]
}
Get onboarding status.
id required | integer ID of requested company |
LeafLink-Version | string <date> |
{- "status": "string",
- "vendor_type": "string",
- "external_id": "string"
}
Unified API Orders by Package Labels.
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "short_id": "string",
- "order_number": "string",
- "is_post": true
}
]
}
Unified API Orders by Package Labels.
id required | integer A unique integer value identifying this attached package. |
LeafLink-Version | string <date> |
{- "short_id": "string",
- "order_number": "string",
- "is_post": true
}
Get company packages
assigned | boolean Filter by Traceability.common_packages that are assigned/unassigned products |
cbd_max | number <double> Filter by Traceability.common_packages with a CBD value less than or equal to the given value |
cbd_min | number <double> Filter by Traceability.common_packages with a CBD value greater than or equal to the given value |
company_id required | integer The ID of the viewing company |
hide_attached_packages | boolean Filter out any Traceability.common_package that has already been assigned to an order line-item |
include_source_packages | boolean Indicate whether to include a list of source_package_labels in the response |
item | string Filter by Traceability.metrc_package.item_id (accepts comma-separated list) |
lab_testing_status | string Filter by Traceability.common_package.metrc_package.lab_testing_status (accepts comma-separated list) |
label | string Filter by Traceability.common_package.label (accepts comma-separated list) |
license_number | string Filter by Traceability.common_package.license_number (accepts comma-separated list) |
limit | integer Limit for results, hard-cap of 25 enforced, default 25 |
location | string Filter by Traceability.common_package.location_id (accepts comma-separated list) |
manifest_number | string Filter Traceability.common_package by packages associated with manifest |
offset | integer Used for pagination |
ordering | string Which field to use when ordering the results. |
packaged_date | string Filter by Traceability.metrc_package.packaged_date (accepts comma-separated list) |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
product_ids | string Filter Traceability.common_package by product_ids assigned to packages (accepts comma-separated list) |
search | string Search term to filter the list by |
source_package | string Filter Traceability.common_package by packages that are children of the given label |
status | string Filter by Traceability.common_package.status field |
template_id | string Filter Traceability.common_package by packages assigned to template |
thc_max | number <double> Filter by Traceability.common_packages with a THC value less than or equal to the given value |
thc_min | number <double> Filter by Traceability.common_packages with a THC value greater than or equal to the given value |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "external_id": "string",
- "label": "string",
- "license_number": "string",
- "status": "string",
- "quantity": "string",
- "vendor_type": "string",
- "vendor_fields": {
- "common_package_id": 0,
- "external_last_modified_at": "2019-08-24T14:15:22Z",
- "item_id": 0,
- "item": {
- "id": 0,
- "metrc_id": 0,
- "name": "string",
- "description": "string",
- "ingredients": "string",
- "category_name": "string",
- "category_type": "string",
- "quantity_type": "string",
- "unit_of_measure_name": "string",
- "serving_size": "string",
- "used": true,
- "imported_from_package": true,
- "strain_name": "string",
- "strain": {
- "company_id": 0,
- "metrc_id": 0,
- "license_number": "string",
- "name": "string",
- "is_active": true,
- "indica_percentage": "string",
- "sativa_percentage": "string",
- "thc_level": "string",
- "cbd_level": "string",
- "testing_status": "string"
}, - "metrc_strain_id": 0,
- "doses": "string",
- "unit_cbd_percent": "string",
- "unit_cbd_content": "string",
- "unit_cbd_content_unit_of_measure_name": "string",
- "unit_thc_percent": "string",
- "unit_thc_content": "string",
- "unit_thc_content_unit_of_measure_name": "string",
- "unit_volume": "string",
- "unit_volume_unit_of_measure_name": "string",
- "unit_weight": "string",
- "unit_weight_unit_of_measure_name": "string",
- "unit_quantity": "string",
- "unit_quantity_unit_of_measure_name": "string"
}, - "has_lab_test_document": true,
- "item_from_facility_license_number": "string",
- "item_from_facility_name": "string",
- "note": "string",
- "packaged_date": "2019-08-24",
- "production_batch_number": "string",
- "received_date_time": "string",
- "received_from_facility_license_number": "string",
- "received_from_facility_name": "string",
- "received_from_manifest_number": "string",
- "result_cbc": "string",
- "result_cbg": "string",
- "result_cbga": "string",
- "result_cbn": "string",
- "result_delta10": "string",
- "result_delta8": "string",
- "result_thcv": "string",
- "result_thcva": "string",
- "result_total_thc": "string",
- "source_package_labels": [
- "string"
], - "source_production_batch_numbers": "string",
- "type": "string",
- "unit_of_measure": "string",
- "use_item_level_lab_result": false
}, - "location_id": 0,
- "location": {
- "id": 0,
- "company_id": 0,
- "external_id": "string",
- "vendor_type": "string",
- "label": "string",
- "license_number": "string",
- "name": "string",
- "status": "string",
- "is_excluded": false,
- "vendor_fields": {
- "common_location_id": 0,
- "metrc_type_id": 0,
- "type_name": "string",
- "for_harvests": false,
- "for_packages": false,
- "for_plant_batches": false,
- "for_plants": false
}
}, - "in_transit": true,
- "is_testing_sample": true,
- "lab_test_unit_of_measure": "string",
- "lab_testing_status": "string",
- "ll_product_ids": [
- 0
], - "result_cbd": "string",
- "result_cbda": "string",
- "result_thc": "string",
- "result_thca": "string"
}
]
}
Get all refresh_requests from the traceability service for a company.
company_id required | integer The ID of the viewing company |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
refresh_date | string <date> Filter results by refresh_request.created_at |
search | string A search term. |
status | string Filter results by comma-separated list of refresh statuses |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "created_at": "string",
- "errors": [
- "string"
], - "id": 0,
- "refresh_type": "string",
- "resource_types": [
- "string"
], - "status": "string"
}
]
}
Get templates from the traceability service for company.
company_id required | integer The ID of the viewing company |
limit | integer Limit for results, hard-cap of 25 enforced, default 25 |
ll_order_id | integer Filter results by associated LL order ID |
offset | integer Used for pagination |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string Search term to filter the list by |
ship_date | string <date-time> Filter results by ship date |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "actual_arrival_datetime": "string",
- "actual_departure_datetime": "string",
- "company_id": 0,
- "delivery_count": 0,
- "estimated_arrival_datetime": "string",
- "estimated_departure_datetime": "string",
- "id": 0,
- "last_modified_datetime": "string",
- "license_number": "string",
- "manifest_number": "string",
- "metrc_delivery_id": 0,
- "metrc_id": 0,
- "name": "string",
- "package_count": 0,
- "received_datetime": "string",
- "recipient_facility_license_number": "string",
- "recipient_facility_name": "string",
- "shipment_license_type": "string",
- "shipment_transaction_type": "string",
- "shipment_type_name": "string",
- "shipper_facility_license_number": "string",
- "shipper_facility_name": "string",
- "driver": {
- "id": 0,
- "company_id": 0,
- "external_id": "string",
- "vendor_type": "string",
- "license_number": "string",
- "name": "string",
- "vendor_fields": {
- "common_driver_id": 0,
- "drivers_license_number": "string",
- "employee_id": "string"
}
}, - "vehicle": {
- "id": 0,
- "company_id": 0,
- "external_id": "string",
- "vendor_type": "string",
- "license_number": "string",
- "make": "string",
- "model": "string",
- "license_plate_number": "string"
}, - "turn_by_turn_directions": "string"
}
]
}
Create a new Template in the traceability service.
company_id required | integer The ID of the viewing company |
LeafLink-Version | string <date> |
estimated_departure_datetime | string or null non-empty |
estimated_arrival_datetime | string or null non-empty |
shipment_type_name | string or null non-empty |
ll_order_id | integer or null |
package_labels | Array of strings or null |
object or null | |
driver_id | integer or null |
vehicle_id | integer or null |
turn_by_turn_directions | string or null non-empty |
license_number | string or null non-empty |
destination_company_id required | integer or null |
destination_license_number | string or null non-empty |
{- "estimated_departure_datetime": "string",
- "estimated_arrival_datetime": "string",
- "shipment_type_name": "string",
- "ll_order_id": 0,
- "package_labels": [
- "string"
], - "packages": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "driver_id": 0,
- "vehicle_id": 0,
- "turn_by_turn_directions": "string",
- "license_number": "string",
- "destination_company_id": 0,
- "destination_license_number": "string"
}
{- "template_id": 0
}
Get template by ID for company.
id required | integer ID of requested template |
company_id required | integer The ID of the viewing company |
LeafLink-Version | string <date> |
{- "actual_arrival_datetime": "string",
- "actual_departure_datetime": "string",
- "company_id": 0,
- "delivery_count": 0,
- "estimated_arrival_datetime": "string",
- "estimated_departure_datetime": "string",
- "id": 0,
- "last_modified_datetime": "string",
- "license_number": "string",
- "manifest_number": "string",
- "metrc_delivery_id": 0,
- "metrc_id": 0,
- "name": "string",
- "package_count": 0,
- "received_datetime": "string",
- "recipient_facility_license_number": "string",
- "recipient_facility_name": "string",
- "shipment_license_type": "string",
- "shipment_transaction_type": "string",
- "shipment_type_name": "string",
- "shipper_facility_license_number": "string",
- "shipper_facility_name": "string",
- "driver": {
- "id": 0,
- "company_id": 0,
- "external_id": "string",
- "vendor_type": "string",
- "license_number": "string",
- "name": "string",
- "vendor_fields": {
- "common_driver_id": 0,
- "drivers_license_number": "string",
- "employee_id": "string"
}
}, - "vehicle": {
- "id": 0,
- "company_id": 0,
- "external_id": "string",
- "vendor_type": "string",
- "license_number": "string",
- "make": "string",
- "model": "string",
- "license_plate_number": "string"
}, - "turn_by_turn_directions": "string"
}
Update a template in the traceability service.
id required | integer ID of requested template |
company_id required | integer The ID of the viewing company |
LeafLink-Version | string <date> |
estimated_departure_datetime | string or null non-empty |
estimated_arrival_datetime | string or null non-empty |
shipment_type_name | string or null non-empty |
ll_order_id | integer or null |
package_labels | Array of strings or null |
object or null | |
driver_id | integer or null |
vehicle_id | integer or null |
turn_by_turn_directions | string or null non-empty |
{- "estimated_departure_datetime": "string",
- "estimated_arrival_datetime": "string",
- "shipment_type_name": "string",
- "ll_order_id": 0,
- "package_labels": [
- "string"
], - "packages": {
- "property1": [
- "string"
], - "property2": [
- "string"
]
}, - "driver_id": 0,
- "vehicle_id": 0,
- "turn_by_turn_directions": "string"
}
{- "template_id": 0
}
Get origin/destination companies of a transfer + their associated license
company_id required | integer The ID of the viewing company |
from_shipper | string Filter by Traceability.transfer.shipper_facility_name|shipper_facility_license_number fields contain value |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
to_recipient | string Filter by Traceability.transfer.recipient_facility_name|recipient_facility_license_number fields contain value |
transfer_type | string Filter by Traceability.transfer.type field |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "name": "string",
- "license_number": "string"
}
]
}
Get traceability transfer data. Note: resource_type fields will not be present in the payloads. They are just needed to help define polymorphic fields.
arrival_date | string <date> Filter by Traceability.transfer.arrival_date field |
company_id required | integer The ID of the viewing company |
company_ids | string Filter by Traceability.transfer.company.external_id (marketplace.company.id) field |
exclude_received | boolean Filter by Traceability.transfer.received_datetime field not None |
external_ids | string Filter by Traceability. |
from_shipper | string Filter by Traceability.transfer.shipper_facility_name|shipper_facility_license_number fields contain value |
has_attached_orders | boolean Filter by transfers that are associated with orders in LL |
ids | string Traceability. |
include_package_data | boolean Include delivery packages in response |
limit | integer Limit for results, hard-cap of 25 enforced, default 25 |
metrc_ids | string Filter by Traceability. |
offset | integer Used for pagination |
order_ids | string Filter transfers by Traceability.order_transfer.order_id list field |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string Search term to filter the list by |
ship_date | string <date-time> Filter results by ship date |
sort_by | string Sort results by given field |
to_recipient | string Filter by Traceability.transfer.recipient_facility_name|recipient_facility_license_number fields contain value |
traceability_transfer_external_ids | string Filter by Traceability.transfer.metrc_id field |
transfer_status | string Filter by Traceability.transfer.status field |
transfer_type | string Filter by Traceability.transfer.type field |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "company_id": "string",
- "license_number": "string",
- "manifest_number": "string",
- "package_count": 0,
- "delivery_count": 0,
- "type": "string",
- "status": "string",
- "shipper_facility_license_number": "string",
- "shipper_facility_name": "string",
- "recipient_facility_license_number": "string",
- "actual_departure_datetime": "2019-08-24T14:15:22Z",
- "actual_arrival_datetime": "2019-08-24T14:15:22Z",
- "last_modified_datetime": "2019-08-24T14:15:22Z",
- "orders": [
- {
- "order_number": "string",
- "order_seller_number": "string",
- "seller": {
- "id": 0,
- "name": "string",
- "slug": "string"
}
}
], - "buyer": {
- "name": "string"
}, - "resource_type": "string",
- "metrc_delivery_id": 0,
- "recipient_facility_name": "string",
- "shipment_type_name": "string",
- "shipment_license_type": "string",
- "shipment_transaction_type": "string",
- "received_datetime": "2019-08-24T14:15:22Z",
- "estimated_departure_datetime": "2019-08-24T14:15:22Z",
- "estimated_arrival_datetime": "2019-08-24T14:15:22Z",
- "company_type": "string",
- "metrc_id": 0,
- "delivery": {
- "company_id": "string",
- "license_number": "string",
- "delivery_package_count": 0,
- "recipient_facility_license_number": "string",
- "delivery_received_package_count": 0,
- "received_datetime": "2019-08-24T14:15:22Z",
- "estimated_departure_date_time": "2019-08-24T14:15:22Z",
- "estimated_arrival_time": "2019-08-24T14:15:22Z",
- "recipient_facility_name": "string",
- "shipment_type_name": "string",
- "rejected_packages_returned": true,
- "gross_weight": "string",
- "gross_weight_unit_of_weight_name": "string",
- "metrc_id": 0,
- "transfer_metrc_id": 0,
- "actual_departure_date_time": "2019-08-24T14:15:22Z",
- "actual_arrival_time": "2019-08-24T14:15:22Z"
}, - "delivery_packages": [
- {
- "id": 0,
- "company_id": "string",
- "license_number": "string",
- "package_label": "string",
- "shipment_package_state": "string",
- "shipped_quantity": "string",
- "received_quantity": "string",
- "resource_type": "string",
- "item_metrc_id": 0,
- "product_category_name": "string",
- "item_name": "string",
- "item_unit_volume": 0,
- "item_unit_volume_unit_of_measure_name": "string",
- "item_unit_weight": "string",
- "item_unit_weight_unit_of_measure_name": "string",
- "item_serving_size": "string",
- "item_unit_quantity": "string",
- "item_unit_quantity_unit_of_measure_name": "string",
- "source_package_label": "string",
- "product_name": "string",
- "production_batch_number": 0,
- "shipped_unit_of_measure_name": "string",
- "gross_unit_of_weight_name": "string",
- "received_unit_of_measure_name": "string",
- "is_wholesale": true,
- "shipper_wholesale_price": "string",
- "receiver_wholesale_price": "string",
- "package_metrc_id": 0,
- "delivery_metrc_id": 0
}
]
}
]
}
Get all vehicles
company_id required | integer The ID of the viewing company |
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string Search term to filter the list by |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "company_id": 0,
- "external_id": "string",
- "vendor_type": "string",
- "license_number": "string",
- "make": "string",
- "model": "string",
- "license_plate_number": "string"
}
]
}
Transport Company view set.
id required | integer A unique integer value identifying this transport company. |
LeafLink-Version | string <date> |
{- "transport_company_id": 0,
- "name": "string",
- "medical_license_number": "string",
- "adult_use_license_number": "string",
- "state": "string"
}
Transport partner drivers view set.
id required | integer A unique integer value identifying this driver. |
LeafLink-Version | string <date> |
{- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true,
- "transport_company": {
- "id": 0,
- "name": "string",
- "medical_license_number": "string",
- "adult_use_license_number": "string"
}
}
Transport partner drivers view set.
id required | integer A unique integer value identifying this driver. |
LeafLink-Version | string <date> |
first_name | string (First Name of Driver) [ 1 .. 100 ] characters First Name |
last_name | string [ 1 .. 100 ] characters Last Name of Driver |
metrc_employee_id | string [ 1 .. 100 ] characters METRC Employee ID for Driver |
license_number | string [ 1 .. 15 ] characters License Number of Driver |
phone | string [ 1 .. 15 ] characters Phone Number of Driver |
is_active | boolean (Active) Is an active driver? |
{- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true
}
{- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true,
- "transport_company": {
- "id": 0,
- "name": "string",
- "medical_license_number": "string",
- "adult_use_license_number": "string"
}
}
Unified API product categories.
payment_expected required | string |
status | string (Status of L3Order) Enum: "uploaded" "created" "assigned" "planned" "shipped" "delivered" "deleted" |
requested_pickup_date | string or null <date> (Requested pick up date) Requested pick up date |
expected_pickup_datetime | string or null <date-time> (Expected pick up datetime) Expected pick up date and time |
actual_pickup_datetime | string or null <date-time> (Actual pick up datetime) Actual date time the order was picked up |
requested_delivery_date | string or null <date> Requested delivery date for the order |
expected_delivery_datetime | string or null <date-time> Expected delivery date and time for the order |
actual_delivery_datetime | string or null <date-time> Actual delivery date and time for the order |
required | object (DriverRequest) serializer for Driver Model. |
required | object (InternalVehicleRequest) Internal serializer for Vehicle Model. |
required | object (DriverRequest) serializer for Driver Model. |
required | object (InternalVehicleRequest) Internal serializer for Vehicle Model. |
required | object (PaymentMethodRequest) Serialize payment method. |
required | object (PaymentTermRequest) Serialize payment term. |
customer_notes | string or null Customer notes for the L3 Order |
notes | string or null (Additional Notes) Additional notes for the L3 Order |
eligible_payment_methods | Array of strings (Eligible payment methods for this order) [ items [ 1 .. 100 ] characters ] A selection of eligible payment methods for this order |
payment_method_collected | string (Collected Payment Method) <= 100 characters Payment method used for this order |
collected_payment_amount | string or null <decimal> ^-?\d{0,8}(?:\.\d{0,2})?$ Payment collected at delivery |
delivery_driver_comment | string <= 500 characters Comment from delivery driver for this order |
required | object (InternalLogisticsCompanyRequest) Internal serializer for the Company model to be used by L3 endpoints. |
{- "payment_expected": "string",
- "status": "uploaded",
- "requested_pickup_date": "2019-08-24",
- "expected_pickup_datetime": "2019-08-24T14:15:22Z",
- "actual_pickup_datetime": "2019-08-24T14:15:22Z",
- "requested_delivery_date": "2019-08-24",
- "expected_delivery_datetime": "2019-08-24T14:15:22Z",
- "actual_delivery_datetime": "2019-08-24T14:15:22Z",
- "pickup_driver": {
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true
}, - "pickup_vehicle": {
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true
}, - "delivery_driver": {
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true
}, - "delivery_vehicle": {
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true
}, - "payment_method": {
- "method": "string",
- "description": "string"
}, - "payment_term": {
- "term": "string",
- "description": "string"
}, - "customer_notes": "string",
- "notes": "string",
- "eligible_payment_methods": [
- "string"
], - "payment_method_collected": "string",
- "collected_payment_amount": "string",
- "delivery_driver_comment": "string",
- "brand": {
- "display_name": "string"
}
}
{- "number": "string",
- "invoice_number": "string",
- "mp_order_number": "string",
- "transport_order_id": "string",
- "payment_expected": "string",
- "customer": {
- "property1": null,
- "property2": null
}, - "pickup_address": {
- "property1": null,
- "property2": null
}, - "destination": {
- "property1": null,
- "property2": null
}, - "status": "uploaded",
- "requested_pickup_date": "2019-08-24",
- "expected_pickup_datetime": "2019-08-24T14:15:22Z",
- "actual_pickup_datetime": "2019-08-24T14:15:22Z",
- "requested_delivery_date": "2019-08-24",
- "expected_delivery_datetime": "2019-08-24T14:15:22Z",
- "actual_delivery_datetime": "2019-08-24T14:15:22Z",
- "display_delivery_date": "2019-08-24T14:15:22Z",
- "pickup_driver": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true,
- "transport_company_id": 0
}, - "additional_pickup_drivers": [
- {
- "property1": null,
- "property2": null
}
], - "pickup_vehicle": {
- "id": 0,
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true
}, - "delivery_driver": {
- "id": 0,
- "first_name": "string",
- "last_name": "string",
- "metrc_employee_id": "string",
- "license_number": "string",
- "phone": "string",
- "is_active": true,
- "transport_company_id": 0
}, - "delivery_vehicle": {
- "id": 0,
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true
}, - "payment_method": {
- "id": 0,
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "method": "string",
- "description": "string"
}, - "payment_term": {
- "id": 0,
- "created_on": "2019-08-24T14:15:22Z",
- "modified": "2019-08-24T14:15:22Z",
- "term": "string",
- "description": "string"
}, - "customer_notes": "string",
- "notes": "string",
- "eligible_payment_methods": [
- "string"
], - "payment_method_collected": "string",
- "collected_payment_amount": "string",
- "delivery_driver_comment": "string",
- "metrc_transfer": {
- "property1": null,
- "property2": null
}, - "created_on": "2019-08-24T14:15:22Z",
- "transport_company": {
- "transport_company_id": 0,
- "name": "string",
- "medical_license_number": "string",
- "adult_use_license_number": "string",
- "state": "string"
}, - "brand": {
- "id": 0,
- "display_name": "string",
- "licenses": [
- {
- "id": 0,
- "number": "string",
- "type": "string",
- "display_type": "string",
- "classification": "string"
}
], - "delivery_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}, - "corporate_address": {
- "address": "string",
- "unit_number": "string",
- "city": "string",
- "county": "string",
- "state": "string",
- "zipcode": "string"
}
}
}
Company transport partner view set.
id required | integer A unique integer value identifying this company transport partner. |
LeafLink-Version | string <date> |
{- "id": 0,
- "company": {
- "id": 0,
- "name": "string",
- "image_url": "string"
}, - "transport_company": {
- "transport_company_id": 0,
- "name": "string",
- "medical_license_number": "string",
- "adult_use_license_number": "string",
- "state": "string"
}
}
Transport partner vehicle view set.
id required | integer A unique integer value identifying this vehicle. |
LeafLink-Version | string <date> |
{- "id": 0,
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true,
- "state": {
- "id": 0,
- "abbr": "st",
- "name": "string",
- "country": {
- "id": 0,
- "abbr": "str",
- "iso_code": "string",
- "name": "string"
}
}
}
Transport partner vehicle view set.
id required | integer A unique integer value identifying this vehicle. |
LeafLink-Version | string <date> |
make | string or null (Vehicle Make) <= 255 characters Vehicle Make |
model_year | integer or null [ -2147483648 .. 2147483647 ] Vehicle Model Year |
model_name | string or null <= 255 characters Vehicle Model Name |
license_number | string or null <= 15 characters License Number of Vehicle |
capacity | integer or null [ -2147483648 .. 2147483647 ] Vehicle Capacity |
has_air_conditioner | boolean Vehicle Has Air Conditioner |
{- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true
}
{- "id": 0,
- "make": "string",
- "model_year": -2147483648,
- "model_name": "string",
- "license_number": "string",
- "capacity": -2147483648,
- "has_air_conditioner": true,
- "state": {
- "id": 0,
- "abbr": "st",
- "name": "string",
- "country": {
- "id": 0,
- "abbr": "str",
- "iso_code": "string",
- "name": "string"
}
}
}
List all Unit Denominations
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "value": "string",
- "name": "string",
- "label": "string",
- "description": "string"
}
]
}
Get a Unit Denomination by ID
id required | integer A unique integer value identifying this unit denomination. |
LeafLink-Version | string <date> |
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "value": "string",
- "name": "string",
- "label": "string",
- "description": "string"
}
List all Unit of Measures
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "unit": "string",
- "plural": "string",
- "abbreviation": "string",
- "multiple": true,
- "ALLOW_FRACTIONAL": true,
- "universal_name": "string",
- "unconvertible": true,
- "base_only": true
}
]
}
Get a Unit of Measure by ID
id required | integer A unique integer value identifying this unit of measure. |
LeafLink-Version | string <date> |
{- "id": 0,
- "created_date": "2019-08-24T14:15:22Z",
- "modified_date": "2019-08-24T14:15:22Z",
- "unit": "string",
- "plural": "string",
- "abbreviation": "string",
- "multiple": true,
- "ALLOW_FRACTIONAL": true,
- "universal_name": "string",
- "unconvertible": true,
- "base_only": true
}
ordering | string Which field to use when ordering the results. |
page | integer A page number within the paginated result set. |
page_size | integer Number of results to return per page. |
search | string A search term. |
LeafLink-Version | string <date> |
{- "count": 123,
- "results": [
- {
- "id": 0,
- "name": "string",
- "sponsorship": {
- "rank": 0,
- "provider_id": "string",
- "ad_id": "string",
- "campaign_id": "string",
- "target_url": "string",
- "click_url": "string",
- "creative": {
- "property1": null,
- "property2": null
}, - "impression_url": "string",
- "items": [
], - "page_load_id": "string",
- "placement": {
- "id": "string",
- "style": "string",
- "provider": "string"
}, - "target_company_id": 0,
- "target_user_id": 0,
- "target_resource_id": "string",
- "target_resource_name": "string"
},
}
]
}
id required | string |
LeafLink-Version | string <date> |
{- "id": 0,
- "name": "string",
- "sponsorship": {
- "rank": 0,
- "provider_id": "string",
- "ad_id": "string",
- "campaign_id": "string",
- "target_url": "string",
- "click_url": "string",
- "creative": {
- "property1": null,
- "property2": null
}, - "impression_url": "string",
- "items": [
], - "page_load_id": "string",
- "placement": {
- "id": "string",
- "style": "string",
- "provider": "string"
}, - "target_company_id": 0,
- "target_user_id": 0,
- "target_resource_id": "string",
- "target_resource_name": "string"
},
}