POST Taxes

Creates a new tax.

Request Information

URI Parameters

None.

Body Parameters

The data of the tax.

TaxDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

NetworkId

globally unique identifier

None.

Code

string

None.

Description

string

None.

Type

integer

None.

Mode

integer

None.

UseMode

integer

None.

Active

boolean

None.

Included

boolean

None.

TaxValidities

Collection of TaxesValidityDto

None.

TaxBillingConfiguration

TaxesBillingConfigurationDto

None.

CodeDescription

string

None.

TypeDescription

string

None.

CurrentValueString

string

None.

ModeDescription

string

None.

UseModeDescription

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Id": "15d6d9ec-28fa-4bd8-9b26-5e3edb883cb0",
  "NetworkId": "76de829a-1b66-4e21-a623-a81658879f41",
  "Code": "sample string 3",
  "Description": "sample string 4",
  "Type": 1,
  "Mode": 1,
  "UseMode": 1,
  "Active": true,
  "Included": true,
  "TaxValidities": [
    {
      "Id": "6836b11f-fb8c-4c31-98cc-e8f0cc178a12",
      "NetworkId": "06247a57-8a57-4b54-a3b8-0d90f8f4e336",
      "TaxId": "8254cd33-17e9-4415-8a8c-3f55c21acf9f",
      "Amount": 4.0,
      "DateFrom": "2025-04-25T12:19:56.4269543Z",
      "DateTo": "2025-04-25T12:19:56.4269543Z",
      "DisplayDateFrom": "2025/04/25 12:19:56",
      "DisplayDateTo": "2025/04/25 12:19:56"
    },
    {
      "Id": "6836b11f-fb8c-4c31-98cc-e8f0cc178a12",
      "NetworkId": "06247a57-8a57-4b54-a3b8-0d90f8f4e336",
      "TaxId": "8254cd33-17e9-4415-8a8c-3f55c21acf9f",
      "Amount": 4.0,
      "DateFrom": "2025-04-25T12:19:56.4269543Z",
      "DateTo": "2025-04-25T12:19:56.4269543Z",
      "DisplayDateFrom": "2025/04/25 12:19:56",
      "DisplayDateTo": "2025/04/25 12:19:56"
    }
  ],
  "TaxBillingConfiguration": {
    "Id": "82868848-b963-4b13-b42d-ffe9c743aaae",
    "TaxId": "bf40cc88-8a46-4929-a046-53fa42393448",
    "BillingType": 64,
    "Factor": 64,
    "Code": "sample string 2",
    "Description": "sample string 3"
  },
  "CodeDescription": "sample string 3 - sample string 4",
  "TypeDescription": "Fixed Tax",
  "CurrentValueString": "",
  "ModeDescription": "Perceptions",
  "UseModeDescription": "Merchant"
}

application/xml, text/xml

Sample:
<TaxDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ationet.Model">
  <Active>true</Active>
  <Code>sample string 3</Code>
  <Description>sample string 4</Description>
  <Id>15d6d9ec-28fa-4bd8-9b26-5e3edb883cb0</Id>
  <Included>true</Included>
  <Mode>1</Mode>
  <NetworkId>76de829a-1b66-4e21-a623-a81658879f41</NetworkId>
  <TaxBillingConfiguration>
    <BillingType>64</BillingType>
    <Code>sample string 2</Code>
    <Description>sample string 3</Description>
    <Factor>64</Factor>
    <Id>82868848-b963-4b13-b42d-ffe9c743aaae</Id>
    <TaxId>bf40cc88-8a46-4929-a046-53fa42393448</TaxId>
  </TaxBillingConfiguration>
  <TaxValidities>
    <TaxesValidityDto>
      <Amount>4</Amount>
      <DateFrom>2025-04-25T12:19:56.4269543Z</DateFrom>
      <DateTo>2025-04-25T12:19:56.4269543Z</DateTo>
      <Id>6836b11f-fb8c-4c31-98cc-e8f0cc178a12</Id>
      <NetworkId>06247a57-8a57-4b54-a3b8-0d90f8f4e336</NetworkId>
      <TaxId>8254cd33-17e9-4415-8a8c-3f55c21acf9f</TaxId>
    </TaxesValidityDto>
    <TaxesValidityDto>
      <Amount>4</Amount>
      <DateFrom>2025-04-25T12:19:56.4269543Z</DateFrom>
      <DateTo>2025-04-25T12:19:56.4269543Z</DateTo>
      <Id>6836b11f-fb8c-4c31-98cc-e8f0cc178a12</Id>
      <NetworkId>06247a57-8a57-4b54-a3b8-0d90f8f4e336</NetworkId>
      <TaxId>8254cd33-17e9-4415-8a8c-3f55c21acf9f</TaxId>
    </TaxesValidityDto>
  </TaxValidities>
  <Type>1</Type>
  <UseMode>1</UseMode>
</TaxDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

