curl --request GET \
--url 'https://api.moonpay.com/v3/sell_transactions/ext/{externalTransactionId}?apiKey='{
"id": "9020fd02-42ac-497f-8b5f-41fdf4dd0b1d",
"createdAt": "2024-02-23T00:58:26.577Z",
"updatedAt": "2024-02-23T00:58:26.577Z",
"quoteExpiresAt": "2024-02-23T01:28:26.577Z",
"baseCurrencyAmount": 0.575,
"quoteCurrencyAmount": 1521.11,
"feeAmount": 15.36,
"extraFeeAmount": 0,
"status": "completed",
"failureReason": null,
"refundWalletAddress": "",
"depositHash": 8.377408903480862e+76,
"widgetRedirectUrl": null,
"payoutMethod": "credit_debit_card",
"eurRate": 1,
"usdRate": 1.08193,
"gbpRate": 0.85501,
"quoteCurrencyId": "71435a8d-211c-4664-a59e-2a5361a6c5a7",
"quoteCurrency": {
"id": "6f424585-8936-4eb1-b01e-443fb306d1f5",
"createdAt": "2019-05-17T18:24:45.206Z",
"updatedAt": "2019-05-17T18:24:45.206Z",
"type": "fiat",
"name": "Pound Sterling",
"code": "gbp",
"precision": 2,
"minBuyAmount": 30,
"maxBuyAmount": 9000,
"isSellSupported": true
},
"baseCurrencyId": "8d305f63-1fd7-4e01-a220-8445e591aec4",
"baseCurrency": {
"id": "aaefa32f-161b-42c8-8115-debcbf3d6a2d",
"createdAt": "2019-05-17T18:24:45.206Z",
"updatedAt": "2019-05-17T18:24:45.206Z",
"type": "crypto",
"name": "USD Coin (ERC-20)",
"code": "usdc",
"precision": 2,
"minBuyAmount": 30,
"maxBuyAmount": 1000,
"minSellAmount": 15,
"maxSellAmount": 100000,
"addressRegex": "^(0x)[0-9A-Fa-f]{40}$",
"testnetAddressRegex": "^(0x)[0-9A-Fa-f]{40}$",
"supportsAddressTag": false,
"addressTagRegex": null,
"supportsTestMode": true,
"isSuspended": false,
"isSupportedInUs": true,
"isSellSupported": true,
"notAllowedUSStates": [
"LA",
"VI"
],
"notAllowedCountries": [
"CA"
],
"metadata": {
"contractAddress": 0,
"chainId": "1",
"networkCode": "ethereum"
}
},
"customerId": "3b97352d-a9c2-4786-afe7-e7d74e0a8ad7",
"bankAccountId": "ee0e649f-a072-4cdb-96ce-a1ea393eac1e",
"externalCustomerId": null,
"externalTransactionId": null
}Retrieve a transaction by its externalTransactionId. This is the identifier you assigned the transaction when creating it. This endpoint returns an array of objects because we cannot ensure the uniqueness of externalTransactionId.
curl --request GET \
--url 'https://api.moonpay.com/v3/sell_transactions/ext/{externalTransactionId}?apiKey='{
"id": "9020fd02-42ac-497f-8b5f-41fdf4dd0b1d",
"createdAt": "2024-02-23T00:58:26.577Z",
"updatedAt": "2024-02-23T00:58:26.577Z",
"quoteExpiresAt": "2024-02-23T01:28:26.577Z",
"baseCurrencyAmount": 0.575,
"quoteCurrencyAmount": 1521.11,
"feeAmount": 15.36,
"extraFeeAmount": 0,
"status": "completed",
"failureReason": null,
"refundWalletAddress": "",
"depositHash": 8.377408903480862e+76,
"widgetRedirectUrl": null,
"payoutMethod": "credit_debit_card",
"eurRate": 1,
"usdRate": 1.08193,
"gbpRate": 0.85501,
"quoteCurrencyId": "71435a8d-211c-4664-a59e-2a5361a6c5a7",
"quoteCurrency": {
"id": "6f424585-8936-4eb1-b01e-443fb306d1f5",
"createdAt": "2019-05-17T18:24:45.206Z",
"updatedAt": "2019-05-17T18:24:45.206Z",
"type": "fiat",
"name": "Pound Sterling",
"code": "gbp",
"precision": 2,
"minBuyAmount": 30,
"maxBuyAmount": 9000,
"isSellSupported": true
},
"baseCurrencyId": "8d305f63-1fd7-4e01-a220-8445e591aec4",
"baseCurrency": {
"id": "aaefa32f-161b-42c8-8115-debcbf3d6a2d",
"createdAt": "2019-05-17T18:24:45.206Z",
"updatedAt": "2019-05-17T18:24:45.206Z",
"type": "crypto",
"name": "USD Coin (ERC-20)",
"code": "usdc",
"precision": 2,
"minBuyAmount": 30,
"maxBuyAmount": 1000,
"minSellAmount": 15,
"maxSellAmount": 100000,
"addressRegex": "^(0x)[0-9A-Fa-f]{40}$",
"testnetAddressRegex": "^(0x)[0-9A-Fa-f]{40}$",
"supportsAddressTag": false,
"addressTagRegex": null,
"supportsTestMode": true,
"isSuspended": false,
"isSupportedInUs": true,
"isSellSupported": true,
"notAllowedUSStates": [
"LA",
"VI"
],
"notAllowedCountries": [
"CA"
],
"metadata": {
"contractAddress": 0,
"chainId": "1",
"networkCode": "ethereum"
}
},
"customerId": "3b97352d-a9c2-4786-afe7-e7d74e0a8ad7",
"bankAccountId": "ee0e649f-a072-4cdb-96ce-a1ea393eac1e",
"externalCustomerId": null,
"externalTransactionId": null
}Documentation Index
Fetch the complete documentation index at: https://dev.moonpay.com/llms.txt
Use this file to discover all available pages before exploring further.
An identifier associated with the transaction, provided by you.
Successful response — Sell Transaction
Unique identifier for the object.
"9020fd02-42ac-497f-8b5f-41fdf4dd0b1d"
Time at which the object was created. Returned as an ISO 8601 string.
"2024-02-23T00:58:26.577Z"
Time at which the object was last updated. Returned as an ISO 8601 string.
"2024-02-23T00:58:26.577Z"
Time at which the sell quote expires. Returned as an ISO 8601 string.
"2024-02-23T01:28:26.577Z"
A positive number representing how much the customer wants to sell.
0.575
A positive number representing the amount of cryptocurrency the customer will receive. Set when the purchase of cryptocurrency has been executed.
1521.11
A positive number representing the fee for the transaction.
15.36
A positive number representing your extra fee for the transaction.
0
The transaction's status.
waitingForDeposit, pending, failed, completed "completed"
The transaction's failure reason. Set when transaction's status is failed.
null
A wallet address at which the customer can receive cryptocurrency. In case we cannot process the sale of the customer's cryptocurrency, we will return the cryptocurrency to this wallet address. Might be empty
""
The cryptocurrency transaction identifier representing the transfer from the customer's wallet to MoonPay's wallet. Set when the deposit has been executed and received.
8.377408903480862e+76
An optional URL used in a widget implementation. It is passed to us by you in the query parameters, and we include it as a link on the transaction tracker page.
null
The transaction's payout method.
ach_bank_transfer, credit_debit_card, paypal, gbp_bank_transfer, sepa_bank_transfer "credit_debit_card"
The exchange rate between the transaction's base currency and Euro at the time of the transaction.
1
The exchange rate between the transaction's base currency and US Dollar at the time of the transaction.
1.08193
The exchange rate between the transaction's base currency and British Pound at the time of the transaction.
0.85501
The identifier of the fiat the customer wants to get.
"71435a8d-211c-4664-a59e-2a5361a6c5a7"
Show child attributes
The identifier of the crypto currency the customer wants to sell.
"8d305f63-1fd7-4e01-a220-8445e591aec4"
Show child attributes
The identifier of the customer the transaction is associated with.
"3b97352d-a9c2-4786-afe7-e7d74e0a8ad7"
The identifier of the bank account used for this transaction.
"ee0e649f-a072-4cdb-96ce-a1ea393eac1e"
An identifier associated with the customer, provided by you.
null
An identifier associated with the transaction, provided by you.
null