POST api/Invoice/ReturnMasterInvoice

Request Information

URI Parameters

None.

Body Parameters

MasterInvoiceRequest
NameDescriptionTypeAdditional information
IdAgent

integer

None.

DateFrom

date

None.

DateTo

date

None.

Request Formats

application/json, text/json

Sample:
{
  "IdAgent": 1,
  "DateFrom": "2025-04-28T12:08:39.8510078-04:00",
  "DateTo": "2025-04-28T12:08:39.8510078-04:00"
}

text/html

Sample:
{"IdAgent":1,"DateFrom":"2025-04-28T12:08:39.8510078-04:00","DateTo":"2025-04-28T12:08:39.8510078-04:00"}

application/xml, text/xml

Sample:
<MasterInvoiceRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InvoiceAPI.DataTransferObjects">
  <DateFrom>2025-04-28T12:08:39.8510078-04:00</DateFrom>
  <DateTo>2025-04-28T12:08:39.8510078-04:00</DateTo>
  <IdAgent>1</IdAgent>
</MasterInvoiceRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

InvoiceResponse
NameDescriptionTypeAdditional information
IdHeader

integer

None.

DateFrom

date

None.

DateTo

date

None.

IdAgent

integer

None.

Agent

string

None.

InitialBalance

decimal number

None.

DebitOnAccount

integer

None.

NewBalance

integer

None.

ErrorCode

integer

None.

Details

Collection of InvoiceDetailResponse

None.

Response Formats

application/json, text/json

Sample:
{
  "IdHeader": 1,
  "DateFrom": "2025-04-28T12:08:39.8510078-04:00",
  "DateTo": "2025-04-28T12:08:39.8510078-04:00",
  "IdAgent": 3,
  "Agent": "sample string 4",
  "InitialBalance": 5.0,
  "DebitOnAccount": 6,
  "NewBalance": 7,
  "ErrorCode": 8,
  "Details": [
    {
      "IdHeader": 1,
      "ActivePlayers": "sample string 2",
      "InvoiceTotal": 3.0,
      "ServiceDescription": "sample string 4",
      "TypeT": "A"
    },
    {
      "IdHeader": 1,
      "ActivePlayers": "sample string 2",
      "InvoiceTotal": 3.0,
      "ServiceDescription": "sample string 4",
      "TypeT": "A"
    }
  ]
}

text/html

Sample:
{"IdHeader":1,"DateFrom":"2025-04-28T12:08:39.8510078-04:00","DateTo":"2025-04-28T12:08:39.8510078-04:00","IdAgent":3,"Agent":"sample string 4","InitialBalance":5.0,"DebitOnAccount":6,"NewBalance":7,"ErrorCode":8,"Details":[{"IdHeader":1,"ActivePlayers":"sample string 2","InvoiceTotal":3.0,"ServiceDescription":"sample string 4","TypeT":"A"},{"IdHeader":1,"ActivePlayers":"sample string 2","InvoiceTotal":3.0,"ServiceDescription":"sample string 4","TypeT":"A"}]}

application/xml, text/xml

Sample:
<InvoiceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/InvoiceAPI.DataTransferObjects">
  <Agent>sample string 4</Agent>
  <DateFrom>2025-04-28T12:08:39.8510078-04:00</DateFrom>
  <DateTo>2025-04-28T12:08:39.8510078-04:00</DateTo>
  <DebitOnAccount>6</DebitOnAccount>
  <Details>
    <InvoiceDetailResponse>
      <ActivePlayers>sample string 2</ActivePlayers>
      <IdHeader>1</IdHeader>
      <InvoiceTotal>3</InvoiceTotal>
      <ServiceDescription>sample string 4</ServiceDescription>
      <TypeT>65</TypeT>
    </InvoiceDetailResponse>
    <InvoiceDetailResponse>
      <ActivePlayers>sample string 2</ActivePlayers>
      <IdHeader>1</IdHeader>
      <InvoiceTotal>3</InvoiceTotal>
      <ServiceDescription>sample string 4</ServiceDescription>
      <TypeT>65</TypeT>
    </InvoiceDetailResponse>
  </Details>
  <ErrorCode>8</ErrorCode>
  <IdAgent>3</IdAgent>
  <IdHeader>1</IdHeader>
  <InitialBalance>5</InitialBalance>
  <NewBalance>7</NewBalance>
</InvoiceResponse>