POST api/Payment

Request Information

URI Parameters

None.

Body Parameters

PaymentModel
NameDescriptionTypeAdditional information
organization_id

This is the organization ID given to you, for API use

string

Required

payment_company

string

None.

livemode

boolean

None.

token

string

None.

amount

decimal number

None.

user

User

None.

mentory

Mentory

None.

Request Formats

application/json, text/json

Sample:
{
  "organization_id": "sample string 1",
  "payment_company": "sample string 2",
  "livemode": true,
  "token": "sample string 4",
  "amount": "5.1",
  "user": {
    "name": "sample string 1",
    "phone": "sample string 2",
    "email": "sample string 3",
    "customer_id": "sample string 4"
  },
  "mentory": {
    "mentory_id": "sample string 1",
    "name": "sample string 2",
    "description": "sample string 3"
  }
}

application/xml, text/xml

Sample:
<PaymentModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PaymentModuleWeb.Models">
  <Amount>5.1</Amount>
  <Livemode>true</Livemode>
  <Mentory>
    <Description>sample string 3</Description>
    <MentoryId>sample string 1</MentoryId>
    <Name>sample string 2</Name>
  </Mentory>
  <OrganizationID>sample string 1</OrganizationID>
  <PaymentCompany>sample string 2</PaymentCompany>
  <Token>sample string 4</Token>
  <User>
    <CustomerId>sample string 4</CustomerId>
    <Email>sample string 3</Email>
    <Name>sample string 1</Name>
    <Phone>sample string 2</Phone>
  </User>
</PaymentModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.