Apicbase

App · 29 actions

Manage a food and beverage library: recipes, ingredients and suppliers, purchase orders, invoices, deliveries and waste.

Actions

ActionWhat it does
Create ingredientAdd an ingredient to the library.
Create invoiceRecord a supplier's invoice against one or more purchase orders.
Create purchase orderStart a purchase order for an outlet with one supplier package.
Create recipeAdd a recipe to the library.
Create supplierAdd a supplier to the library.
Delete invoiceDelete an invoice record.
Delete purchase orderDelete a purchase order.
Get ingredientGet one ingredient with its details, allergens and stock items.
Get invoiceGet one invoice record with its purchase orders and files.
Get purchase orderGet one purchase order with its packages and prices.
Get recipeGet one recipe with its ingredients, steps and prices.
Get recipe financialsGet a recipe's food cost, prime cost and profit per serving at an outlet.
Get revenueGet an outlet's total revenue over a range of dates, from its point of sale.
Get supplierGet one supplier with its contact, address and ordering settings.
List deliveriesList received deliveries, optionally by purchase order, supplier, outlet or delivery date.
List ingredientsList the library's ingredients, optionally by name, category, supplier, or when they were added or changed.
List invoicesList invoice records, optionally by search text, outlet, supplier, approval status or date.
List outletsList the library's outlets (kitchens, restaurants, shops).
List purchase ordersList purchase orders, optionally by supplier, outlet, status or order date.
List recipesList the library's recipes, optionally by name, type, stage, outlet, or when they were added or changed.
List stock itemsList the library's stock items (the packages ingredients are kept in).
List supplier packagesList the packages suppliers sell, with their article numbers and prices.
List suppliersList the library's suppliers, optionally by name, email or VAT number.
List waste eventsList an outlet's waste events and the stock value lost.
Set invoice approval statusApprove, flag, reject or mark an invoice paid.
Update ingredientChange an ingredient, or archive it.
Update invoiceChange an invoice record.
Update recipeChange a recipe.
Update supplierChange a supplier's details.

Create ingredient

Add an ingredient to the library.

Inputs

NamenametextRequired
The ingredient's name.
Short nameshort_nametext
A short name.
Reference numberinternal_uidtext
Your reference number for it.
External IDexternal_uidtext
An outside system's ID.
Descriptiondescriptiontext
Description.
Brandbrandtext
Brand.
Categorycategorytext
Category, such as Dairy.
Subcategorysubcategorytext
Subcategory, such as Milk.
Accounting categoryaccounting_categorytext
Accounting category.
Storage instructionsstorage_instructionstext
How to store it.
Shelf lifeshelf_lifetext
How long it keeps.
Approvedapprovedtrue/false
Whether it's approved.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "id": "example",
    "instance": "example"
  }
}

Create invoice

Record a supplier's invoice against one or more purchase orders.

Inputs

OutletoutlettextRequired
The outlet the invoice is for.
SuppliersuppliertextRequired
The supplier who sent it.
Invoice numberinvoice_numbertextRequired
The invoice's number.
Purchase orderspurchase_orderslistRequired
The purchase orders it bills, by ID.
Invoice dateinvoice_datedateRequired
The date on the invoice.
Due datedue_datedate
When it's due.
Totaltotal_amountnumberRequired
The invoice total.
Credit noteis_credit_notetrue/false
Whether it's a credit note.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "approval_status": "example",
    "approved_by": {
      "id": "example",
      "name": "example"
    },
    "created_at": "example",
    "created_by": {
      "id": "example",
      "name": "example"
    },
    "due_date": "example",
    "id": "example",
    "invoice_date": "example",
    "invoice_number": "example",
    "is_credit_note": true,
    "outlet": {
      "id": "example",
      "name": "example"
    },
    "processing_status": "example",
    "purchase_orders": [
      {
        "id": "example",
        "order_number": "example"
      }
    ],
    "purchase_orders_total_amount": "example",
    "supplier": {
      "id": "example",
      "internal_supplier_id": "example",
      "name": "example"
    },
    "total_amount": "example",
    "total_amount_difference": "example",
    "total_amount_sentence": "example",
    "updated_at": "example"
  }
}

