View margins - Get margins

Gets the margins for a CSP partner

GET https://api.partnercenter.microsoft.com/v1/margins

Request Header

Name Required Type Description
MS-CorrelationId

string

A client specified unique identifier for the call, useful in logs and network traces for troubleshooting errors. The value should be reset for every call. All operations should include this header or ms-cv.

Responses

Name Type Description
200 OK

MarginSearchResponse

Success

401 Unauthorized

Unauthorized

403 Forbidden

Forbidden

Definitions

Name Description
Margin
MarginSearchResponse

Margin

Name Type Description
endDate

string

id

string

marginPercentage

number

productId

string

productTitle

string

productType

string

publisherName

string

skuId

string

skuTitle

string

startDate

string

status

string

statusDate

string

MarginSearchResponse

Name Type Description
Results

Margin[]

pageSize

integer

totalSize

integer