createTaxProcessor
post
/ccadmin/v1/taxProcessors
Create Tax Processor. Creates a new tax processor of given type and input params.
Request
Supported Media Types
- application/json
Body Parameter
Root Schema : createTaxProcessor_request
{
"country":"US",
"city":"alabama",
"defaultTaxRate":6,
"postalCode":"454455",
"type":"avalara",
"enabled":true,
"url":"https://development.avalara.net/1.0/tax/get",
"password":"asbde",
"fallbackEnabled":false,
"merchantId":"333",
"addressLine1":"abc",
"addressLine2":"abc",
"region":"al",
"showTaxSummary":true,
"username":"Karna"
}
- addressLine1
-
Type:
stringRequired:trueAddress Line 1. - addressLine2
-
Type:
stringAddress Line 2. - addressLine3
-
Type:
stringAddress Line 3. - city
-
Type:
stringRequired:trueCity name. - country
-
Type:
stringRequired:trueCountry Name. - defaultTaxRate
-
Type:
numberIndicates the tax rate used in case of fallback - fallbackEnabled
-
Type:
booleanIndicates whether fallback tax calculation is enabled in case of failures - isActive
-
Type:
booleanRequired:trueStatus if tax account is active. - merchantId
-
Type:
stringRequired:trueUnique identifier of merchant. - password
-
Type:
stringRequired:trueValid password for above username. - postalCode
-
Type:
stringRequired:truePostal code. - region
-
Type:
stringRequired:trueRegion or State name. - showTaxSummary
-
Type:
booleanIndicates whether tax summary will be shown or not. - type
-
Type:
stringRequired:trueName of the tax processor used. - url
-
Type:
stringRequired:trueUrl of tax processor rest endpoint. - username
-
Type:
stringRequired:trueRegistered username with tax processor.
Response
Supported Media Types
- application/json
200 Response
Following model is returned when operation succeeds.
Body
Root Schema : createTaxProcessor_response
- addressLine1
-
Type:
stringAddress Line 1. - addressLine2
-
Type:
stringAddress Line 2. - addressLine3
-
Type:
stringAddress Line 3. - city
-
Type:
stringCity name. - country
-
Type:
stringCountry Name. - defaultTaxRate
-
Type:
numberIndicates the tax rate used in case of fallback - fallbackEnabled
-
Type:
booleanIndicates whether fallback tax calculation is enabled in case of failures - hasPassword
-
Type:
booleanIndicates whether password is set or not. - isActive
-
Type:
booleanStatus if tax account is active. - merchantId
-
Type:
stringUnique identifier of merchant. - postalCode
-
Type:
stringPostal code. - region
-
Type:
stringRegion or State name. - repositoryId
-
Type:
stringThe ID of the newly created tax processor item. - showTaxSummary
-
Type:
booleanwhether to show tax summary or not - type
-
Type:
stringName of the tax processor used. - url
-
Type:
stringUrl of tax processor rest endpoint. - username
-
Type:
stringRegistered username with tax processor.
Example application/json
{
"country":"US",
"city":"alabama",
"defaultTaxRate":6,
"postalCode":"454455",
"hasPassword":true,
"type":"avalara",
"enabled":true,
"url":"https://development.avalara.net/1.0/tax/get",
"fallbackEnabled":false,
"merchantId":"333",
"addressLine1":"abc",
"addressLine2":"abc",
"region":"al",
"showTaxSummary":true,
"username":"Karna"
}
Default Response
The error response.
The following are the internal error codes thrown by this API when the request processing fails in Oracle Commerce Cloud:
|Error Code|Description|
|------------------|------------------|
|500|If required property is missing, invalid or is assigned null value.|
|35002|If there is internal error while creating tax processor.|
|40007|If active tax processor already exists.|
Body
Root Schema : errorModel
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - errors
-
Type:
arrayerrorsAdditional Properties Allowed:An optional list of errors if multiple errors were encountered - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code - type
-
Type:
stringThe URI to the HTTP state code definition
Nested Schema : errors
Nested Schema : items
Type:
object- devMessage
-
Type:
stringAn optional non-localized message containing technical information for developers - errorCode
-
Type:
stringThe numerical code identifying the error - message
-
Type:
stringThe localized message describing the error - moreInfo
-
Type:
stringAn optional non-localized message with more information - o:errorPath
-
Type:
stringAn optional machine readable description of where the error occurred - status
-
Type:
stringThe HTTP status code
Examples
Sample Request:
{
"country": "US",
"city": "alabama",
"defaultTaxRate": 6,
"postalCode": "454455",
"type": "avalara",
"enabled": true,
"url": "https://development.avalara.net/1.0/tax/get",
"password": "asbde",
"fallbackEnabled": false,
"merchantId": "333",
"addressLine1": "abc",
"addressLine2": "abc",
"region": "al",
"showTaxSummary": true,
"username": "Karna"
}
Sample Response Payload returned by endpoint:
{
"country": "US",
"city": "alabama",
"defaultTaxRate": 6,
"postalCode": "454455",
"hasPassword": true,
"type": "avalara",
"enabled": true,
"url": "https://development.avalara.net/1.0/tax/get",
"fallbackEnabled": false,
"merchantId": "333",
"addressLine1": "abc",
"addressLine2": "abc",
"region": "al",
"showTaxSummary": true,
"username": "Karna"
}