Create purchase order

Start a purchase order for an outlet with one supplier package. It stays In progress until it's sent from Apicbase.

Inputs

OutletoutlettextRequired
The outlet that orders.
Supplier packagesupplier_packagetextRequired
The supplier package to order (its ID).
Quantityquantitynumber
How many packages.At least 0.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "purchase_orders": [
      {
        "delivery_closed": true,
        "expected_delivery_date": "example",
        "id": "example",
        "invoice_number": "example",
        "invoice_status": "example",
        "order_number": "example",
        "order_remarks": "example",
        "ordered_on": "example",
        "outlet": {
          "id": "example",
          "name": "example"
        },
        "owned_by": {
          "first_name": "example",
          "id": "example",
          "last_name": "example",
          "username": "example"
        },
        "packages": [
          {
            "id": "example",
            "quantity_ordered": 1,
            "stock_item": {
              "id": "example",
              "name": "example"
            },
            "supplier_package": {
              "id": "example",
              "supplier_article_number": "example",
              "supplier_product_name": "example"
            },
            "total_theoretical_price": "example"
          }
        ],
        "status": "example",
        "supplier": {
          "company_name": "example",
          "id": "example"
        },
        "theoretical_price": "example"
      }
    ]
  }
}

Create recipe

Add a recipe to the library.

Inputs

NamenametextRequired
The recipe's name.
ServingspersonsnumberRequired
How many servings it makes.At least 1.
Referenceuidtext
Your reference number for it.
Descriptiondescriptiontext
Description.
Cuisinecuisinetext
Cuisine, such as Italian.
Typerecipe_typetext
Course or kind.One of: amuse_bouche (Amuse bouche), base_recipe (Base recipe), soup, starter, entremet, main_course (Main course), dessert, drinks, other.
Stagerecipe_stagetext
Where the recipe is in its life.One of: development, testing, complete, active, discontinued.
Seasonseasontext
Season.One of: all_seasons (All seasons), winter, spring, summer, autumn.
Categorycategorytext
Category.
Subcategorysubcategorytext
Subcategory.
Sell pricesell_pricenumber
The selling price.
Tax %taxnumber
The tax rate, in percent.
Target margin %target_profit_marginnumber
The target profit margin, in percent.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "id": "example",
    "instance": "example"
  }
}

Create supplier

Add a supplier to the library.

Inputs

NamenametextRequired
The supplier's company name.
Contact first namecontact_first_nametext
The contact person's first name.
Contact last namecontact_last_nametext
The contact person's last name.
Order emailsorder_emailslist
Where purchase orders are emailed.
Tax numbertax_numbertext
VAT or tax number.
Customer numbercustomer_numbertext
Your customer number at the supplier.
Internal IDinternal_supplier_idtext
Your own reference for the supplier.
Delivery feedelivery_feenumber
The standard delivery fee.
Outletsoutletslist
The outlets that order from this supplier.
Streetstreettext
Street.
Numberhouse_numbertext
House number.
Postal codepostal_codetext
Postal code.
Citycitytext
City.
Countrycountrytext
Country.
Phonetelephonetext
Phone number.
Notesnotestext
Notes.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "id": "example",
    "instance": "example"
  }
}

Delete invoice

Delete an invoice record.

Inputs

Invoiceinvoice_idtextRequired
The invoice.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "deleted": true,
    "id": "example"
  }
}

Delete purchase order

Delete a purchase order.

Inputs

Purchase orderpurchase_order_idtextRequired
The purchase order.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "deleted": true,
    "id": "example"
  }
}

Get ingredient

Get one ingredient with its details, allergens and stock items.

Inputs

Ingredientingredient_idtextRequired
The ingredient.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "accounting_category": "example",
    "approved": true,
    "archived": true,
    "brand": "example",
    "category": "example",
    "composition": "example",
    "created_by": "example",
    "created_date": "example",
    "description": "example",
    "external_uid": "example",
    "id": "example",
    "in_use": true,
    "internal_uid": "example",
    "modified_date": "example",
    "name": "example",
    "short_name": "example",
    "storage_instructions": "example",
    "subcategory": "example",
    "url": "example",
    "web_page": "example"
  }
}

