POST api/BootstrapItalia/Purchase/Pay

Request Information

URI Parameters

None.

Body Parameters

PaymentRequestModel
NameDescriptionTypeAdditional information
GatewayId

integer

None.

PhoneNumber

string

None.

SatispayFlow

string

None.

PaymentDataRequired

boolean

None.

PayPalPayLater

boolean

None.

CreditCardTokenizationEnabled

boolean

None.

CreditCardToken

string

None.

Products

Collection of PaymentRequestProductModel

None.

InvoicingEnabled

boolean

None.

PaymentNoticeEnabled

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "GatewayId": 1,
  "PhoneNumber": "sample string 2",
  "SatispayFlow": "sample string 3",
  "PaymentDataRequired": true,
  "PayPalPayLater": true,
  "CreditCardTokenizationEnabled": true,
  "CreditCardToken": "sample string 5",
  "Products": [
    {
      "Id": 1,
      "TypeId": 2,
      "TotalAmount": 1.0
    },
    {
      "Id": 1,
      "TypeId": 2,
      "TotalAmount": 1.0
    }
  ],
  "InvoicingEnabled": true,
  "PaymentNoticeEnabled": true
}

application/xml, text/xml

Sample:
<PaymentRequestModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Pass.WebApi.Areas.Models">
  <CreditCardToken>sample string 5</CreditCardToken>
  <CreditCardTokenizationEnabled>true</CreditCardTokenizationEnabled>
  <GatewayId>1</GatewayId>
  <InvoicingEnabled>true</InvoicingEnabled>
  <PayPalPayLater>true</PayPalPayLater>
  <PaymentDataRequired>true</PaymentDataRequired>
  <PaymentNoticeEnabled>true</PaymentNoticeEnabled>
  <PhoneNumber>sample string 2</PhoneNumber>
  <Products>
    <PaymentRequestProductModel>
      <Id>1</Id>
      <TotalAmount>1</TotalAmount>
      <TypeId>2</TypeId>
    </PaymentRequestProductModel>
    <PaymentRequestProductModel>
      <Id>1</Id>
      <TotalAmount>1</TotalAmount>
      <TypeId>2</TypeId>
    </PaymentRequestProductModel>
  </Products>
  <SatispayFlow>sample string 3</SatispayFlow>
</PaymentRequestModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.