POST api/loja/customer/created

Request Information

URI Parameters

None.

Body Parameters

CustomerWoocommerce
NameDescriptionTypeAdditional information
id

integer

None.

date_created

date

None.

date_created_gmt

date

None.

date_modified

date

None.

date_modified_gmt

date

None.

email

string

None.

first_name

string

None.

last_name

string

None.

role

string

None.

username

string

None.

billing

Billing

None.

shipping

Shipping

None.

is_paying_customer

boolean

None.

avatar_url

string

None.

meta_data

Collection of MetaData

None.

_links

Links

None.

Request Formats

application/json, text/json

Sample:
{
  "id": 1,
  "date_created": "2024-11-16T18:55:21.7126772-03:00",
  "date_created_gmt": "2024-11-16T18:55:21.7126772-03:00",
  "date_modified": "2024-11-16T18:55:21.7126772-03:00",
  "date_modified_gmt": "2024-11-16T18:55:21.7126772-03:00",
  "email": "sample string 6",
  "first_name": "sample string 7",
  "last_name": "sample string 8",
  "role": "sample string 9",
  "username": "sample string 10",
  "billing": {
    "first_name": "sample string 1",
    "last_name": "sample string 2",
    "company": "sample string 3",
    "address_1": "sample string 4",
    "address_2": "sample string 5",
    "city": "sample string 6",
    "postcode": "sample string 7",
    "country": "sample string 8",
    "state": "sample string 9",
    "email": "sample string 10",
    "phone": "sample string 11",
    "number": "sample string 12",
    "neighborhood": "sample string 13",
    "persontype": "sample string 14",
    "cpf": "sample string 15",
    "rg": "sample string 16",
    "cnpj": "sample string 17",
    "ie": "sample string 18",
    "birthdate": "sample string 19",
    "sex": "sample string 20",
    "cellphone": "sample string 21"
  },
  "shipping": {
    "first_name": "sample string 1",
    "last_name": "sample string 2",
    "company": "sample string 3",
    "address_1": "sample string 4",
    "address_2": "sample string 5",
    "city": "sample string 6",
    "postcode": "sample string 7",
    "country": "sample string 8",
    "state": "sample string 9",
    "number": "sample string 10",
    "neighborhood": "sample string 11"
  },
  "is_paying_customer": true,
  "avatar_url": "sample string 12",
  "meta_data": [
    {
      "id": 1,
      "key": "sample string 2",
      "value": {}
    },
    {
      "id": 1,
      "key": "sample string 2",
      "value": {}
    }
  ],
  "_links": {
    "self": [
      {
        "href": "sample string 1"
      },
      {
        "href": "sample string 1"
      }
    ],
    "collection": [
      {
        "href": "sample string 1"
      },
      {
        "href": "sample string 1"
      }
    ]
  }
}

text/html

Sample:
{"id":1,"date_created":"2024-11-16T18:55:21.7126772-03:00","date_created_gmt":"2024-11-16T18:55:21.7126772-03:00","date_modified":"2024-11-16T18:55:21.7126772-03:00","date_modified_gmt":"2024-11-16T18:55:21.7126772-03:00","email":"sample string 6","first_name":"sample string 7","last_name":"sample string 8","role":"sample string 9","username":"sample string 10","billing":{"first_name":"sample string 1","last_name":"sample string 2","company":"sample string 3","address_1":"sample string 4","address_2":"sample string 5","city":"sample string 6","postcode":"sample string 7","country":"sample string 8","state":"sample string 9","email":"sample string 10","phone":"sample string 11","number":"sample string 12","neighborhood":"sample string 13","persontype":"sample string 14","cpf":"sample string 15","rg":"sample string 16","cnpj":"sample string 17","ie":"sample string 18","birthdate":"sample string 19","sex":"sample string 20","cellphone":"sample string 21"},"shipping":{"first_name":"sample string 1","last_name":"sample string 2","company":"sample string 3","address_1":"sample string 4","address_2":"sample string 5","city":"sample string 6","postcode":"sample string 7","country":"sample string 8","state":"sample string 9","number":"sample string 10","neighborhood":"sample string 11"},"is_paying_customer":true,"avatar_url":"sample string 12","meta_data":[{"id":1,"key":"sample string 2","value":{}},{"id":1,"key":"sample string 2","value":{}}],"_links":{"self":[{"href":"sample string 1"},{"href":"sample string 1"}],"collection":[{"href":"sample string 1"},{"href":"sample string 1"}]}}

application/xml, text/xml

Sample:
<CustomerWoocommerce xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FoneClube.Business.Commons.Entities.woocommerce">
  <_links>
    <collection>
      <Collection>
        <href>sample string 1</href>
      </Collection>
      <Collection>
        <href>sample string 1</href>
      </Collection>
    </collection>
    <self>
      <Self>
        <href>sample string 1</href>
      </Self>
      <Self>
        <href>sample string 1</href>
      </Self>
    </self>
  </_links>
  <avatar_url>sample string 12</avatar_url>
  <billing>
    <address_1>sample string 4</address_1>
    <address_2>sample string 5</address_2>
    <birthdate>sample string 19</birthdate>
    <cellphone>sample string 21</cellphone>
    <city>sample string 6</city>
    <cnpj>sample string 17</cnpj>
    <company>sample string 3</company>
    <country>sample string 8</country>
    <cpf>sample string 15</cpf>
    <email>sample string 10</email>
    <first_name>sample string 1</first_name>
    <ie>sample string 18</ie>
    <last_name>sample string 2</last_name>
    <neighborhood>sample string 13</neighborhood>
    <number>sample string 12</number>
    <persontype>sample string 14</persontype>
    <phone>sample string 11</phone>
    <postcode>sample string 7</postcode>
    <rg>sample string 16</rg>
    <sex>sample string 20</sex>
    <state>sample string 9</state>
  </billing>
  <date_created>2024-11-16T18:55:21.7126772-03:00</date_created>
  <date_created_gmt>2024-11-16T18:55:21.7126772-03:00</date_created_gmt>
  <date_modified>2024-11-16T18:55:21.7126772-03:00</date_modified>
  <date_modified_gmt>2024-11-16T18:55:21.7126772-03:00</date_modified_gmt>
  <email>sample string 6</email>
  <first_name>sample string 7</first_name>
  <id>1</id>
  <is_paying_customer>true</is_paying_customer>
  <last_name>sample string 8</last_name>
  <meta_data>
    <MetaData>
      <id>1</id>
      <key>sample string 2</key>
      <value />
    </MetaData>
    <MetaData>
      <id>1</id>
      <key>sample string 2</key>
      <value />
    </MetaData>
  </meta_data>
  <role>sample string 9</role>
  <shipping>
    <address_1>sample string 4</address_1>
    <address_2>sample string 5</address_2>
    <city>sample string 6</city>
    <company>sample string 3</company>
    <country>sample string 8</country>
    <first_name>sample string 1</first_name>
    <last_name>sample string 2</last_name>
    <neighborhood>sample string 11</neighborhood>
    <number>sample string 10</number>
    <postcode>sample string 7</postcode>
    <state>sample string 9</state>
  </shipping>
  <username>sample string 10</username>
</CustomerWoocommerce>

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 'CustomerWoocommerce'.

Response Information

Resource Description

boolean

Response Formats

application/json, text/json, text/html

Sample:
true

application/xml, text/xml

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