POST api/Empresas/obtenerTarifas?spn={spn}&empresaID={empresaID}&desde={desde}&hasta={hasta}&historial={historial}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
spn

string

Required

empresaID

integer

Required

desde

date

Required

hasta

date

Required

historial

integer

Required

Body Parameters

None.

Response Information

Resource Description

TarifasCMResponse
NameDescriptionTypeAdditional information
content

Collection of EmpresaTarifaList

None.

errors

Collection of TarifasCMErrorsList

None.

status

integer

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "content": [
    {
      "EmpresaTarifaID": 1,
      "EmpresaID": 2,
      "SPN": "sample string 3",
      "RATE_OFFERING_GID": "sample string 4",
      "RATE_GEO_GID": "sample string 5",
      "RATE_VERSION_GID": "sample string 6",
      "SERVPROV_GID": "sample string 7",
      "IS_ACTIVE": "sample string 8",
      "EXPIRATION_DATE": "2024-11-28T15:42:45.4326427-05:00",
      "X_LANE_GID": "sample string 9",
      "SOURCE_REGION_GID": "sample string 10",
      "DEST_REGION_GID": "sample string 11",
      "RATE_GEO_COST_GROUP_GID": "sample string 12",
      "CHARGE_AMOUNT": 13.1,
      "INSERT_USER_OTM": "sample string 14",
      "INSERT_DATE_OTM": "2024-11-28T15:42:45.4326427-05:00",
      "UPDATE_USER_OTM": "sample string 16",
      "UPDATE_DATE_OTM": "2024-11-28T15:42:45.4326427-05:00",
      "Status": 18,
      "Eliminado": true,
      "INSERT_DATE": "2024-11-28T15:42:45.4326427-05:00",
      "INSERT_USER": 21,
      "INSERT_USER_NAME": "sample string 22",
      "UPDATE_DATE": "2024-11-28T15:42:45.4326427-05:00",
      "UPDATE_USER": 24,
      "UPDATE_USER_NAME": "sample string 25"
    },
    {
      "EmpresaTarifaID": 1,
      "EmpresaID": 2,
      "SPN": "sample string 3",
      "RATE_OFFERING_GID": "sample string 4",
      "RATE_GEO_GID": "sample string 5",
      "RATE_VERSION_GID": "sample string 6",
      "SERVPROV_GID": "sample string 7",
      "IS_ACTIVE": "sample string 8",
      "EXPIRATION_DATE": "2024-11-28T15:42:45.4326427-05:00",
      "X_LANE_GID": "sample string 9",
      "SOURCE_REGION_GID": "sample string 10",
      "DEST_REGION_GID": "sample string 11",
      "RATE_GEO_COST_GROUP_GID": "sample string 12",
      "CHARGE_AMOUNT": 13.1,
      "INSERT_USER_OTM": "sample string 14",
      "INSERT_DATE_OTM": "2024-11-28T15:42:45.4326427-05:00",
      "UPDATE_USER_OTM": "sample string 16",
      "UPDATE_DATE_OTM": "2024-11-28T15:42:45.4326427-05:00",
      "Status": 18,
      "Eliminado": true,
      "INSERT_DATE": "2024-11-28T15:42:45.4326427-05:00",
      "INSERT_USER": 21,
      "INSERT_USER_NAME": "sample string 22",
      "UPDATE_DATE": "2024-11-28T15:42:45.4326427-05:00",
      "UPDATE_USER": 24,
      "UPDATE_USER_NAME": "sample string 25"
    }
  ],
  "errors": [
    {
      "Celda": "sample string 1",
      "Error": "sample string 2"
    },
    {
      "Celda": "sample string 1",
      "Error": "sample string 2"
    }
  ],
  "status": 1,
  "message": "sample string 2"
}

application/xml, text/xml

