POST api/order/payment_initaiate
Request Information
URI Parameters
None.
Body Parameters
payment_intiate_request| Name | Description | Type | Additional information |
|---|---|---|---|
| order_id | string |
None. |
|
| token | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"order_id": "sample string 1",
"token": "sample string 2"
}
application/xml, text/xml
Sample:
<payment_intiate_request xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PromptTech.CRM.CustomerApp.Models"> <order_id>sample string 1</order_id> <token>sample string 2</token> </payment_intiate_request>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
payment_intiate_response| Name | Description | Type | Additional information |
|---|---|---|---|
| order_id | string |
None. |
|
| stripe_customer_id | string |
None. |
|
| client_secret | string |
None. |
|
| ephemeral_key | string |
None. |
|
| success | boolean |
None. |
|
| message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"order_id": "sample string 1",
"stripe_customer_id": "sample string 2",
"client_secret": "sample string 3",
"ephemeral_key": "sample string 4",
"success": true,
"message": "sample string 6"
}
application/xml, text/xml
Sample:
<payment_intiate_response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PromptTech.CRM.CustomerApp.Models"> <client_secret>sample string 3</client_secret> <ephemeral_key>sample string 4</ephemeral_key> <message>sample string 6</message> <order_id>sample string 1</order_id> <stripe_customer_id>sample string 2</stripe_customer_id> <success>true</success> </payment_intiate_response>