Get Vendor Details

This API enables you retrieve vendor details using Vendor ID

👍

Note

For detailed information about our APIs and for hands-on testing, refer documentation in API overview and step-by-step guide on making your first API call in Make your first API call .

Prerequisites

  • Authentication: Basic or OAuth authentication
  • Default access group

API Specification

URI/api_gateway/rewards/core/v1/vendor/{vendorId}/details
HTTP MethodGET
PaginationNo
Batch supportNo
Rate limit informationNone

API endpoint example

https://eu.api.capillarytech.com/api_gateway/rewards/core/v1/vendor/36/details

Request path parameters

Parameter NameData TypeDescription
vendorId*IntegerUnique identifier of the vendor. You can get the vendorID from UI.

Response parameters

Parameter NameDescription
successObject containing details about the status of the request.
codeStatus code of the request.
messageStatus message of the request.
vendorObject containing details on the vendor that is created.
- idUnique ID generated for the vendor upon successful creation.
- nameUnique name of the vendor.
- code Unique identification code for the vendor.
- brandIdUnique brand ID of the organisation.
- rankRank assigned to the vendor. This can be used for ordering and prioritizing.
- descriptionDescription for the vendor.
enabledIndicates whether the vendor is enabled or disabled.
vendorDetailsObject containing details on the vendor, if any.
vendorTypesType of vendor. These are specialized vendor types for which we have implemented customized solutions in our system to handle reward issuance. Supported types: LINKAJA/AIRSPRING/OVO/BONUSLINK
- imagesObject containing details on the images for the vendor, if any.
--nameUnique name identifier for the image.
--idUnique ID that is generated when an image is created. This ID is the file_handle for the associated image in the Capillary system. To add an image, raise a ticket to the support team.
--altTextDescriptive text that conveys the meaning and context of the image.
--urlDirect link to the image.
--isExternalIndicates if the image is from an external source.
- videosObject containing details on videos associated with the vendor
--nameUnique name identifier for the video.
--idUnique ID that is generated when a video is created. This ID is the file_handle for the associated video in the Capillary system. To add a video, raise a ticket to the support team.
--altTextDescriptive text that conveys the meaning and context of the video.
--urlDirect link to the video.
--isExternalIndicates if the video is from an external source.
typeType of vendor. Supported Values: REWARDS
REWARDS: If the type is set to REWARDS, it refers to a generic vendor used for issuing rewards.
redemptionsConfiguredSpecifies the number of redemptions which has been configured.
lastUpdatedOnTimestamp of the last update in since epoch format.
encryptionRequiredIndicates if encryption is required for transactions with the vendor.
{
    "status": {
        "success": true,
        "code": 5001,
        "message": "Vendor fetched successfully"
    },
    "vendor": {
        "id": 4,
        "name": "OVO",
        "brandId": 1,
        "enabled": false,
        "vendorTypes": "LINKAJA",
        "vendorDetails": {},
        "type": "REWARDS",
        "redemptionsConfigured": 2,
        "lastUpdatedOn": 1717759204000,
        "encryptionRequired": true
    }
}
{
    "status": {
        "success": false,
        "code": 5004,
        "message": "Vendor not found"
    },
    "vendor": null
}

API-specific error codes

Error CodeDescription
5004Invalid Vendor ID
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!