The Change API
Dados da encomenda
Obter dados de uma encomenda específica
get
https://api.thechange.ltd/orders/{id}
Cabeçalhos
Campo | Tipo | Descrição |
---|---|---|
X-API-KEY | String | A sua chave API |
Parâmetros de caminho
Campo | Tipo | Descrição |
---|---|---|
id | String | ID da encomenda |
Resposta bem-sucedida
HTTP/1.1 200 OK
{
"id": "S0Rr3fV3aWEv",
"send": "BTC",
"receive": "ETH",
"sendNetwork": "BTC",
"receiveNetwork": "ETH",
"sendAmount": "0.15",
"receiveAmount": "4.0506936",
"estimatedSendAmount": "0.15",
"estimatedReceiveAmount": "4.0506936",
"sendAddress": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
"sendTag": null,
"receiveAddress": "0x0000000000000000000000000000000000000000",
"receiveTag": null,
"status": "Awaiting Deposit",
"hashIn": null,
"hashOut": null,
"networkFee": "0",
"earned": "0",
"createdAt": 1643036313520,
"updatedAt": 1643036313520
}