Lista de Payout

Cómo obtener la lista de detalle de Payout.

Este endpoint permite obtener la lista de payout.

POST https://sandbox.transfersmile.com/api/payout/list

Headers

NameTypeDescription

Content-Type*

string

application/json; charset=UTF-8

AppId*

string

Su APP ID en la plataforma de payout

Authorization*

string

signature, generado por SHA256($sorted_params + $app_key)

Request Body

NameTypeDescription

start_time*

string

start_time(UTC), e.g. 2021-07-01 00:00:00

end_time*

string

end_time(UTC), e.g. 2021-08-01 00:00:00

page_num

integer

param de empáginado, número de página, debe iniciar con 1, pero 0 es incorrecto.

page_size

integer

param de empáginado, líneas retornadas, max 1000

timestamp*

integer

unix timestamp, e.g. 1628512575

{
    "code": 200,
    "msg": "success",
    "time": 1628500091,
    "data": [
        {
            "reference_id": "custom_code296008326574400",
            "transaction_id": "TPO2107011224194gUFX32p5b5",
            "user_name": "GUILHERME ALVES DE SOUZA",
            "amount": "0.6",
            "source_amount": "0.6",
            "settlement_amount": "0.6",
            "source_currency": "BRL",
            "arrival_amount": "0.57",
            "arrival_currency": "BRL",
            "exchange_rate": "1",
            "tax": "0.02",
            "fee": "0.01",
            "fee_user": "beneficiary",
            "transaction_status": "PROCESSING",
            "create_time": 1625142259,
            "update_time": 1625142261
        },
        ... ...
    ]
}

Ejemplo

curl --location --request POST 'http://sandbox.transfersmile.com/api/payout/list' \
--header 'AppId: 94FAC**********************68548' \
--header 'Authorization: d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302' \
--header 'Content-Type: application/json' \
--data-raw '{
    "start_time": "2021-07-01 00:00:00",
    "end_time": "2021-08-01 00:00:00",
    "page_size": 5,
    "page_num": 1, // should start from the number 1, while 0 is incorrect.
    "timestamp": 1628512575
}'

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

Nota: El page_num debe iniciar del número 1, mientras que 0 es incorrecto.

Last updated