Simulate card merchant refunds by Card ID. Provide card id and transaction amount and the transaction will be processed through the system.
The merchant id (MID). If not specified, a random value will be used
The merchant category code (MCC). If unspecified or an invalid MCC is specified, the Merchant Code 5399 (Misc. General Merchandise) will be used instead
A message representing a monetary amount in a particular currency.
The transaction country in ISO 3166 - alpha-3 format
If set to true, this purchase simulates and ATM Withdrawal transaction. MCC will automatically be set to 6011
Optional detail indicating if the card holder was present when the authorisation occurred.
Optional detail indicating if the card was present when the authorisation occurred.
If the card is enrolled for Biometric Authentication, a 3DS Flow is initiated before the Purchase can resume.
If this is a cross-currency transaction, the forex fee amount in the card currency. Deprecated; the forex fee percentage configured at the card profile will be applied if this field is not provided
- https://sandbox.weavr.io/simulate/apihttps://sandbox.weavr.io/simulate/api/cards/{card_id}/merchant_refund
- Mock serverhttps://api.weavr.io/_mock/products/simulator/openapi/cards/{card_id}/merchant_refund
curl -i -X POST \
'https://sandbox.weavr.io/simulate/api/cards/{card_id}/merchant_refund' \
-H 'Content-Type: application/json' \
-H 'call-ref: string' \
-H 'programme-key: YOUR_API_KEY_HERE' \
-d '{
"merchantName": "string",
"merchantId": "string",
"merchantCategoryCode": "stri",
"transactionAmount": {
"currency": "str",
"amount": 0
},
"transactionCountry": "str",
"forexFee": 0,
"forexPadding": 0,
"atmWithdrawal": true,
"additionalMerchantData": {
"merchantStreet": "string",
"merchantCity": "string",
"merchantState": "string",
"merchantPostalCode": "string",
"merchantCountry": "str",
"merchantTelephone": "string",
"merchantURL": "string",
"merchantNameOther": "string",
"merchantNetworkId": "string",
"merchantContact": "string"
},
"cardHolderPresent": "PRESENT",
"cardPresent": true,
"initiateBiometricThreeDSecure": true,
"transactionTimestamp": 0
}'Success
{ "code": "APPROVED", "threeDSecureChallengeId": { "value": 0, "hasValue": true } }