17 Apr 24 - Swap API Modifications
by Lim Zi XuanRemoved redundant field expiresAt from the response from POST a swap transaction & GET swap transaction/list of swap transactions endpoints
Removed redundant field expiresAt from the response from POST a swap transaction & GET swap transaction/list of swap transactions endpoints
Swap API is now live! You can now swap between our supported currencies easily via API - refer to our Swap API Guide to learn more!
All of the following changes are now available under v0.2.0 of our API documentation.
Added the following endpoints:
Swap API:
GET /swap/pairsPOST /swap/quotesGET /swap/quotes/{quoteId}POST /swap/quotes/{quoteId}GET /swap/transactions/{contractId}GET /swap/transactionsBlockchain API:
POST /blockchain_transfer/withdrawals/{blockchain}/estimate_network_feeModifications to existing endpoints:
GET a payment/list of payments and payment callback:
sender_bank, sender_bank_account_holder_name, sender_bank_account_no, sender_bank_swift_bicOther changes:
We have just rolled out an exciting new update: the ability to send and receive payments in USD! This enhancement is designed to provide more flexibility and convenience to your end-users. You can now make changes to your API requests to support USD rails on your platform.
Aside from this, we also rolled out the first phase of Blockchain API that supports blockchain transfer out to your whitelisted addresses. To help you understand what you can do with these new blockchain-related endpoints, we have also written a simple Blockchain API guide.
All of the following changes are now available under v0.1.0 of our API documentation.
Added the following endpoints:
PATCH /kyc/customer_profiles/{customer_profile_id}
PATCH endpoint that allows you to update customer profile details. Note that registrationType of an existing customer profile cannot be updated.GET /kyc/customer_profiles
GET endpoint that allows you to get a list of all customer profilesGET /api/v3/customer_profile/{customer_profile_id}/payment_methods
GET endpoint that allows you to get the list of virtual accounts created for a particular customer profilePUT /sandbox/customer_profile/{customer_profile_id}/virtual_bank_accounts/{virtual_bank_account_id}
PUT endpoint in Sandbox that allows you to update the status of the virtual account created (note: this is only applicable to USD VA)GET /customer_profile/deposits
GET endpoint that allows you to get a list of all customer profile depositsGET /blockchain_transfer/blockchains
GET endpoint that shows you a list of supported blockchains for the various tokens on StraitsXGET /blockchain_transfer/addresses
GET endpoint that returns a list of blockchain wallet addresses you have added via the StraitsX dashboardPOST /blockchain_transfer/withdrawals
POST endpoint that allows you to make a blockchain transfer out of XSGD or USDC to your whitelisted addressGET /merchant/account-balance
GET endpoint that supports getting balances of both XSGD and USDCModifications to existing endpoints:
POST /kyc/customer_profiles
countryOfResidencedateOfBirthnationalityregistrationIdTyperegistrationIdCountryaddressplaceofBizplaceofBizCountrycountryOfIncorporationdateOfIncorporationregistrationId no longer allows special characters - only alphanumeric characters are acceptedPOST /payment_methods/virtual_bank_accounts
bankShortCodecurrency- defaulted to SGDstatus for USD VA's responseGET /payment_methods/virtual_bank_accounts/{virtual_account_id}
status, currency, and a more detailed instructions for USD VAPOST /customer_profile/{customer_profile_id}/withdrawals
wallet_source that takes usdc as value for USD payout via SWIFTswift_bic, bank_account_holder_name and beneficiary_address in the response for USD payoutGET /customer_profile/{customer_profile_id}/withdrawals/{withdrawal_id} & GET /customer_profile/{customer_profile_id}/withdrawals
swift_bic, bank_account_holder_name and beneficiary_address in the response for USD payoutPOST /sandbox/customer_profile/:unique_id/bank_transfer_simulations
currency to support bank transfer simulation for both SGD and USDdestination_bank_short_code is now no longer requiredGET /customer_profile/{customer_profile_id}/deposits/{deposit_id} & GET /customer_profile/{customer_profile_id}/deposits
sender_bank, sender_bank_account_no, sender_bank_account_holder_name, and sender_bank_swift_bic in the response and callbackstatus and currencyPOST /customer_profile/{customer_profile_id}/bank_accounts &GET /customer_profile/{customer_profile_id}/bank_accounts
swift_code in the responseAdded Update a blocked mock transactionto unblock transactions that have been blocked by error codes in sandbox
destination_bank_short_codebankShortCodeXfers Pte Ltd
Click to enlarge
XIDR API Postman collection is now available for download! - Currently available for XIDR Business Accounts
https://drive.google.com/drive/folders/1SsCRQodGvEcekJOr_dhddg2V_IoTLoVk