Transaction token: Update
The returned resource does not contain the data
field.
Request
PATCH https://api.univapay.com/stores/{storeId}/tokens/{id}
Parameters:
Parameters | |
string The customer’s email address. | |
metadata | object See metadata. |
data.cvv | number The card’s CVV number. Required when RECURRING_USAGE_REQUIRES_CVV error is encountered while trying to create a charge use a recurring token. Application token secret is not required when patch the CVV only. |
Headers:
Content-Type: application/json
Authorization: Bearer {secret}.{jwt}
Body:
curl --request PATCH \
--url https://api.univapay.com/stores/{store_id}/tokens/{id} \
--header 'Authorization: Bearer {secret}.{jwt}'
--data '{
"email": "e.montgomery@univapay.com",
"data": {
"cvv": 123
}
}'
Response
Code:
200
Headers:
Content-Type: application/json
Body:
{
"id": "3682a594-1848-11e7-a15c-bb2721776253",
"store_id": "af857264-180c-11e7-9be2-276aea4fed28",
"email": "e.montgomery@univapay.com",
"payment_type": "card",
"mode": "test",
"type": "recurring",
"metadata": {},
"created_on": "2018-05-22T04:49:04.71943Z",
"last_used_on": null
}