Get invoice

Get one invoice record with its purchase orders and files.

Inputs

Invoiceinvoice_idtextRequired
The invoice.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "approval_status": "example",
    "approved_by": {
      "id": "example",
      "name": "example"
    },
    "created_at": "example",
    "created_by": {
      "id": "example",
      "name": "example"
    },
    "due_date": "example",
    "id": "example",
    "invoice_date": "example",
    "invoice_number": "example",
    "is_credit_note": true,
    "outlet": {
      "id": "example",
      "name": "example"
    },
    "processing_status": "example",
    "purchase_orders": [
      {
        "id": "example",
        "order_number": "example"
      }
    ],
    "purchase_orders_total_amount": "example",
    "supplier": {
      "id": "example",
      "internal_supplier_id": "example",
      "name": "example"
    },
    "total_amount": "example",
    "total_amount_difference": "example",
    "total_amount_sentence": "example",
    "updated_at": "example"
  }
}

Get purchase order

Get one purchase order with its packages and prices.

Inputs

Purchase orderpurchase_order_idtextRequired
The purchase order.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "delivery_closed": true,
    "expected_delivery_date": "example",
    "id": "example",
    "invoice_number": "example",
    "invoice_status": "example",
    "order_number": "example",
    "order_remarks": "example",
    "ordered_on": "example",
    "outlet": {
      "id": "example",
      "name": "example"
    },
    "owned_by": {
      "first_name": "example",
      "id": "example",
      "last_name": "example",
      "username": "example"
    },
    "packages": [
      {
        "id": "example",
        "quantity_ordered": 1,
        "stock_item": {
          "id": "example",
          "name": "example"
        },
        "supplier_package": {
          "id": "example",
          "supplier_article_number": "example",
          "supplier_product_name": "example"
        },
        "total_theoretical_price": "example"
      }
    ],
    "status": "example",
    "supplier": {
      "company_name": "example",
      "id": "example"
    },
    "theoretical_price": "example"
  }
}

Get recipe

Get one recipe with its ingredients, steps and prices.

Inputs

Reciperecipe_idtextRequired
The recipe.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "category": "example",
    "created_by": "example",
    "created_date": "example",
    "cuisine": "example",
    "current_sell_price": {
      "created": "example",
      "pricing": 1,
      "username": "example"
    },
    "description": "example",
    "id": "example",
    "is_stockable_recipe": true,
    "modified_date": "example",
    "name": "example",
    "persons": 1,
    "recipe_class": "example",
    "recipe_stage": "example",
    "recipe_type": "example",
    "season": "example",
    "subcategory": "example",
    "target_profit_margin": "example",
    "tax": "example",
    "uid": "example",
    "url": "example",
    "web_page": "example"
  }
}

Get recipe financials

Get a recipe's food cost, prime cost and profit per serving at an outlet.

Inputs

Reciperecipe_idtextRequired
The recipe.
OutletoutlettextRequired
The outlet whose prices to use.
Food cost fromfood_cost_modetext
Which price each ingredient is costed at: the cheapest (the default), the last ordered, or the average stock value.One of: cheapest, last_ordered (Last ordered), average_stock_value (Average stock value).

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "actual_for_one_serving": {
      "profit": "example",
      "profit_margin": "example",
      "sell_price_excl_tax": "example",
      "sell_price_incl_tax": "example"
    },
    "cost_for_one_serving": {
      "ingredients_cost": "example",
      "personnel_cost": "example",
      "prime_cost": "example",
      "total_food_cost": "example",
      "waste": "example"
    },
    "food_cost_mode": "example",
    "id": "example",
    "ingredients": [
      {
        "calculated_cost": "example",
        "id": "example",
        "name": "example",
        "quantity": "example",
        "type": "example",
        "unit": "example"
      }
    ],
    "internal_uid": "example",
    "name": "example",
    "servings": 1,
    "target_for_one_serving": {
      "profit": "example",
      "profit_margin": "example",
      "sell_price_excl_tax": "example",
      "sell_price_incl_tax": "example"
    },
    "tax": "example"
  }
}

