POST api/Card
Create a card, you can create a card for an existing user or for a non existent user
Request Information
URI Parameters
None.
Body Parameters
Read additional information for mandatory values for each company
CardModel| Name | Description | Type | Additional information |
|---|---|---|---|
| organization_id |
This is the organization ID given to you, for API use |
string |
Required |
| payment_company |
This is the company you want to create a card for, example 'conekta' |
string |
Required |
| livemode |
If the request is for testing (false) or for Production (true) |
boolean |
None. |
| client_id | string |
None. |
|
| user_info | UserInfo |
None. |
|
| card_info | CardInfo |
None. |
Request Formats
application/json, text/json
Sample:
{
"organization_id": "sample string 1",
"payment_company": "sample string 2",
"livemode": true,
"client_id": "sample string 4",
"user_info": {
"name": "sample string 1",
"email": "sample string 2",
"phone": "sample string 3",
"user_id": "sample string 4"
},
"card_info": {
"holder_name": "sample string 1",
"token": "sample string 2"
}
}
application/xml, text/xml
Sample:
<CardModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PaymentModuleWeb.Models">
<CardInfo>
<HolderName>sample string 1</HolderName>
<Token>sample string 2</Token>
</CardInfo>
<ClientId>sample string 4</ClientId>
<Livemode>true</Livemode>
<OrganizationID>sample string 1</OrganizationID>
<PaymentCompany>sample string 2</PaymentCompany>
<UserInfo>
<Email>sample string 2</Email>
<Name>sample string 1</Name>
<Phone>sample string 3</Phone>
<UserID>sample string 4</UserID>
</UserInfo>
</CardModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |