Find auto-swap by ID
Getting auto-swap data by its ID
Header parameters
x-api-public-keystringOptional
Public API-key
x-api-signaturestringOptional
Signing the request body with a private API-key
Content-typestringOptionalExample:
Request content type
application/json
Body
idstringRequiredExample:
Auto-swap ID
9f653ef5-2aef-4638-861f-2ece2012faf2
Responses
200Success
application/json
post
POST /api-gateway/auto-swaps/get HTTP/1.1
Host: ocp.onchainpay.io
Content-Type: application/json
Accept: */*
Content-Length: 45
{
"id": "9f653ef5-2aef-4638-861f-2ece2012faf2"
}
200Success
{
"success": true,
"response": {
"id": "9f653ef5-2aef-4638-861f-2ece2012faf2",
"organizationId": "a79868b3-d651-425d-9e15-cb25cf891c6e",
"status": "PENDING",
"message": null,
"addressRiskLevel": "Low",
"currencyFrom": "USDT",
"networkFrom": "bsc",
"currencyTo": "BTC",
"networkTo": "bitcoin",
"amountFrom": "1000",
"amountFromUSD": "1000",
"amountTo": "0.1",
"amountToUSD": "990",
"amountToReceive": "0.999",
"rate": "10000",
"blockchainFeeFrom": "0.34",
"blockchainFeeFromUSD": "0.34",
"blockchainFeeTo": "0.001",
"blockchainFeeToUSD": "10",
"serviceFee": "10",
"webhookUrl": "https://merchant.domain/webhooks/...",
"createdAt": "2025-07-15T10:50:46.060Z",
"updatedAt": "2025-07-15T10:50:46.060Z"
}
}
Last updated