Api key provided on integrations tab in Easyflow platform.
Get voucher by code
Retrieves a voucher using its unique voucher code. This endpoint is typically used by customers or integrations to validate or display voucher information.
Headers
x-api-keystringrequiredx-api-secretstringrequiredApi Secret provided on integrations tab in Easyflow platform.
Path parameters
codestringrequiredUnique voucher code used to retrieve the voucher.
Responses
200Voucher successfully retrieved.
Voucher successfully retrieved.
Content typeapplication/jsonobject
statusCodeintegerdataobjectShow child attributesHide child attributes
idstring · uuidnamestringstockNamestringdescriptionstringbaseValueInCentsintegerpaidValueInCentsintegerexpirationAtstring · date-timebuyerNamestringbuyerEmailstringbuyerPhoneobjectShow child attributesHide child attributes
areaCodestringdddstringnumberstringisMobileboolean
codestringqrCodeLinkstringstatusstringimageobjectShow child attributesHide child attributes
namestringpathstringurlstringisPublicbooleanextensionstring
voucherTemplateIdstring · uuid
400If the provided parameter is invalid, the API will return the following error response:
If the provided parameter is invalid, the API will return the following error response:
Content typeapplication/jsonobject
messagestringInvalid param: []
errorstringBad Request
statusCodeinteger400
errorCodestringCode that identifies the error. Present only on some errors.
401If the request is unauthorized, the API will return the following error response:
If the request is unauthorized, the API will return the following error response:
Content typeapplication/jsonobject
messagestringInvalid field
errorstringUnauthorized
statusCodeinteger401
403If the request is forbidden, the API will return the following error response:
If the request is forbidden, the API will return the following error response:
Content typeapplication/jsonobject
messagestringForbidden resource
errorstringForbidden
statusCodeinteger403
500If an unexpected condition occurs and the server cannot process the request, the API will return the following error response. This response has no error field.
If an unexpected condition occurs and the server cannot process the request, the API will return the following error response. This response has no error field.
Content typeapplication/jsonobject
statusCodeintegerHTTP status code.
messagestringExplanation of the error.