Rate table accounts payable lines

Rate table accounts payable lines contain criteria for applying a default markup percentage to matching accounts payable transactions during invoicing. They are owned objects of a rate table object. You create, update, and delete accounts payable line objects through operations on the owning rate table.

  • Each line requires only 1 value be provided.
  • Lines with the exact same values (excluding description and markup percentage) are considered duplicates and are not allowed.
  • If no value is given for a property then the line will match on any transaction, otherwise it will only match on transactions with that property.
  • Lines with the most matches will be used as the invoice default markup percentage.
  • If multiple lines have the same number of matches then the one with the most recent start date will be used.
  • If multiple lines have the same number of matches and the same start date (or none at all) then the line with the lowest line number will be used.

List rate table accounts payable lines

get/objects/construction/rate-table-accounts-payable-line

Returns up to 100 object references from the collection with a key, ID, and link for each object. This operation is mostly for use in testing; use query to find objects that meet certain criteria and to specify properties that are returned.

SecurityOAuth2
Responses
200

OK

400

Bad Request

Request samples
/**
 * Requires libcurl
 */

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer <YOUR_TOKEN_HERE>"
  ],
  CURLOPT_PORT => "",
  CURLOPT_URL => "https://api.intacct.com/ia/api/v1/objects/construction/rate-table-accounts-payable-line",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$error = curl_error($curl);

curl_close($curl);

if ($error) {
  echo "cURL Error #:" . $error;
} else {
  echo $response;
}
Response samples
application/json
{
  • "ia::result": [
    • {
      • "key": "84",
      • "id": "84",
      • "href": "/objects/construction/rate-table-accounts-payable-line/84"
      },
    • {
      • "key": "85",
      • "id": "85",
      • "href": "/objects/construction/rate-table-accounts-payable-line/85"
      },
    • {
      • "key": "60",
      • "id": "60",
      • "href": "/objects/construction/rate-table-accounts-payable-line/60"
      },
    • {
      • "key": "78",
      • "id": "78",
      • "href": "/objects/construction/rate-table-accounts-payable-line/78"
      },
    • {
      • "key": "79",
      • "id": "79",
      • "href": "/objects/construction/rate-table-accounts-payable-line/79"
      }
    ],
  • "ia::meta": {
    • "totalCount": 5,
    • "start": 1,
    • "pageSize": 100,
    • "next": null,
    • "previous": null
    }
}

Get a rate table accounts payable line

get/objects/construction/rate-table-accounts-payable-line/{key}

Returns detailed information for a specified rate table accounts payable line.

SecurityOAuth2
Request
path Parameters
key
required
string

System-assigned key for the rate table accounts payable line.

Example: 397
Responses
200

OK

400

Bad Request

Request samples
/**
 * Requires libcurl
 */

const key = "YOUR_key_PARAMETER";
$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer <YOUR_TOKEN_HERE>"
  ],
  CURLOPT_PORT => "",
  CURLOPT_URL => "https://api.intacct.com/ia/api/v1/objects/construction/rate-table-accounts-payable-line/" . key,
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => "GET",
]);

$response = curl_exec($curl);
$error = curl_error($curl);

curl_close($curl);

if ($error) {
  echo "cURL Error #:" . $error;
} else {
  echo $response;
}
Response samples
application/json
{
  • "ia::result": {
    • "key": "397",
    • "id": "397",
    • "rateTable": {
      • "key": "145",
      • "id": "2021-LV2",
      • "name": "2021 Level 2",
      • "href": "/objects/construction/rate-table/145"
      },
    • "href": "/objects/construction/rate-table-credit-card-line/397",
    • "lineNumber": 1,
    • "description": "Aug Service",
    • "startDate": "2021-08-01",
    • "markupPercent": "25.500",
    • "accumulationType": {
      • "key": "2",
      • "id": "ACCT-2",
      • "href": "/objects/construction/accumulation-type/2"
      },
    • "standardCostType": {
      • "key": "33",
      • "id": "CT-RT-0010",
      • "name": "CT-RT-0010 MATERIAL",
      • "href": "/objects/construction/standard-cost-type/33"
      },
    • "standardTask": {
      • "key": "3",
      • "id": "TSK-RT-0011",
      • "name": "TSK-RT-0011 Name",
      • "href": "/objects/construction/standard-task/3"
      },
    • "dimensions": {
      • "employee": {
        },
      • "project": {
        },
      • "customer": {
        },
      • "vendor": {
        },
      • "item": {
        },
      • "warehouse": {
        },
      • "class": {
        },
      • "task": {
        }
      },
    • "audit": {
      • "createdDateTime": "2014-01-08T11:28:12Z",
      • "modifiedDateTime": "2014-01-08T11:28:12Z",
      • "createdBy": "1",
      • "modifiedBy": "95"
      }
    },
  • "ia::meta": {
    • "totalCount": 1,
    • "totalSuccess": 1,
    • "totalError": 0
    }
}

Query rate table accounts payable lines

post/services/core/query

Use the query service to find rate table accounts payable lines that meet certain criteria and to specify the properties that are returned.

SecurityOAuth2
Responses
200

OK

400

Bad Request

Request samples
/**
 * Requires libcurl
 */

$curl = curl_init();

curl_setopt_array($curl, [
  CURLOPT_HTTPHEADER => [
    "Authorization: Bearer <YOUR_TOKEN_HERE>"
  ],
  CURLOPT_PORT => "",
  CURLOPT_URL => "https://api.intacct.com/ia/api/v1/services/core/query",
  CURLOPT_RETURNTRANSFER => true,
  CURLOPT_CUSTOMREQUEST => "POST",
]);

$response = curl_exec($curl);
$error = curl_error($curl);

curl_close($curl);

if ($error) {
  echo "cURL Error #:" . $error;
} else {
  echo $response;
}
Response samples
application/json
{
  • "ia::result": {
    • "ia::error": {
      • "code": "invalidRequest",
      • "message": "A POST request requires a payload",
      • "errorId": "REST-1028",
      • "additionalInfo": {
        },
      • "supportId": "Kxi78%7EZuyXBDEGVHD2UmO1phYXDQAAAAo"
      }
    },
  • "ia::meta": {
    • "totalCount": 1,
    • "totalSuccess": 0,
    • "totalError": 1
    }
}

Feedback