Update fulfilment status and transaction custom fields for issued rewards

This API is used to update fulfilment status and transaction custom fields for issued rewards

👍

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

Resource information

URI/api_gateway/rewards/core/v1/management/transactions?skip_validation=true
HTTP MethodPUT
PaginationNo
Batch supportNo
Rate limit informationNone

API endpoint example

https://eu.api.capillarytech.com/api_gateway/rewards/core/v1/management/transactions?skip_validation=true

Request path parameters

Parameter NameData TypeDescription
skip_validationStringA validation code is used to redeem points for the transaction. You can set skip_validation to true in the configuration to bypass the validation code for points redemption.

Request body parameters

ParameterDatatypeDescription
transactionsarrayDetails about the transaction.
id*integerUnique id of the transaction to fetch.
customerId*integerUnique id for the customer associated with the transaction.
rewardId*integerUnique id for the reward associated with the transaction.
transactionCustomFieldobjectCustom transaction fields enhance the ability to track and manage reward points beyond what standard fields offer, meeting specific needs and requirements. The supported data types are String, Integer, Date, and Boolean. Default limit for transaction custom field is 20.

Consider the following scenarios:
Scenario 1: A brand partners with a third-party vendor to deliver their product. This requires additional tracking, such as vendor ID, handling instructions, and delivery date. To manage this information, create custom fields for vendor_ID, handling_instructions, and delivery_date and include the fields with their respective values in thetransactionCustomFieldobject.
Scenario 2: A brand wants to store extra information about a transaction's status, such as internal status codes and notes that standard fields don't capture. Create custom fields for internal_status_code and notes and add the fields with their corresponding values to the transactionCustomField object.
Refer Reward Tracking with status and Custom Fields for more information.
fulfillmentDetailsobjectThe fulfillmentDetails object tracks the status of each transaction's fulfillment process and provides information about the current state of reward fulfillment. Consider the following scenarios:

Scenario 1: A customer places an order for a reward. To track the order through its various stages, create statuses such as "Order received," "Processing," "Shipped," and "Delivered." Include these statuses as values in the fulfillmentDetails object to provide real-time tracking information to the customer.

Scenario 2: A customer reports an issue with a reward they received or requests a return. Update the fulfillmentDetails object with statuses such as "Returned," "Refund processed," or "Issue resolved." This approach helps manage and track returns or complaints more effectively.
statusstringCurrent status of the fulfillment process. Status can be created from Create fulfillment status.
{
    "transactions": [
        {
            "transactionId": 195694,
            "customerId": 556875097,
            "rewardId": 180298,
            "transactionCustomField": {
                "issue-reward-1": "6868"
            },
            "fulfillmentDetails": {
                "status": "Order confirmed"
            }
        },
        {
            "transactionId": 195694,
            "customerId": 556875097,
            "rewardId": 180298,
            "transactionCustomField": {
                "issue-reward-1": "6868"
            },
            "fulfillmentDetails": {
                "status": "Delivered"
            }
        }
    ]
}

Response parameters

ParameterDescription
transactionsDetails about the transaction.
idUnique id of the transaction to fetch.
customerIdUnique id for the customer associated with the transaction.
rewardIdUnique id for the reward associated with the transaction.
fulfillmentDetailsDetails about the fulfillment status.
idUnique id of the fulfillment details
statusCurrent status of the fulfillment process.
{
    "transactions": [
        {
            "transactionId": 195694,
            "rewardId": 180298,
            "customerId": 556875097,
            "fulfillmentDetails": {
                "id": 3,
                "status": "Order confirmed"
            }
        },
        {
            "transactionId": 195694,
            "rewardId": 180298,
            "customerId": 556875097,
            "fulfillmentDetails": {
                "id": 5,
                "status": "Delivered"
            }
        }
    ]
}
Language
Authorization
Basic
base64
:
URL
Click Try It! to start a request and see the response here!