Manage orders - Gets a list of product promotions.
Hämtar partners tillgängliga kampanjer.
GET https://api.partnercenter.microsoft.com/v{version}/productpromotions
GET https://api.partnercenter.microsoft.com/v{version}/productpromotions?country={country}&segment={segment}
URI-parametrar
Name | I | Obligatorisk | Typ | Description |
---|---|---|---|---|
version
|
path | True |
string |
|
country
|
query |
string |
Landet. |
|
segment
|
query |
string |
Segmentet. |
Begärandehuvud
Name | Obligatorisk | Typ | Description |
---|---|---|---|
Authorization | True |
string |
Token för auktoriseringsbärare |
ms-correlationid |
string |
Används för att spåra begäranden internt. Om ett ms-correlationid inte anges genererar servern en ny för varje begäran |
|
MS-CV |
string |
Används för att spåra begäranden internt. Om en MS-CV inte tillhandahålls genererar servern en ny för varje begäran |
|
ms-requestid |
string |
Används för idempotens för begäranden. Om ett ms-requestid inte har angetts genererar servern en ny för varje begäran |
Svar
Name | Typ | Description |
---|---|---|
200 OK |
Begäran lyckades. Svarstexten innehåller en lista över kampanjer för partnern. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
400 Bad Request |
Det saknades eller ogiltiga indata. Svarstexten innehåller felinformationen. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
401 Unauthorized |
Begäran autentiserades inte. Klienten måste autentisera med partner-API-tjänsten först. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
403 Forbidden |
Begäran autentiserades men nekades eftersom anroparen inte har behörighet att anropa den. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
404 Not Found |
Resursen hittades inte eller är inte tillgänglig med de angivna indataparametrarna. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
|
500 Internal Server Error |
Partner-API-tjänsten eller något av dess beroenden kunde inte uppfylla begäran. Media Types: "application/json", "text/json", "application/xml", "text/xml" |
Definitioner
Contracts.V1.Models.ProductPromotion
Name | Typ | Description |
---|---|---|
description |
string |
|
endDate |
string |
|
id |
string |
|
name |
string |
|
properties | ||
requiredProducts | ||
startDate |
string |
Contracts.V1.Models.ProductPromotionPricingPolicy
Name | Typ | Description |
---|---|---|
policyType |
string |
|
value |
string |
Contracts.V1.Models.ProductPromotionProperties
Name | Typ | Description |
---|---|---|
isAutoApplicable |
boolean |
Contracts.V1.Models.ProductPromotionRequiredProduct
Name | Typ | Description |
---|---|---|
pricingPolicies | ||
productId |
string |
|
skuId |
string |
|
term |
Contracts.V1.Models.ProductPromotionTerm
Name | Typ | Description |
---|---|---|
billingCycle |
string |
|
duration |
string |
Link
Name | Typ | Description |
---|---|---|
body |
string |
|
headers |
System. |
|
method |
string |
|
uri |
string |
ResourceAttributes
Name | Typ | Description |
---|---|---|
etag |
string |
|
objectType |
string |
ResourceCollection[Contracts.V1.Models.ProductPromotion]
Name | Typ | Description |
---|---|---|
attributes | ||
items | ||
links | ||
totalCount |
integer |
ResourceLinks
Name | Typ | Description |
---|---|---|
next | ||
previous | ||
self |
System.Collections.Generic.KeyValuePair[System.String,System.String]
Name | Typ | Description |
---|---|---|
key |
string |
|
value |
string |