State of the action, and if created returns the tax as TaxDto and the link to de tax.

TaxDto
NameDescriptionTypeAdditional information
Id

globally unique identifier

None.

NetworkId

globally unique identifier

None.

Code

string

None.

Description

string

None.

Type

integer

None.

Mode

integer

None.

UseMode

integer

None.

Active

boolean

None.

Included

boolean

None.

TaxValidities

Collection of TaxesValidityDto

None.

TaxBillingConfiguration

TaxesBillingConfigurationDto

None.

CodeDescription

string

None.

TypeDescription

string

None.

CurrentValueString

string

None.

ModeDescription

string

None.

UseModeDescription

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Id": "fe34b844-3194-43e2-9a39-ba0955adf5b9",
  "NetworkId": "0bed1c37-0765-4545-88c2-a71fb7ce81ea",
  "Code": "sample string 3",
  "Description": "sample string 4",
  "Type": 1,
  "Mode": 1,
  "UseMode": 1,
  "Active": true,
  "Included": true,
  "TaxValidities": [
    {
      "Id": "49ad4665-7f3f-4430-ad94-bbd819047f95",
      "NetworkId": "d1b1e85c-95b0-483b-b04f-6694e13c655a",
      "TaxId": "f00bc0fd-1b1f-4809-9c6b-edb71a1d604d",
      "Amount": 4.0,
      "DateFrom": "2025-04-25T12:19:56.4582059Z",
      "DateTo": "2025-04-25T12:19:56.4582059Z",
      "DisplayDateFrom": "2025/04/25 12:19:56",
      "DisplayDateTo": "2025/04/25 12:19:56"
    },
    {
      "Id": "49ad4665-7f3f-4430-ad94-bbd819047f95",
      "NetworkId": "d1b1e85c-95b0-483b-b04f-6694e13c655a",
      "TaxId": "f00bc0fd-1b1f-4809-9c6b-edb71a1d604d",
      "Amount": 4.0,
      "DateFrom": "2025-04-25T12:19:56.4582059Z",
      "DateTo": "2025-04-25T12:19:56.4582059Z",
      "DisplayDateFrom": "2025/04/25 12:19:56",
      "DisplayDateTo": "2025/04/25 12:19:56"
    }
  ],
  "TaxBillingConfiguration": {
    "Id": "18d5128b-db5b-4f1b-a202-d452d412f87a",
    "TaxId": "47cc6e90-5559-4a78-9a0f-8912550477dd",
    "BillingType": 64,
    "Factor": 64,
    "Code": "sample string 2",
    "Description": "sample string 3"
  },
  "CodeDescription": "sample string 3 - sample string 4",
  "TypeDescription": "Fixed Tax",
  "CurrentValueString": "",
  "ModeDescription": "Perceptions",
  "UseModeDescription": "Merchant"
}

application/xml, text/xml

Sample:
<TaxDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Ationet.Model">
  <Active>true</Active>
  <Code>sample string 3</Code>
  <Description>sample string 4</Description>
  <Id>fe34b844-3194-43e2-9a39-ba0955adf5b9</Id>
  <Included>true</Included>
  <Mode>1</Mode>
  <NetworkId>0bed1c37-0765-4545-88c2-a71fb7ce81ea</NetworkId>
  <TaxBillingConfiguration>
    <BillingType>64</BillingType>
    <Code>sample string 2</Code>
    <Description>sample string 3</Description>
    <Factor>64</Factor>
    <Id>18d5128b-db5b-4f1b-a202-d452d412f87a</Id>
    <TaxId>47cc6e90-5559-4a78-9a0f-8912550477dd</TaxId>
  </TaxBillingConfiguration>
  <TaxValidities>
    <TaxesValidityDto>
      <Amount>4</Amount>
      <DateFrom>2025-04-25T12:19:56.4582059Z</DateFrom>
      <DateTo>2025-04-25T12:19:56.4582059Z</DateTo>
      <Id>49ad4665-7f3f-4430-ad94-bbd819047f95</Id>
      <NetworkId>d1b1e85c-95b0-483b-b04f-6694e13c655a</NetworkId>
      <TaxId>f00bc0fd-1b1f-4809-9c6b-edb71a1d604d</TaxId>
    </TaxesValidityDto>
    <TaxesValidityDto>
      <Amount>4</Amount>
      <DateFrom>2025-04-25T12:19:56.4582059Z</DateFrom>
      <DateTo>2025-04-25T12:19:56.4582059Z</DateTo>
      <Id>49ad4665-7f3f-4430-ad94-bbd819047f95</Id>
      <NetworkId>d1b1e85c-95b0-483b-b04f-6694e13c655a</NetworkId>
      <TaxId>f00bc0fd-1b1f-4809-9c6b-edb71a1d604d</TaxId>
    </TaxesValidityDto>
  </TaxValidities>
  <Type>1</Type>
  <UseMode>1</UseMode>
</TaxDto>