This service gives you back all data associated to the chosen transaction.{' '}

POST: 
     `URL_BASE + /ws/movimientos.py/transaction_data`

## Receives:

All the parameters that the service receives must be indicated in the body
      of the request.

## Returns:

Depending on the result of the operation, this service can return two
      different JSON:

### Answer JSON OK:

```javascript
{
         "status"
        : <boolean>
        ,
         "transaction_data"
        :{' '}
        {
         "telefono_cuenta"
        : <string>
        ,
         "transaction_code"
        : <string>
        ,
         "user"
        : <string>
        ,
         "user_email"
        : <string>
        ,
         "origin_of_funds"
        : <string>
        ,
         "destination"
        : <string>
        ,
         "destination_phone"
        : <string>
        ,
         "destination_language_id"
        : <integer>
        ,
         "invoice"
        : <integer>
        ,
         "reference"
        :{' '}
        null
        ,
         "concept"
        : <string>
        ,
         "action"
        : <string>
        ,
         "date"
        : <string>
        ,
         "service_name"
        : <string>
        ,
         "characteristics"
        :{' '}
        {
         <characteristics>
         }
        ,
         "affiliate"
        : <string>
        ,
         "affiliate_url"
        : <string>
        ,
         "affiliate_url_image"
        : <string>
        ,
         "amount"
        : <decimal>
        ,
         "amount_fmt"
        : <string>
        ,
         "total_commission"
        : <decimal>
        ,
         "total_commission_fmt"
        : <string>
        ,
         "commission"
        : <decimal>
        ,
         "commission_fmt"
        : <string>
        ,
         "vat_commission"
        : <decimal>
        ,
         "vat_commission_fmt"
        : <string>
        ,
         "vat_operation"
        : <decimal>
        ,
         "vat_operation_fmt"
        : <string>
        ,
         "currency"
        : <string>
        ,
         "total"
        : <decimal>
        ,
         "total_fmt"
        : <string>
         "subject_ticket"
        : <string>
        ,
        {' '}
        "subject_ticket_destination"
        : <string>
        ,
         "ticket_html"
        : <string>
         }
        ,
         "elapsed"
        : <float>
         }
```

## Where:

* `status:` Shows if the call has been successful (true) or not (false).
* `transaction_data:` Data of the requested transaction.
* `telefono_cuenta:` Telephone number of the account of origin of the transaction
* `transaction_code:` Transaction code.
* `user:` Name of the user of origin of the transaction..
* `user_email:` Email of the originating user of the transaction.
* `origin_of_funds:` Name of the source of funds used in the operation.
* `destination:` Name of the target user of the operation.
* `destination_phone:` Telephone number of the destination account of the operation.
* `destination_language_id:` Language identifier of the target user for the operation.
* `invoice:` Invoice number/invoice of the operation.
* `reference:` Invoice / page number of the operation.
* `concept:` Descriptive text of the operation.
* `action:` Name of the action that was executed with this operation.
* `date:` Date on which the transaction occurs.
* `service_name:` Text with the name of the service, if it does not have a name, the concept is returned.
* `characteristics:` Dictionary with the characteristics of the service, explained in greater depth on the endpoint{' '} `get_caracteristicas` .
* `affiliate:` Name of the affiliate of the user who executed the operation.
* `affiliate_url:` Affiliate website url.
* `affiliate_url_image:` Url of the affiliate image (logo).
* `amount:` Amount of the operation without format or commissions.
* `amount_fmt:` Amount of the operation with the applied format, but without commissions.
* `total_commission:` Amount of commission charged without format and with VAT applied.
* `total_commission_fmt:` Amount of commission charged with the format and VAT applied.
* `commission:` Amount of the commission charged to the user without the format and without VAT.
* `commission_fmt:` Formatted commission amount and if VAT applied.
* `vat_commission:` VAT amount of raw commission.
* `vat_commission_fmt:` Commission VAT amount with the format.
* `vat_operation:` VAT amount applied to the operation carried out without format.
* `vat_operation_fmt:` Amount of VAT applied to the operation carried out with the applied currency format..
* `currency:` Name of the currency used in the operation.
* `total:` Total amount of the operation (amount + commission + VAT), without format.
* `total_fmt:` Total amount of the operation (amount + commission + VAT), with format.
* `subject_ticket:` Subject text of the ticket that is sent by mail to the user of origin of the operation.
* `subject_ticket_destination:` Subject text of the ticket that is sent by mail to the target user of the operation.
* `ticket_html:` Ticket that is mailed to users.
* `elapsed:` Operation execution time.

### Answer JSON KO:

```javascript
{
         "status"
        :{' '}
        false
        ,
         "level"
        : <string>
        ,
         "message"
        : <string>
        ,
         "error"
        : <string>
         }
```

## Where:

* `status:` Shows if the call has been successful (true) or not (false).
* `level:` Error importance level.
* `message:` Error message.
* `error:` Sole error code.

## Example requests:

### Python - Requests:

```javascript
import requests
         url ={' '}
        
          "URL_BASE/ws/movimientos.py/transaction_data"
        
         payload ={' '}
        {
        'country_code'
        :{' '}
        'MX'
        ,
         'user_id'
        :{' '}
        '4532'
        ,
         'session_id'
        :{' '}
        '414-YehjRL-mR64z81Nu9gg7og=='
        ,
         'transaction_code'
        :{' '}
        '60995737691715d3cc51aa4ab699fd84'
        }
         files ={' '}
        [
        ]
         headers={' '}
        {
        }
         response = requests
        .request
        (
        "POST"
        , url
        , headers
        =headers
        , data{' '}
        = payload
        , files{' '}
        = files
        )
         print
        (response
        .text
        .encode
        (
        'utf8'
        )
        )
```

### NodeJs - Request:

```javascript
var request = require('request');
         var options = {
         'method': 'POST',
         'url': 'URL_BASE/ws/movimientos.py/transaction_data',
         'headers': {},
         formData: {
         'country_code': 'MX',
         'user_id': '4532',
         'session_id': '414-YehjRL-mR64z81Nu9gg7og==',
         'transaction_code': '60995737691715d3cc51aa4ab699fd84'
         }
         };
         request(options, function (error, response) {{' '}
         if (error) throw new Error(error);
         console.log(response.body);
         });
```

### JavaScript - Fetch:

```javascript
var formdata = new FormData();
         formdata.append("country_code", "MX");
         formdata.append("user_id", "4532");
         formdata.append("session_id",
        "414-YehjRL-mR64z81Nu9gg7og==");
         formdata.append("transaction_code",
        "60995737691715d3cc51aa4ab699fd84");
         var requestOptions = {
         method: 'POST',
         body: formdata,
         redirect: 'follow'
         };
         fetch("URL_BASE/ws/movimientos.py/transaction_data",
        requestOptions)
         .then(response => response.text())
         .then(result => console.log(result))
         .catch(error => console.log('error', error));
```

### CURL:

```javascript
curl --location --request POST{' '}
        
          'URL_BASE/ws/movimientos.py/transaction_data'
        {' '}
        \
         --form 
          'country_code=MX'
        {' '}
        \
         --form 'user_id=4532'{' '}
        \
         --form{' '}
        
          'session_id=414-YehjRL-mR64z81Nu9gg7og=='
        {' '}
        \
         --form{' '}
        
          'transaction_code=60995737691715d3cc51aa4ab699fd84'
```

## Business logic:

With this endpoint all the data associated with the requested transaction
      is returned.
