Webservice Error Redeeming a Voucher

Bug and problem reporting on Cyclos 4 version

Moderators: hugo, alexandre, rmvanarkel

Post Reply
Posts: 39
Joined: Thu Jun 16, 2016 9:16 am
Location: London

Webservice Error Redeeming a Voucher

Post by Shiyghan » Fri Jul 22, 2016 5:37 pm

I am trying to redeem a voucher using the following

curl -X POST --header 'Content-Type: application/json' --header 'Accept: application/json' --header 'Authorization: Basic bWVtYmVydXNlcjQ6cXdlcg==' -d '{}' 'https://emoneysandbox.techequity.cloud/ ... 148/redeem'

I get the following error

"code": "validation",
"propertyErrors": {
"type": [
"Payment type is invalid"

The output from the request to get data for redeeming the voucher is shown below, and it confirms that the token is indeed correct.

curl -X GET --header 'Accept: application/json' --header 'Authorization: Basic bWVtYmVydXNlcjQ6cXdlcg==' 'https://emoneysandbox.techequity.cloud/ ... for-redeem'

{ "title": "eMoney Voucher Valid for 7 Days", "description": "eMoney voucher valid for 7 days", "type": { "id": "-2627519917713395288", "name": "eMoney Voucher Valid for 7 Days", "internalName": "voucher7daysValid", "configuration": { "id": "-2627519917692423768", "name": "Voucher Codes", "internalName": "voucherCodes", "currency": { "id": "-2627519917696618072", "name": "GBP", "internalName": "gbp", "symbol": "GBP", "prefix": "£", "transactionNumberPattern": "\\G\\B\\P##########\\P\\X", "decimalDigits": 2 } } }, "customFields": [], "token": "2447-1143-5016-8471-4148", "amount": "7.00", "buyer": { "id": "-2627519917650480728", "display": "Member User 4", "shortDisplay": "memberuser4" } }

There is no option to specify the payment type, so I wonder if this is a bug?
Skype senavti

Post Reply