POST api/checkoutsession
Request Information
URI Parameters
None.
Body Parameters
StripeSessionModelName | Description | Type | Additional information |
---|---|---|---|
price_id | string |
None. |
|
cancel_url | string |
None. |
|
success_url | string |
None. |
|
mode | string |
None. |
|
coupon_id | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "price_id": "sample string 1", "cancel_url": "sample string 2", "success_url": "sample string 3", "mode": "sample string 4", "coupon_id": "sample string 5" }
text/html
Sample:
{"price_id":"sample string 1","cancel_url":"sample string 2","success_url":"sample string 3","mode":"sample string 4","coupon_id":"sample string 5"}
application/xml, text/xml
Sample:
<StripeSessionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NPlay.Common.Models.Services"> <CancelUrl>sample string 2</CancelUrl> <CouponCodeId>sample string 5</CouponCodeId> <Mode>sample string 4</Mode> <PriceId>sample string 1</PriceId> <SuccessUrl>sample string 3</SuccessUrl> </StripeSessionModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, text/html, application/xml, text/xml
Sample:
Sample not available.