{
"amount": 0,
"terminalId": "string",
"orderId": "string",
"currencyCode": 36,
"storeId": "string",
"posType": 1,
"paymentChannelId": 1,
"preferredPaymentMethodId": 0,
"collectionPromptChannelId": 0,
"customer": {
"id": "string",
"firstName": "string",
"lastName": "string",
"fullName": "string",
"email": "string",
"phone": "string",
"preferredLanguage": "string",
"type": 1,
"deliveryAddress": {
"fullName": "string",
"firstName": "string",
"lastName": "string",
"addressRow1": "string",
"addressRow2": "string",
"postalArea": "string",
"postalCode": "string",
"countryCode": 4
},
"billingAddress": {
"fullName": "string",
"firstName": "string",
"lastName": "string",
"addressRow1": "string",
"addressRow2": "string",
"postalArea": "string",
"postalCode": "string",
"countryCode": 4
},
"isDeliveryRecipient": true
},
"deviceSpec": {
"os": "string",
"isBrowserBased": true
},
"overrides": {
"useDeepLink": true,
"vivaOptions": {
"isvMerchantId": "string",
"isvSourceCode": "string"
},
"verifoneVimOptions": {
"confirmation": true,
"pinCode": "string"
}
},
"options": {
"softPayOptions": {
"employeeReference": "string",
"merchantReference": "string",
"tipping": {
"enableTipping": true,
"percentageOptions": [
0
]
}
}
},
"giftCardIdentifierCode": "string",
"paymentFlowType": 1
}curl --location --request POST 'https://sandbox.api.confirmapay.com//v1/transaction/refund' \
--header 'Device-Id;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"amount": 0,
"terminalId": "string",
"orderId": "string",
"currencyCode": 36,
"storeId": "string",
"posType": 1,
"paymentChannelId": 1,
"preferredPaymentMethodId": 0,
"collectionPromptChannelId": 0,
"customer": {
"id": "string",
"firstName": "string",
"lastName": "string",
"fullName": "string",
"email": "string",
"phone": "string",
"preferredLanguage": "string",
"type": 1,
"deliveryAddress": {
"fullName": "string",
"firstName": "string",
"lastName": "string",
"addressRow1": "string",
"addressRow2": "string",
"postalArea": "string",
"postalCode": "string",
"countryCode": 4
},
"billingAddress": {
"fullName": "string",
"firstName": "string",
"lastName": "string",
"addressRow1": "string",
"addressRow2": "string",
"postalArea": "string",
"postalCode": "string",
"countryCode": 4
},
"isDeliveryRecipient": true
},
"deviceSpec": {
"os": "string",
"isBrowserBased": true
},
"overrides": {
"useDeepLink": true,
"vivaOptions": {
"isvMerchantId": "string",
"isvSourceCode": "string"
},
"verifoneVimOptions": {
"confirmation": true,
"pinCode": "string"
}
},
"options": {
"softPayOptions": {
"employeeReference": "string",
"merchantReference": "string",
"tipping": {
"enableTipping": true,
"percentageOptions": [
0
]
}
}
},
"giftCardIdentifierCode": "string",
"paymentFlowType": 1
}'{
"data": {
"orderId": "string",
"transactionId": "string",
"createdAt": "2019-08-24T14:15:22Z",
"status": 1,
"subStatus": 1000,
"deepLinkUrl": "string",
"customerRedirectUrl": "string",
"merchantRedirectUrl": "string",
"paymentChannelMetaData": {
"verifoneVim": {
"transactionType": 1,
"verifoneVimTerminalTransactionId": "string"
}
}
},
"description": {
"code": "string",
"message": "string"
},
"narrative": {
"code": "string",
"message": "string"
}
}