PayPal

How to use PayPal to submit a payout.

Criar um payout por PayPal em todo o mundo.

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

This endpoint allows you to submit a payout by PayPal globally.

Headers

NameTypeDescription

Content-Type*

string

application/json; chartset=UTF-8

AppId*

String

Seu App ID na plataforma de payout

Authorization*

String

SHA256($sorted_params + $app_key)

Request Body

NameTypeDescription

name

String

Nome do beneficiário

- Min.5 Max.100 -

phone

String

Telefone do beneficiário

email

String

E-mail do beneficiário

account*

String

Conta do PayPal.

account_type*

String

Fixed: EMAIL

custom_code*

String

ID do pedido do merchant

channel*

String

valor fixo: PayPal

method*

String

valor fixo: WALLET

document_type

String

Beneficiary document type

document_id

String

Beneficiary document id

source_currency*

String

Moeda da conta do Merchant

- USD, GBP, EUR -

fee_bear*

String

Um de [beneficiary | merchant]

amount*

String

Valor do Payout, 2 números decimais

- Min 0.01, Max 50,000 -

arrival_currency*

String

Moeda da conta do beneficiário.

@See supported currencies

notify_url*

String

Onde o pagsmile vai enviar o callback

additional_remark*

String

Observação adicional

- Max length: 40 -

country*

String

País do Beneficiário.

@Países suportados

amount_type

String

Especificar o montante do valor é fixo para o comerciante ou beneficiário - Um de: source_amount, arrival_amount(default) -

{
    "code": 200,
    "msg": "success",
    "time": 1628580845,
    "data": {
        "id": "TS202108100734054iRiUZFPXfQPB",
        "custom_code": "custom_code9982674851738108",
        "arrival_amount": "0.51",
        "arrival_currency": "BRL",
        "source_amount": "0.07",
        "source_currency": "USD",
        "status": "IN_PROCESSING"
    }
}

Exemplo

curl --location --request POST 'http://sandbox.transfersmile.com/api/payout' \
--header 'AppId: 94FAC**********************68548' \
--header 'Authorization: d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302' \
--header 'Content-Type: application/json' \
--data-raw '{
      "name" : "GUILHERME ****** SOUZA",
      "phone" : "468****068",
      "email" : "g******me@gmail.com",
    * "account" : "paypal_email_account@gmail.com",
    * "account_type" : "EMAIL",
      "document_id" : "CUP800****691",
      "document_type" : "RFC",
    * "method" : "WALLET",
    * "channel" : "PayPal",
    * "custom_code" : "custom_code9982674851738108",
    * "fee_bear" : "merchant",
    * "amount" : "0.51",
    * "source_currency" : "USD",
    * "arrival_currency" : "USD",
    * "notify_url" : "https://notify.url",
    * "additional_remark" : "pagsmile payout test",
    * "country": "BRA"
}'

Nota: 94FAC********************** 68548 é o App Id de teste Pagsmile para o ambiente de sandbox, e d6181db0d6548b94b162e75d095b59147172d914699f83b2bd17951a671b6302 é o token de autorização associado ao App Id de teste.

No ambiente sandbox, use pagsmile_test_success@pagsmile.com como conta PayPal para testar o pagamento com sucesso, qualquer outra conta PayPal será reprovada.

Last updated