Simulación de Payout

Una simulación limpia para Payout.

Una simulación (dry run) de payout.

POST https://sandbox.transfersmile.com/api/payout/dry-run

Headers

NameTypeDescription

Content-Type*

String

application/json; chartset=UTF-8

AppId*

String

Su APP ID en la plataforma de payout

Authorization*

String

SHA256($sorted_params + $app_key)

Request Body

NameTypeDescription

source_currency*

String

Moneda de cuenta de merchant

- soporta: USD, GBP, EUR -

arrival_currency*

String

BRL para BRA, MXN para MEX, USD para PayPal

amount*

String

String numérico, e.g. 10.00

fee_bear*

String

Uno de [beneficiario, merchant]

method*

String

Método de Payout

channel

String

Canal Payout

country*

String

Disponibles PayPal countries.

Otros deben ser [BRA, MEX].

timestamp*

Integer

unix timestamp, e.g. 1628512575

{
    "code": 200,
    "msg": "success",
    "time": 1642076131,
    "data": {
        "fee": "0.2",
        "tax": "0",
        "amount": "10",
        "settlement_amount": "10",
        "arrival_currency": "USD",
        "arrival_amount": "10",
        "source_currency": "USD",
        "source_amount": "10.2",
        "exchange_rate": "1"
    }
}

Note: The exchange rate is updated every minute.

Ejemplo PIX

curl --location --request POST 'http://localhost:20021/api/payout/dry-run' \
--header 'AppId: 94FAC**********************68548' \
--header 'Authorization: d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302' \
--header 'Content-Type: application/json' \
--data-raw '{
      * "source_currency": "USD",
      * "arrival_currency": "BRL",
      * "amount": "10.00",
      * "fee_bear": "merchant",
      * "method": "PIX",
        "channel": "",
      * "country": "BRA",
      * "timestamp": 1642075807
}'

Ejemplo SPEI

curl --location --request POST 'http://localhost:20021/api/payout/dry-run' \
--header 'MerchantId: 94FAC**********************68548' \
--header 'Authorization: d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302' \
--header 'Content-Type: application/json' \
--data-raw '{
      * "source_currency": "USD",
      * "arrival_currency": "MXN",
      * "amount": "10.00",
      * "fee_bear": "merchant",
      * "method": "SPEI",
        "channel": "",
      * "country": "MEX",
      * "timestamp": 1642075807
}'

Ejemplo PayPal

curl --location --request POST 'http://localhost:20021/api/payout/dry-run' \
--header 'MerchantId: 94FAC**********************68548' \
--header 'Authorization: d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302' \
--header 'Content-Type: application/json' \
--data-raw '{
      * "source_currency": "USD",
      * "arrival_currency": "USD",
      * "amount": "10.00",
      * "fee_bear": "merchant",
      * "method": "WALLET",
      * "channel": "PayPal",
      * "country": "BRA",
      * "timestamp": 1642075807
}'

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.

Last updated