Account

WebhookPost

https://sandbox-api.srpago.com/v1/webhook

Configura la URL donde recibirás las notificaciones de tus transacciones rechazadas.

Si quisieras configurar el endpoint para recibir notificaciones aprobadas deberás hacerlo desde nuestro portal web:

-Sandbox: https://sandbox-my.srpago.com/login -Producción: https://my.srpago.com/session/login

headers

AuthorizationBearer Token

Content-Typeapplication/json

body

{
    "url": "https:\/\/srpago.requestcatcher.com\/test/"
}


Example Request 

curl --location --request POST 'https://sandbox-api.srpago.com/v1/webhook' \
--header 'Content-Type: application/json' \
--data-raw '{
    "url": "https:\/\/srpago.requestcatcher.com\/test/"
}'

Example Response

{
  "success": true,
  "result": {
    "first_name": "JORGE",
    "last_name": "RIVERO",
    "surname": "VALENCIA",
    "email": "[email protected]",
    "username": "[email protected]",
    "active": true,
    "rfc": "XAXX010101000",
    "create_time": "2015-11-18T16:33:26-06:00",
    "address": [
      {
        "street": "DESIERTO DE LOS LEONES 67",
        "town": "SAN ANGEL",
        "zip_code": "01000",
        "city": "ALVARO OBREGON"
      }
    ],
    "phones": [
      {
        "label": "main",
        "number": "5530002900"
      }
    ],
    "ecommerce": false,
    "trustLevel": 0,
    "company": {
      "bussines_id": 12,
      "name": "SR ECOMMERCE PAYMENT",
      "rfc": "XAXX010101000",
      "web": "www.miempresa.com",
      "monthlySales": "1000",
      "averagePrice": ""
    },
    "ecom_id": "999383939388839000001ABC=",
    "fullProfile": true,
    "emailSent": true,
    "fixedCommission": "0.00",
    "variableCommission": "2.00",
    "hoursReversal": 10000,
    "clabe": "646420125500105719",
    "thirdparty_accounts": true,
    "automatic_withdrawal": 1
  }
}