Get revenue

Get an outlet's total revenue over a range of dates, from its point of sale.

Inputs

Outletoutlet_idtextRequired
The outlet.
Fromdate_fromdateRequired
The first day.
Todate_todateRequired
The last day.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "revenue": "example"
  }
}

Get supplier

Get one supplier with its contact, address and ordering settings.

Inputs

Suppliersupplier_idtextRequired
The supplier.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "address": {
      "city": "example",
      "country": "example",
      "mobile": "example",
      "number": "example",
      "postal_code": "example",
      "street": "example",
      "telephone": "example"
    },
    "contact_first_name": "example",
    "contact_last_name": "example",
    "customer_number": "example",
    "daily_order_threshold": "example",
    "email": "example",
    "id": "example",
    "internal_supplier_id": "example",
    "name": "example",
    "notes": "example",
    "order_approval_enabled": true,
    "standard_delivery_fee": "example",
    "supplier_email_list": [
      "example"
    ],
    "tax_number": "example",
    "url": "example"
  }
}

List deliveries

List received deliveries, optionally by purchase order, supplier, outlet or delivery date.

Inputs

Purchase order IDpurchase_order_idtext
Only deliveries for this purchase order.
Suppliersupplier_idtext
Only this supplier.
Outletoutlet_idtext
Only this outlet.
Draftdrafttrue/false
Only drafts (on) or only submitted ones (off).
Delivered afterdelivered_afterdate
Only deliveries after this day.
Sort byorderingtext
Order. A leading - sorts newest first.One of: delivery_date (Delivery date), -delivery_date (-delivery date).
Pagepagenumber
The page to read, from 1.At least 1.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "actual_price": "example",
        "delivered_packages": [
          {
            "actual_price": "example",
            "id": "example",
            "quantity_delivered": "example",
            "remarks": "example",
            "supplier_package": {
              "id": "example"
            }
          }
        ],
        "delivery_date": "example",
        "delivery_remarks": "example",
        "discount": "example",
        "draft": true,
        "id": "example",
        "purchase_order": {
          "id": "example",
          "order_number": "example"
        },
        "received_by": {
          "first_name": "example",
          "id": "example",
          "last_name": "example",
          "username": "example"
        },
        "update_stock": true,
        "url": "example"
      }
    ]
  }
}

List ingredients

List the library's ingredients, optionally by name, category, supplier, or when they were added or changed.

Inputs

Namenametext
Only ingredients with this name.
Categorycategorytext
Only this category.
Reference numberinternal_uidtext
Only the ingredient with this reference number.
Suppliersuppliertext
Only ingredients bought from this supplier.
Added aftercreated_afterdate
Only ingredients added after this day.
Changed aftermodified_afterdate
Only ingredients changed after this day.
Sort byorderingtext
Order. A leading - sorts newest or last first.One of: name, -name, created_date (Created date), -created_date (-created date), modified_date (Modified date), -modified_date (-modified date).
Pagepagenumber
The page to read, from 1.At least 1.
Per pagepage_sizenumber
How many records a page holds (10 unless set; at most 200).From 1 to 200.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "accounting_category": "example",
        "approved": true,
        "archived": true,
        "brand": "example",
        "category": "example",
        "composition": "example",
        "created_by": "example",
        "created_date": "example",
        "description": "example",
        "external_uid": "example",
        "id": "example",
        "in_use": true,
        "internal_uid": "example",
        "modified_date": "example",
        "name": "example",
        "short_name": "example",
        "storage_instructions": "example",
        "subcategory": "example",
        "url": "example",
        "web_page": "example"
      }
    ]
  }
}

List invoices

List invoice records, optionally by search text, outlet, supplier, approval status or date.

Inputs

