Skip to content

Commit 285ca85

Browse files
author
Lars Steiger
committed
Trying to get blockquotes right.
1 parent eae0570 commit 285ca85

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

sections/subscriptions.mdown

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ Returns a single subscription identified by its reference. You can get that refe
88

99
`GET /company/{company}/subscription/{reference}`
1010

11-
```<subscription>
11+
``` xml
12+
<subscription>
1213
<status>active | inactive</status>
1314
<statusChanged>2010-08-15T00:00:00.000Z</statusChanged>
1415
<statusReason>canceled-non-payment | completed | canceled</statusReason>
@@ -32,7 +33,8 @@ Returns a single subscription identified by its reference. You can get that refe
3233
<quantity>0</quantity>
3334
<nextPeriodDate>2010-08-15Z</nextPeriodDate>
3435
<end>2010-08-15Z</end>
35-
</subscription>```
36+
</subscription>
37+
```
3638

3739
Example: `curl -i -X GET -u {username}:{password} https://api.fastspring.com/company/{company}/subscription/{reference}`
3840

@@ -44,15 +46,17 @@ Updates an existing subscription with the given data.
4446

4547
`PUT /company/{company}/subscription/{reference}`
4648

47-
```<subscription>
49+
``` xml
50+
<subscription>
4851
<productPath>(optional)</productPath>
4952
<quantity>(optional)</quantity>
5053
<tags>(optional)</tags>
5154
<no-end-date>(optional)</no-end-date>
5255
<coupon>(optional)</coupon>
5356
<discount-duration>+[value]|-[value]|[absolute value] (optional)</discount-duration>
5457
<proration>true|false (optional)</proration>
55-
</subscription>```
58+
</subscription>
59+
```
5660

5761
Returns HTTP status code 200 on success.
5862

@@ -66,7 +70,8 @@ The delete action causes the cancellation of a subscription at next period.
6670

6771
`DELETE /company/{company}/subscription/{reference}`
6872

69-
```<subscription>
73+
``` xml
74+
<subscription>
7075
<status>active | inactive</status>
7176
<statusChanged>2010-08-15T00:00:00.000Z</statusChanged>
7277
<statusReason>canceled-non-payment | completed | canceled</statusReason>
@@ -90,7 +95,8 @@ The delete action causes the cancellation of a subscription at next period.
9095
<quantity>0</quantity>
9196
<nextPeriodDate>2010-08-15Z</nextPeriodDate>
9297
<end>2010-08-15Z</end>
93-
</subscription>```
98+
</subscription>
99+
```
94100

95101
Example: `curl -i -X DELETE -H 'Content-Type: application/xml' -u {username}:{password} https://api.fastspring.com/company/{company}/subscription/{reference}`
96102

0 commit comments

Comments
 (0)