Enable or Disable a Vendor

A vendor is an external third-party brand you can use to fulfil your rewards. This API allows you to enable or disable a vendor.

👍

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/OAuth authentication
  • Default access group

Resource information

URI/api_gateway/rewards/core/v1/vendor/{vendorId}/status/{action}/brand/{brandId}
HTTP methodPUT
PaginationNA
Rate limitNA
Batch supportNA

API endpoint example

Enabling a vendor: https://eu.api.capillarytech.com/api_gateway/rewards/core/v1/vendor/5/status/enable/brand/3

Disabling a vendor: https://eu.api.capillarytech.com/api_gateway/rewards/core/v1/vendor/5/status/disable/brand/3

Path parameters

ParameterData
Type
Description
vendorIdlongUnique identifier of the vendor.
brandIdlongUnique identifier of the brand.
actionEnumEnable or disable the vendor. Supported values:
enable: enable the vendor.
disable: disable the vendor

Response body

{
    "status": {
        "success": false,
        "code": 5007,
        "message": "Vendor already exists"
    }
}
{
    "status": {
        "success": true,
        "code": 5006,
        "message": "Vendor status updated successfully"
    }
}

Response parameters

ParameterDescription
statusObject containing details about the status of the request.
- successIndicates whether the request was successful.
true: Request was successful.
false: Request was unsuccessful.
- codeStatus code of the request.
- messageStatus message of the request.

API error codes

CodeDescriptionReason
3004Brand not foundbrandId provided is invalid.
Language
Credentials
Basic
base64
:
URL
Click Try It! to start a request and see the response here!