Check TX status

This endpoint is used to check the status of a FIAT transaction using the id provided to create the TX.

https://api.exchangecopter.com/txStatus

GET

import axios from 'axios';

const fetchEstadoTransaccion = async () => {
      try {
        const response = await axios.get('https://api.exchangecopter.com/txStatus', {
          headers: {
            'Authorization': 'Bearer your_token_here',
          },
          params: {
            'IdOperacion': 'Atb2y9' // tx id when creating the transaction.
          }
        });

        console.log(response.data);  
      } catch (err) {
       console.error(err.message); 
      }
    };

👍

Status 200

Response in successful

{
  data:{
  	txStatus: "string",
        message:"Description of status"
  }
}


📘

Table with message codes meanings


GUIDDescriptionIs final state
FA4B44CA-685B-4625-8C47-81969A6E2598PendingNO
E24A00E1-10A4-4E23-8D60-61EB055480AFInformed to the BankNO
0FFA0273-BC86-4BFA-9144-7FBF415B06EAPending Bank ConfirmationNO
1165CCFC-0E13-427A-86D2-E89782F9B2FFInformed to the Bank with ErrorYES - Transaction not succesful
5FB79B38-00ED-47B8-B7CE-B760CBEAE9D8ProcessedYES - Transaction succesful