Skip to content

Vendor Purchase Update

Sean Callan edited this page Jun 9, 2020 · 1 revision

Beans_Vendor_Purchase_Update

Create a new vendor purchase.


Parameters

  • auth_uid (required) INTEGER - The ID for your API key.

  • auth_key (required) STRING - The API key.

  • auth_expiration (required) INTEGER - Unique ID tied to your key; changes if you reset your key.

  • id (required) INTEGER - The ID for the Beans_Vendor_Purchase to update.

  • account_id (required) INTEGER - The ID for the AP Beans_Account this purchase is being added to.

  • date_created (required) STRING - The date of the purchase in YYYY-MM-DD format.

  • date_billed (optional) STRING - The bill date in YYYY-MM-DD for the sale; adding this will automatically convert it to an invoice.

  • invoice_number (optional) STRING - An invoice number to be tied to the purchase.

  • purchase_number (optional) STRING - An purchase number to reference this purchase. If none is created, it will auto-generate.

  • so_number (optional) STRING - An SO number to reference this purchase.

  • quote_number (optional) STRING - A quote number to reference this purchase.

  • remit_address_id (optional) INTEGER - The ID of the Beans_Vendor_Address to remit payment to.

  • shipping_address_id (optional) INTEGER - The ID of the Beans_Vendor_Address_Shipping to ship to.

  • lines (required) ARRAY - An array of objects representing line items for the purchase.

    • description (required) STRING - The text for the line item.

    • amount (required) - DECIMAL The amount per unit.

    • quantity (required) - DECIMAL The number of units (up to three decimal places).

    • account_id (optional) INTEGER - The ID of the Beans_Account to count the cost of the purchase towards.

  • description (required) STRING - The text for the line item.

  • amount (required) - DECIMAL The amount per unit.

  • quantity (required) - DECIMAL The number of units (up to three decimal places).

  • account_id (optional) INTEGER - The ID of the Beans_Account to count the cost of the purchase towards.


Returns

  • purchase OBJECT - The resulting Beans_Vendor_Purchase.
Clone this wiki locally