Sample:
<TarifasCMResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/EXPU_Backend.Models">
  <message>sample string 2</message>
  <status>1</status>
  <content>
    <EmpresaTarifaList>
      <CHARGE_AMOUNT>13.1</CHARGE_AMOUNT>
      <DEST_REGION_GID>sample string 11</DEST_REGION_GID>
      <EXPIRATION_DATE>2024-11-28T15:42:45.4326427-05:00</EXPIRATION_DATE>
      <Eliminado>true</Eliminado>
      <EmpresaID>2</EmpresaID>
      <EmpresaTarifaID>1</EmpresaTarifaID>
      <INSERT_DATE>2024-11-28T15:42:45.4326427-05:00</INSERT_DATE>
      <INSERT_DATE_OTM>2024-11-28T15:42:45.4326427-05:00</INSERT_DATE_OTM>
      <INSERT_USER>21</INSERT_USER>
      <INSERT_USER_NAME>sample string 22</INSERT_USER_NAME>
      <INSERT_USER_OTM>sample string 14</INSERT_USER_OTM>
      <IS_ACTIVE>sample string 8</IS_ACTIVE>
      <RATE_GEO_COST_GROUP_GID>sample string 12</RATE_GEO_COST_GROUP_GID>
      <RATE_GEO_GID>sample string 5</RATE_GEO_GID>
      <RATE_OFFERING_GID>sample string 4</RATE_OFFERING_GID>
      <RATE_VERSION_GID>sample string 6</RATE_VERSION_GID>
      <SERVPROV_GID>sample string 7</SERVPROV_GID>
      <SOURCE_REGION_GID>sample string 10</SOURCE_REGION_GID>
      <SPN>sample string 3</SPN>
      <Status>18</Status>
      <UPDATE_DATE>2024-11-28T15:42:45.4326427-05:00</UPDATE_DATE>
      <UPDATE_DATE_OTM>2024-11-28T15:42:45.4326427-05:00</UPDATE_DATE_OTM>
      <UPDATE_USER>24</UPDATE_USER>
      <UPDATE_USER_NAME>sample string 25</UPDATE_USER_NAME>
      <UPDATE_USER_OTM>sample string 16</UPDATE_USER_OTM>
      <X_LANE_GID>sample string 9</X_LANE_GID>
    </EmpresaTarifaList>
    <EmpresaTarifaList>
      <CHARGE_AMOUNT>13.1</CHARGE_AMOUNT>
      <DEST_REGION_GID>sample string 11</DEST_REGION_GID>
      <EXPIRATION_DATE>2024-11-28T15:42:45.4326427-05:00</EXPIRATION_DATE>
      <Eliminado>true</Eliminado>
      <EmpresaID>2</EmpresaID>
      <EmpresaTarifaID>1</EmpresaTarifaID>
      <INSERT_DATE>2024-11-28T15:42:45.4326427-05:00</INSERT_DATE>
      <INSERT_DATE_OTM>2024-11-28T15:42:45.4326427-05:00</INSERT_DATE_OTM>
      <INSERT_USER>21</INSERT_USER>
      <INSERT_USER_NAME>sample string 22</INSERT_USER_NAME>
      <INSERT_USER_OTM>sample string 14</INSERT_USER_OTM>
      <IS_ACTIVE>sample string 8</IS_ACTIVE>
      <RATE_GEO_COST_GROUP_GID>sample string 12</RATE_GEO_COST_GROUP_GID>
      <RATE_GEO_GID>sample string 5</RATE_GEO_GID>
      <RATE_OFFERING_GID>sample string 4</RATE_OFFERING_GID>
      <RATE_VERSION_GID>sample string 6</RATE_VERSION_GID>
      <SERVPROV_GID>sample string 7</SERVPROV_GID>
      <SOURCE_REGION_GID>sample string 10</SOURCE_REGION_GID>
      <SPN>sample string 3</SPN>
      <Status>18</Status>
      <UPDATE_DATE>2024-11-28T15:42:45.4326427-05:00</UPDATE_DATE>
      <UPDATE_DATE_OTM>2024-11-28T15:42:45.4326427-05:00</UPDATE_DATE_OTM>
      <UPDATE_USER>24</UPDATE_USER>
      <UPDATE_USER_NAME>sample string 25</UPDATE_USER_NAME>
      <UPDATE_USER_OTM>sample string 16</UPDATE_USER_OTM>
      <X_LANE_GID>sample string 9</X_LANE_GID>
    </EmpresaTarifaList>
  </content>
  <errors>
    <TarifasCMErrorsList>
      <Celda>sample string 1</Celda>
      <Error>sample string 2</Error>
    </TarifasCMErrorsList>
    <TarifasCMErrorsList>
      <Celda>sample string 1</Celda>
      <Error>sample string 2</Error>
    </TarifasCMErrorsList>
  </errors>
</TarifasCMResponse>