POST v1/OrderDetails/{id}/{orderId}/MakePayment/CreateOrder

Create order in PayPal for Advanced and standard checkout

Request Information

URI Parameters

NameDescriptionTypeAdditional information
id

integer

Required

orderId

integer

Required

Body Parameters

PaymentWithoutloginCreateOrderInputs
NameDescriptionTypeAdditional information
SaveForFutureUse

boolean

Required

SaveToTypes

string

Required

IsStandardCheckout

boolean

None.

totalPriceToPay

string

Required

currencyTypeId

integer

Required

PayPalcustomerid

string

Required

Request Formats

application/json, text/json

Sample:
{
  "SaveForFutureUse": true,
  "SaveToTypes": "sample string 2",
  "IsStandardCheckout": true,
  "totalPriceToPay": "sample string 3",
  "currencyTypeId": 4,
  "PayPalcustomerid": "sample string 5"
}

text/html

Sample:
{"SaveForFutureUse":true,"SaveToTypes":"sample string 2","IsStandardCheckout":true,"totalPriceToPay":"sample string 3","currencyTypeId":4,"PayPalcustomerid":"sample string 5"}

application/xml, text/xml

Sample:
<v1_MakePaymentWithoutLogin_MakePaymentWithoutLoginEndpointController.PaymentWithoutloginCreateOrderInputs xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_MakePaymentWithoutLogin_MakePaymentWithoutLoginEndpoint">
  <IsStandardCheckout>true</IsStandardCheckout>
  <PayPalcustomerid>sample string 5</PayPalcustomerid>
  <SaveForFutureUse>true</SaveForFutureUse>
  <SaveToTypes>sample string 2</SaveToTypes>
  <currencyTypeId>4</currencyTypeId>
  <totalPriceToPay>sample string 3</totalPriceToPay>
</v1_MakePaymentWithoutLogin_MakePaymentWithoutLoginEndpointController.PaymentWithoutloginCreateOrderInputs>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PaymentWithoutloginCreateOrderInputs'.

Response Information

Resource Description

PaymentWithoutloginOrderOutput
NameDescriptionTypeAdditional information
outputorderData

PayPal order details

string

None.

Response Formats

application/json, text/json

Sample:
{
  "outputorderData": "sample string 1"
}

text/html

Sample:
{"outputorderData":"sample string 1"}

application/xml, text/xml

Sample:
<v1_MakePaymentWithoutLogin_MakePaymentWithoutLoginEndpointController.PaymentWithoutloginOrderOutput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Aptify.Services.Generated.v1_MakePaymentWithoutLogin_MakePaymentWithoutLoginEndpoint">
  <outputorderData>sample string 1</outputorderData>
</v1_MakePaymentWithoutLogin_MakePaymentWithoutLoginEndpointController.PaymentWithoutloginOrderOutput>