Margin Details
Create, get, list, update, and unset MSP margin details
Account id of the msp account
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns margin details for given uuid
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"
}
]
}Account id of the msp account
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns id of object created
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"
}
]
}Account id of the msp account
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns id of object created
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"
}
]
}Account id of the msp account
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns list of margin details for the msp account
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"
}
]
}Account id of the msp account
Bad Request
This is Failure entity as defied in Harness
Internal server error
Returns updated margin details
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?