Validate Transfer
PostRequiere autenticaciónBeta
Checks a transfer against the transfer rules before you execute it, and returns the fee, the net amount leaving the source account, and the estimated amount the destination receives. Validation moves no money. An invalid transfer returns an error describing what failed, so is_valid is always true on success.
Endpoint
Post
/wallet/v1/transfers/validateURL Base: https://api.derivws.com
Códigos de Estado
200OK - The transfer passes validation, with the fee and amount breakdown.
400Bad request - The transfer breaks a transfer rule, or the body failed validation.
401Unauthorized - Missing or invalid Bearer token.
403Forbidden - Valid token but insufficient scope (payment scope required).
429Too many requests - Rate limit exceeded.
500Internal server error - errors[0].code will be InternalServerError.
503Service unavailable - Request rejected by the gateway circuit breaker.
504Gateway timeout - The service did not respond in time.
Respuestas de Error
400Validation error
{
"errors": [
{
"status": 400,
"code": "ValidationError",
"message": "rate is required for a cross-currency transfer",
"field": "rate"
}
]
}400Currency not allowed
{
"errors": [
{
"status": 400,
"code": "CurrencyNotAllowed",
"message": "The destination payment agent does not accept this currency"
}
]
}Requiere autenticación
Este endpoint requiere el encabezado
Deriv-App-ID para identificar su aplicación. Alcance OAuth2: paymentAcerca de Validate Transfer
El endpoint POST /wallet/v1/transfers/validate: Checks a transfer against the transfer rules before you execute it, and returns the fee, the net amount leaving the source account, and the estimated amount the destination receives. Validation moves no money. An invalid transfer returns an error describing what failed, so is_valid is always true on success.
¿Alguna otra pregunta? Póngase en contacto