{
"externalId": "XXXX",
"internalId": "{{InternalId}}",
"status": {
"code": "902",
"description": "REFUNDED",
"detail": "The payin was refunded"
}
}
{
"status": {
"code": "400",
"description": "ERROR",
"detail": "Invalid operation"
}
}
curl --location --request PATCH 'https://api.stage.localpayment.com/api/payin/{{externalId}}/refund' \
--header 'x-client-code: 0000' \
--header 'Content-Type: application/json' \
--header 'Authorization:{{Token_Generated}}' \
--data '{
"comment": "Refund API VA",
"beneficiary": {
"type": "Type",
"name": "Name",
"lastname": "LastName",
"document": {
"type": "DocumentType",
"id": "DocumentId"
},
"bank": {
"name": "BankName",
"code": "Code",
"account": {
"type": "BankAccountType",
"number": "AccountNumber"
}
}
}
}'
{
"externalId": "XXXX",
"internalId": "{{InternalId}}",
"status": {
"code": "902",
"description": "REFUNDED",
"detail": "The payin was refunded"
}
}
{
"status": {
"code": "400",
"description": "ERROR",
"detail": "Invalid operation"
}
}