This is a Simulator API which is only available on the Weavr Sandbox Environment
Weavr Simulator (v2)
- Mock serverhttps://api.weavr.io/_mock/products/simulator/openapi/cards/{card_id}/expire
- https://sandbox.weavr.io/simulate/api"/cards/{card_id}/expire
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.weavr.io/_mock/products/simulator/openapi/cards/{card_id}/expire' \
-H 'call-ref: string' \
-H 'programme-key: YOUR_API_KEY_HERE'- Mock serverhttps://api.weavr.io/_mock/products/simulator/openapi/cards/{card_id}/about_to_expire
- https://sandbox.weavr.io/simulate/api"/cards/{card_id}/about_to_expire
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.weavr.io/_mock/products/simulator/openapi/cards/{card_id}/about_to_expire' \
-H 'call-ref: string' \
-H 'programme-key: YOUR_API_KEY_HERE'Request
Simulate card purchases 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 currency ISO-4217 code, i.e. a three letter uppercase code, such as GBP, EUR, USD.
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
- Mock serverhttps://api.weavr.io/_mock/products/simulator/openapi/cards/{card_id}/purchase
- https://sandbox.weavr.io/simulate/api"/cards/{card_id}/purchase
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.weavr.io/_mock/products/simulator/openapi/cards/{card_id}/purchase' \
-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
}'{ "code": "APPROVED", "threeDSecureChallengeId": { "value": 0, "hasValue": true } }
- Mock serverhttps://api.weavr.io/_mock/products/simulator/openapi/cards/{card_id}/renew
- https://sandbox.weavr.io/simulate/api"/cards/{card_id}/renew
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.weavr.io/_mock/products/simulator/openapi/cards/{card_id}/renew' \
-H 'call-ref: string' \
-H 'programme-key: YOUR_API_KEY_HERE'Request
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 currency ISO-4217 code, i.e. a three letter uppercase code, such as GBP, EUR, USD.
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
- Mock serverhttps://api.weavr.io/_mock/products/simulator/openapi/cards/{card_id}/merchant_refund
- https://sandbox.weavr.io/simulate/api"/cards/{card_id}/merchant_refund
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.weavr.io/_mock/products/simulator/openapi/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
}'{ "code": "APPROVED", "threeDSecureChallengeId": { "value": 0, "hasValue": true } }
Request
Simulate card purchases. Provide card details 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 currency ISO-4217 code, i.e. a three letter uppercase code, such as GBP, EUR, USD.
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
- Mock serverhttps://api.weavr.io/_mock/products/simulator/openapi/cards/purchase
- https://sandbox.weavr.io/simulate/api"/cards/purchase
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.weavr.io/_mock/products/simulator/openapi/cards/purchase \
-H 'Content-Type: application/json' \
-H 'call-ref: string' \
-H 'programme-key: YOUR_API_KEY_HERE' \
-d '{
"cardNumber": "stringstringstri",
"cvv": "string",
"expiryDate": "string",
"merchantName": "string",
"merchantId": "string",
"merchantCategoryCode": "stri",
"transactionAmount": {
"currency": "str",
"amount": 0
},
"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
}'{ "code": "APPROVED", "threeDSecureChallengeId": { "value": 0, "hasValue": true } }
Request
Simulate card merchant refunds. Provide card details 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 currency ISO-4217 code, i.e. a three letter uppercase code, such as GBP, EUR, USD.
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
- Mock serverhttps://api.weavr.io/_mock/products/simulator/openapi/cards/merchant_refund
- https://sandbox.weavr.io/simulate/api"/cards/merchant_refund
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
https://api.weavr.io/_mock/products/simulator/openapi/cards/merchant_refund \
-H 'Content-Type: application/json' \
-H 'call-ref: string' \
-H 'programme-key: YOUR_API_KEY_HERE' \
-d '{
"cardNumber": "stringstringstri",
"cvv": "string",
"expiryDate": "string",
"merchantName": "string",
"merchantId": "string",
"merchantCategoryCode": "stri",
"transactionAmount": {
"currency": "str",
"amount": 0
},
"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
}'{ "code": "APPROVED", "threeDSecureChallengeId": { "value": 0, "hasValue": true } }