Retrieve Request Status using ID

Allows you to retrieve status of Customer Merge or Transaction requests.

Transaction Request Status Details

ActionRequest statusTransaction status in Member care / Customer / Tag transaction
Capillary receives a transaction requestPENDINGPENDING
Capillary rejects the transaction requestREJECTEDREJECTED
Capillary approves the transaction requestSUCCESSSUCCESS
Transaction request failedFAILUREFAILURE

API Endpoint Example

<https://eu.api.capillarytech.com/v2/requests/13029191>

Prerequisites

  • Authentication - Basic or OAuth authentication
  • Access group resource - Read permission on Requests resource group

Resource information

URIv2/requests\{id\}
HTTP methodGET
Pagination supported?Yes
Rate limitNA
Batch supportYes

Request Path Parameters

Parameters (Parameters marked with * are mandatory)Data TypeDescription
id*LongUnique identifier of the request, generated during the POST call to add the request.

curl --location 'https://eu.api.capillarytech.com/v2/requests/13029191' \
--header 'Authorization: Basic ZGl2TdlYTI0YTYyZTZm' \
--header 'Cookie: _cfuvid=EWw7Wfz8Ouj54ZVF2cPldbObmSaOCCsfBD._qxSWZoM-1744468652196-0.0.1.1-604800000'
curl --location 'https://eu.api.capillarytech.com/v2/requests/1778080' \
--header 'Authorization: Basic YXV0b3WI5NjRiMDcxNTJkMjM0Yjcw'
curl --location 'https://eu.api.capillarytech.com/v2/requests/1778080' \
--header 'Authorization: Basic YXV0b3NjRiMDcxNTJkMjM0Yjcw'

Response Parameters for Transaction Request

ParameterDescription
typeThe type of the transaction, in this case, "TRANSACTION."
baseTypeThe base type of the transaction, in this case, "REGULAR_TXN_ADD."
statusThe status of the transaction, e.g., "PENDING."
transactionContains details about the transaction, including delivery status, type, billing date, bill amount, etc.
imagesAn array of objects representing images related to the transaction.
customerContains information about the customer, including their ID, profiles, identifiers, etc.
attributionContains attribution details related to the transaction, such as createDate, createdBy, etc.
idThe unique request identifier for the transaction.
addedOnThe date and time when the transaction was added.
userIdThe unique identifier for the user associated with the transaction.
commentsAdditional comments or notes related to the transaction, e.g., "Test."
oneStepA boolean indicating whether the transaction involves a one-step process.
warningsAn array that may contain any warnings related to the operation, if applicable.

{
    "type": "TRANSACTION",
    "baseType": "REGULAR_TXN_ADD",
    "status": "PENDING",
    "transaction": {
        "deliveryStatus": "SHIPPED",
        "type": "REGULAR",
        "billAmount": 21.0,
        "billNumber": "4113667",
        "discount": 0.0,
        "grossAmount": 21.0,
        "note": "",
        "lineItemsV2": [
            {
                "amount": 10.5,
                "description": "PURINA TIDY CATS CAT LITTER STRONG CLUMPS FOR MULTIPLE CATS LOCKS AWAY ODORS BAG 40 POUND",
                "discount": 0.0,
                "itemCode": "ASN10000001",
                "qty": 1.0,
                "rate": 10.5,
                "returnable": true,
                "returnableDays": -1,
                "comboDetails": [],
                "addOnDetails": [],
                "splitDetails": []
            },
            {
                "amount": 10.5,
                "description": "Cat Chow",
                "discount": 0.0,
                "itemCode": "ASN10000001",
                "qty": 1.0,
                "rate": 10.5,
                "returnable": true,
                "returnableDays": -1,
                "comboDetails": [],
                "addOnDetails": [],
                "splitDetails": []
            }
        ],
        "customFields": {
            "added_on": "2022-12-10T11:58:18+05:30",
            "paymentmode": "abc",
            "vendor_name": "Walmart"
        },
        "notInterestedReason": "",
        "isUseDefaultUserGroup2": false,
        "paymentModes": [
            {
                "mode": "Cash",
                "value": 21.0,
                "notes": ""
            }
        ],
        "billingDate": "2022-12-13T11:58:18+05:30",
        "useDefaultUserGroup2": false
    },
    "images": [
        {
            "id": 557,
            "provider": "FILESERVICE",
            "namespace": "solutions",
            "serial": 1,
            "fileName": "56BA4T07757.png",
            "active": true
        }
    ],
    "customer": {
        "id": 538194152,
        "profiles": [
            {
                "firstName": "",
                "lastName": "",
                "fields": {},
                "identifiers": [
                    {
                        "type": "externalId",
                        "value": "7989b873-7cbc-11ed-8eb3-0e5e22a6da49"
                    },
                    {
                        "type": "email",
                        "value": "[email protected]"
                    }
                ],
                "commChannels": [],
                "userId": 538194152,
                "accountId": "",
                "autoUpdateTime": "2023-04-27T12:17:23+05:30",
                "identifiersAll": [
                    {
                        "type": "externalId",
                        "value": "7989b873-7cbc-11ed-8eb3-0e5e22a6da49"
                    },
                    {
                        "type": "email",
                        "value": "[email protected]"
                    }
                ]
            }
        ]
    },
    "attribution": {
        "createDate": "2023-02-08T19:16:08+05:30",
        "createdBy": {
            "id": 13509183,
            "code": "purinatestaccount",
            "description": "",
            "name": "purinatestaccount",
            "type": "TILL",
            "adminType": "GENERAL",
            "isActive": true,
            "isOuEnabled": false,
            "timeZoneId": 372,
            "currencyId": -1,
            "languageId": -1
        },
        "modifiedBy": {
            "id": 13509183,
            "code": "purinatestaccount",
            "description": "",
            "name": "purinatestaccount",
            "type": "TILL",
            "adminType": "GENERAL",
            "isActive": true,
            "isOuEnabled": false,
            "timeZoneId": 372,
            "currencyId": -1,
            "languageId": -1
        },
        "modifiedDate": "2023-04-26T00:00:00+05:30"
    },
    "id": 902581,
    "addedOn": "2023-02-08T19:16:08+05:30",
    "userId": 538194152,
    "comments": "Test",
    "oneStep": false,
    "warnings": []
}

