Information about vendor promotions
Get a list of promotions for the specified vendor.
This resource requires authentication.
This is a deprecated API. Refer Get promotions for the new API details
integer
Required1
2
3
4
curl --request GET \
--url 'https://marketplace.atlassian.com/rest/2/vendors/{vendorId}/promotions' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
"_links": {
"self": {
"href": "<string>",
"type": "<string>",
"title": "<string>"
}
},
"promotions": [
{
"_links": {
"self": {
"href": "<string>"
},
"edit": {
"href": "<string>"
},
"status": {
"href": "<string>"
},
"codes": {
"href": "<string>"
},
"usage": {
"href": "<string>"
}
},
"name": "<string>",
"products": [
"<string>"
],
"startDate": "<string>",
"expirationDate": "<string>",
"endImmediatelyDate": "<string>",
"status": "ACTIVE",
"usageType": "MULTI",
"discountType": "FLAT",
"discount": [
{
"pricingItemId": "<string>",
"discountAmount": 43
}
],
"discountPercent": 71,
"appliesToAllLicenseTypes": true,
"maxUses": 78,
"used": 44,
"hosting": "<string>"
}
]
}
Create a new promotion for the specified vendor.
This resource requires authentication.
This is a deprecated API. Refer Create promotion for the new API details
integer
RequiredPromotionLinks
string
Requiredarray<string>
Requiredstring
string
Requiredstring
string
Requiredstring
Requiredinteger
boolean
Successfully created
string
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
curl --request POST \
--url 'https://marketplace.atlassian.com/rest/2/vendors/{vendorId}/promotions' \
--user 'email@example.com:<api_token>' \
--header 'Content-Type: application/json' \
--data '{
"_links": {
"self": {
"href": "<string>",
"type": "<string>",
"title": "<string>"
},
"edit": {
"href": "<string>",
"type": "<string>",
"title": "<string>"
},
"status": {
"href": "<string>",
"type": "<string>",
"title": "<string>"
},
"codes": {
"href": "<string>",
"type": "<string>",
"title": "<string>"
},
"usage": {
"href": "<string>",
"type": "<string>",
"title": "<string>"
}
},
"name": "<string>",
"products": [
"<string>"
],
"startDate": "<string>",
"expirationDate": "<string>",
"status": "ACTIVE",
"usageType": "MULTI",
"discountType": "FLAT",
"discountPercent": 71,
"appliesToAllLicenseTypes": true,
"maxUses": 78,
"hosting": "<string>"
}'
Get a specific promotion for the specified vendor.
This resource requires authentication.
This is a deprecated API. Refer Get promotion for the new API details
integer
Requiredstring
Required1
2
3
4
curl --request GET \
--url 'https://marketplace.atlassian.com/rest/2/vendors/{vendorId}/promotions/{promotionId}' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
{
"_links": {
"self": {
"href": "<string>",
"type": "<string>",
"title": "<string>"
},
"edit": {
"href": "<string>",
"type": "<string>",
"title": "<string>"
},
"status": {
"href": "<string>",
"type": "<string>",
"title": "<string>"
},
"codes": {
"href": "<string>",
"type": "<string>",
"title": "<string>"
},
"usage": {
"href": "<string>",
"type": "<string>",
"title": "<string>"
}
},
"name": "<string>",
"products": [
"<string>"
],
"startDate": "<string>",
"expirationDate": "<string>",
"endImmediatelyDate": "<string>",
"status": "ACTIVE",
"usageType": "MULTI",
"discountType": "FLAT",
"discount": [
{
"pricingItemId": "<string>",
"discountAmount": 43
}
],
"discountPercent": 71,
"appliesToAllLicenseTypes": true,
"maxUses": 78,
"used": 44,
"hosting": "<string>"
}
Update a specific promotion for the specified vendor.
The request body must be a valid JSON Patch document. The properties which can be referenced in the PATCH are the same ones returned by a GET on this URI.
This resource requires authentication.
This is a deprecated API. Refer Update promotion for the new API details
integer
Requiredstring
RequiredThe request body must be a valid JSON Patch document. The properties which can be referenced in the PATCH are the same ones returned by a GET on this URI.
array<JsonPatchDocumentation>
string
Requiredstring
Requiredobject
string
Successfully modified
string
1
2
3
curl --request PATCH \
--url 'https://marketplace.atlassian.com/rest/2/vendors/{vendorId}/promotions/{promotionId}' \
--user 'email@example.com:<api_token>'
Get a list of single-use codes for the specified promotion.
This resource requires authentication.
This is a deprecated API. Refer Get promotion codes for the new API details
integer
Requiredstring
Required1
2
3
4
curl --request GET \
--url 'https://marketplace.atlassian.com/rest/2/vendors/{vendorId}/promotions/{promotionId}/codes' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
{
"_links": {
"self": {
"href": "<string>",
"type": "<string>",
"title": "<string>"
}
},
"codes": [
{
"_links": {
"self": {
"href": "<string>"
},
"usage": {
"href": "<string>"
}
},
"code": "<string>",
"created": "<string>",
"usage": {
"date": "<string>",
"order": 60,
"name": "<string>",
"email": "<string>",
"products": [
{
"key": "<string>",
"edition": "<string>"
}
]
}
}
]
}
Create a new single-use code for the specified promotion.
This resource requires authentication.
This is a deprecated API. Refer Create promotion code for the new API details
integer
Requiredstring
Required1
2
3
4
curl --request POST \
--url 'https://marketplace.atlassian.com/rest/2/vendors/{vendorId}/promotions/{promotionId}/codes' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
"_links": {
"self": {
"href": "<string>",
"type": "<string>",
"title": "<string>"
},
"usage": {
"href": "<string>",
"type": "<string>",
"title": "<string>"
}
},
"code": "<string>",
"created": "<string>",
"usage": {
"date": "<string>",
"order": 60,
"name": "<string>",
"email": "<string>",
"products": [
{
"key": "<string>",
"edition": "<string>",
"sen": "<string>"
}
]
}
}
Get a specific single-use code for the specified promotion.
This resource requires authentication.
This is a deprecated API. Refer Get promotion code for the new API details
integer
Requiredstring
Requiredstring
Required1
2
3
4
curl --request GET \
--url 'https://marketplace.atlassian.com/rest/2/vendors/{vendorId}/promotions/{promotionId}/codes/{promotionCode}' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
{
"_links": {
"self": {
"href": "<string>",
"type": "<string>",
"title": "<string>"
},
"usage": {
"href": "<string>",
"type": "<string>",
"title": "<string>"
}
},
"code": "<string>",
"created": "<string>",
"usage": {
"date": "<string>",
"order": 60,
"name": "<string>",
"email": "<string>",
"products": [
{
"key": "<string>",
"edition": "<string>",
"sen": "<string>"
}
]
}
}
Delete a specific single-use code for a specific promotion associated with a specific vendor.
Promotion codes can only be deleted prior to their use.
This resource requires authentication.
This is a deprecated API. Refer Delete promotion code for the new API details
integer
Requiredstring
Requiredstring
RequiredSuccessfully deleted
1
2
3
curl --request DELETE \
--url 'https://marketplace.atlassian.com/rest/2/vendors/{vendorId}/promotions/{promotionId}/codes/{promotionCode}' \
--user 'email@example.com:<api_token>'
Get a specific promotion status for the specified vendor.
This resource requires authentication.
This is a deprecated API. Refer Get promotion status for the new API details
integer
Requiredstring
Requiredstring
1
2
3
4
curl --request GET \
--url 'https://marketplace.atlassian.com/rest/2/vendors/{vendorId}/promotions/{promotionId}/status' \
--user 'email@example.com:<api_token>' \
--header 'Accept: application/json'
1
"ACTIVE"
Rate this page: