<turbo-stream action="update" target="wiki_3611_3760_subpage_3770_info"><template>
<p>If you want to delete a transfer please see below for both JSON and JSONAPI example.</p>
<p>NOTE: Remember to substitute the token ([API SECURITY TOKEN]) and the service id (the [SERVICE ID] below) to your own token and service id.</p>
<p>JSON:</p>
<pre class="card">curl -H "Authorization: Bearer [API SECURITY TOKEN]"
  -H "Content-Type: application/json"
  -H "Accept: application/json"
  -X DELETE
  http://staging.myrapidi.com/api/v2/service/[SERVICE ID]/transfers/4
</pre>



<p>The output for JSON on successful deletion is that the response code <code>Status: 204 No Content</code> is returned.</p>
<p>For JSON the output when your deletion has failed (ex. transfer has already been deleted) is the response code Status: <code>404 Not Found</code> + an error message</p>
<p>Example error message if the given transfer ID did not exist:</p>
<pre class="card">{
  "errors": [
    {
      "source": {
        "pointer": "/data/attributes/id"
      },
      "detail": "not found - could not find Transfer with id 4"
    }
  ]
}
</pre>
<p>
</p>
</template></turbo-stream>
<turbo-stream action="prepend" target="flash"><template></template></turbo-stream>