Response Parameters for Customer Merge Request

Parameter

Data Type

Description

type

Enum

Type of the request. Possible Value: CHANGE_IDENTIFIER

baseType

Enum

Base type of the request. Possible Value: MERGE

status

String

Current status of the request. Possible Values: PENDING<code>, </code>APPROVED<code>, </code>REJECTED

attribution

Object

Contains metadata about the creation and modification of the request.

  • createDate

Date

Timestamp in ISO 8601 format indicating when the request was created.

  • createdBy

Object

Details of the user who created the request.

-- id

Long

ID of the creator.

-- code

String

Till code of the creator.

-- description

String

Description of the creator.

-- name

String

Till of the creator.

-- type

String

Type of user who created the request.

-- referenceId

Integer

Reference ID of the creator.

-- adminType

String

Admin type of the creator.

-- isActive

Boolean

Indicates if the creator is active. True<code> indicates active. </code>False indicates inactive.

-- isOuEnabled

Boolean

Indicates if OU is enabled for the creator.

-- timeZoneId

Integer

Time zone ID associated with the creator. Example: 191

-- currencyId

Integer

Currency ID associated with the creator. Example: 95

-- languageId

Integer

Language ID associated with the creator. Example: 148

-- default

Boolean

Indicates if this is the default user.

  • modifiedBy

Object

Details of the user who last modified the request.

-- id

Long

ID of the modifier.

-- code

String

Till code of the modifier.

-- description

String

Description of the modifier.

-- name

String

Till of the modifier.

-- type

String

Type of user who modified the request.

-- referenceId

Integer

Reference ID of the modifier.

-- adminType

String

Admin type of the modifier.

-- isActive

Boolean

Indicates if the modifier is active. True<code> indicates active. </code>False indicates inactive.

-- isOuEnabled

Boolean

Indicates if OU is enabled for the modifier.

-- timeZoneId

Integer

Time zone ID associated with the modifier. Example: 191

-- currencyId

Integer

Currency ID associated with the modifier. Example: 95

-- languageId

Integer

Language ID associated with the modifier. Example: 148

-- default

Boolean

Indicates if this is the default user.

modifiedDate

Date

Timestamp in ISO 8601 format indicating when the request was modified.

id

Long

Unique ID of the request.

orgId

Integer

Organization ID where the request was created.

addedOn

Date

Indicates the timestamp in ISO 8601 format when the request was added.

userId

Integer

Customer ID of the victim.

changeIdentifierRequest

Object

Details of the change identifier request.

  • id

Long

Unique ID of the change identifier request.

  • userId

Long

User ID associated with the change.

  • requestId

Long

Associated request ID.

  • changeType

String

Type of identifier change. Value: MERGE

  • changeStatus

String

Status of the identifier change. Possible Values: PENDING<code>, </code>APPROVED<code>, </code>REJECTED

  • changeIdentifiers

Object

Contains the identifiers of the survivor and the victim.

-- add

Array

Identifiers of the survivor.

--- type

String

Type of identifier for the survivor account.

--- value

Long

Value the customer identifier of the survivor account

-- remove

Array

Identifiers of the victim.

--- type

String

Type of identifier for the victim account.

--- value

Long

Value the customer identifier of the victim account.

  • oneStep

Boolean

Indicates if the merge should be done in one step.

oneStep

Boolean

Indicates if the merge request is configured as one step.

warnings

Array

List of any warnings encountered (empty if none).

Error Code

Error CodeDescriptionReason
9050Request not foundIncorrect request ID
Language
URL
Click Try It! to start a request and see the response here!