PUT api/Customer/{GrantorTaxId}/FiscalData

Actualizar datos fiscales del cliente

Request Information

URI Parameters

NameDescriptionTypeAdditional information
GrantorTaxId

string

Required

Body Parameters

Datos

CustomerFiscalDataModelApi
NameDescriptionTypeAdditional information
taxId

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

taxRegimeCode

Código del régimen fiscal

string

Required

BusinessName

Razón Social

string

Max length: 254

name

Nombre o nombres, aplica cuando la compañía es de tipo persona física (requerido)

string

Max length: 25

surname1

Primer apellido, aplica cuando la compañía es de tipo persona física (requerido)

string

Max length: 25

surname2

Segundo apellido, aplica cuando la compañía es de tipo persona física

string

Max length: 25

zipCode

Código Postal

string

Required

Matching regular expression pattern: ^[0-9]*$

Max length: 5

Min length: 5

Request Formats

application/json, text/json

Sample:
{
  "taxId": "sample string 1",
  "taxRegimeCode": "sample string 2",
  "BusinessName": "sample string 3",
  "name": "sample string 4",
  "surname1": "sample string 5",
  "surname2": "sample string 6",
  "zipCode": "sample string 7"
}

application/xml, text/xml

Sample:
<CustomerFiscalDataModelApi xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <taxId>sample string 1</taxId>
  <taxRegimeCode>sample string 2</taxRegimeCode>
  <businessName>sample string 3</businessName>
  <name>sample string 4</name>
  <surname1>sample string 5</surname1>
  <surname2>sample string 6</surname2>
  <zipCode>sample string 7</zipCode>
</CustomerFiscalDataModelApi>

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

Response Information

Resource Description

ResponseModelApiOfCustomerFiscalDataModelApi
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

CustomerFiscalDataModelApi

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": {
    "taxId": "sample string 1",
    "taxRegimeCode": "sample string 2",
    "BusinessName": "sample string 3",
    "name": "sample string 4",
    "surname1": "sample string 5",
    "surname2": "sample string 6",
    "zipCode": "sample string 7"
  }
}

application/xml, text/xml

Sample:
<ResponseModelApiOfCustomerFiscalDataModelApi 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>
    <taxId>sample string 1</taxId>
    <taxRegimeCode>sample string 2</taxRegimeCode>
    <businessName>sample string 3</businessName>
    <name>sample string 4</name>
    <surname1>sample string 5</surname1>
    <surname2>sample string 6</surname2>
    <zipCode>sample string 7</zipCode>
  </data>
</ResponseModelApiOfCustomerFiscalDataModelApi>