Sokin Embeded API
  1. v2025-12-01
Sokin Embeded API
  • Getting Started
    • Sokin Definitions
    • Guides
      • Authentication
      • Receiving Payments
      • FX Payments
      • Payments
      • Unfunded Payments
      • Unfunded FX Payments
  • Authentication
    • Get Token
      POST
    • Get Token on behalf of corporate
      POST
    • Schemas
      • TokenResponse
  • Corporate Currency Accounts
    • v2025-12-01
      • Get Corporate Currency Accounts
      • Get Corporate Currency Account By Reference
    • Schemas
      • GetCCAByReferenceResponse
      • GetCCAsResponse
      • GetCCAsResponseItem
      • GetCCAByReferenceResponsePayInDetail
      • PaginationInfo
  • Beneficiaries
    • v2025-12-01
      • Get Beneficiary Fields
      • Create External Beneficiary
      • Get Beneficiary List
      • Get Beneficiary Details
      • Delete Beneficiary
    • Schemas
      • BeneficiaryDetailsResponse
      • CreateExternalBeneficiaryRequest
      • CreateExternalBeneficiaryResponse
      • GetBeneficiaryFieldsResponse
      • BeneficiaryListResponse
      • BeneficiaryListResponse
  • Instruction Requests
    • v2025-12-01
      • Get Instruction Request By Reference
      • Create Payment Instruction Request
      • Create Fx Instruction Request
      • Create Fx Payment Instruction Request
      • Create Unfunded Payment Instruction Request
      • Create Unfunded Fx Payment Instruction Request
    • Schemas
      • CreateFXInstructionRequest
      • CreateFxPaymentInstructionRequest
      • CreateInstructionRequestResponse
      • CreatePaymentInstructionRequest
      • CreateResellerFxPaymentInstructionRequest
      • CreateResellerPaymentInstructionRequest
      • GetInstructionRequestResponse
  • Instructions
    • v2025-12-01
      • Get Instruction By Reference
    • Schemas
      • GetInstructionResponse
  • Foreign Exchange
    • v2025-12-01
      • Get Fx Rate
        POST
    • Schemas
      • FxRateRequest
  • Webhooks
    • Webhooks
    • Schemas
      • InstructionCreated
      • InstructionReqeustRejected
      • InstructionProcessedWebhook
      • InstructionRejectedWebhook
      • OnboardingRequestApproved
      • OnboardingRequestRejected
      • CorporateActivated
      • CorporateDeactivated
      • CorporateCurrencyAccountFundingReceived
  1. v2025-12-01

Get Fx Rate

Testing Env
https://api.uat.sokin.com
Testing Env
https://api.uat.sokin.com
POST
/fx/rate
Get FX rate for currency exchange.

Request

Authorization
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Bearer Token
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
or
Header Params

Body Params application/jsonRequired

Examples

Responses

🟢200OK
application/json
Successful Response
Body

🟠422Unprocessable Entity
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.uat.sokin.com/fx/rate' \
--header 'x-api-version;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
    "fixedSide": "BUY",
    "buy_currency": "GBP",
    "sell_currency": "USD",
    "amount": "60"
}'
Response Response Example
200 - Example 1
{
    "status": 201,
    "success": true,
    "message": "Data loaded successfully.",
    "data": {
        "quoteType": "tradable",
        "currencyPair": "USDGBP",
        "exchangeRateBid": "1.148237",
        "exchangeRateAsk": "1.148237",
        "quoteId": "686ff694-6799-4482-8bd0-94a116d828fa",
        "currentTime": "2025-12-12T21:39:53.239000+00:00",
        "expiryTime": "2025-12-12T21:40:26.940926",
        "fixedSide": "BUY",
        "buyCurrency": "GBP",
        "sellCurrency": "USD",
        "buyAmount": "1000.00",
        "sellAmount": "875.25",
        "fxSellAmount": "870.90",
        "fxFees": "4.35",
        "transactionFees": "0.00",
        "fxRate": "1.148237",
        "cut_off_time": "16:30:00",
        "holidays": [],
        "is_tradable": true,
        "open_time": null
    }
}
{}
Modified at 2025-12-04 12:27:24
Previous
GetInstructionResponse
Next
FxRateRequest
Built with