POST api/Token

Permet de s'authentifier

Request Information

URI Parameters

None.

Body Parameters

TokenRequest
NameDescriptionTypeAdditional information
Username

string

None.

Password

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Username": "sample string 1",
  "Password": "sample string 2"
}

application/xml, text/xml

Sample:
<TokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Facturation.Api.Models">
  <Password>sample string 2</Password>
  <Username>sample string 1</Username>
</TokenRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

TokenResponse
NameDescriptionTypeAdditional information
access_token

string

None.

token_type

string

None.

expires_in

integer

None.

userName

string

None.

issued

date

None.

expires

date

None.

error

string

None.

error_description

string

None.

Response Formats

application/json, text/json

Sample:
{
  "access_token": "sample string 1",
  "token_type": "sample string 2",
  "expires_in": 3,
  "userName": "sample string 4",
  "issued": "2025-12-10T02:08:15.066269+01:00",
  "expires": "2025-12-10T02:08:15.066269+01:00",
  "error": "sample string 7",
  "error_description": "sample string 8"
}

application/xml, text/xml

Sample:
<TokenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Facturation.Api.Models">
  <access_token>sample string 1</access_token>
  <error>sample string 7</error>
  <error_description>sample string 8</error_description>
  <expires>2025-12-10T02:08:15.066269+01:00</expires>
  <expires_in>3</expires_in>
  <issued>2025-12-10T02:08:15.066269+01:00</issued>
  <token_type>sample string 2</token_type>
  <userName>sample string 4</userName>
</TokenResponse>