Request

PUT /invoice/5231cc3e4ab63c53dc900502/cancel/
Content-Type: application/json

Response

200 OK
Content-Type: application/json
{
    "credit_note_uri": "/api/v1/credit_note/5231cc794ab63c53dc900528/"
}

Request

PUT /invoice/5231cc424ab63c53dc900506/cancel/
Content-Type: application/xml

Response

200 OK
Content-Type: application/xml; charset=utf-8
<response>
  <credit_note_uri>/api/v1/credit_note/5231cc7e4ab63c53dc90052b/</credit_note_uri>
</response>

Request

PUT /invoice/5231cc464ab63c53dc90050a/cancel/
Content-Type: text/yaml

Response

200 OK
Content-Type: text/yaml; charset=utf-8
{credit_note_uri: !!python/unicode '/api/v1/credit_note/5231cc824ab63c53dc90052e/'}