# Status de Payout

# Post

https://sandbox.transfersmile.com/api/payout/status

# Get Payout Status

Este endpoint permite obtener el estado del payout.

# Parameters

Content-Type* string application/json; chartset=UTF-8
AppId* string Obtener AppId del dashboard
Authorization* string signature, generated by SHA256($sorted_params + $app_key)

# Body

payout_id string Id de transacción de transfersmile, payout_id o custom_code requerido.
custom_code string merchant custom_code, payout_id o custom_code requerido.

# Responses

200 Exitoso
{
    "code": 200,
    "msg": "success",
    "time": 1628497163,
    "data": {
        "payout_id": "TPO2108090705014iNqtxektRS",
        "custom_code": "custom_code17902976588800",
        "status": "PAID",
        "description": "success"
    }
}
400 custom_code o payout_id requerido
{
    "code": 400,
    "msg": "invalid parameters",
    "time": 1628497751,
    "data": {
        "error": "custom_code or payout_id required"
    }
}
500 Error de sistema
{
    "code": 500,
    "msg": "system error",
    "time": 1628497751,
    "data": {
        "error": "system error"
    }
}

# Payout Status

Status Descripción
IN_PROCESSING Estado inicial tras su envío.
PROCESSING banco procesando
PAID payout completado satisfactoriamente
REJECTED payout denegado por el banco
REFUNDED payout reembolsado por el banco

TIP

En este punto, SPEI & transfersmile Wallet permiten REFUNDED status.

# Ejemplo

curl --location --request POST 'https://sandbox.transfersmile.com/api/payout/status' \
--header 'AppId: 94FAC**********************68548' \
--header 'Authorization: d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302' \
--header 'Content-Type: application/json' \
--data-raw '{
    "payout_id": "TPO2108090705014iNqtxektRS",
    "custom_code": "custom_code17902976588800"
}'

TIP

Nota: 94FAC**********************68548 es el test ID de transfersmile para prueba en sandbox, y d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302 es el token de autorización asociado con el app ID de prueba.