Annul Cashier VAT Receipt
Texto

Method


The method to be called is:



Parameters


In the request headers the Authorization header must have the Access Token:

  • Authorization: {{accessToken}}


JSON body


In the body of the POST a JSON structure like this one has to be passed:

{
"document": {
"DOCTYPE": 2,
"DocumentNumber": 123,
"reasonForCancellation": "your reason here"
}
}

 

Return Information


Any call made to this method will return a JSON information with this structure:

  1. If the option value is “0”:


    {
    "code": 0,
    "message": "Document no: 123 was found."
    }


  2. In case of error:


    {
    "code": 100,
    "message": "Error message"
    }



JSON Specification for Annul Cashier VAT Receipt



Document


 
NameTypePHC GO EntityPHC GO FieldObservations
docType1IntegerTsrendocType of document to annul
documentNumber1StringRerno
reasonForCancellationStringRenullifyReason

 


Footnotes


1 - Required