Detalhes Payin

URL base de solicitação

  Ambiente de teste : https://gateway-test.pagsmile.com
  Ambiente de Prod : Environment : https://gateway.pagsmile.com

EndPoints

  /trade/query

Cabeçalho de solicitação

Corpo de solicitação (formato JSON)

Exemplo de solicitação

curl --location --request POST 'https://gateway.pagsmile.com/trade/query' \
--header 'Authorization: Basic Base64(appid:security_key)' \
--header 'Content-Type: application/json' \
--data-raw '{
    "app_id": "app_id",
    "timestamp": "{{datetime}}",
    "out_trade_no": "{{out_trade_no}}",
    "trade_no": "{{trade_no}}"
}'

Resposta Http (formato JSON)

Retorno (Sucesso)

{
    "code": "10000",
    "msg": "Success",
    "trade_no": "",
    "out_trade_no": "",
    "trade_status": "",
    "order_currency": "",
    "order_amount": "",
    "customer": {
        "identify": {
            "number": "",
            "type": ""
        },
        "email": "",
        "phone": ""
    },
    "refuse_detail": "",
    "create_time": "",
    "update_time": ""
}

Retorno (Falha)

{
    "code": "40002",
    "msg": "Business Failed",
    "sub_code": "invalid-signature",
    "sub_msg": "invalid signature"
}

Last updated