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
successAn object containing details about the status of the request.
codeThe status code of the request.
messageThe status message of the request.
vendorAn object containing details on the vendor that's been created.
- idA unique ID generated for the vendor upon successful creation.
- nameThe unique name of the vendor.
- codeA unique identification code for the vendor.
- brandIdThe unique brand ID of the organization.
- rankThe rank assigned to the vendor, used for ordering and prioritizing.
- descriptionThe description for the vendor.
enabledIndicates whether the vendor is enabled or disabled.
vendorDetailsAn object containing details on the vendor, if any.
vendorTypesThe type of vendor. These are specialized vendor types with customized solutions for reward issuance in Capillary's system. Supported types: LINKAJA/AIRSPRING/OVO/BONUSLINK.
- imagesAn object containing details on the images for the vendor, if any.
--nameA unique name identifier for the image.
--idA unique ID 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.
--altTextA descriptive text that conveys the meaning and context of the image.
--urlA direct link to the image.
--isExternalIndicates if the image is from an external source.
- videosAn object containing details on videos associated with the vendor.
--nameA unique name identifier for the video.
--idA unique ID 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.
--altTextA descriptive text that conveys the meaning and context of the video.
--urlA direct link to the video.
--isExternalIndicates if the video is from an external source.
typeThe type of vendor. Supported values: REWARDS. If set to REWARDS, it refers to a generic vendor used for issuing rewards.
redemptionsConfiguredSpecifies the number of redemptions that have been configured.
lastUpdatedOnThe last updated date and time of the vendor in Epoch time format.
lastUpdatedOnDateTimeThe last updated date and time of the vendor in ISO 8601 format (YYYY-MM-DDTHH:MM:SSZ).
encryptionRequiredIndicates if encryption is required for transactions with the vendor.
lastUpdatedByThe till ID of the user who last updated the vendor redemption record.
createdByThe till ID of the user who created the vendor redemption.
createdOnIndicates the timestamp when the vendor redemption was created. The timestamp is in Epoch time format.
createdOnDateTimeIndicates the date and time when the vendor redemption was created, formatted in ISO 8601.

{
    "status": {
        "success": true,
        "code": 5001,
        "message": "Vendor fetched successfully"
    },
    "vendor": {
        "id": 59,
        "name": "DocVendor7",
        "code": "Doc007",
        "brandId": 61,
        "rank": null,
        "description": null,
        "enabled": true,
        "vendorTypes": null,
        "vendorDetails": {},
        "images": [
            {
                "name": "imageName001",
                "altText": null,
                "id": null,
                "url": "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcS6RFSqYEgenJSDc0Wo_eoEKzxd0iXvTOO-LQ&s",
                "isExternal": true
            }
        ],
        "videos": [
            {
                "name": "videoName001",
                "altText": null,
                "id": null,
                "url": "https://videos.pexels.com/video-files/6265096/6265096-uhd_1440_2560_30fps.mp4",
                "isExternal": true
            }
        ],
        "type": "REWARDS",
        "redemptionsConfigured": 1,
        "createdOn": 1739783601000,
        "lastUpdatedOn": 1739783601000,
        "lastUpdatedOnDateTime": "2025-02-17T09:13:21Z",
        "createdBy": null,
        "lastUpdatedBy": null,
        "createdOnDateTime": "2025-02-17T09:13:21Z",
        "encryptionRequired": false
    }
}
{
    "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!