Closed Luke-Rogerson closed 1 year ago
Data callback when order was submitted:
{
"id": "0c142cab-342d-492c-84a6-5ee2a7df3ae6",
"walletAddress": "0x50eBFe54aA1B6aB6Bf4B46550ed4C2E5e3e83991",
"createdAt": "2023-10-18T14:02:20.757Z",
"status": "PROCESSING",
"fiatCurrency": "USD",
"userId": "c6b09941-cfac-44f1-a679-dc903a402a9c",
"cryptoCurrency": "USDC",
"isBuyOrSell": "BUY",
"fiatAmount": 30,
"amountPaid": 30,
"paymentOptionId": "credit_debit_card",
"walletLink": "https://polygonscan.com/address/0x50eBFe54aA1B6aB6Bf4B46550ed4C2E5e3e83991",
"orderProcessingType": "NORMAL",
"addressAdditionalData": false,
"network": "polygon",
"conversionPrice": 0.9925970812817497,
"cryptoAmount": 28.59,
"totalFeeInFiat": 1.2,
"fiatAmountInUsd": 30,
"countryCode": "GB",
"userKycType": "SIMPLE",
"cardPaymentData": {
"orderId": "0c142cab-342d-492c-84a6-5ee2a7df3ae6",
"paymentId": "652fe56d1bca4c36dc096a57",
"pgData": {
"redirectionRequired": true,
"redirectionRequestData": {
"method": "GET",
"header": {},
"redirectUrl": "https://api.checkout.com/sessions-interceptor/sid_6dhtogpjsvgube4hdjeaighv54",
"body": {}
}
},
"liquidityProvider": "CHECKOUT",
"updatedAt": "2023-10-18T14:02:47.247Z",
"status": "AUTHORIZED",
"processedOn": "2023-10-18T14:02:47.220Z"
},
"statusHistories": [
{
"status": "AWAITING_PAYMENT_FROM_USER",
"createdAt": "2023-10-18T14:02:22.217Z",
"message": "*📦 New order by Luke Rogerson* \n*Order Id:* 0c142cab-342d-492c-84a6-5ee2a7df3ae6\n*Email:* luke@orbs.com\n*Crypto Amount:* 28.59 USDC\n*Fiat Amount:* 30 USD\n*Payment Method:* credit_debit_card\n*Liquidity Provider* CHECKOUT\n*Wallet Address:* 0x50eBFe54aA1B6aB6Bf4B46550ed4C2E5e3e83991\n*Reference Code:* 927810 \n*Partner name:* Orbs",
"isEmailSentToUser": false,
"partnerEventId": "ORDER_CREATED"
}
],
"partnerFeeInLocalCurrency": 0,
"conversionPriceData": {
"_id": "2be71db6-5c41-4f37-8176-90c0df8032c4",
"id": "2be71db6-5c41-4f37-8176-90c0df8032c4",
"createdAt": "2023-10-18T14:02:20.295Z",
"fiatCurrency": "USD",
"cryptoCurrency": "USDC",
"paymentMethod": "credit_debit_card",
"fiatAmount": 30,
"network": "polygon",
"cryptoAmount": 28.59,
"isBuyOrSell": "BUY",
"conversionPrice": 0.9925970812817497,
"marketConversionPrice": 0.998003992015968,
"slippage": 0.54,
"cryptoLiquidityProvider": "transak",
"fiatLiquidityProvider": "coinbase",
"partnerApiKey": "c7bfa89a-7022-4b3d-a0fc-8f0f990b87ee",
"sourceTokenAmount": 28.586795940914392,
"sourceToken": "USDC",
"notes": [
"Cryptocurrency Services Powered by Zero Hash."
],
"fiatFeeAmount": 1.2,
"feeDecimal": 0.04,
"swaps": [
{
"sourceCurrency": "USD",
"destinationCurrency": "USDT",
"sourceAmount": 30,
"destinationAmount": 29.98740528977829,
"paymentMethod": "credit_debit_card",
"liquidityProvider": "coinbase",
"conversionPrice": 0.999580176325943,
"feeInSourceAmount": 0,
"networkFeeInSourceAmount": 0,
"marketConversionPrice": 0.999580176325943,
"isNonCustodial": false,
"isFiatliquidityProvider": true,
"isFiatPartnerDirectCryptoDeposit": false,
"isFiatPartnerAccountWalletDeposit": false,
"liquidityProviderData": false,
"originalDestinationAmount": 29.98740528977829
},
{
"sourceCurrency": "USDT",
"destinationCurrency": "USDC",
"sourceAmount": 29.98740528977829,
"destinationAmount": 29.777912438452493,
"liquidityProvider": "transak",
"conversionPrice": 0.9930139720558881,
"networkFeeInSourceAmount": 0,
"networkFeeInDestinationAmount": 0,
"marketConversionPrice": 0.9930139720558881,
"liquidityProviderData": false,
"isNonCustodial": false
},
{
"sourceCurrency": "USDC",
"destinationCurrency": "USDC",
"sourceAmount": 29.777912438452493,
"destinationAmount": 29.777912438452493,
"liquidityProvider": "transak",
"conversionPrice": 1,
"isCryptoliquidityProvider": true,
"networkFeeInSourceAmount": 0,
"networkFeeInDestinationAmount": 0,
"marketConversionPrice": 1,
"liquidityProviderData": false,
"isFiatPartnerAccountWalletDeposit": false
}
],
"fees": [
{
"name": "Transak fee",
"value": 1.2,
"id": "transak_fee",
"ids": [
"transak_fee"
]
},
{
"name": "Network/Exchange fee",
"value": 0,
"id": "network_fee",
"ids": [
"network_fee"
]
}
],
"fiatAmountInUsd": 30,
"internalFees": [
{
"name": "Network/Exchange fee",
"id": "network_fee",
"value": 0
},
{
"name": "Transak fee",
"id": "transak_fee",
"value": 1.2
}
],
"cost": {
"ethPriceInLocalCurrency": 1574.93,
"gasCostinLocalCurrency": 0,
"transakMinimumFee": 0,
"transakFeeAmount": 1.2,
"fiatLiquidityProviderFee": 0,
"gasCostinLocalCurrencyByFiatPartner": 0,
"gasCostinLocalCurrencyByCryptoPartner": 0,
"partnerFeeDecimal": 0,
"partnerFeeInLocalCurrency": 0,
"totalFeeDecimal": 0.04,
"totalFeeAmount": 1.2,
"totalAmountChargedByTransak": 1.2
}
}
}
Order data callback when order was submitted:
{
"id": "0c142cab-342d-492c-84a6-5ee2a7df3ae6",
"walletAddress": "0x50eBFe54aA1B6aB6Bf4B46550ed4C2E5e3e83991",
"createdAt": "2023-10-18T14:02:20.757Z",
"status": "PROCESSING",
"fiatCurrency": "USD",
"userId": "c6b09941-cfac-44f1-a679-dc903a402a9c",
"cryptoCurrency": "USDC",
"isBuyOrSell": "BUY",
"fiatAmount": 30,
"amountPaid": 30,
"paymentOptionId": "credit_debit_card",
"walletLink": "https://polygonscan.com/address/0x50eBFe54aA1B6aB6Bf4B46550ed4C2E5e3e83991",
"orderProcessingType": "NORMAL",
"addressAdditionalData": false,
"network": "polygon",
"conversionPrice": 0.9925970812817497,
"cryptoAmount": 28.59,
"totalFeeInFiat": 1.2,
"fiatAmountInUsd": 30,
"countryCode": "GB",
"userKycType": "SIMPLE",
"cardPaymentData": {
"orderId": "0c142cab-342d-492c-84a6-5ee2a7df3ae6",
"paymentId": "652fe56d1bca4c36dc096a57",
"pgData": {
"redirectionRequired": true,
"redirectionRequestData": {
"method": "GET",
"header": {},
"redirectUrl": "https://api.checkout.com/sessions-interceptor/sid_6dhtogpjsvgube4hdjeaighv54",
"body": {}
}
},
"liquidityProvider": "CHECKOUT",
"updatedAt": "2023-10-18T14:02:47.247Z",
"status": "AUTHORIZED",
"processedOn": "2023-10-18T14:02:47.220Z"
},
"statusHistories": [
{
"status": "AWAITING_PAYMENT_FROM_USER",
"createdAt": "2023-10-18T14:02:22.217Z",
"message": "*📦 New order by Luke Rogerson* \n*Order Id:* 0c142cab-342d-492c-84a6-5ee2a7df3ae6\n*Email:* luke@orbs.com\n*Crypto Amount:* 28.59 USDC\n*Fiat Amount:* 30 USD\n*Payment Method:* credit_debit_card\n*Liquidity Provider* CHECKOUT\n*Wallet Address:* 0x50eBFe54aA1B6aB6Bf4B46550ed4C2E5e3e83991\n*Reference Code:* 927810 \n*Partner name:* Orbs",
"isEmailSentToUser": false,
"partnerEventId": "ORDER_CREATED"
}
],
"partnerFeeInLocalCurrency": 0,
"conversionPriceData": {
"_id": "2be71db6-5c41-4f37-8176-90c0df8032c4",
"id": "2be71db6-5c41-4f37-8176-90c0df8032c4",
"createdAt": "2023-10-18T14:02:20.295Z",
"fiatCurrency": "USD",
"cryptoCurrency": "USDC",
"paymentMethod": "credit_debit_card",
"fiatAmount": 30,
"network": "polygon",
"cryptoAmount": 28.59,
"isBuyOrSell": "BUY",
"conversionPrice": 0.9925970812817497,
"marketConversionPrice": 0.998003992015968,
"slippage": 0.54,
"cryptoLiquidityProvider": "transak",
"fiatLiquidityProvider": "coinbase",
"partnerApiKey": "c7bfa89a-7022-4b3d-a0fc-8f0f990b87ee",
"sourceTokenAmount": 28.586795940914392,
"sourceToken": "USDC",
"notes": [
"Cryptocurrency Services Powered by Zero Hash."
],
"fiatFeeAmount": 1.2,
"feeDecimal": 0.04,
"swaps": [
{
"sourceCurrency": "USD",
"destinationCurrency": "USDT",
"sourceAmount": 30,
"destinationAmount": 29.98740528977829,
"paymentMethod": "credit_debit_card",
"liquidityProvider": "coinbase",
"conversionPrice": 0.999580176325943,
"feeInSourceAmount": 0,
"networkFeeInSourceAmount": 0,
"marketConversionPrice": 0.999580176325943,
"isNonCustodial": false,
"isFiatliquidityProvider": true,
"isFiatPartnerDirectCryptoDeposit": false,
"isFiatPartnerAccountWalletDeposit": false,
"liquidityProviderData": false,
"originalDestinationAmount": 29.98740528977829
},
{
"sourceCurrency": "USDT",
"destinationCurrency": "USDC",
"sourceAmount": 29.98740528977829,
"destinationAmount": 29.777912438452493,
"liquidityProvider": "transak",
"conversionPrice": 0.9930139720558881,
"networkFeeInSourceAmount": 0,
"networkFeeInDestinationAmount": 0,
"marketConversionPrice": 0.9930139720558881,
"liquidityProviderData": false,
"isNonCustodial": false
},
{
"sourceCurrency": "USDC",
"destinationCurrency": "USDC",
"sourceAmount": 29.777912438452493,
"destinationAmount": 29.777912438452493,
"liquidityProvider": "transak",
"conversionPrice": 1,
"isCryptoliquidityProvider": true,
"networkFeeInSourceAmount": 0,
"networkFeeInDestinationAmount": 0,
"marketConversionPrice": 1,
"liquidityProviderData": false,
"isFiatPartnerAccountWalletDeposit": false
}
],
"fees": [
{
"name": "Transak fee",
"value": 1.2,
"id": "transak_fee",
"ids": [
"transak_fee"
]
},
{
"name": "Network/Exchange fee",
"value": 0,
"id": "network_fee",
"ids": [
"network_fee"
]
}
],
"fiatAmountInUsd": 30,
"internalFees": [
{
"name": "Network/Exchange fee",
"id": "network_fee",
"value": 0
},
{
"name": "Transak fee",
"id": "transak_fee",
"value": 1.2
}
],
"cost": {
"ethPriceInLocalCurrency": 1574.93,
"gasCostinLocalCurrency": 0,
"transakMinimumFee": 0,
"transakFeeAmount": 1.2,
"fiatLiquidityProviderFee": 0,
"gasCostinLocalCurrencyByFiatPartner": 0,
"gasCostinLocalCurrencyByCryptoPartner": 0,
"partnerFeeDecimal": 0,
"partnerFeeInLocalCurrency": 0,
"totalFeeDecimal": 0.04,
"totalFeeAmount": 1.2,
"totalAmountChargedByTransak": 1.2
}
}
}
Data callback when order was completed: (note that status
is now different)
{
"id": "0c142cab-342d-492c-84a6-5ee2a7df3ae6",
"walletAddress": "0x50eBFe54aA1B6aB6Bf4B46550ed4C2E5e3e83991",
"createdAt": "2023-10-18T14:02:20.757Z",
"status": "COMPLETED",
"fiatCurrency": "USD",
"userId": "c6b09941-cfac-44f1-a679-dc903a402a9c",
"cryptoCurrency": "USDC",
"isBuyOrSell": "BUY",
"fiatAmount": 30,
"amountPaid": 30,
"paymentOptionId": "credit_debit_card",
"walletLink": "https://polygonscan.com/address/0x50eBFe54aA1B6aB6Bf4B46550ed4C2E5e3e83991",
"orderProcessingType": "NORMAL",
"addressAdditionalData": false,
"network": "polygon",
"conversionPrice": 0.9927083333333333,
"cryptoAmount": 28.59,
"totalFeeInFiat": 1.2,
"fiatAmountInUsd": 30,
"countryCode": "GB",
"userKycType": "SIMPLE",
"cardPaymentData": {
"orderId": "0c142cab-342d-492c-84a6-5ee2a7df3ae6",
"paymentId": "652fe56d1bca4c36dc096a57",
"pgData": {
"redirectionRequired": true,
"redirectionRequestData": {
"method": "GET",
"header": {},
"redirectUrl": "https://api.checkout.com/sessions-interceptor/sid_6dhtogpjsvgube4hdjeaighv54",
"body": {}
}
},
"liquidityProvider": "CHECKOUT",
"updatedAt": "2023-10-18T14:03:22.614Z",
"status": "CAPTURED",
"processedOn": "2023-10-18T14:03:20.9039294Z",
"statusReason": "Payment captured from user card."
},
"statusHistories": [
{
"status": "AWAITING_PAYMENT_FROM_USER",
"createdAt": "2023-10-18T14:02:22.217Z",
"message": "*📦 New order by Luke Rogerson* \n*Order Id:* 0c142cab-342d-492c-84a6-5ee2a7df3ae6\n*Email:* luke@orbs.com\n*Crypto Amount:* 28.59 USDC\n*Fiat Amount:* 30 USD\n*Payment Method:* credit_debit_card\n*Liquidity Provider* CHECKOUT\n*Wallet Address:* 0x50eBFe54aA1B6aB6Bf4B46550ed4C2E5e3e83991\n*Reference Code:* 927810 \n*Partner name:* Orbs",
"isEmailSentToUser": false,
"partnerEventId": "ORDER_CREATED"
},
{
"status": "PROCESSING",
"createdAt": "2023-10-18T14:02:47.454Z",
"message": "*💸 Payment reconciled successfully. Received 30 USD",
"isEmailSentToUser": false,
"partnerEventId": "ORDER_PROCESSING"
},
{
"status": "PENDING_DELIVERY_FROM_TRANSAK",
"createdAt": "2023-10-18T14:03:22.890Z",
"message": "*💸 Payment reconciled successfully. Received 30 USD",
"isEmailSentToUser": false,
"partnerEventId": "ORDER_PROCESSING"
}
],
"statusReason": "Payment captured from user card.",
"isFirstOrder": true,
"updatedAt": "2023-10-18T14:03:31.215Z",
"internalOrderStatus": "RISK_APPROVED",
"transactionHash": "0x955d02e400af84eaee91d1c197e35256214ebf0f7e0ebfd5d40d5a37ebd1bcfd",
"transactionLink": "https://polygonscan.com/tx/0x955d02e400af84eaee91d1c197e35256214ebf0f7e0ebfd5d40d5a37ebd1bcfd",
"completedAt": "2023-10-18T14:03:39.696Z",
"partnerFeeInLocalCurrency": 0,
"conversionPriceData": {
"_id": "159d1ce1-89e4-4cee-99a0-6ccb6e7cbfa0",
"id": "159d1ce1-89e4-4cee-99a0-6ccb6e7cbfa0",
"createdAt": "2023-10-18T14:03:31.145Z",
"fiatCurrency": "USD",
"cryptoCurrency": "USDC",
"paymentMethod": "credit_debit_card",
"fiatAmount": 30,
"network": "polygon",
"cryptoAmount": 28.59,
"isBuyOrSell": "BUY",
"conversionPrice": 0.9925970812817497,
"marketConversionPrice": 0.998003992015968,
"slippage": 0.54,
"cryptoLiquidityProvider": "transak",
"fiatLiquidityProvider": "coinbase",
"partnerApiKey": "c7bfa89a-7022-4b3d-a0fc-8f0f990b87ee",
"sourceTokenAmount": 28.586795940914392,
"sourceToken": "USDC",
"notes": [
"Cryptocurrency Services Powered by Zero Hash."
],
"fiatFeeAmount": 1.2,
"feeDecimal": 0.04,
"swaps": [
{
"sourceCurrency": "USD",
"destinationCurrency": "USDT",
"sourceAmount": 30,
"destinationAmount": 29.98740528977829,
"paymentMethod": "credit_debit_card",
"liquidityProvider": "coinbase",
"conversionPrice": 0.999580176325943,
"feeInSourceAmount": 0,
"networkFeeInSourceAmount": 0,
"marketConversionPrice": 0.999580176325943,
"isNonCustodial": false,
"isFiatliquidityProvider": true,
"isFiatPartnerDirectCryptoDeposit": false,
"isFiatPartnerAccountWalletDeposit": false,
"liquidityProviderData": false,
"originalDestinationAmount": 29.98740528977829
},
{
"sourceCurrency": "USDT",
"destinationCurrency": "USDC",
"sourceAmount": 29.98740528977829,
"destinationAmount": 29.777912438452493,
"liquidityProvider": "transak",
"conversionPrice": 0.9930139720558881,
"networkFeeInSourceAmount": 0,
"networkFeeInDestinationAmount": 0,
"marketConversionPrice": 0.9930139720558881,
"liquidityProviderData": false,
"isNonCustodial": false
},
{
"sourceCurrency": "USDC",
"destinationCurrency": "USDC",
"sourceAmount": 29.777912438452493,
"destinationAmount": 29.777912438452493,
"liquidityProvider": "transak",
"conversionPrice": 1,
"isCryptoliquidityProvider": true,
"networkFeeInSourceAmount": 0,
"networkFeeInDestinationAmount": 0,
"marketConversionPrice": 1,
"liquidityProviderData": false,
"isFiatPartnerAccountWalletDeposit": false
}
],
"fees": [
{
"name": "Transak fee",
"value": 1.2,
"id": "transak_fee",
"ids": [
"transak_fee"
]
},
{
"name": "Network/Exchange fee",
"value": 0,
"id": "network_fee",
"ids": [
"network_fee"
]
}
],
"fiatAmountInUsd": 30,
"internalFees": [
{
"name": "Network/Exchange fee",
"id": "network_fee",
"value": 0
},
{
"name": "Transak fee",
"id": "transak_fee",
"value": 1.2
}
],
"cost": {
"ethPriceInLocalCurrency": 1574.38,
"gasCostinLocalCurrency": 0,
"transakMinimumFee": 0,
"transakFeeAmount": 1.2,
"fiatLiquidityProviderFee": 0,
"gasCostinLocalCurrencyByFiatPartner": 0,
"gasCostinLocalCurrencyByCryptoPartner": 0,
"partnerFeeDecimal": 0,
"partnerFeeInLocalCurrency": 0,
"totalFeeDecimal": 0.04,
"totalFeeAmount": 1.2,
"totalAmountChargedByTransak": 1.2
}
}
}
Order data when order was completed (note status
has changed)
{
"id": "0c142cab-342d-492c-84a6-5ee2a7df3ae6",
"walletAddress": "0x50eBFe54aA1B6aB6Bf4B46550ed4C2E5e3e83991",
"createdAt": "2023-10-18T14:02:20.757Z",
"status": "COMPLETED",
"fiatCurrency": "USD",
"userId": "c6b09941-cfac-44f1-a679-dc903a402a9c",
"cryptoCurrency": "USDC",
"isBuyOrSell": "BUY",
"fiatAmount": 30,
"amountPaid": 30,
"paymentOptionId": "credit_debit_card",
"walletLink": "https://polygonscan.com/address/0x50eBFe54aA1B6aB6Bf4B46550ed4C2E5e3e83991",
"orderProcessingType": "NORMAL",
"addressAdditionalData": false,
"network": "polygon",
"conversionPrice": 0.9927083333333333,
"cryptoAmount": 28.59,
"totalFeeInFiat": 1.2,
"fiatAmountInUsd": 30,
"countryCode": "GB",
"userKycType": "SIMPLE",
"cardPaymentData": {
"orderId": "0c142cab-342d-492c-84a6-5ee2a7df3ae6",
"paymentId": "652fe56d1bca4c36dc096a57",
"pgData": {
"redirectionRequired": true,
"redirectionRequestData": {
"method": "GET",
"header": {},
"redirectUrl": "https://api.checkout.com/sessions-interceptor/sid_6dhtogpjsvgube4hdjeaighv54",
"body": {}
}
},
"liquidityProvider": "CHECKOUT",
"updatedAt": "2023-10-18T14:03:22.614Z",
"status": "CAPTURED",
"processedOn": "2023-10-18T14:03:20.9039294Z",
"statusReason": "Payment captured from user card."
},
"statusHistories": [
{
"status": "AWAITING_PAYMENT_FROM_USER",
"createdAt": "2023-10-18T14:02:22.217Z",
"message": "*📦 New order by Luke Rogerson* \n*Order Id:* 0c142cab-342d-492c-84a6-5ee2a7df3ae6\n*Email:* luke@orbs.com\n*Crypto Amount:* 28.59 USDC\n*Fiat Amount:* 30 USD\n*Payment Method:* credit_debit_card\n*Liquidity Provider* CHECKOUT\n*Wallet Address:* 0x50eBFe54aA1B6aB6Bf4B46550ed4C2E5e3e83991\n*Reference Code:* 927810 \n*Partner name:* Orbs",
"isEmailSentToUser": false,
"partnerEventId": "ORDER_CREATED"
},
{
"status": "PROCESSING",
"createdAt": "2023-10-18T14:02:47.454Z",
"message": "*💸 Payment reconciled successfully. Received 30 USD",
"isEmailSentToUser": false,
"partnerEventId": "ORDER_PROCESSING"
},
{
"status": "PENDING_DELIVERY_FROM_TRANSAK",
"createdAt": "2023-10-18T14:03:22.890Z",
"message": "*💸 Payment reconciled successfully. Received 30 USD",
"isEmailSentToUser": false,
"partnerEventId": "ORDER_PROCESSING"
}
],
"statusReason": "Payment captured from user card.",
"isFirstOrder": true,
"updatedAt": "2023-10-18T14:03:31.215Z",
"internalOrderStatus": "RISK_APPROVED",
"transactionHash": "0x955d02e400af84eaee91d1c197e35256214ebf0f7e0ebfd5d40d5a37ebd1bcfd",
"transactionLink": "https://polygonscan.com/tx/0x955d02e400af84eaee91d1c197e35256214ebf0f7e0ebfd5d40d5a37ebd1bcfd",
"completedAt": "2023-10-18T14:03:39.696Z",
"partnerFeeInLocalCurrency": 0,
"conversionPriceData": {
"_id": "159d1ce1-89e4-4cee-99a0-6ccb6e7cbfa0",
"id": "159d1ce1-89e4-4cee-99a0-6ccb6e7cbfa0",
"createdAt": "2023-10-18T14:03:31.145Z",
"fiatCurrency": "USD",
"cryptoCurrency": "USDC",
"paymentMethod": "credit_debit_card",
"fiatAmount": 30,
"network": "polygon",
"cryptoAmount": 28.59,
"isBuyOrSell": "BUY",
"conversionPrice": 0.9925970812817497,
"marketConversionPrice": 0.998003992015968,
"slippage": 0.54,
"cryptoLiquidityProvider": "transak",
"fiatLiquidityProvider": "coinbase",
"partnerApiKey": "c7bfa89a-7022-4b3d-a0fc-8f0f990b87ee",
"sourceTokenAmount": 28.586795940914392,
"sourceToken": "USDC",
"notes": [
"Cryptocurrency Services Powered by Zero Hash."
],
"fiatFeeAmount": 1.2,
"feeDecimal": 0.04,
"swaps": [
{
"sourceCurrency": "USD",
"destinationCurrency": "USDT",
"sourceAmount": 30,
"destinationAmount": 29.98740528977829,
"paymentMethod": "credit_debit_card",
"liquidityProvider": "coinbase",
"conversionPrice": 0.999580176325943,
"feeInSourceAmount": 0,
"networkFeeInSourceAmount": 0,
"marketConversionPrice": 0.999580176325943,
"isNonCustodial": false,
"isFiatliquidityProvider": true,
"isFiatPartnerDirectCryptoDeposit": false,
"isFiatPartnerAccountWalletDeposit": false,
"liquidityProviderData": false,
"originalDestinationAmount": 29.98740528977829
},
{
"sourceCurrency": "USDT",
"destinationCurrency": "USDC",
"sourceAmount": 29.98740528977829,
"destinationAmount": 29.777912438452493,
"liquidityProvider": "transak",
"conversionPrice": 0.9930139720558881,
"networkFeeInSourceAmount": 0,
"networkFeeInDestinationAmount": 0,
"marketConversionPrice": 0.9930139720558881,
"liquidityProviderData": false,
"isNonCustodial": false
},
{
"sourceCurrency": "USDC",
"destinationCurrency": "USDC",
"sourceAmount": 29.777912438452493,
"destinationAmount": 29.777912438452493,
"liquidityProvider": "transak",
"conversionPrice": 1,
"isCryptoliquidityProvider": true,
"networkFeeInSourceAmount": 0,
"networkFeeInDestinationAmount": 0,
"marketConversionPrice": 1,
"liquidityProviderData": false,
"isFiatPartnerAccountWalletDeposit": false
}
],
"fees": [
{
"name": "Transak fee",
"value": 1.2,
"id": "transak_fee",
"ids": [
"transak_fee"
]
},
{
"name": "Network/Exchange fee",
"value": 0,
"id": "network_fee",
"ids": [
"network_fee"
]
}
],
"fiatAmountInUsd": 30,
"internalFees": [
{
"name": "Network/Exchange fee",
"id": "network_fee",
"value": 0
},
{
"name": "Transak fee",
"id": "transak_fee",
"value": 1.2
}
],
"cost": {
"ethPriceInLocalCurrency": 1574.38,
"gasCostinLocalCurrency": 0,
"transakMinimumFee": 0,
"transakFeeAmount": 1.2,
"fiatLiquidityProviderFee": 0,
"gasCostinLocalCurrencyByFiatPartner": 0,
"gasCostinLocalCurrencyByCryptoPartner": 0,
"partnerFeeDecimal": 0,
"partnerFeeInLocalCurrency": 0,
"totalFeeDecimal": 0.04,
"totalFeeAmount": 1.2,
"totalAmountChargedByTransak": 1.2
}
}
}
Order pending:
{
"id": "0c142cab-342d-492c-84a6-5ee2a7df3ae6",
"walletAddress": "0x50eBFe54aA1B6aB6Bf4B46550ed4C2E5e3e83991",
"createdAt": "2023-10-18T14:02:20.757Z",
"status": "AWAITING_PAYMENT_FROM_USER",
"fiatCurrency": "USD",
"userId": "c6b09941-cfac-44f1-a679-dc903a402a9c",
"cryptoCurrency": "USDC",
"isBuyOrSell": "BUY",
"fiatAmount": 30,
"amountPaid": 0,
"paymentOptionId": "credit_debit_card",
"walletLink": "https://polygonscan.com/address/0x50eBFe54aA1B6aB6Bf4B46550ed4C2E5e3e83991",
"orderProcessingType": "NORMAL",
"addressAdditionalData": false,
"network": "polygon",
"conversionPrice": 0.9925970812817497,
"cryptoAmount": 28.59,
"totalFeeInFiat": 1.2,
"fiatAmountInUsd": 30,
"countryCode": "GB",
"referenceCode": 927810,
"paymentOptions": [],
"autoExpiresAt": "2023-10-18T15:02:20+00:00",
"userKycType": "SIMPLE",
"cardPaymentData": {
"orderId": "0c142cab-342d-492c-84a6-5ee2a7df3ae6",
"paymentId": "652fe56d1bca4c36dc096a57",
"pgData": {
"redirectionRequired": true,
"redirectionRequestData": {
"method": "GET",
"header": {},
"redirectUrl": "https://api.checkout.com/sessions-interceptor/sid_6dhtogpjsvgube4hdjeaighv54",
"body": {}
}
},
"liquidityProvider": "CHECKOUT",
"updatedAt": "2023-10-18T14:02:22.003Z"
},
"statusHistories": [
{
"status": "AWAITING_PAYMENT_FROM_USER",
"createdAt": "2023-10-18T14:02:22.217Z",
"message": "*📦 New order by Luke Rogerson* \n*Order Id:* 0c142cab-342d-492c-84a6-5ee2a7df3ae6\n*Email:* luke@orbs.com\n*Crypto Amount:* 28.59 USDC\n*Fiat Amount:* 30 USD\n*Payment Method:* credit_debit_card\n*Liquidity Provider* CHECKOUT\n*Wallet Address:* 0x50eBFe54aA1B6aB6Bf4B46550ed4C2E5e3e83991\n*Reference Code:* 927810 \n*Partner name:* Orbs",
"isEmailSentToUser": false,
"partnerEventId": "ORDER_CREATED"
}
]
}
TASKS
FINDINGS
status
field, however, which we can hook into to ensure the value is"COMPLETED"
before triggering the request to the MATIC faucet. See comments below for full JSON responses.