Error while testing Shopify Vault through Postman HTTP 422 Response

Highlighted
New Member
1 0 0

Hi, 

I am creating a payment session by sending a request to the endpoint https://elb.deposit.shopifycs.com/sessions. through postman.

Below is my request:

curl -X POST \
https://elb.deposit.shopifycs.com/sessions \
-H 'accept: application/json' \
-H 'authorization: Basic XXXX' \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-H 'origin: https:/XXXX' \
-H 'postman-token: XXXX' \
-d '{
"credit_card": {
"number": "XXXX",
"first_name": "XXXX",
"last_name": "XXXX",
"month": "01",
"year": "20",
"verification_value": "123"
}
}
'

Returned Response: 

Capture.PNG

 

Am I sending the request correctly or am I missing something? 

 

Appreciate your help. 

 

 

 

 

0 Likes