Fetch a swap

Fetch the details of a single customer by id.

GET https://api.ivorypay.io/v1/swaps/:id

Path Parameters

NameTypeDescription

id*

String

The ID of a swap

{
    "success": true,
    "message": "Query successful",
    "data": {
        "uuid": "f78e59be-3a50-483a-a470-d5f8f0f533a2",
        "inputCryptocurrency": "USDC",
        "outputCryptocurrency": "USDT",
        "conversionRate": 0,
        "localFiat": "NGN",
        "inputCryptocurrencyAmount": 0.003,
        "minOutputCryptocurrencyAmount": 0.002982015,
        "actualOutputCryptocurrencyAmount": null,
        "amountInUSD": 0.0030000939394256975,
        "amountInLocalFiat": 1.5000469697128487,
        "usdToLocalFiatRate": 0,
        "businessId": "e0353a89-09dc-4304-ac1e-618b6f88f721",
        "userId": "3f795e70-3267-458d-9d45-4d66d01e118d",
        "feeInCrypto": 0.00003,
        "feeInUSD": 0.000030000939394256977,
        "status": "PENDING",
        "environment": "TEST",
        "completedAt": null,
        "createdAtDateOnly": "2022-10-03",
        "createdAt": "2022-10-03T19:00:04.098Z",
        "business": {
            "uuid": "e0353a89-09dc-4304-ac1e-618b6f88f721",
            "name": "Odogwu Compass",
            "description": null,
            "logoImagePath": null,
            "email": "nwakasistephenify@gsdmail.com",
            "phoneNumber": "+2347856934587",
            "address": null,
            "countryId": "86666304-7d8e-42ca-8007-413570dd6ce9",
            "industryId": null,
            "staffSize": null,
            "website": null,
            "supportEmail": null,
            "twitter": null,
            "facebook": null,
            "instagram": null,
            "webhookUrl": "https://api.zendesk.ng/webhook",
            "userId": "3f795e70-3267-458d-9d45-4d66d01e118d",
            "isVerified": false,
            "type": "registered",
            "status": "active",
            "suspensionReason": null,
            "testPublicAddress": "DDTpcfsvqoa2zCNm5HLBg5g9xX3GVs6z94FPAwW7xxcP",
            "livePublicAddress": null,
            "context": "TEST",
            "createdAt": "2022-09-09T05:33:16.595Z",
            "user": {
                "uuid": "3f795e70-3267-458d-9d45-4d66d01e118d",
                "firstName": "Stephen",
                "lastName": "Nwakasi",
                "email": "nwakasistephenify@gsdmail.com",
                "phoneNumber": "+2347856934587",
                "countryId": "86666304-7d8e-42ca-8007-413570dd6ce9",
                "isDeveloper": true,
                "isEmailVerified": true,
                "type": "customer",
                "status": "active",
                "activeBusinessId": "e0353a89-09dc-4304-ac1e-618b6f88f721",
                "activeNotification": false,
                "createdAtDateOnly": "2022-09-09",
                "createdAt": "2022-09-09T05:33:16.595Z",
                "updatedAt": "2022-09-09T05:34:39.544Z"
            }
        }
    }
}

Last updated