Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Margin Details

Create, get, list, update, and unset MSP margin details

Get Margin details

get
Query parameters
accountIdentifierstringOptional

Account id of the msp account

managedAccountIdstringOptional
Responses
400

Bad Request

application/json

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/margin-details
GET /margin-details HTTP/1.1
Host: app.harness.io
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Create Margin details

post
Query parameters
accountIdentifierstringOptional

Account id of the msp account

Body
uuidstringOptional
accountIdstringOptional
accountNamestringOptional
mspAccountIdstringOptional
createdAtinteger · int64Optional
lastUpdatedAtinteger · int64Optional
Responses
400

Bad Request

application/json

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
post/margin-details
POST /margin-details HTTP/1.1
Host: app.harness.io
Content-Type: application/json
Accept: */*
Content-Length: 532

{
  "uuid": "text",
  "accountId": "text",
  "accountName": "text",
  "mspAccountId": "text",
  "marginRules": [
    {
      "name": "text",
      "rules": [
        {
          "viewConditions": [
            {
              "type": "text"
            }
          ]
        }
      ]
    }
  ],
  "markupAmountDetails": {
    "lastMonth": 1,
    "currentMonth": 1,
    "currentQuarter": 1,
    "lastQuarter": 1
  },
  "totalSpendDetails": {
    "lastMonth": 1,
    "currentMonth": 1,
    "currentQuarter": 1,
    "lastQuarter": 1
  },
  "createdAt": 1,
  "lastUpdatedAt": 1,
  "createdBy": {
    "uuid": "text",
    "name": "text",
    "email": "text",
    "externalUserId": "text"
  },
  "lastUpdatedBy": {
    "uuid": "text",
    "name": "text",
    "email": "text",
    "externalUserId": "text"
  }
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Update Margin details

put
Query parameters
accountIdentifierstringOptional

Account id of the msp account

Body
uuidstringOptional
accountIdstringOptional
accountNamestringOptional
mspAccountIdstringOptional
createdAtinteger · int64Optional
lastUpdatedAtinteger · int64Optional
Responses
400

Bad Request

application/json

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/margin-details
PUT /margin-details HTTP/1.1
Host: app.harness.io
Content-Type: application/json
Accept: */*
Content-Length: 532

{
  "uuid": "text",
  "accountId": "text",
  "accountName": "text",
  "mspAccountId": "text",
  "marginRules": [
    {
      "name": "text",
      "rules": [
        {
          "viewConditions": [
            {
              "type": "text"
            }
          ]
        }
      ]
    }
  ],
  "markupAmountDetails": {
    "lastMonth": 1,
    "currentMonth": 1,
    "currentQuarter": 1,
    "lastQuarter": 1
  },
  "totalSpendDetails": {
    "lastMonth": 1,
    "currentMonth": 1,
    "currentQuarter": 1,
    "lastQuarter": 1
  },
  "createdAt": 1,
  "lastUpdatedAt": 1,
  "createdBy": {
    "uuid": "text",
    "name": "text",
    "email": "text",
    "externalUserId": "text"
  },
  "lastUpdatedBy": {
    "uuid": "text",
    "name": "text",
    "email": "text",
    "externalUserId": "text"
  }
}
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

List Margin details

get
Query parameters
accountIdentifierstringOptional

Account id of the msp account

Responses
400

Bad Request

application/json

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
get/margin-details/list
GET /margin-details/list HTTP/1.1
Host: app.harness.io
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Unset Margin details

put
Query parameters
accountIdentifierstringOptional

Account id of the msp account

idstringOptional
Responses
400

Bad Request

application/json

This is Failure entity as defied in Harness

statusstring · enumOptionalPossible values:
codestring · enumOptionalPossible values:
messagestringOptional
correlationIdstringOptional
put/margin-details/unset-margins
PUT /margin-details/unset-margins HTTP/1.1
Host: app.harness.io
Accept: */*
{
  "status": "SUCCESS",
  "code": "DEFAULT_ERROR_CODE",
  "message": "text",
  "correlationId": "text",
  "errors": [
    {
      "fieldId": "text",
      "error": "text"
    }
  ]
}

Last updated

Was this helpful?