TAG LINE
TAG LINE
SMALL TITLE
Represents a container that holds a set of the Tax Rates such as "Texas Taxes"
identity READ-ONLY | "identity": 21 Type: Number This is the unique numeric identifier for the TaxCode |
countryId | "countryId": 0 Type: Number Unique identifier for the associated Country object. |
countryName | "countryName": "Sample Name" Type: String The name of the object associated with the countryId property. |
stateId | "stateId": 20 Type: Number Unique identifier for the associated State object. |
stateName | "stateName": "Sample Name" Type: String The name of the object associated with the stateId property. |
name | "name": "Texas Taxes" Type: String User defined name for the Tax Code. |
ownerId READ-ONLY | "ownerId": 9 Type: Number Unique identifier for the associated Owner object. |
ownerName READ-ONLY | "ownerName": "Sample Name" Type: String The name of the object associated with the ownerId property. |
accountTaxCategoryId | "accountTaxCategoryId": 4 Type: Number Unique identifier for the associated AccountTaxCategory object. |
accountTaxCategoryName | "accountTaxCategoryName": "Sample Name" Type: String The name of the object associated with the accountTaxCategoryId property. |
serviceTaxCategoryId | "serviceTaxCategoryId": 14 Type: Number Unique identifier for the associated ServiceTaxCategory object. |
serviceTaxCategoryName | "serviceTaxCategoryName": "Sample Name" Type: String The name of the object associated with the serviceTaxCategoryId property. |
taxVendorId | "taxVendorId": 14 Type: Number Unique identifier for the associated TaxVendor object. |
taxVendorName | "taxVendorName": "Sample Name" Type: String The name of the object associated with the taxVendorId property. |
isReverseVat | "isReverseVat": true Type: Boolean Whether or not to calculate the tax but not apply it to the transaction. You want to report the tax but not charge for it. |
displayName | "displayName": "State Taxes" Type: String User defined report/invoice friendly name the Tax Code. |
isUsageTaxOnly | "isUsageTaxOnly": true Type: Boolean Whether or not this Tax Code should only be applied to usage charges. |
The PATCH verb allows you to update an object. Just like a put, you only need to supply the fields that will be updated in the payload. However, a patch allows you to update many objects at once.
PATCH operations can be used as a standard API call. Below you will find the child objects that can be updated as part of PATCH operations for the TaxCode object.
Standard PATCH objects:
DataFlow PATCH objects:
DELETE | Tax/Code/{id} |
Delete an instance of the TaxCode object. Upon successful delete, this API will return a record of all of the related objects deleted with this operation. The specifics on which objects have been deleted will depend on which related objects have been populated in the system. | |
{id} | Unique identifier for the TaxCode object. |
Delete an instance of the TaxCode object. DELETE Tax/Code/{id} HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "type": "delete", "results": { "totalCount": 4, "items": [ { "identity": 1, "action": "deleted", "dtoTypeKey": "taxCode" }, { "lhsId": 2, "rhsId": 2, "action": "detached", "dtoTypeKey": "sampleObjectConnector" }, { "foreignKeyIdentity": 2, "action": "deleted", "dtoTypeKey": "sampleObject" } ] } } |
GET | Tax/Code/ |
Retrieve all of the TaxCode objects. | |
Retrieve all of the TaxCode objects. GET Tax/Code/ HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "totalCount": 1, "items": [ { "identity": 1, "countryId": 24, "countryName": "Sample Text Data", "stateId": 15, "stateName": "Sample Text Data", "name": "Texas Taxes", "ownerId": 16, "ownerName": "Sample Text Data", "accountTaxCategoryId": 26, "accountTaxCategoryName": "Sample Text Data", "serviceTaxCategoryId": 7, "serviceTaxCategoryName": "Sample Text Data", "taxVendorId": 10, "taxVendorName": "Sample Text Data", "isReverseVat": true, "displayName": "State Taxes", "isUsageTaxOnly": true } ] } |
GET | Tax/Code/Paged |
Retrieve all of the TaxCode objects in a paged fashion. This endpoint implements pagination for its results. Individual pages can be requested to return a particular paged set in the list of results. To learn more, see details on working with paginated endpoints. | |
Retrieve all of the TaxCode objects in a paged fashion. GET Tax/Code/Paged HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "pagination": { "pageNumber": 1, "pageSize": 20, "excludeTotalCount": false }, "pagedResults": { "totalCount": 1, "items": [ { "identity": 1, "countryId": 16, "countryName": "Sample Text Data", "stateId": 15, "stateName": "Sample Text Data", "name": "Texas Taxes", "ownerId": 27, "ownerName": "Sample Text Data", "accountTaxCategoryId": 19, "accountTaxCategoryName": "Sample Text Data", "serviceTaxCategoryId": 21, "serviceTaxCategoryName": "Sample Text Data", "taxVendorId": 7, "taxVendorName": "Sample Text Data", "isReverseVat": true, "displayName": "State Taxes", "isUsageTaxOnly": true } ] } } |
GET | Tax/Code/Paged/Detail |
Retrieve all of the TaxCode objects in a paged fashion with all object details. This endpoint returns additional detailed data related to this object. The specifics on which data is returned will depend on which related objects have been populated in the system. | |
Retrieve all of the TaxCode objects in a paged fashion with all object details. GET Tax/Code/Paged/Detail HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "pagination": { "pageNumber": 1, "pageSize": 20, "excludeTotalCount": false }, "pagedResults": { "totalCount": 1, "items": [ { "identity": 1, "countryId": 8, "countryName": "Sample Text Data", "stateId": 16, "stateName": "Sample Text Data", "name": "Texas Taxes", "ownerId": 21, "ownerName": "Sample Text Data", "accountTaxCategoryId": 25, "accountTaxCategoryName": "Sample Text Data", "serviceTaxCategoryId": 12, "serviceTaxCategoryName": "Sample Text Data", "taxVendorId": 3, "taxVendorName": "Sample Text Data", "isReverseVat": true, "displayName": "State Taxes", "isUsageTaxOnly": true, "details": { "taxRates": [ { "identity": 36, "rate": 56.21, "name": "Sample Text Data", "generalLedgerId": 12, "generalLedgerName": "Sample Text Data", "displayName": "Sample Text Data", "taxOnTax": true, "systemGenerated": true, "taxCategoryId": 81, "taxCategoryName": "Sample Text Data", "sortOrder": 71 } ], "usageClasses": [ { "identity": 34, "name": "Sample Text Data", "usageRaterTypeId": 97, "usageRaterTypeName": "Sample Text Data", "usageBaseUnitId": 37, "usageBaseUnitName": "Sample Text Data", "usageClassTypeId": 46, "usageClassTypeName": "Sample Text Data", "serviceTaxCategoryId": 82, "serviceTaxCategoryName": "Sample Text Data" } ] } } ] } } |
GET | Tax/Code/{id} |
Retrieve an instance of the TaxCode object by its ID. | |
{id} | Unique identifier for the TaxCode object. |
Retrieve an instance of the TaxCode object by its ID. GET Tax/Code/{id} HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "instance": { "identity": 1, "countryId": 9, "countryName": "Sample Text Data", "stateId": 11, "stateName": "Sample Text Data", "name": "Texas Taxes", "ownerId": 17, "ownerName": "Sample Text Data", "accountTaxCategoryId": 27, "accountTaxCategoryName": "Sample Text Data", "serviceTaxCategoryId": 24, "serviceTaxCategoryName": "Sample Text Data", "taxVendorId": 17, "taxVendorName": "Sample Text Data", "isReverseVat": true, "displayName": "State Taxes", "isUsageTaxOnly": true } } |
GET | Tax/Code/{id}/Detail |
Retrieve deep detail of the TaxCode object by its ID. This endpoint returns additional detailed data related to this object. The specifics on which data is returned will depend on which related objects have been populated in the system. | |
{id} | Unique identifier for the TaxCode object. |
Retrieve deep detail of the TaxCode object by its ID. GET Tax/Code/{id}/Detail HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "instance": { "identity": 1, "countryId": 17, "countryName": "Sample Text Data", "stateId": 21, "stateName": "Sample Text Data", "name": "Texas Taxes", "ownerId": 21, "ownerName": "Sample Text Data", "accountTaxCategoryId": 23, "accountTaxCategoryName": "Sample Text Data", "serviceTaxCategoryId": 19, "serviceTaxCategoryName": "Sample Text Data", "taxVendorId": 9, "taxVendorName": "Sample Text Data", "isReverseVat": true, "displayName": "State Taxes", "isUsageTaxOnly": true, "details": { "taxRates": [ { "identity": 36, "rate": 56.21, "name": "Sample Text Data", "generalLedgerId": 12, "generalLedgerName": "Sample Text Data", "displayName": "Sample Text Data", "taxOnTax": true, "systemGenerated": true, "taxCategoryId": 81, "taxCategoryName": "Sample Text Data", "sortOrder": 71 } ], "usageClasses": [ { "identity": 34, "name": "Sample Text Data", "usageRaterTypeId": 97, "usageRaterTypeName": "Sample Text Data", "usageBaseUnitId": 37, "usageBaseUnitName": "Sample Text Data", "usageClassTypeId": 46, "usageClassTypeName": "Sample Text Data", "serviceTaxCategoryId": 82, "serviceTaxCategoryName": "Sample Text Data" } ] } } } |
PATCH | Tax/Code/{id} |
Update or Add the TaxCode object and optionally make changes to any child objects. Patch end points allow for adding/updating multiple related entities and the results of those changes will be reported in the response JSON payload in the items array. | |
{id} | Unique identifier for the TaxCode object. |
Update or Add the TaxCode object and optionally make changes to any child objects. PATCH Tax/Code/{id} { "details": {}, "taxCodes": { "items": [ { "patchType": "create", "patchClientId": 1, "countryId": 14, "stateId": 3, "name": "Texas Taxes", "accountTaxCategoryId": 0, "serviceTaxCategoryId": 21, "taxVendorId": 27, "isReverseVat": true, "displayName": "State Taxes", "isUsageTaxOnly": true } ] } } HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "type": "patch", "results": { "totalCount": 1, "items": [ { "identity": 1, "action": "created", "dtoTypeKey": "taxCode", "instance": { "identity": 1, "countryId": 25, "countryName": "Sample Text Data", "stateId": 6, "stateName": "Sample Text Data", "name": "Texas Taxes", "ownerId": 10, "ownerName": "Sample Text Data", "accountTaxCategoryId": 13, "accountTaxCategoryName": "Sample Text Data", "serviceTaxCategoryId": 8, "serviceTaxCategoryName": "Sample Text Data", "taxVendorId": 9, "taxVendorName": "Sample Text Data", "isReverseVat": true, "displayName": "State Taxes", "isUsageTaxOnly": true } } ] } } |
POST | Tax/Code/ |
Create a new instance of the TaxCode object. | |
Create a new instance of the TaxCode object. POST Tax/Code/ { "countryId": 25, "stateId": 20, "name": "Texas Taxes", "accountTaxCategoryId": 13, "serviceTaxCategoryId": 8, "taxVendorId": 2, "isReverseVat": true, "displayName": "State Taxes", "isUsageTaxOnly": true } HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "type": "create", "results": { "totalCount": 1, "items": [ { "identity": 1, "countryId": 20, "countryName": "Sample Text Data", "stateId": 23, "stateName": "Sample Text Data", "name": "Texas Taxes", "ownerId": 17, "ownerName": "Sample Text Data", "accountTaxCategoryId": 2, "accountTaxCategoryName": "Sample Text Data", "serviceTaxCategoryId": 17, "serviceTaxCategoryName": "Sample Text Data", "taxVendorId": 20, "taxVendorName": "Sample Text Data", "isReverseVat": true, "displayName": "State Taxes", "isUsageTaxOnly": true } ] } } |
PUT | Tax/Code/{id} |
Update an existing instance of the TaxCode object. | |
Update an existing instance of the TaxCode object. PUT Tax/Code/{id} { "identity": 1, "countryId": 17, "stateId": 3, "name": "Texas Taxes", "accountTaxCategoryId": 12, "serviceTaxCategoryId": 2, "taxVendorId": 26, "isReverseVat": true, "displayName": "State Taxes", "isUsageTaxOnly": true } HTTP/1.1 200 OK { "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b", "type": "update", "results": { "totalCount": 1, "items": [ { "identity": 1, "countryId": 5, "countryName": "Sample Text Data", "stateId": 10, "stateName": "Sample Text Data", "name": "Texas Taxes", "ownerId": 8, "ownerName": "Sample Text Data", "accountTaxCategoryId": 27, "accountTaxCategoryName": "Sample Text Data", "serviceTaxCategoryId": 25, "serviceTaxCategoryName": "Sample Text Data", "taxVendorId": 9, "taxVendorName": "Sample Text Data", "isReverseVat": true, "displayName": "State Taxes", "isUsageTaxOnly": true } ] } } |