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
| GUID | Description | Is final state |
|---|---|---|
| FA4B44CA-685B-4625-8C47-81969A6E2598 | Pending | NO |
| E24A00E1-10A4-4E23-8D60-61EB055480AF | Informed to the Bank | NO |
| 0FFA0273-BC86-4BFA-9144-7FBF415B06EA | Pending Bank Confirmation | NO |
| 1165CCFC-0E13-427A-86D2-E89782F9B2FF | Informed to the Bank with Error | YES - Transaction not succesful |
| 5FB79B38-00ED-47B8-B7CE-B760CBEAE9D8 | Processed | YES - Transaction succesful |