Partners

get
Responses
200Success
application/json
get
GET /v1/crm/partners HTTP/1.1
Host: 
Accept: */*
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "items": [
      {
        "domain": "text",
        "locales": {},
        "id": "text"
      }
    ]
  }
}
get
Path parameters
idstringRequired
Responses
200Success
application/json
get
GET /v1/crm/partners/{id} HTTP/1.1
Host: 
Accept: */*
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "item": {
      "domain": "text",
      "locales": {},
      "id": "text",
      "programs": [
        {
          "locales": {},
          "excludedLevels": {},
          "period": 1,
          "periodUnit": {},
          "alias": "text",
          "id": "text",
          "benefits": [
            {
              "locales": {},
              "type": 1,
              "amount": 1,
              "discountRef": "text",
              "sortNumber": 1,
              "id": "text",
              "uid": "text",
              "rules": [
                {
                  "conditions": [
                    {
                      "key": "basic.date",
                      "operator": "contains",
                      "value": "text"
                    }
                  ],
                  "action": 1,
                  "sortNumber": 1,
                  "id": "text",
                  "uid": "text",
                  "createdAt": "text",
                  "createdVia": "text",
                  "createdBy": "text",
                  "updatedAt": "text",
                  "updatedVia": "text",
                  "updatedBy": "text"
                }
              ],
              "createdAt": "text",
              "createdVia": "text",
              "createdBy": "text",
              "updatedAt": "text",
              "updatedVia": "text",
              "updatedBy": "text"
            }
          ]
        }
      ]
    }
  }
}
get
Path parameters
idstringRequired
Responses
200Success
application/json
get
GET /v1/crm/partners/{id}/customers HTTP/1.1
Host: 
Accept: */*
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "customers": [
      {
        "customerUid": "text",
        "firstName": "text",
        "lastName": "text",
        "gender": "text",
        "tagEligible": "text",
        "tagAssigned": "text",
        "tagEffectiveStartTime": "text",
        "tagEffectiveEndTime": "text",
        "tagAssignmentUid": "text"
      }
    ],
    "count": 1,
    "next": "text"
  }
}
post
Body
Responses
200Success
application/json
post
POST /v1/crm/partners/member HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 53

{
  "params": {
    "membershipId": "text",
    "partnerId": "text"
  }
}
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "succeed": true,
    "programs": [
      {
        "locales": {},
        "excludedLevels": {},
        "period": 1,
        "periodUnit": {},
        "alias": "text",
        "id": "text",
        "benefits": [
          {
            "locales": {},
            "type": 1,
            "amount": 1,
            "discountRef": "text",
            "sortNumber": 1,
            "id": "text",
            "uid": "text",
            "rules": [
              {
                "conditions": [
                  {
                    "key": "basic.date",
                    "operator": "contains",
                    "value": "text"
                  }
                ],
                "action": 1,
                "sortNumber": 1,
                "id": "text",
                "uid": "text",
                "createdAt": "text",
                "createdVia": "text",
                "createdBy": "text",
                "updatedAt": "text",
                "updatedVia": "text",
                "updatedBy": "text"
              }
            ],
            "createdAt": "text",
            "createdVia": "text",
            "createdBy": "text",
            "updatedAt": "text",
            "updatedVia": "text",
            "updatedBy": "text"
          }
        ]
      }
    ]
  }
}
delete
Path parameters
idstringRequired
membershipIdstringRequired
Body
Responses
200Success
application/json
delete
DELETE /v1/crm/partners/{id}/member/{membershipId} HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 53

{
  "params": {
    "membershipId": "text",
    "partnerId": "text"
  }
}
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "succeed": true
  }
}
post
Body
Responses
200Success
application/json
post
POST /v1/crm/partners/register HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 27

{
  "params": {
    "email": "text"
  }
}
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "token": "text",
    "creationTime": 1,
    "life": 1
  }
}
post
Body
Responses
200Success
application/json
post
POST /v1/crm/partners/verify HTTP/1.1
Host: 
Content-Type: application/json
Accept: */*
Content-Length: 58

{
  "params": {
    "email": "text",
    "otp": "text",
    "otpToken": "text"
  }
}
200Success
{
  "app": "text",
  "service": "text",
  "warnings": [
    {}
  ],
  "instanceId": "text",
  "requestId": "text",
  "data": {
    "succeed": true,
    "programs": [
      {
        "locales": {},
        "excludedLevels": {},
        "period": 1,
        "periodUnit": {},
        "alias": "text",
        "id": "text",
        "benefits": [
          {
            "locales": {},
            "type": 1,
            "amount": 1,
            "discountRef": "text",
            "sortNumber": 1,
            "id": "text",
            "uid": "text",
            "rules": [
              {
                "conditions": [
                  {
                    "key": "basic.date",
                    "operator": "contains",
                    "value": "text"
                  }
                ],
                "action": 1,
                "sortNumber": 1,
                "id": "text",
                "uid": "text",
                "createdAt": "text",
                "createdVia": "text",
                "createdBy": "text",
                "updatedAt": "text",
                "updatedVia": "text",
                "updatedBy": "text"
              }
            ],
            "createdAt": "text",
            "createdVia": "text",
            "createdBy": "text",
            "updatedAt": "text",
            "updatedVia": "text",
            "updatedBy": "text"
          }
        ]
      }
    ]
  }
}

Was this helpful?