Request

POST /tax/
Content-Type: application/json
{
    "rate": "0.196", 
    "name": "TVA"
}

Response

201 Created
Content-Type: application/json
Location: /tax/5231cccf4ab63c53dc90056c/
{
    "status": "ACTIVE", 
    "rate": "0.196", 
    "resource_uri": "/api/v1/tax/5231cccf4ab63c53dc90056c/", 
    "id": "5231cccf4ab63c53dc90056c", 
    "name": "TVA"
}

Request

POST /tax/
Content-Type: application/xml
<object>
  <rate>0.196</rate>
  <name>TVA</name>
</object>

Response

201 Created
Content-Type: application/xml; charset=utf-8
Location: /tax/5231cccf4ab63c53dc90056d/
<object>
  <status>ACTIVE</status>
  <rate>0.196</rate>
  <id>5231cccf4ab63c53dc90056d</id>
  <name>TVA</name>
  <resource_uri>/api/v1/tax/5231cccf4ab63c53dc90056d/</resource_uri>
</object>

Request

POST /tax/
Content-Type: text/yaml
{name: !!python/unicode 'TVA', rate: !!python/unicode '0.196'}

Response

201 Created
Content-Type: text/yaml; charset=utf-8
Location: /tax/5231cccf4ab63c53dc90056e/
{id: !!python/unicode '5231cccf4ab63c53dc90056e', name: !!python/unicode 'TVA', rate: !!python/unicode '0.196',
resource_uri: !!python/unicode '/api/v1/tax/5231cccf4ab63c53dc90056e/', status: !!python/unicode 'ACTIVE'}