digitaluapi

<back to all web services

StripeRequestCheckoutSession

The following routes are available for this service:
All Verbs/stripe-checkout-session
namespace digitaluapi.ServiceModel

open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations

    [<AllowNullLiteral>]
    type StripeCheckoutSessionResponse() = 
        member val Url:String = null with get,set

    [<AllowNullLiteral>]
    type StripeRequestCheckoutSession() = 
        member val CampaignActionsId:Int64 = new Int64() with get,set
        member val CampaignAmount:Decimal = new Decimal() with get,set
        member val Quantity:Int32 = new Int32() with get,set
        member val Mode:String = null with get,set
        member val SuccessUrl:String = null with get,set
        member val CancelUrl:String = null with get,set
        member val Description:String = null with get,set
        member val Email:String = null with get,set
        member val CommsGuid:Guid = new Guid() with get,set
        member val CampaignActionsRequestsId:Int64 = new Int64() with get,set

F# StripeRequestCheckoutSession DTOs

To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other

HTTP + OTHER

The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.

POST /stripe-checkout-session HTTP/1.1 
Host: duengageapi.uat.scadsoftware.com 
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length

{"CampaignActionsId":0,"CampaignAmount":0,"Quantity":0,"Mode":"String","SuccessUrl":"String","CancelUrl":"String","Description":"String","Email":"String","CommsGuid":"00000000000000000000000000000000","CampaignActionsRequestsId":0}
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Url":"String"}