# Rest API

**Save Table Rate Shipping**

Endpoint: /V1/lof-tablerateshipping/tablerateshipping

`Method:` **POST**

`Params:`&#x20;

```json
{
  "TableRateShipping": {
    "lofshipping_id": 0,
    "partner_id": "string",
    "website_id": 0,
    "dest_country_id": "string",
    "dest_region_id": 0,
    "dest_zip": "string",
    "dest_zip_to": "string",
    "price": 0,
    "weight_from": 0,
    "weight_to": 0,
    "shipping_method_id": 0,
    "free_shipping": 0,
    "method_name": "string",
    "extension_attributes": {},
    "custom_attributes": [
      {
        "attribute_code": "string",
        "value": "string"
      }
    ]
  }
}
```

Response Data:

```json
{
  "lofshipping_id": 0,
  "partner_id": "string",
  "website_id": 0,
  "dest_country_id": "string",
  "dest_region_id": 0,
  "dest_zip": "string",
  "dest_zip_to": "string",
  "price": 0,
  "weight_from": 0,
  "weight_to": 0,
  "shipping_method_id": 0,
  "free_shipping": 0,
  "method_name": "string",
  "extension_attributes": {},
  "custom_attributes": [
    {
      "attribute_code": "string",
      "value": "string"
    }
  ]
}
```

**Get List Table Rate Shipping**

Endpoint:/V1/lof-tablerateshipping/tablerateshipping/search

`Method:`` `**`GET`**

`Params:`&#x20;

*

Response Data:

```json
{
  "items": [
    {
      "lofshipping_id": 0,
      "partner_id": "string",
      "website_id": 0,
      "dest_country_id": "string",
      "dest_region_id": 0,
      "dest_zip": "string",
      "dest_zip_to": "string",
      "price": 0,
      "weight_from": 0,
      "weight_to": 0,
      "shipping_method_id": 0,
      "free_shipping": 0,
      "method_name": "string",
      "extension_attributes": {},
      "custom_attributes": [
        {
          "attribute_code": "string",
          "value": "string"
        }
      ]
    }
  ],
  "search_criteria": {
    "filter_groups": [
      {
        "filters": [
          {
            "field": "string",
            "value": "string",
            "condition_type": "string"
          }
        ]
      }
    ],
    "sort_orders": [
      {
        "field": "string",
        "direction": "string"
      }
    ],
    "page_size": 0,
    "current_page": 0
  },
  "total_count": 0
}
```

**Get Table Rate Shipping**

Endpoint: /V1/lof-tablerateshipping/tablerateshipping/:tableRateShippingId

`Method:`` `**`GET`**

`Params:`&#x20;

* tableRateShippingId

Response Data:

```json
{
  "lofshipping_id": 0,
  "partner_id": "string",
  "website_id": 0,
  "dest_country_id": "string",
  "dest_region_id": 0,
  "dest_zip": "string",
  "dest_zip_to": "string",
  "price": 0,
  "weight_from": 0,
  "weight_to": 0,
  "shipping_method_id": 0,
  "free_shipping": 0,
  "method_name": "string",
  "extension_attributes": {},
  "custom_attributes": [
    {
      "attribute_code": "string",
      "value": "string"
    }
  ]
}
```

**Edit Table Rate Shipping**

Endpoint: /V1/lof-tablerateshipping/tablerateshipping/:tableRateShippingId

`Method:`` `**`PUT`**

`Params:`&#x20;

* tableRateShippingId
* Body:

```json
{
  "TableRateShipping": {
    "lofshipping_id": 0,
    "partner_id": "string",
    "website_id": 0,
    "dest_country_id": "string",
    "dest_region_id": 0,
    "dest_zip": "string",
    "dest_zip_to": "string",
    "price": 0,
    "weight_from": 0,
    "weight_to": 0,
    "shipping_method_id": 0,
    "free_shipping": 0,
    "method_name": "string",
    "extension_attributes": {},
    "custom_attributes": [
      {
        "attribute_code": "string",
        "value": "string"
      }
    ]
  }
}
```

Response Data:

```json
{
  "lofshipping_id": 0,
  "partner_id": "string",
  "website_id": 0,
  "dest_country_id": "string",
  "dest_region_id": 0,
  "dest_zip": "string",
  "dest_zip_to": "string",
  "price": 0,
  "weight_from": 0,
  "weight_to": 0,
  "shipping_method_id": 0,
  "free_shipping": 0,
  "method_name": "string",
  "extension_attributes": {},
  "custom_attributes": [
    {
      "attribute_code": "string",
      "value": "string"
    }
  ]
}
```

**Delete Table Rate Shipping**

Endpoint: /V1/lof-tablerateshipping/tablerateshipping/:tableRateShippingI

`Method:`` `**`DELETE`**

`Params:`&#x20;

* tableRateShippingI

Response Data:

```json
true
```
