PUT api/Grantor/ExternalPayment

Actualizar medios de pago.

Request Information

URI Parameters

None.

Body Parameters

Datos

ExternalPaymentPutApiModel
NameDescriptionTypeAdditional information
GrantorTaxId

RFC de la empresa

string

Required

ExternalPayment

Lista de medios de pago a actualizar

Collection of ExternalPaymentMethodApiModel

Required

PaymentProviderTypeId

Identificaro del proveedor activo

integer

Required

Request Formats

application/json, text/json

Sample:
{
  "GrantorTaxId": "sample string 1",
  "ExternalPayment": [
    {
      "ExternalPaymentMethodId": 64,
      "ExternalPaymentMethodName": "sample string 2",
      "IsActive": true
    },
    {
      "ExternalPaymentMethodId": 64,
      "ExternalPaymentMethodName": "sample string 2",
      "IsActive": true
    }
  ],
  "PaymentProviderTypeId": 2
}

application/xml, text/xml

Sample:
<ExternalPaymentPutApiModel xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <GrantorTaxId>sample string 1</GrantorTaxId>
  <ExternalPayment>
    <ExternalPaymentMethodApiModel>
      <ExternalPaymentMethodId>64</ExternalPaymentMethodId>
      <ExternalPaymentMethodName>sample string 2</ExternalPaymentMethodName>
      <IsActive>true</IsActive>
    </ExternalPaymentMethodApiModel>
    <ExternalPaymentMethodApiModel>
      <ExternalPaymentMethodId>64</ExternalPaymentMethodId>
      <ExternalPaymentMethodName>sample string 2</ExternalPaymentMethodName>
      <IsActive>true</IsActive>
    </ExternalPaymentMethodApiModel>
  </ExternalPayment>
  <PaymentProviderTypeId>2</PaymentProviderTypeId>
</ExternalPaymentPutApiModel>

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

Response Information

Resource Description

ResponseModelApiOfExternalPaymentPutApiModel
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

ExternalPaymentPutApiModel

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": {
    "GrantorTaxId": "sample string 1",
    "ExternalPayment": [
      {
        "ExternalPaymentMethodId": 64,
        "ExternalPaymentMethodName": "sample string 2",
        "IsActive": true
      },
      {
        "ExternalPaymentMethodId": 64,
        "ExternalPaymentMethodName": "sample string 2",
        "IsActive": true
      }
    ],
    "PaymentProviderTypeId": 2
  }
}

application/xml, text/xml

Sample:
<ResponseModelApiOfExternalPaymentPutApiModel 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>
    <GrantorTaxId>sample string 1</GrantorTaxId>
    <ExternalPayment>
      <ExternalPaymentMethodApiModel>
        <ExternalPaymentMethodId>64</ExternalPaymentMethodId>
        <ExternalPaymentMethodName>sample string 2</ExternalPaymentMethodName>
        <IsActive>true</IsActive>
      </ExternalPaymentMethodApiModel>
      <ExternalPaymentMethodApiModel>
        <ExternalPaymentMethodId>64</ExternalPaymentMethodId>
        <ExternalPaymentMethodName>sample string 2</ExternalPaymentMethodName>
        <IsActive>true</IsActive>
      </ExternalPaymentMethodApiModel>
    </ExternalPayment>
    <PaymentProviderTypeId>2</PaymentProviderTypeId>
  </data>
</ResponseModelApiOfExternalPaymentPutApiModel>