API Cashout Redes
v.1.0.0 English
v.1.0.0 English
  • Consult
  • Register
  • Reverse
  • Response codes
Powered by GitBook
On this page

Reverse

Reverse a cashout transaction. This method allows the cash network to make an automatic reverse.

This method has a limit of 50 seconds since its registration.

Method: PATCH

Production: https://api.payvalida.com/cashout/v1/transaction/{netname}/{idtransaction}

Sandbox: https://api-test.payvalida.com/cashout/v1/transaction/{netname}/{idtransaction}

Name
Required
Description
Type
Length

netcode

Yes

Network code

Numeric

20

transaction

Yes

Transaction ID (unique)

Alphanumeric

50

checksum

Yes

Checksum encoded with SHA512(name + transaction + FIXED_HASH)

Alphanumeric

512

curl -i -X PATCH -H "Content-Type:application/json" -d '{

“transaction”: ”1500003”,

"checksum": "SHA512CHECKSUM...",

"netcode": 180

}' https://api-test.payvalida.com/cashout/v1/transactions/redEjemplo/1500003

Nombre
Descripción
Tipo

code

Indicates the resulting code, “0000” means result with no error, any other value indicates the error code.

Alphanumeric

text

Contains the detailed message associated with the code.

Alphanumeric

data

Contains the transaction’s data (when there’s no error)

Object

data-transaction

Transaction confirmation as sent by the network

Alphanumeric

data-checksum

Checksum encoded with SHA512(transaction + FIXED_HASH)

Alphanumeric

data-netcode

Network code

Alphanumeric

{ "code":"0000",

“text”:”OK”,

"data":{ “transaction”: ”1500003”,

“netcode”: ”180”, "checksum":"71ff0ca3ffa49f0d13c7de5c661c6f8fddcab38004a195718e3d2..."

}

}

Reversing a transaction is supported as long as the endpoint is consumed within 30 seconds after the transaction is initially registered.

PreviousRegisterNextResponse codes

Last updated 2 years ago