# ping refactor to Ping

Source: https://developer.avalara.com/soap-to-restv2-refactor-guide/ngq3287375487598/

# ping refactor to Ping

Understand the differences between SOAP and RESTv2 implementations of the Ping method, including field differences and examples.

This example shows how to refactor from [ping](https://developer.avalara.com/api-reference/avatax/soap/methods/ping/) in SOAP to [Ping](https://developer.avalara.com/api-reference/avatax/rest/v2/methods/Utilities/Ping/) in RESTv2. It also includes a table showing the differences in the fields that are included in each API.

SOAP

RESTv2

Ping.Message

N/A

## Examples

**SOAP**

```
POST https://development.avalara.net/Tax/TaxSvc.asmx/V2
    {{accountId}} {{licenseKey}}    Test Test SOAP_API      Ping Test  
```

**REST V2**

```
curl
  -X GET
  -H 'Accept: application/json'
  -H 'Authorization: Basic ${btoa(`:`)}'
  'https://sandbox-rest.avatax.com/api/v2/utilities/ping'
```