POST api/PacServices

Agregar servicio

Request Information

URI Parameters

None.

Body Parameters

PacServicesModelApi
NameDescriptionTypeAdditional information
GrantorTaxId

RFC del grantor

string

Required

Matching regular expression pattern: ^[A-Z&Ñ]{3,4}[0-9]{2}(0[1-9]|1[012])(0[1-9]|[12][0-9]|3[01])[A-Z0-9]{2}[0-9A]$

Max length: 13

Min length: 12

serviceId

Identificador unico del servicio (int64)

integer

Required

companyId

ri de la sociedad

string

None.

supplierId

Numero proveedor

string

None.

supplierTypeId

Tipo proveedor

integer

None.

isMigrated

Migrada

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "GrantorTaxId": "sample string 1",
  "serviceId": 2,
  "companyId": "sample string 3",
  "supplierId": "sample string 4",
  "supplierTypeId": 5,
  "isMigrated": true
}

application/xml, text/xml

Sample:
<PacServicesModelApi xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <GrantorTaxId>sample string 1</GrantorTaxId>
  <serviceId>2</serviceId>
  <companyId>sample string 3</companyId>
  <supplierId>sample string 4</supplierId>
  <supplierTypeId>5</supplierTypeId>
  <isMigrated>true</isMigrated>
</PacServicesModelApi>

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

Response Information

Resource Description

ResponseModelApiOfObject
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

Object

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": {}
}

application/xml, text/xml

Sample:
<ResponseModelApiOfObject 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 />
</ResponseModelApiOfObject>