api.setup.id_numbers

/api/setup/id_numbers/

Used to get current sequence IDs for various tables

GET /api/setup/id_numbers/

Description:

Returns the list of all id numbers
can_lock requires_lock has_etag requires_etag
False False False False

Response:

<id_numbers uri="/setup/id_numbers/">
    <customer>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </customer>
    <invoice>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </invoice>
    <job>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </job>
    <order>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </order>
    <purchase_order>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </purchase_order>
    <product>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </product>
    <quote>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </quote>
    <sro>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </sro>
    <supplier>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </supplier>
    <supplier_invoice>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </supplier_invoice>
    <timesheet>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </timesheet>
</id_numbers>

PUT /api/setup/id_numbers/

Description:

Sets the next_id numbers.
can_lock requires_lock has_etag requires_etag
False False False False

Request:

<id_numbers>
    <customer>
        <next_id>[int]</next_id><!-- Optional -->
    </customer>
    <invoice>
        <next_id>[int]</next_id><!-- Optional -->
    </invoice>
    <job>
        <next_id>[int]</next_id><!-- Optional -->
    </job>
    <order>
        <next_id>[int]</next_id><!-- Optional -->
    </order>
    <purchase_order>
        <next_id>[int]</next_id><!-- Optional -->
    </purchase_order>
    <product>
        <next_id>[int]</next_id><!-- Optional -->
    </product>
    <quote>
        <next_id>[int]</next_id><!-- Optional -->
    </quote>
    <sro>
        <next_id>[int]</next_id><!-- Optional -->
    </sro>
    <supplier>
        <next_id>[int]</next_id><!-- Optional -->
    </supplier>
    <supplier_invoice>
        <next_id>[int]</next_id><!-- Optional -->
    </supplier_invoice>
    <timesheet>
        <next_id>[int]</next_id><!-- Optional -->
    </timesheet>
</id_numbers>

Response:

<id_numbers uri="/setup/id_numbers/">
    <customer>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </customer>
    <invoice>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </invoice>
    <job>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </job>
    <order>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </order>
    <purchase_order>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </purchase_order>
    <product>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </product>
    <quote>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </quote>
    <sro>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </sro>
    <supplier>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </supplier>
    <supplier_invoice>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </supplier_invoice>
    <timesheet>
        <last_id>[int]</last_id>
        <next_id>[int]</next_id>
    </timesheet>
</id_numbers>
Expected Errors: