POST api/Customers

Request Information

URI Parameters

None.

Body Parameters

Card
NameDescriptionTypeAdditional information
token_id

string

None.

name

string

None.

number

string

None.

exp_month

string

None.

reference

string

None.

exp_year

string

None.

cvc

string

None.

last4

string

None.

bin

string

None.

brand

string

None.

address

Address

None.

id

string

None.

type

string

None.

deleted

boolean

None.

parent_id

string

None.

message

string

None.

message_to_purchaser

string

None.

code

string

None.

param

string

None.

Request Formats

application/json, text/json

Sample:
{
  "token_id": "sample string 1",
  "name": "sample string 2",
  "number": "sample string 3",
  "exp_month": "sample string 4",
  "reference": "sample string 5",
  "exp_year": "sample string 6",
  "cvc": "sample string 7",
  "last4": "sample string 8",
  "bin": "sample string 9",
  "brand": "sample string 10",
  "address": {
    "street1": "sample string 1",
    "street2": "sample string 2",
    "street3": "sample string 3",
    "city": "sample string 4",
    "state": "sample string 5",
    "country": "sample string 6",
    "zip": "sample string 7",
    "residential": true,
    "parent_id": "sample string 9",
    "type": "sample string 10",
    "message": "sample string 11",
    "message_to_purchaser": "sample string 12",
    "code": "sample string 13",
    "param": "sample string 14"
  },
  "id": "sample string 11",
  "type": "sample string 12",
  "deleted": true,
  "parent_id": "sample string 14",
  "message": "sample string 15",
  "message_to_purchaser": "sample string 16",
  "code": "sample string 17",
  "param": "sample string 18"
}

application/xml, text/xml

Sample:
<Card xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/conekta">
  <code>sample string 17</code>
  <message>sample string 15</message>
  <message_to_purchaser>sample string 16</message_to_purchaser>
  <param>sample string 18</param>
  <type i:nil="true" />
  <deleted>true</deleted>
  <id>sample string 11</id>
  <parent_id>sample string 14</parent_id>
  <type>sample string 12</type>
  <address>
    <code>sample string 13</code>
    <message>sample string 11</message>
    <message_to_purchaser>sample string 12</message_to_purchaser>
    <param>sample string 14</param>
    <type>sample string 10</type>
    <city>sample string 4</city>
    <country>sample string 6</country>
    <parent_id>sample string 9</parent_id>
    <residential>true</residential>
    <state>sample string 5</state>
    <street1>sample string 1</street1>
    <street2>sample string 2</street2>
    <street3>sample string 3</street3>
    <zip>sample string 7</zip>
  </address>
  <bin>sample string 9</bin>
  <brand>sample string 10</brand>
  <cvc>sample string 7</cvc>
  <exp_month>sample string 4</exp_month>
  <exp_year>sample string 6</exp_year>
  <last4>sample string 8</last4>
  <name>sample string 2</name>
  <number>sample string 3</number>
  <reference>sample string 5</reference>
  <token_id>sample string 1</token_id>
</Card>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'Card'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json

Sample:
true

application/xml, text/xml

Sample:
<boolean xmlns="http://schemas.microsoft.com/2003/10/Serialization/">true</boolean>