Searchsearchtext
Text found in the supplier's name, the invoice number or a purchase order number.
Outletsoutlet_idslist
Only these outlets.
Supplierssupplier_idslist
Only these suppliers.
Approval statusesapproval_statuseslist
Only these approval statuses.One or more of: RECEIVED, PENDING_APPROVAL (Pending approval), FLAGGED, APPROVED, REJECTED, PAID.
Recorded aftercreated_afterdate
Only invoices recorded after this day.
Changed afterupdated_afterdate
Only invoices changed after this day.
Sort byorderingtext
Order. A leading - sorts newest or largest first.One of: created_at (Created at), -created_at (-created at), invoice_date (Invoice date), -invoice_date (-invoice date), due_date (Due date), -due_date (-due date), total_amount (Total amount), -total_amount (-total amount).
Pagepagenumber
The page to read, from 1.At least 1.
Per pagepage_sizenumber
How many records a page holds (10 unless set; at most 200).From 1 to 200.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "approval_status": "example",
        "approved_by": {
          "id": "example",
          "name": "example"
        },
        "created_at": "example",
        "created_by": {
          "id": "example",
          "name": "example"
        },
        "due_date": "example",
        "id": "example",
        "invoice_date": "example",
        "invoice_number": "example",
        "is_credit_note": true,
        "outlet": {
          "id": "example",
          "name": "example"
        },
        "processing_status": "example",
        "purchase_orders": [
          {
            "id": "example",
            "order_number": "example"
          }
        ],
        "purchase_orders_total_amount": "example",
        "supplier": {
          "id": "example",
          "internal_supplier_id": "example",
          "name": "example"
        },
        "total_amount": "example",
        "total_amount_difference": "example",
        "total_amount_sentence": "example",
        "updated_at": "example"
      }
    ]
  }
}

List outlets

List the library's outlets (kitchens, restaurants, shops).

Inputs

Namenametext
Only outlets with this name.
Pagepagenumber
The page to read, from 1.At least 1.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "description": "example",
        "external_name": "example",
        "id": "example",
        "name": "example",
        "timezone": "example",
        "url": "example"
      }
    ]
  }
}

List purchase orders

List purchase orders, optionally by supplier, outlet, status or order date.

Inputs

Suppliersuppliertext
Only this supplier.
Outletoutlettext
Only this outlet.
Statusstatustext
Only this status.One of: IN_PROGRESS (In progress), ORDERED, DELIVERED, AWAITING_APPROVAL (Awaiting approval), REJECTED.
Ordered afterordered_afterdate
Only orders placed after this day.
Sort byorderingtext
Order. A leading - sorts newest first.One of: ordered_on (Ordered on), -ordered_on (-ordered on).
Pagepagenumber
The page to read, from 1.At least 1.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "delivery_closed": true,
        "expected_delivery_date": "example",
        "id": "example",
        "invoice_number": "example",
        "invoice_status": "example",
        "order_number": "example",
        "order_remarks": "example",
        "ordered_on": "example",
        "outlet": {
          "id": "example",
          "name": "example"
        },
        "owned_by": {
          "first_name": "example",
          "id": "example",
          "last_name": "example",
          "username": "example"
        },
        "packages": [
          {
            "id": "example",
            "quantity_ordered": 1,
            "stock_item": {
              "id": "example",
              "name": "example"
            },
            "supplier_package": {
              "id": "example",
              "supplier_article_number": "example",
              "supplier_product_name": "example"
            },
            "total_theoretical_price": "example"
          }
        ],
        "status": "example",
        "supplier": {
          "company_name": "example",
          "id": "example"
        },
        "theoretical_price": "example"
      }
    ]
  }
}

List recipes

List the library's recipes, optionally by name, type, stage, outlet, or when they were added or changed.

Inputs

Namenametext
Only recipes with this name.
Referenceuidtext
Only the recipe with this reference.
Typetypetext
Only this type.One of: amuse_bouche (Amuse bouche), base_recipe (Base recipe), soup, starter, entremet, main_course (Main course), dessert, drinks, other.
Stagestagetext
Only this stage.One of: development, testing, complete, active, discontinued.
Outletoutlettext
Only recipes linked to this outlet.
Added aftercreated_afterdate
Only recipes added after this day.
Changed aftermodified_afterdate
Only recipes changed after this day.
Sort byorderingtext
Order. A leading - sorts newest or last first.One of: name, -name, created_date (Created date), -created_date (-created date), modified_date (Modified date), -modified_date (-modified date).
Pagepagenumber
The page to read, from 1.At least 1.
Per pagepage_sizenumber
How many records a page holds (10 unless set; at most 200).From 1 to 200.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "category": "example",
        "created_by": "example",
        "created_date": "example",
        "cuisine": "example",
        "current_sell_price": {
          "created": "example",
          "pricing": 1,
          "username": "example"
        },
        "description": "example",
        "id": "example",
        "is_stockable_recipe": true,
        "modified_date": "example",
        "name": "example",
        "persons": 1,
        "recipe_class": "example",
        "recipe_stage": "example",
        "recipe_type": "example",
        "season": "example",
        "subcategory": "example",
        "target_profit_margin": "example",
        "tax": "example",
        "uid": "example",
        "url": "example",
        "web_page": "example"
      }
    ]
  }
}

List stock items

List the library's stock items (the packages ingredients are kept in).

Inputs

Namenametext
Only stock items with this name.
Ingredient IDingredienttext
Only stock items of this ingredient (its ID).
Sort byorderingtext
Order. A leading - sorts last first.One of: name, -name, modified, -modified.
Pagepagenumber
The page to read, from 1.At least 1.
Per pagepage_sizenumber
How many records a page holds (10 unless set; at most 200).From 1 to 200.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "active": true,
        "average_price_per_package": "example",
        "base_stock_item_quantity": "example",
        "base_stock_item_unit": "example",
        "content": "example",
        "created_by": "example",
        "gtin_list": [
          "example"
        ],
        "id": "example",
        "main_ingredient_id": "example",
        "main_ingredient_name": "example",
        "modified_date": "example",
        "name": "example",
        "stockable": true,
        "url": "example"
      }
    ]
  }
}

List supplier packages

List the packages suppliers sell, with their article numbers and prices.

Inputs

Suppliersupplier_idtext
Only this supplier's packages.
Stock item IDstock_item_idtext
Only packages of this stock item (its ID).
Activeactivetrue/false
Only active (on) or inactive (off) packages.
Orderableorderabletrue/false
Only packages that can (on) or can't be ordered.
Pagepagenumber
The page to read, from 1.At least 1.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "active": true,
        "average_price_per_package": "example",
        "id": "example",
        "orderable": true,
        "stock_item": {
          "id": "example",
          "name": "example",
          "url": "example"
        },
        "supplier": {
          "id": "example",
          "name": "example"
        },
        "supplier_article_number": "example",
        "supplier_product_name": "example",
        "url": "example"
      }
    ]
  }
}

List suppliers

List the library's suppliers, optionally by name, email or VAT number.

Inputs

Namenametext
Only suppliers whose name matches.
Emailemailtext
Only suppliers with this ordering email.
VAT numbervat_numbertext
Only suppliers with this VAT number.
Pagepagenumber
The page to read, from 1.At least 1.
Per pagepage_sizenumber
How many records a page holds (10 unless set; at most 200).From 1 to 200.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "address": {
          "city": "example",
          "country": "example",
          "mobile": "example",
          "number": "example",
          "postal_code": "example",
          "street": "example",
          "telephone": "example"
        },
        "contact_first_name": "example",
        "contact_last_name": "example",
        "customer_number": "example",
        "daily_order_threshold": "example",
        "email": "example",
        "id": "example",
        "internal_supplier_id": "example",
        "name": "example",
        "notes": "example",
        "order_approval_enabled": true,
        "standard_delivery_fee": "example",
        "supplier_email_list": [
          "example"
        ],
        "tax_number": "example",
        "url": "example"
      }
    ]
  }
}

List waste events

List an outlet's waste events and the stock value lost.

Inputs

Outletoutlet_idtextRequired
The outlet.
Started aftercreated_afterdate
Only waste events started after this day.
Sort byorderingtext
Order. A leading - sorts newest first.One of: created, -created.
Pagepagenumber
The page to read, from 1.At least 1.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "count": 1,
    "next": "example",
    "previous": "example",
    "results": [
      {
        "actual_date": "example",
        "created": "example",
        "created_by": {
          "first_name": "example",
          "id": "example",
          "last_name": "example",
          "username": "example"
        },
        "finished": "example",
        "id": "example",
        "items": [
          {
            "quantity": "example",
            "recipe": {
              "id": "example",
              "name": "example"
            },
            "remarks": "example",
            "stock_item": {
              "id": "example",
              "name": "example"
            },
            "stock_value": "example",
            "waste_category": "example"
          }
        ],
        "name": "example",
        "owned_by": {
          "first_name": "example",
          "id": "example",
          "last_name": "example",
          "username": "example"
        },
        "remarks": "example",
        "status": "example",
        "stock_value": "example"
      }
    ]
  }
}

Set invoice approval status

Approve, flag, reject or mark an invoice paid.

Inputs

Invoiceinvoice_idtextRequired
The invoice.
Approval statusapproval_statustextRequired
The new status.One of: RECEIVED, PENDING_APPROVAL (Pending approval), FLAGGED, APPROVED, REJECTED, PAID.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "approval_status": "example",
    "approved_by": {
      "id": "example",
      "name": "example"
    },
    "created_at": "example",
    "created_by": {
      "id": "example",
      "name": "example"
    },
    "due_date": "example",
    "id": "example",
    "invoice_date": "example",
    "invoice_number": "example",
    "is_credit_note": true,
    "outlet": {
      "id": "example",
      "name": "example"
    },
    "processing_status": "example",
    "purchase_orders": [
      {
        "id": "example",
        "order_number": "example"
      }
    ],
    "purchase_orders_total_amount": "example",
    "supplier": {
      "id": "example",
      "internal_supplier_id": "example",
      "name": "example"
    },
    "total_amount": "example",
    "total_amount_difference": "example",
    "total_amount_sentence": "example",
    "updated_at": "example"
  }
}

Update ingredient

Change an ingredient, or archive it. Only the fields given change.

Inputs

Ingredientingredient_idtextRequired
The ingredient.
Namenametext
The ingredient's name.
Short nameshort_nametext
A short name.
Reference numberinternal_uidtext
Your reference number for it.
External IDexternal_uidtext
An outside system's ID.
Descriptiondescriptiontext
Description.
Brandbrandtext
Brand.
Categorycategorytext
Category, such as Dairy.
Subcategorysubcategorytext
Subcategory, such as Milk.
Accounting categoryaccounting_categorytext
Accounting category.
Storage instructionsstorage_instructionstext
How to store it.
Shelf lifeshelf_lifetext
How long it keeps.
Approvedapprovedtrue/false
Whether it's approved.
Archivedarchivedtrue/false
Archive it.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "accounting_category": "example",
    "approved": true,
    "archived": true,
    "brand": "example",
    "category": "example",
    "composition": "example",
    "created_by": "example",
    "created_date": "example",
    "description": "example",
    "external_uid": "example",
    "id": "example",
    "in_use": true,
    "internal_uid": "example",
    "modified_date": "example",
    "name": "example",
    "short_name": "example",
    "storage_instructions": "example",
    "subcategory": "example",
    "url": "example",
    "web_page": "example"
  }
}

Update invoice

Change an invoice record. Only the fields given change.

Inputs

