BokaMera.API.Host

<back to all web services

PaysonCheckoutv2GetCheckout

The following routes are available for this service:
GET/payment/payson/v2/checkout/{Id}Get the checkout for BookingGet payson checkout
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports BokaMera.API.ServiceModel.Dtos
Imports PaysonIntegrationCO2.Models.Enums

Namespace Global

    Namespace BokaMera.API.ServiceModel.Dtos

        Public Partial Class PaysonCheckoutv2GetCheckout
            Implements ICompany
            '''<Summary>
            '''The company id, if empty will use the company id for the user you are logged in with.
            '''</Summary>
            <ApiMember(Description:="The company id, if empty will use the company id for the user you are logged in with.")>
            Public Overridable Property CompanyId As Nullable(Of Guid)

            '''<Summary>
            '''The checkout id.
            '''</Summary>
            <ApiMember(Description:="The checkout id.", IsRequired:=true, ParameterType:="path")>
            Public Overridable Property Id As Guid
        End Class

        Public Partial Class PaysonCheckoutV2Response
            '''<Summary>
            '''The checkout id
            '''</Summary>
            <ApiMember(Description:="The checkout id")>
            Public Overridable Property Id As Guid

            '''<Summary>
            '''The code snippet to for checkout module
            '''</Summary>
            <ApiMember(Description:="The code snippet to for checkout module")>
            Public Overridable Property Snippet As String

            '''<Summary>
            '''The checkout status
            '''</Summary>
            <ApiMember(Description:="The checkout status")>
            Public Overridable Property Status As Payson2CheckoutStatus
        End Class
    End Namespace

    Namespace PaysonIntegrationCO2.Models.Enums

        Public Enum Payson2CheckoutStatus
            None
            Created
            FormsFilled
            ReadyToPay
            ProcessingPayment
            ReadyToShip
            Shipped
            PaidToAccount
            Canceled
            Credited
            Expired
            Denied
        End Enum
    End Namespace
End Namespace

VB.NET PaysonCheckoutv2GetCheckout 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.

GET /payment/payson/v2/checkout/{Id} HTTP/1.1 
Host: api.bokamera.se 
Accept: text/jsonl
HTTP/1.1 200 OK
Content-Type: text/jsonl
Content-Length: length

{"Snippet":"String","Status":"None"}