POST api/Lean/CreateLeanPaymentIntent
Request Information
URI Parameters
None.
Body Parameters
CreatePaymentIntentInputName | Description | Type | Additional information |
---|---|---|---|
customerId | string |
None. |
|
amount | decimal number |
None. |
|
description | string |
None. |
|
currency | string |
None. |
|
paymentDestinationId | string |
None. |
|
IntentId | string |
None. |
|
BankCardTopupId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{ "customerId": "sample string 1", "amount": 2.1, "description": "sample string 3", "currency": "sample string 4", "paymentDestinationId": "sample string 5", "IntentId": "sample string 6", "BankCardTopupId": "5f30e66e-a467-488b-be79-5bab51caf33b" }
application/xml, text/xml
Sample:
<Lean.CreatePaymentIntentInput xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bankiom.DataLayer.Common"> <BankCardTopupId>5f30e66e-a467-488b-be79-5bab51caf33b</BankCardTopupId> <IntentId>sample string 6</IntentId> <amount>2.1</amount> <currency>sample string 4</currency> <customerId>sample string 1</customerId> <description>sample string 3</description> <paymentDestinationId>sample string 5</paymentDestinationId> </Lean.CreatePaymentIntentInput>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
PaymentIntentName | Description | Type | Additional information |
---|---|---|---|
payment_intent_id | string |
None. |
|
customer_id | string |
None. |
|
amount | decimal number |
None. |
|
currency | string |
None. |
|
payments | Collection of Object |
None. |
|
description | string |
None. |
|
payment_destination | PaymentDestination |
None. |
Response Formats
application/json, text/json
Sample:
{ "payment_intent_id": "sample string 1", "customer_id": "sample string 2", "amount": 3.1, "currency": "sample string 4", "payments": [ {}, {} ], "description": "sample string 5", "payment_destination": { "id": "sample string 1", "bank_identifier": "sample string 2", "branch_address": "sample string 3", "name": "sample string 4", "iban": "sample string 5", "display_name": "sample string 6", "account_number": "sample string 7", "swift_code": "sample string 8", "status": "sample string 9", "address": "sample string 10", "country": "sample string 11", "city": "sample string 12", "default": true, "customer_id": "sample string 14", "owner_type": "sample string 15", "routing_number": "sample string 16", "ifsc": "sample string 17", "transit_number": "sample string 18", "sort_code": "sample string 19" } }
application/xml, text/xml
Sample:
<PaymentIntent xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Bankiom.Integrations.Lean"> <amount>3.1</amount> <currency>sample string 4</currency> <customer_id>sample string 2</customer_id> <description>sample string 5</description> <payment_destination xmlns:d2p1="http://schemas.datacontract.org/2004/07/Bankiom.DataLayer.Common"> <d2p1:account_number>sample string 7</d2p1:account_number> <d2p1:address>sample string 10</d2p1:address> <d2p1:bank_identifier>sample string 2</d2p1:bank_identifier> <d2p1:branch_address>sample string 3</d2p1:branch_address> <d2p1:city>sample string 12</d2p1:city> <d2p1:country>sample string 11</d2p1:country> <d2p1:customer_id>sample string 14</d2p1:customer_id> <d2p1:default>true</d2p1:default> <d2p1:display_name>sample string 6</d2p1:display_name> <d2p1:iban>sample string 5</d2p1:iban> <d2p1:id>sample string 1</d2p1:id> <d2p1:ifsc>sample string 17</d2p1:ifsc> <d2p1:name>sample string 4</d2p1:name> <d2p1:owner_type>sample string 15</d2p1:owner_type> <d2p1:routing_number>sample string 16</d2p1:routing_number> <d2p1:sort_code>sample string 19</d2p1:sort_code> <d2p1:status>sample string 9</d2p1:status> <d2p1:swift_code>sample string 8</d2p1:swift_code> <d2p1:transit_number>sample string 18</d2p1:transit_number> </payment_destination> <payment_intent_id>sample string 1</payment_intent_id> <payments xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:anyType /> <d2p1:anyType /> </payments> </PaymentIntent>