The Customer object
Attributes
Unique identifier for the object.
ISO 8601 timestamp of when the object was created.
ISO 8601 timestamp of when the object was last updated.
Default: Company
Default: false
Default: false
Default: false
Default: false
Default: false
{
"id": "customer_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"customer_name": "customer_name_example",
"gender": "gender_example",
"customer_type": "Company",
"default_bank_account": "default_bank_account_example",
"lead_name": "lead_name_example",
"image": "image_example",
"account_manager": "account_manager_example",
"customer_group": "customer_group_example",
"territory": "territory_example",
"tax_id": "tax_id_example",
"tax_category": "tax_category_example",
"disabled": false,
"is_internal_customer": false,
"represents_company": "Example Corp",
"default_currency": "USD",
"default_price_list": "default_price_list_example",
"language": "language_example",
"website": "website_example",
"customer_primary_contact": "customer_primary_contact_example",
"mobile_no": "mobile_no_example",
"email_id": "user@example.com",
"customer_primary_address": "customer_primary_address_example",
"primary_address": "primary_address_example",
"payment_terms": "payment_terms_example",
"customer_details": "customer_details_example",
"market_segment": "market_segment_example",
"industry": "industry_example",
"is_frozen": false,
"loyalty_program": "loyalty_program_example",
"loyalty_program_tier": "loyalty_program_tier_example",
"default_sales_partner": "default_sales_partner_example",
"default_commission_rate": 0,
"customer_pos_id": "customer_pos_id_example",
"so_required": false,
"dn_required": false,
"tax_withholding_category": "tax_withholding_category_example",
"opportunity_name": "opportunity_name_example",
"prospect_name": "prospect_name_example",
"first_name": "first_name_example",
"last_name": "last_name_example",
"tax_withholding_group": "tax_withholding_group_example"
} /api/crm/customer/{id} Retrieve a customer
Retrieves the details of an existing customer. Supply the unique customer ID that was returned from a previous request.
Path parameters
The identifier of the customer to retrieve.
Returns
Returns the customer object if a valid identifier was provided.
curl https://api.overplane.dev/api/crm/customer/customer_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "customer_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"customer_name": "customer_name_example",
"gender": "gender_example",
"customer_type": "Company",
"default_bank_account": "default_bank_account_example",
"lead_name": "lead_name_example",
"image": "image_example",
"account_manager": "account_manager_example",
"customer_group": "customer_group_example",
"territory": "territory_example",
"tax_id": "tax_id_example",
"tax_category": "tax_category_example",
"disabled": false,
"is_internal_customer": false,
"represents_company": "Example Corp",
"default_currency": "USD",
"default_price_list": "default_price_list_example",
"language": "language_example",
"website": "website_example",
"customer_primary_contact": "customer_primary_contact_example",
"mobile_no": "mobile_no_example",
"email_id": "user@example.com",
"customer_primary_address": "customer_primary_address_example",
"primary_address": "primary_address_example",
"payment_terms": "payment_terms_example",
"customer_details": "customer_details_example",
"market_segment": "market_segment_example",
"industry": "industry_example",
"is_frozen": false,
"loyalty_program": "loyalty_program_example",
"loyalty_program_tier": "loyalty_program_tier_example",
"default_sales_partner": "default_sales_partner_example",
"default_commission_rate": 0,
"customer_pos_id": "customer_pos_id_example",
"so_required": false,
"dn_required": false,
"tax_withholding_category": "tax_withholding_category_example",
"opportunity_name": "opportunity_name_example",
"prospect_name": "prospect_name_example",
"first_name": "first_name_example",
"last_name": "last_name_example",
"tax_withholding_group": "tax_withholding_group_example"
} /api/crm/customer List all customers
Returns a list of customers. The results are sorted by creation date, with the most recently created appearing first.
Query parameters
Maximum number of objects to return. Default: 20.
Number of objects to skip for pagination. Default: 0.
Returns
A paginated list of customer objects.
curl https://api.overplane.dev/api/crm/customer \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "customer_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"customer_name": "customer_name_example",
"gender": "gender_example",
"customer_type": "Company",
"default_bank_account": "default_bank_account_example",
"lead_name": "lead_name_example",
"image": "image_example",
"account_manager": "account_manager_example",
"customer_group": "customer_group_example",
"territory": "territory_example",
"tax_id": "tax_id_example",
"tax_category": "tax_category_example",
"disabled": false,
"is_internal_customer": false,
"represents_company": "Example Corp",
"default_currency": "USD",
"default_price_list": "default_price_list_example",
"language": "language_example",
"website": "website_example",
"customer_primary_contact": "customer_primary_contact_example",
"mobile_no": "mobile_no_example",
"email_id": "user@example.com",
"customer_primary_address": "customer_primary_address_example",
"primary_address": "primary_address_example",
"payment_terms": "payment_terms_example",
"customer_details": "customer_details_example",
"market_segment": "market_segment_example",
"industry": "industry_example",
"is_frozen": false,
"loyalty_program": "loyalty_program_example",
"loyalty_program_tier": "loyalty_program_tier_example",
"default_sales_partner": "default_sales_partner_example",
"default_commission_rate": 0,
"customer_pos_id": "customer_pos_id_example",
"so_required": false,
"dn_required": false,
"tax_withholding_category": "tax_withholding_category_example",
"opportunity_name": "opportunity_name_example",
"prospect_name": "prospect_name_example",
"first_name": "first_name_example",
"last_name": "last_name_example",
"tax_withholding_group": "tax_withholding_group_example"
}
],
"has_more": false,
"total": 1
} /api/crm/customer Create a customer
Creates a new customer object.
Body parameters
Default: Company
Default: false
Default: false
Default: false
Default: false
Default: false
Returns
Returns the newly created customer object if the call succeeded.
curl https://api.overplane.dev/api/crm/customer \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"customer_name":"customer_name_example"}' {
"id": "customer_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"customer_name": "customer_name_example",
"gender": "gender_example",
"customer_type": "Company",
"default_bank_account": "default_bank_account_example",
"lead_name": "lead_name_example",
"image": "image_example",
"account_manager": "account_manager_example",
"customer_group": "customer_group_example",
"territory": "territory_example",
"tax_id": "tax_id_example",
"tax_category": "tax_category_example",
"disabled": false,
"is_internal_customer": false,
"represents_company": "Example Corp",
"default_currency": "USD",
"default_price_list": "default_price_list_example",
"language": "language_example",
"website": "website_example",
"customer_primary_contact": "customer_primary_contact_example",
"mobile_no": "mobile_no_example",
"email_id": "user@example.com",
"customer_primary_address": "customer_primary_address_example",
"primary_address": "primary_address_example",
"payment_terms": "payment_terms_example",
"customer_details": "customer_details_example",
"market_segment": "market_segment_example",
"industry": "industry_example",
"is_frozen": false,
"loyalty_program": "loyalty_program_example",
"loyalty_program_tier": "loyalty_program_tier_example",
"default_sales_partner": "default_sales_partner_example",
"default_commission_rate": 0,
"customer_pos_id": "customer_pos_id_example",
"so_required": false,
"dn_required": false,
"tax_withholding_category": "tax_withholding_category_example",
"opportunity_name": "opportunity_name_example",
"prospect_name": "prospect_name_example",
"first_name": "first_name_example",
"last_name": "last_name_example",
"tax_withholding_group": "tax_withholding_group_example"
} /api/crm/customer/{id} Update a customer
Updates the specified customer by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the customer to update.
Body parameters
Default: Company
Default: false
Default: false
Default: false
Default: false
Default: false
Returns
Returns the updated customer object.
curl https://api.overplane.dev/api/crm/customer/customer_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"customer_name":"customer_name_example","gender":"gender_example"}' {
"id": "customer_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"customer_name": "customer_name_example",
"gender": "gender_example",
"customer_type": "Company",
"default_bank_account": "default_bank_account_example",
"lead_name": "lead_name_example",
"image": "image_example",
"account_manager": "account_manager_example",
"customer_group": "customer_group_example",
"territory": "territory_example",
"tax_id": "tax_id_example",
"tax_category": "tax_category_example",
"disabled": false,
"is_internal_customer": false,
"represents_company": "Example Corp",
"default_currency": "USD",
"default_price_list": "default_price_list_example",
"language": "language_example",
"website": "website_example",
"customer_primary_contact": "customer_primary_contact_example",
"mobile_no": "mobile_no_example",
"email_id": "user@example.com",
"customer_primary_address": "customer_primary_address_example",
"primary_address": "primary_address_example",
"payment_terms": "payment_terms_example",
"customer_details": "customer_details_example",
"market_segment": "market_segment_example",
"industry": "industry_example",
"is_frozen": false,
"loyalty_program": "loyalty_program_example",
"loyalty_program_tier": "loyalty_program_tier_example",
"default_sales_partner": "default_sales_partner_example",
"default_commission_rate": 0,
"customer_pos_id": "customer_pos_id_example",
"so_required": false,
"dn_required": false,
"tax_withholding_category": "tax_withholding_category_example",
"opportunity_name": "opportunity_name_example",
"prospect_name": "prospect_name_example",
"first_name": "first_name_example",
"last_name": "last_name_example",
"tax_withholding_group": "tax_withholding_group_example"
} /api/crm/customer/{id} Delete a customer
Permanently deletes a customer. This cannot be undone.
Path parameters
The identifier of the customer to delete.
Returns
Returns a confirmation that the customer has been deleted.
curl https://api.overplane.dev/api/crm/customer/customer_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "customer_abc123",
"deleted": true
} Line items
Child objects that belong to this customer. These are accessed via the parent's ID.
Supplier Number At Customer
Attributes
Endpoints
/api/crm/supplier-number-at-customer?parent_id={id} /api/crm/supplier-number-at-customer /api/crm/supplier-number-at-customer/{id} /api/crm/supplier-number-at-customer/{id} /api/crm/supplier-number-at-customer/reorder {
"id": "supplier-number-at-customer_abc123",
"idx": 1,
"customer_id": "customer_id_example",
"company": "Example Corp",
"supplier_number": "supplier_number_example"
}