The Supplier 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: false
Default: false
Default: Company
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
{
"id": "supplier_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"supplier_name": "supplier_name_example",
"country": "country_example",
"default_bank_account": "default_bank_account_example",
"tax_id": "tax_id_example",
"tax_category": "tax_category_example",
"tax_withholding_category": "tax_withholding_category_example",
"is_transporter": false,
"is_internal_supplier": false,
"represents_company": "Example Corp",
"image": "image_example",
"supplier_group": "supplier_group_example",
"supplier_type": "Company",
"language": "language_example",
"disabled": false,
"warn_rfqs": false,
"warn_pos": false,
"prevent_rfqs": false,
"prevent_pos": false,
"default_currency": "USD",
"default_price_list": "default_price_list_example",
"payment_terms": "payment_terms_example",
"on_hold": false,
"hold_type": "hold_type_example",
"release_date": "2024-01-15",
"website": "website_example",
"supplier_details": "supplier_details_example",
"is_frozen": false,
"allow_purchase_invoice_creation_without_purchase_order": false,
"allow_purchase_invoice_creation_without_purchase_receipt": false,
"supplier_primary_contact": "supplier_primary_contact_example",
"mobile_no": "mobile_no_example",
"email_id": "user@example.com",
"primary_address": "primary_address_example",
"supplier_primary_address": "supplier_primary_address_example",
"tax_withholding_group": "tax_withholding_group_example",
"gender": "gender_example"
} /api/buying/supplier/{id} Retrieve a supplier
Retrieves the details of an existing supplier. Supply the unique supplier ID that was returned from a previous request.
Path parameters
The identifier of the supplier to retrieve.
Returns
Returns the supplier object if a valid identifier was provided.
curl https://api.overplane.dev/api/buying/supplier/supplier_abc123 \
-H "Authorization: Bearer sk_test_..." {
"id": "supplier_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"supplier_name": "supplier_name_example",
"country": "country_example",
"default_bank_account": "default_bank_account_example",
"tax_id": "tax_id_example",
"tax_category": "tax_category_example",
"tax_withholding_category": "tax_withholding_category_example",
"is_transporter": false,
"is_internal_supplier": false,
"represents_company": "Example Corp",
"image": "image_example",
"supplier_group": "supplier_group_example",
"supplier_type": "Company",
"language": "language_example",
"disabled": false,
"warn_rfqs": false,
"warn_pos": false,
"prevent_rfqs": false,
"prevent_pos": false,
"default_currency": "USD",
"default_price_list": "default_price_list_example",
"payment_terms": "payment_terms_example",
"on_hold": false,
"hold_type": "hold_type_example",
"release_date": "2024-01-15",
"website": "website_example",
"supplier_details": "supplier_details_example",
"is_frozen": false,
"allow_purchase_invoice_creation_without_purchase_order": false,
"allow_purchase_invoice_creation_without_purchase_receipt": false,
"supplier_primary_contact": "supplier_primary_contact_example",
"mobile_no": "mobile_no_example",
"email_id": "user@example.com",
"primary_address": "primary_address_example",
"supplier_primary_address": "supplier_primary_address_example",
"tax_withholding_group": "tax_withholding_group_example",
"gender": "gender_example"
} /api/buying/supplier List all suppliers
Returns a list of suppliers. 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 supplier objects.
curl https://api.overplane.dev/api/buying/supplier \
-H "Authorization: Bearer sk_test_..." {
"data": [
{
"id": "supplier_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"supplier_name": "supplier_name_example",
"country": "country_example",
"default_bank_account": "default_bank_account_example",
"tax_id": "tax_id_example",
"tax_category": "tax_category_example",
"tax_withholding_category": "tax_withholding_category_example",
"is_transporter": false,
"is_internal_supplier": false,
"represents_company": "Example Corp",
"image": "image_example",
"supplier_group": "supplier_group_example",
"supplier_type": "Company",
"language": "language_example",
"disabled": false,
"warn_rfqs": false,
"warn_pos": false,
"prevent_rfqs": false,
"prevent_pos": false,
"default_currency": "USD",
"default_price_list": "default_price_list_example",
"payment_terms": "payment_terms_example",
"on_hold": false,
"hold_type": "hold_type_example",
"release_date": "2024-01-15",
"website": "website_example",
"supplier_details": "supplier_details_example",
"is_frozen": false,
"allow_purchase_invoice_creation_without_purchase_order": false,
"allow_purchase_invoice_creation_without_purchase_receipt": false,
"supplier_primary_contact": "supplier_primary_contact_example",
"mobile_no": "mobile_no_example",
"email_id": "user@example.com",
"primary_address": "primary_address_example",
"supplier_primary_address": "supplier_primary_address_example",
"tax_withholding_group": "tax_withholding_group_example",
"gender": "gender_example"
}
],
"has_more": false,
"total": 1
} /api/buying/supplier Create a supplier
Creates a new supplier object.
Body parameters
Default: false
Default: false
Default: Company
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
Returns
Returns the newly created supplier object if the call succeeded.
curl https://api.overplane.dev/api/buying/supplier \
-H "Authorization: Bearer sk_test_..." \
-X POST \
-H "Content-Type: application/json" \
-d '{"supplier_name":"supplier_name_example"}' {
"id": "supplier_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"supplier_name": "supplier_name_example",
"country": "country_example",
"default_bank_account": "default_bank_account_example",
"tax_id": "tax_id_example",
"tax_category": "tax_category_example",
"tax_withholding_category": "tax_withholding_category_example",
"is_transporter": false,
"is_internal_supplier": false,
"represents_company": "Example Corp",
"image": "image_example",
"supplier_group": "supplier_group_example",
"supplier_type": "Company",
"language": "language_example",
"disabled": false,
"warn_rfqs": false,
"warn_pos": false,
"prevent_rfqs": false,
"prevent_pos": false,
"default_currency": "USD",
"default_price_list": "default_price_list_example",
"payment_terms": "payment_terms_example",
"on_hold": false,
"hold_type": "hold_type_example",
"release_date": "2024-01-15",
"website": "website_example",
"supplier_details": "supplier_details_example",
"is_frozen": false,
"allow_purchase_invoice_creation_without_purchase_order": false,
"allow_purchase_invoice_creation_without_purchase_receipt": false,
"supplier_primary_contact": "supplier_primary_contact_example",
"mobile_no": "mobile_no_example",
"email_id": "user@example.com",
"primary_address": "primary_address_example",
"supplier_primary_address": "supplier_primary_address_example",
"tax_withholding_group": "tax_withholding_group_example",
"gender": "gender_example"
} /api/buying/supplier/{id} Update a supplier
Updates the specified supplier by setting the values of the parameters passed. Any parameters not provided will be left unchanged.
Path parameters
The identifier of the supplier to update.
Body parameters
Default: false
Default: false
Default: Company
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
Default: false
Returns
Returns the updated supplier object.
curl https://api.overplane.dev/api/buying/supplier/supplier_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X PATCH \
-H "Content-Type: application/json" \
-d '{"supplier_name":"supplier_name_example","country":"country_example"}' {
"id": "supplier_abc123",
"created_at": "2024-01-15T09: 30: 00Z",
"updated_at": "2024-01-15T09: 30: 00Z",
"supplier_name": "supplier_name_example",
"country": "country_example",
"default_bank_account": "default_bank_account_example",
"tax_id": "tax_id_example",
"tax_category": "tax_category_example",
"tax_withholding_category": "tax_withholding_category_example",
"is_transporter": false,
"is_internal_supplier": false,
"represents_company": "Example Corp",
"image": "image_example",
"supplier_group": "supplier_group_example",
"supplier_type": "Company",
"language": "language_example",
"disabled": false,
"warn_rfqs": false,
"warn_pos": false,
"prevent_rfqs": false,
"prevent_pos": false,
"default_currency": "USD",
"default_price_list": "default_price_list_example",
"payment_terms": "payment_terms_example",
"on_hold": false,
"hold_type": "hold_type_example",
"release_date": "2024-01-15",
"website": "website_example",
"supplier_details": "supplier_details_example",
"is_frozen": false,
"allow_purchase_invoice_creation_without_purchase_order": false,
"allow_purchase_invoice_creation_without_purchase_receipt": false,
"supplier_primary_contact": "supplier_primary_contact_example",
"mobile_no": "mobile_no_example",
"email_id": "user@example.com",
"primary_address": "primary_address_example",
"supplier_primary_address": "supplier_primary_address_example",
"tax_withholding_group": "tax_withholding_group_example",
"gender": "gender_example"
} /api/buying/supplier/{id} Delete a supplier
Permanently deletes a supplier. This cannot be undone.
Path parameters
The identifier of the supplier to delete.
Returns
Returns a confirmation that the supplier has been deleted.
curl https://api.overplane.dev/api/buying/supplier/supplier_abc123 \
-H "Authorization: Bearer sk_test_..." \
-X DELETE {
"id": "supplier_abc123",
"deleted": true
} Line items
Child objects that belong to this supplier. These are accessed via the parent's ID.
Customer Number At Supplier
Attributes
Endpoints
/api/buying/customer-number-at-supplier?parent_id={id} /api/buying/customer-number-at-supplier /api/buying/customer-number-at-supplier/{id} /api/buying/customer-number-at-supplier/{id} /api/buying/customer-number-at-supplier/reorder {
"id": "customer-number-at-supplier_abc123",
"idx": 1,
"supplier_id": "supplier_id_example",
"company": "Example Corp",
"customer_number": "customer_number_example"
}