Region Code
Vista Digital Platform (V1)
Download OpenAPI description
Languages
Servers
Mock server
https://developer.vista.co/_mock/openapi/digital-platform/openapi
Bodyrequired
- application/json
- text/json
- application/*+json
- application/json-patch+json
Credentials of the requested gift card
- Mock serverhttps://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/gift-cards/details
- cURL
- JavaScript
- Node.js
- application/json
- text/json
- application/*+json
- application/json-patch+json
curl -i -X POST \
https://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/gift-cards/details \
-H 'Connect-Region-Code: string' \
-H 'Content-Type: application/json' \
-d '{
"cardNumber": "string",
"pin": "string"
}'Response
application/json
{ "maskedCardNumber": "12.......6789", "expiresAt": "2019-08-24T14:15:22Z", "availableBalance": 0.1 }
Body
- application/json
- text/json
- application/*+json
- application/json-patch+json
The gift card payment request
- Mock serverhttps://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/orders/{orderId}/payments/gift-cards
- cURL
- JavaScript
- Node.js
- application/json
- text/json
- application/*+json
- application/json-patch+json
curl -i -X POST \
'https://developer.vista.co/_mock/openapi/digital-platform/openapi/ocapi/v1/orders/{orderId}/payments/gift-cards' \
-H 'Connect-Region-Code: string' \
-H 'Content-Type: application/json' \
-d '{
"cardNumber": "string",
"pin": "string"
}'Response
application/json
{ "id": "string", "type": "CinemaProcessed", "maskedCardNumber": "12.......6789", "value": 0.1, "status": "NotStarted" }