POST
api/v1/initiate-payment
Request Information
Body Parameters
InitiatePaymentRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId | string |
None. |
|
| ClientId | integer |
None. |
|
| SellerId | integer |
None. |
|
| PaymentMode | integer |
None. |
|
| Amount | decimal number |
None. |
|
| Currency | string |
None. |
|
| Name | string |
None. |
|
| string |
None. |
||
| Phone | string |
None. |
Request Formats
application/json, text/json
{
"UserId": "sample string 1",
"ClientId": 2,
"SellerId": 3,
"PaymentMode": 4,
"Amount": 5.0,
"Currency": "sample string 6",
"Name": "sample string 7",
"Email": "sample string 8",
"Phone": "sample string 9"
}
text/html
{"UserId":"sample string 1","ClientId":2,"SellerId":3,"PaymentMode":4,"Amount":5.0,"Currency":"sample string 6","Name":"sample string 7","Email":"sample string 8","Phone":"sample string 9"}
application/xml, text/xml
<InitiatePaymentRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FDCMSAdminAPI.Models.Account"> <Amount>5</Amount> <ClientId>2</ClientId> <Currency>sample string 6</Currency> <Email>sample string 8</Email> <Name>sample string 7</Name> <PaymentMode>4</PaymentMode> <Phone>sample string 9</Phone> <SellerId>3</SellerId> <UserId>sample string 1</UserId> </InitiatePaymentRequest>
application/x-www-form-urlencoded
Sample not available.
Response Information
Description:
Return type: InitiatePaymentResponse
Response Formats
application/json, text/json
{
"IsSuccess": true,
"Message": "sample string 2",
"CustomerId": "sample string 3",
"ClientSecret": "sample string 4",
"PaymentType": "sample string 5"
}
text/html
{"IsSuccess":true,"Message":"sample string 2","CustomerId":"sample string 3","ClientSecret":"sample string 4","PaymentType":"sample string 5"}
application/xml, text/xml
<InitiatePaymentResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FDCMSAdminAPI.Models.Account"> <ClientSecret>sample string 4</ClientSecret> <CustomerId>sample string 3</CustomerId> <IsSuccess>true</IsSuccess> <Message>sample string 2</Message> <PaymentType>sample string 5</PaymentType> </InitiatePaymentResponse>
