Bad Request

You are here

1 post / 0 new
Svpmeds
Bad Request
Hi,   we are saving our card details ( e.g. card number and expire date ) through this resource URL “https://api-cert.sagepayments.com/token/v1/tokens”. After this we are getting one token number. When we are using this token number with this resource URL https://api-cert.sagepayments.com/bankcard/v1/charges?type=Sale. Then we are getting bad request as error response. You can see our request and response.   Json request   {"Ecommerce":{"OrderNumber":"Invoice 900","Amounts":{"Total":"7"},"vault":{"token":"0826713092744e27a92d22b3a73e97fd","operation":"Create"}}}   Json response   Web Exception Message: The remote server returned an error: (400) Bad Request.   API Response:       {       "code": "400000",       "message": "There was a problem with the request. Please see 'detail' for more.",       "info": "https://developer.sagepayments.com/docs/errors#400000",       "detail": "InvalidRequestData : INVALID C_EXP"       }     Is our json request correct ? Please help regarding this issue ASAP.