Requires any of the roles: | bookingsupplier-administrator-write, superadmin |
PUT | /payment/payson/v2/checkout/{Id}/sendpaymentrequest | If checkout has is awaiting admin to send payment request, this method is sending the payment reqeust (example when you want to send the payment request manually). |
---|
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 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
<ValidateRequest(Validator:="IsAuthenticated")>
Public Partial Class SendCheckoutPaymentRequest
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. The checkout must have status ReadyToShip - 5
'''</Summary>
<ApiMember(Description:="The checkout id. The checkout must have status ReadyToShip - 5", IsRequired:=true, ParameterType:="path")>
Public Overridable Property Id As Guid
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 SendCheckoutPaymentRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .other suffix or ?format=other
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
PUT /payment/payson/v2/checkout/{Id}/sendpaymentrequest HTTP/1.1
Host: api.bokamera.se
Accept: text/jsonl
Content-Type: text/jsonl
Content-Length: length
{"CompanyId":"00000000-0000-0000-0000-000000000000"}
HTTP/1.1 200 OK Content-Type: text/jsonl Content-Length: length {"Snippet":"String","Status":"None"}