@@ -8,7 +8,8 @@ Returns a single subscription identified by its reference. You can get that refe
8
8
9
9
` GET /company/{company}/subscription/{reference} `
10
10
11
- ``` <subscription>
11
+ ``` xml
12
+ <subscription >
12
13
<status >active | inactive</status >
13
14
<statusChanged >2010-08-15T00:00:00.000Z</statusChanged >
14
15
<statusReason >canceled-non-payment | completed | canceled</statusReason >
@@ -32,7 +33,8 @@ Returns a single subscription identified by its reference. You can get that refe
32
33
<quantity >0</quantity >
33
34
<nextPeriodDate >2010-08-15Z</nextPeriodDate >
34
35
<end >2010-08-15Z</end >
35
- </subscription>```
36
+ </subscription >
37
+ ```
36
38
37
39
Example: ` curl -i -X GET -u {username}:{password} https://api.fastspring.com/company/{company}/subscription/{reference} `
38
40
@@ -44,15 +46,17 @@ Updates an existing subscription with the given data.
44
46
45
47
` PUT /company/{company}/subscription/{reference} `
46
48
47
- ```<subscription>
49
+ ``` xml
50
+ <subscription >
48
51
<productPath >(optional)</productPath >
49
52
<quantity >(optional)</quantity >
50
53
<tags >(optional)</tags >
51
54
<no-end-date >(optional)</no-end-date >
52
55
<coupon >(optional)</coupon >
53
56
<discount-duration >+[value]|-[value]|[absolute value] (optional)</discount-duration >
54
57
<proration >true|false (optional)</proration >
55
- </subscription>```
58
+ </subscription >
59
+ ```
56
60
57
61
Returns HTTP status code 200 on success.
58
62
@@ -66,7 +70,8 @@ The delete action causes the cancellation of a subscription at next period.
66
70
67
71
` DELETE /company/{company}/subscription/{reference} `
68
72
69
- ```<subscription>
73
+ ``` xml
74
+ <subscription >
70
75
<status >active | inactive</status >
71
76
<statusChanged >2010-08-15T00:00:00.000Z</statusChanged >
72
77
<statusReason >canceled-non-payment | completed | canceled</statusReason >
@@ -90,7 +95,8 @@ The delete action causes the cancellation of a subscription at next period.
90
95
<quantity >0</quantity >
91
96
<nextPeriodDate >2010-08-15Z</nextPeriodDate >
92
97
<end >2010-08-15Z</end >
93
- </subscription>```
98
+ </subscription >
99
+ ```
94
100
95
101
Example: ` curl -i -X DELETE -H 'Content-Type: application/xml' -u {username}:{password} https://api.fastspring.com/company/{company}/subscription/{reference} `
96
102
0 commit comments