TAG LINE
TAG LINE
SMALL TITLE

Tax / Code

(API Version v6)


Represents a container that holds a set of the Tax Rates such as "Texas Taxes"


What can you do with TaxCode?

  • DELETE Tax/Code/{id}
    Delete an instance of the TaxCode object.

  • GET Tax/Code/
    Retrieve all of the TaxCode objects.

  • GET Tax/Code/Paged
    Retrieve all of the TaxCode objects in a paged fashion.

  • GET Tax/Code/Paged/Detail
    Retrieve all of the TaxCode objects in a paged fashion with all object details.

  • GET Tax/Code/{id}
    Retrieve an instance of the TaxCode object by its ID.

  • GET Tax/Code/{id}/Detail
    Retrieve deep detail of the TaxCode object by its ID.

  • PATCH Tax/Code/{id}
    Update or Add the TaxCode object and optionally make changes to any child objects.

  • POST Tax/Code/
    Create a new instance of the TaxCode object.

  • PUT Tax/Code/{id}
    Update an existing instance of the TaxCode object.


Properties

Property Details
identity
READ-ONLY
"identity": 8
Type: Number
This is the unique numeric identifier for the TaxCode
countryId
"countryId": 14
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": 11
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": 27
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": 2
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": 27
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.


Patch Types

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:


End Points

DELETETax/Code/{id}
Delete an instance of the TaxCode object. Upon successful delete, this API will return a record of all of the reelated 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}
View Sample Response
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"
            }
        ]
    }
}
GETTax/Code/
Retrieve all of the TaxCode objects.
Retrieve all of the TaxCode objects.
GET Tax/Code/
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "totalCount": 1,
    "items": [
        {
            "identity": 1,
            "countryId": 19,
            "countryName": "Sample Text Data",
            "stateId": 14,
            "stateName": "Sample Text Data",
            "name": "Texas Taxes",
            "ownerId": 20,
            "ownerName": "Sample Text Data",
            "accountTaxCategoryId": 19,
            "accountTaxCategoryName": "Sample Text Data",
            "serviceTaxCategoryId": 7,
            "serviceTaxCategoryName": "Sample Text Data",
            "taxVendorId": 0,
            "taxVendorName": "Sample Text Data",
            "isReverseVat": true,
            "displayName": "State Taxes",
            "isUsageTaxOnly": true
        }
    ]
}
GETTax/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
View Sample Response
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": 15,
                "countryName": "Sample Text Data",
                "stateId": 11,
                "stateName": "Sample Text Data",
                "name": "Texas Taxes",
                "ownerId": 2,
                "ownerName": "Sample Text Data",
                "accountTaxCategoryId": 12,
                "accountTaxCategoryName": "Sample Text Data",
                "serviceTaxCategoryId": 1,
                "serviceTaxCategoryName": "Sample Text Data",
                "taxVendorId": 27,
                "taxVendorName": "Sample Text Data",
                "isReverseVat": true,
                "displayName": "State Taxes",
                "isUsageTaxOnly": true
            }
        ]
    }
}
GETTax/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
View Sample Response
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": 0,
                "countryName": "Sample Text Data",
                "stateId": 0,
                "stateName": "Sample Text Data",
                "name": "Texas Taxes",
                "ownerId": 22,
                "ownerName": "Sample Text Data",
                "accountTaxCategoryId": 8,
                "accountTaxCategoryName": "Sample Text Data",
                "serviceTaxCategoryId": 10,
                "serviceTaxCategoryName": "Sample Text Data",
                "taxVendorId": 4,
                "taxVendorName": "Sample Text Data",
                "isReverseVat": true,
                "displayName": "State Taxes",
                "isUsageTaxOnly": true,
                "details": {
                    "taxRates": [
                        {
                            "identity": 68,
                            "rate": 32.46,
                            "name": "Sample Text Data",
                            "generalLedgerId": 10,
                            "generalLedgerName": "Sample Text Data",
                            "displayName": "Sample Text Data",
                            "taxOnTax": true,
                            "systemGenerated": true,
                            "taxCategoryId": 80,
                            "taxCategoryName": "Sample Text Data",
                            "sortOrder": 96
                        }
                    ],
                    "usageClasses": [
                        {
                            "identity": 13,
                            "name": "Sample Text Data",
                            "usageRaterTypeId": 91,
                            "usageRaterTypeName": "Sample Text Data",
                            "usageBaseUnitId": 6,
                            "usageBaseUnitName": "Sample Text Data",
                            "usageClassTypeId": 60,
                            "usageClassTypeName": "Sample Text Data",
                            "serviceTaxCategoryId": 47,
                            "serviceTaxCategoryName": "Sample Text Data"
                        }
                    ]
                }
            }
        ]
    }
}
GETTax/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}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "countryId": 15,
        "countryName": "Sample Text Data",
        "stateId": 12,
        "stateName": "Sample Text Data",
        "name": "Texas Taxes",
        "ownerId": 16,
        "ownerName": "Sample Text Data",
        "accountTaxCategoryId": 11,
        "accountTaxCategoryName": "Sample Text Data",
        "serviceTaxCategoryId": 3,
        "serviceTaxCategoryName": "Sample Text Data",
        "taxVendorId": 16,
        "taxVendorName": "Sample Text Data",
        "isReverseVat": true,
        "displayName": "State Taxes",
        "isUsageTaxOnly": true
    }
}
GETTax/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
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "instance": {
        "identity": 1,
        "countryId": 23,
        "countryName": "Sample Text Data",
        "stateId": 9,
        "stateName": "Sample Text Data",
        "name": "Texas Taxes",
        "ownerId": 17,
        "ownerName": "Sample Text Data",
        "accountTaxCategoryId": 3,
        "accountTaxCategoryName": "Sample Text Data",
        "serviceTaxCategoryId": 17,
        "serviceTaxCategoryName": "Sample Text Data",
        "taxVendorId": 15,
        "taxVendorName": "Sample Text Data",
        "isReverseVat": true,
        "displayName": "State Taxes",
        "isUsageTaxOnly": true,
        "details": {
            "taxRates": [
                {
                    "identity": 68,
                    "rate": 32.46,
                    "name": "Sample Text Data",
                    "generalLedgerId": 10,
                    "generalLedgerName": "Sample Text Data",
                    "displayName": "Sample Text Data",
                    "taxOnTax": true,
                    "systemGenerated": true,
                    "taxCategoryId": 80,
                    "taxCategoryName": "Sample Text Data",
                    "sortOrder": 96
                }
            ],
            "usageClasses": [
                {
                    "identity": 13,
                    "name": "Sample Text Data",
                    "usageRaterTypeId": 91,
                    "usageRaterTypeName": "Sample Text Data",
                    "usageBaseUnitId": 6,
                    "usageBaseUnitName": "Sample Text Data",
                    "usageClassTypeId": 60,
                    "usageClassTypeName": "Sample Text Data",
                    "serviceTaxCategoryId": 47,
                    "serviceTaxCategoryName": "Sample Text Data"
                }
            ]
        }
    }
}
PATCHTax/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": 11,
                "name": "Texas Taxes",
                "accountTaxCategoryId": 25,
                "serviceTaxCategoryId": 25,
                "taxVendorId": 12,
                "isReverseVat": true,
                "displayName": "State Taxes",
                "isUsageTaxOnly": true
            }
        ]
    }
}
View Sample Response
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": 8,
                    "countryName": "Sample Text Data",
                    "stateId": 14,
                    "stateName": "Sample Text Data",
                    "name": "Texas Taxes",
                    "ownerId": 25,
                    "ownerName": "Sample Text Data",
                    "accountTaxCategoryId": 24,
                    "accountTaxCategoryName": "Sample Text Data",
                    "serviceTaxCategoryId": 12,
                    "serviceTaxCategoryName": "Sample Text Data",
                    "taxVendorId": 17,
                    "taxVendorName": "Sample Text Data",
                    "isReverseVat": true,
                    "displayName": "State Taxes",
                    "isUsageTaxOnly": true
                }
            }
        ]
    }
}
POSTTax/Code/
Create a new instance of the TaxCode object.
Create a new instance of the TaxCode object.
POST Tax/Code/

