Get an order
curl --request GET \
--url https://api.xentfi.com/v1/onramp/orders/{id} \
--header 'apiKey: <api-key>' \
--header 'orgId: <api-key>'const options = {method: 'GET', headers: {apiKey: '<api-key>', orgId: '<api-key>'}};
fetch('https://api.xentfi.com/v1/onramp/orders/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.xentfi.com/v1/onramp/orders/{id}"
headers = {
"apiKey": "<api-key>",
"orgId": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.xentfi.com/v1/onramp/orders/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apiKey", "<api-key>")
req.Header.Add("orgId", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {method: 'GET', headers: {apiKey: '<api-key>', orgId: '<api-key>'}};
fetch('https://api.xentfi.com/v1/onramp/orders/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reference": "<string>",
"rail": "bank_transfer",
"status": "initiated",
"walletId": "<string>",
"assetId": "<string>",
"currency": "<string>",
"amount": "<string>",
"amountFiat": "<string>",
"feeFiat": "<string>",
"amountFiatPayable": "<string>",
"amountFiatReceived": "<string>",
"rate": "<string>",
"paymentInstructions": {
"type": "bank_transfer",
"bank": {
"name": "<string>",
"accountName": "<string>",
"accountNumber": "<string>"
},
"mobileMoney": {
"phoneNumber": "<string>",
"networkProvider": "<string>",
"nextStep": "PIN",
"prompt": "<string>"
},
"amountToPay": "<string>",
"currency": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
},
"customer": {
"name": "<string>",
"email": "<string>"
},
"transactionHash": "<string>",
"failureReason": "<string>",
"failureStage": "provider_setup",
"requiresOtp": true,
"expiresAt": "2023-11-07T05:31:56Z",
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Wallet not found",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}On-ramp
Get an order
GET
/
v1
/
onramp
/
orders
/
{id}
Get an order
curl --request GET \
--url https://api.xentfi.com/v1/onramp/orders/{id} \
--header 'apiKey: <api-key>' \
--header 'orgId: <api-key>'const options = {method: 'GET', headers: {apiKey: '<api-key>', orgId: '<api-key>'}};
fetch('https://api.xentfi.com/v1/onramp/orders/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.xentfi.com/v1/onramp/orders/{id}"
headers = {
"apiKey": "<api-key>",
"orgId": "<api-key>"
}
response = requests.get(url, headers=headers)
print(response.text)package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.xentfi.com/v1/onramp/orders/{id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("apiKey", "<api-key>")
req.Header.Add("orgId", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}const options = {method: 'GET', headers: {apiKey: '<api-key>', orgId: '<api-key>'}};
fetch('https://api.xentfi.com/v1/onramp/orders/{id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"data": {
"id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
"reference": "<string>",
"rail": "bank_transfer",
"status": "initiated",
"walletId": "<string>",
"assetId": "<string>",
"currency": "<string>",
"amount": "<string>",
"amountFiat": "<string>",
"feeFiat": "<string>",
"amountFiatPayable": "<string>",
"amountFiatReceived": "<string>",
"rate": "<string>",
"paymentInstructions": {
"type": "bank_transfer",
"bank": {
"name": "<string>",
"accountName": "<string>",
"accountNumber": "<string>"
},
"mobileMoney": {
"phoneNumber": "<string>",
"networkProvider": "<string>",
"nextStep": "PIN",
"prompt": "<string>"
},
"amountToPay": "<string>",
"currency": "<string>",
"expiresAt": "2023-11-07T05:31:56Z"
},
"customer": {
"name": "<string>",
"email": "<string>"
},
"transactionHash": "<string>",
"failureReason": "<string>",
"failureStage": "provider_setup",
"requiresOtp": true,
"expiresAt": "2023-11-07T05:31:56Z",
"metadata": {},
"createdAt": "2023-11-07T05:31:56Z",
"updatedAt": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z"
}
}{
"error": {
"code": "NOT_FOUND",
"message": "Wallet not found",
"timestamp": "2023-11-07T05:31:56Z",
"requestId": "<string>"
}
}
