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": 15 Type: Number This is the unique numeric identifier for the TaxCode |
countryId | "countryId": 12 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": 23 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": 25 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": 12 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": 13 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": 1 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": 26, "countryName": "Sample Text Data", "stateId": 26, "stateName": "Sample Text Data", "name": "Texas Taxes", "ownerId": 18, "ownerName": "Sample Text Data", "accountTaxCategoryId": 18, "accountTaxCategoryName": "Sample Text Data", "serviceTaxCategoryId": 11, "serviceTaxCategoryName": "Sample Text Data", "taxVendorId": 8, "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": 20, "countryName": "Sample Text Data", "stateId": 17, "stateName": "Sample Text Data", "name": "Texas Taxes", "ownerId": 1, "ownerName": "Sample Text Data", "accountTaxCategoryId": 3, "accountTaxCategoryName": "Sample Text Data", "serviceTaxCategoryId": 10, "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": 5, "countryName": "Sample Text Data", "stateId": 8, "stateName": "Sample Text Data", "name": "Texas Taxes", "ownerId": 22, "ownerName": "Sample Text Data", "accountTaxCategoryId": 26, "accountTaxCategoryName": "Sample Text Data", "serviceTaxCategoryId": 2, "serviceTaxCategoryName": "Sample Text Data", "taxVendorId": 23, "taxVendorName": "Sample Text Data", "isReverseVat": true, "displayName": "State Taxes", "isUsageTaxOnly": true, "details": { "taxRates": [ { "identity": 98, "rate": 45.09, "name": "Sample Text Data", "generalLedgerId": 68, "generalLedgerName": "Sample Text Data", "displayName": "Sample Text Data", "taxOnTax": true, "systemGenerated": true, "taxCategoryId": 95, "taxCategoryName": "Sample Text Data", "sortOrder": 33 } ], "usageClasses": [ { "identity": 32, "name": "Sample Text Data", "usageRaterTypeId": 8, "usageRaterTypeName": "Sample Text Data", "usageBaseUnitId": 53, "usageBaseUnitName": "Sample Text Data", "usageClassTypeId": 30, "usageClassTypeName": "Sample Text Data", "serviceTaxCategoryId": 1, "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": 17, "countryName": "Sample Text Data", "stateId": 1, "stateName": "Sample Text Data", "name": "Texas Taxes", "ownerId": 7, "ownerName": "Sample Text Data", "accountTaxCategoryId": 13, "accountTaxCategoryName": "Sample Text Data", "serviceTaxCategoryId": 0, "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": 24, "countryName": "Sample Text Data", "stateId": 22, "stateName": "Sample Text Data", "name": "Texas Taxes", "ownerId": 0, "ownerName": "Sample Text Data", "accountTaxCategoryId": 17, "accountTaxCategoryName": "Sample Text Data", "serviceTaxCategoryId": 16, "serviceTaxCategoryName": "Sample Text Data", "taxVendorId": 2, "taxVendorName": "Sample Text Data", "isReverseVat": true, "displayName": "State Taxes", "isUsageTaxOnly": true, "details": { "taxRates": [ { "identity": 98, "rate": 45.09, "name": "Sample Text Data", "generalLedgerId": 68, "generalLedgerName": "Sample Text Data", "displayName": "Sample Text Data", "taxOnTax": true, "systemGenerated": true, "taxCategoryId": 95, "taxCategoryName": "Sample Text Data", "sortOrder": 33 } ], "usageClasses": [ { "identity": 32, "name": "Sample Text Data", "usageRaterTypeId": 8, "usageRaterTypeName": "Sample Text Data", "usageBaseUnitId": 53, "usageBaseUnitName": "Sample Text Data", "usageClassTypeId": 30, "usageClassTypeName": "Sample Text Data", "serviceTaxCategoryId": 1, "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": 4, "stateId": 16, "name": "Texas Taxes", "accountTaxCategoryId": 1, "serviceTaxCategoryId": 22, "taxVendorId": 14, "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": 16, "countryName": "Sample Text Data", "stateId": 5, "stateName": "Sample Text Data", "name": "Texas Taxes", "ownerId": 0, "ownerName": "Sample Text Data", "accountTaxCategoryId": 27, "accountTaxCategoryName": "Sample Text Data", "serviceTaxCategoryId": 20, "serviceTaxCategoryName": "Sample Text Data", "taxVendorId": 16, "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": 7, "stateId": 5, "name": "Texas Taxes", "accountTaxCategoryId": 8, "serviceTaxCategoryId": 15, "taxVendorId": 20, "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": 26, "countryName": "Sample Text Data", "stateId": 23, "stateName": "Sample Text Data", "name": "Texas Taxes", "ownerId": 25, "ownerName": "Sample Text Data", "accountTaxCategoryId": 24, "accountTaxCategoryName": "Sample Text Data", "serviceTaxCategoryId": 22, "serviceTaxCategoryName": "Sample Text Data", "taxVendorId": 12, "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": 26, "stateId": 17, "name": "Texas Taxes", "accountTaxCategoryId": 26, "serviceTaxCategoryId": 27, "taxVendorId": 27, "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": 4, "countryName": "Sample Text Data", "stateId": 14, "stateName": "Sample Text Data", "name": "Texas Taxes", "ownerId": 10, "ownerName": "Sample Text Data", "accountTaxCategoryId": 9, "accountTaxCategoryName": "Sample Text Data", "serviceTaxCategoryId": 15, "serviceTaxCategoryName": "Sample Text Data", "taxVendorId": 25, "taxVendorName": "Sample Text Data", "isReverseVat": true, "displayName": "State Taxes", "isUsageTaxOnly": true } ] } } |