POST api/Grantor/PreferenceEmissionContract

Firmar contratos.

Request Information

URI Parameters

None.

Body Parameters

Datos

LegalContractPostApiModel
NameDescriptionTypeAdditional information
GrantorTaxId

RFC de la empresa

string

Required

Pac

Identificador del PAC

Pac

Required

PasswordCSD

Contraseña del csd

string

None.

FileKey

Key

FileApiModel

None.

FileCer

Cer

FileApiModel

None.

Request Formats

application/json, text/json

Sample:
{
  "GrantorTaxId": "sample string 1",
  "Pac": 0,
  "PasswordCSD": "sample string 2",
  "FileKey": {
    "Filename": "sample string 1",
    "ContentType": "sample string 2",
    "Content": "sample string 3",
    "Name": "sample string 4"
  },
  "FileCer": {
    "Filename": "sample string 1",
    "ContentType": "sample string 2",
    "Content": "sample string 3",
    "Name": "sample string 4"
  }
}

application/xml, text/xml

Sample:
<LegalContractPostApiModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <GrantorTaxId>sample string 1</GrantorTaxId>
  <Pac>Tecsoupac</Pac>
  <PasswordCSD>sample string 2</PasswordCSD>
  <FileKey>
    <Filename>sample string 1</Filename>
    <ContentType>sample string 2</ContentType>
    <Content>sample string 3</Content>
    <Name>sample string 4</Name>
  </FileKey>
  <FileCer>
    <Filename>sample string 1</Filename>
    <ContentType>sample string 2</ContentType>
    <Content>sample string 3</Content>
    <Name>sample string 4</Name>
  </FileCer>
</LegalContractPostApiModel>

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

Response Information

Resource Description

ResponseModelApiOfBoolean
NameDescriptionTypeAdditional information
success

Indica si la solicitud se procesó de manera satisfactoria

boolean

None.

message

Mensaje de la solicitud

string

None.

messageDetail

Lista de mensajes

Collection of string

None.

failureCode

Código de error en caso de existir

string

None.

data

Layout de respuesta de la solicitud

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "message": "sample string 2",
  "messageDetail": [
    "sample string 1",
    "sample string 2"
  ],
  "failureCode": "sample string 3",
  "data": true
}

application/xml, text/xml

Sample:
<ResponseModelApiOfBoolean xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <success>true</success>
  <message>sample string 2</message>
  <messageDetail>
    <string>sample string 1</string>
    <string>sample string 2</string>
  </messageDetail>
  <failureCode>sample string 3</failureCode>
  <data>true</data>
</ResponseModelApiOfBoolean>