{
    "countryId": 22,
    "stateId": 9,
    "name": "Texas Taxes",
    "accountTaxCategoryId": 15,
    "serviceTaxCategoryId": 4,
    "taxVendorId": 7,
    "isReverseVat": true,
    "displayName": "State Taxes",
    "isUsageTaxOnly": true
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "create",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "countryId": 8,
                "countryName": "Sample Text Data",
                "stateId": 24,
                "stateName": "Sample Text Data",
                "name": "Texas Taxes",
                "ownerId": 4,
                "ownerName": "Sample Text Data",
                "accountTaxCategoryId": 11,
                "accountTaxCategoryName": "Sample Text Data",
                "serviceTaxCategoryId": 4,
                "serviceTaxCategoryName": "Sample Text Data",
                "taxVendorId": 17,
                "taxVendorName": "Sample Text Data",
                "isReverseVat": true,
                "displayName": "State Taxes",
                "isUsageTaxOnly": true
            }
        ]
    }
}
PUTTax/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": 14,
    "stateId": 9,
    "name": "Texas Taxes",
    "accountTaxCategoryId": 16,
    "serviceTaxCategoryId": 6,
    "taxVendorId": 0,
    "isReverseVat": true,
    "displayName": "State Taxes",
    "isUsageTaxOnly": true
}
View Sample Response
HTTP/1.1 200 OK
{
    "trackingId": "d2ae5304-2355-44eb-a328-272f02935f8b",
    "type": "update",
    "results": {
        "totalCount": 1,
        "items": [
            {
                "identity": 1,
                "countryId": 15,
                "countryName": "Sample Text Data",
                "stateId": 25,
                "stateName": "Sample Text Data",
                "name": "Texas Taxes",
                "ownerId": 17,
                "ownerName": "Sample Text Data",
                "accountTaxCategoryId": 15,
                "accountTaxCategoryName": "Sample Text Data",
                "serviceTaxCategoryId": 15,
                "serviceTaxCategoryName": "Sample Text Data",
                "taxVendorId": 19,
                "taxVendorName": "Sample Text Data",
                "isReverseVat": true,
                "displayName": "State Taxes",
                "isUsageTaxOnly": true
            }
        ]
    }
}