Sales Orders
Invoices

Convert a sales order to an invoice

Changed on

Plan: Paid API.

The request has no body. The conversion copies the customer, the contact, the addresses, the charges, the tags and the line items with their prices and taxes, as the web app does. It does not calculate the prices again. Each line item gets the quantity that is not on an invoice yet. The term code of the sales order sets the due date. The sales order links to the new invoice and its invoiced status changes. The jobs do not change. Each call makes a new invoice.

A sales order that is void, deleted or fully invoiced returns 422 with the reason in base. An account on the Pro or Express plan of the old web app also gets 422.

post/sales_orders/{id}/to_invoice

Request

  • Base URL
    https://api.shopvox.com/v1
  • Auth
    API key in query parameter account_id and API key in query parameter authToken

Response

Created.

idstring uuid
namestring
titlestring
txnNumberstring
txnDatestring date nullable
dueDatestring date nullable
shippingDatestring date nullable
createdAtstring date-time
updatedAtstring date-time
workflowStatestring nullable
totalPriceWithTaxInDollarsnumber nullable

Account currency.

balanceInDollarsnumber nullable

Account currency.

totalPaymentsInDollarsnumber nullable

Account currency.

customerPoNumberstring nullable
customerPoDatestring date nullable
changed'Yes' | 'No'
accountingSyncDate'Yes' | 'No'
lastNotestring nullable
divisionIdstring uuid nullable
divisionobject

Full division record (all columns), present only when the invoice has a division.

Changes