Invoiceinvoice_idtextRequired
The invoice.
Outletoutlettext
The outlet the invoice is for.
Suppliersuppliertext
The supplier who sent it.
Invoice numberinvoice_numbertext
The invoice's number.
Purchase orderspurchase_orderslist
The purchase orders it bills, by ID.
Invoice dateinvoice_datedate
The date on the invoice.
Due datedue_datedate
When it's due.
Totaltotal_amountnumber
The invoice total.
Credit noteis_credit_notetrue/false
Whether it's a credit note.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "approval_status": "example",
    "approved_by": {
      "id": "example",
      "name": "example"
    },
    "created_at": "example",
    "created_by": {
      "id": "example",
      "name": "example"
    },
    "due_date": "example",
    "id": "example",
    "invoice_date": "example",
    "invoice_number": "example",
    "is_credit_note": true,
    "outlet": {
      "id": "example",
      "name": "example"
    },
    "processing_status": "example",
    "purchase_orders": [
      {
        "id": "example",
        "order_number": "example"
      }
    ],
    "purchase_orders_total_amount": "example",
    "supplier": {
      "id": "example",
      "internal_supplier_id": "example",
      "name": "example"
    },
    "total_amount": "example",
    "total_amount_difference": "example",
    "total_amount_sentence": "example",
    "updated_at": "example"
  }
}

Update recipe

Change a recipe. Only the fields given change.

Inputs

Reciperecipe_idtextRequired
The recipe.
Namenametext
The recipe's name.
Servingspersonsnumber
How many servings it makes.At least 1.
Referenceuidtext
Your reference number for it.
Descriptiondescriptiontext
Description.
Cuisinecuisinetext
Cuisine, such as Italian.
Typerecipe_typetext
Course or kind.One of: amuse_bouche (Amuse bouche), base_recipe (Base recipe), soup, starter, entremet, main_course (Main course), dessert, drinks, other.
Stagerecipe_stagetext
Where the recipe is in its life.One of: development, testing, complete, active, discontinued.
Seasonseasontext
Season.One of: all_seasons (All seasons), winter, spring, summer, autumn.
Categorycategorytext
Category.
Subcategorysubcategorytext
Subcategory.
Sell pricesell_pricenumber
The selling price.
Tax %taxnumber
The tax rate, in percent.
Target margin %target_profit_marginnumber
The target profit margin, in percent.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "category": "example",
    "created_by": "example",
    "created_date": "example",
    "cuisine": "example",
    "current_sell_price": {
      "created": "example",
      "pricing": 1,
      "username": "example"
    },
    "description": "example",
    "id": "example",
    "is_stockable_recipe": true,
    "modified_date": "example",
    "name": "example",
    "persons": 1,
    "recipe_class": "example",
    "recipe_stage": "example",
    "recipe_type": "example",
    "season": "example",
    "subcategory": "example",
    "target_profit_margin": "example",
    "tax": "example",
    "uid": "example",
    "url": "example",
    "web_page": "example"
  }
}

Update supplier

Change a supplier's details. Only the fields given change.

Inputs

Suppliersupplier_idtextRequired
The supplier.
Namenametext
The supplier's company name.
Contact first namecontact_first_nametext
The contact person's first name.
Contact last namecontact_last_nametext
The contact person's last name.
Order emailsorder_emailslist
Where purchase orders are emailed.
Tax numbertax_numbertext
VAT or tax number.
Customer numbercustomer_numbertext
Your customer number at the supplier.
Internal IDinternal_supplier_idtext
Your own reference for the supplier.
Delivery feedelivery_feenumber
The standard delivery fee.
Outletsoutletslist
The outlets that order from this supplier.
Streetstreettext
Street.
Numberhouse_numbertext
House number.
Postal codepostal_codetext
Postal code.
Citycitytext
City.
Countrycountrytext
Country.
Phonetelephonetext
Phone number.
Notesnotestext
Notes.

Outputs

dataobject
The response from Apicbase.
Example output
{
  "data": {
    "address": {
      "city": "example",
      "country": "example",
      "mobile": "example",
      "number": "example",
      "postal_code": "example",
      "street": "example",
      "telephone": "example"
    },
    "contact_first_name": "example",
    "contact_last_name": "example",
    "customer_number": "example",
    "daily_order_threshold": "example",
    "email": "example",
    "id": "example",
    "internal_supplier_id": "example",
    "name": "example",
    "notes": "example",
    "order_approval_enabled": true,
    "standard_delivery_fee": "example",
    "supplier_email_list": [
      "example"
    ],
    "tax_number": "example",
    "url": "example"
  }
}

On this page