POST | /BatchCheckElster | A synchronous service to perform basic checks on a batch of tax data. |
---|
/** @description Represents a structure that encapsulates a tax declaration. */
// @Api(Description="Represents a structure that encapsulates a tax declaration.")
export class TaxData
{
/** @description The unique identifier of the tax data. */
// @ApiMember(Description="The unique identifier of the tax data.", IsRequired=true)
public id: string;
/** @description The XML-based tax declaration. */
// @ApiMember(Description="The XML-based tax declaration.", IsRequired=true)
public content: string;
public constructor(init?: Partial<TaxData>) { (Object as any).assign(this, init); }
}
/** @description A base service to perform basic checks on a batch of tax data. */
// @Api(Description="A base service to perform basic checks on a batch of tax data.")
export class BatchCheckElsterBase implements IPost
{
/** @description The batch of ELSTER tax data to check. */
// @ApiMember(Description="The batch of ELSTER tax data to check.", Name="Data")
public data: TaxData[];
public constructor(init?: Partial<BatchCheckElsterBase>) { (Object as any).assign(this, init); }
}
/** @description A synchronous service to perform basic checks on a batch of tax data. */
// @Api(Description="A synchronous service to perform basic checks on a batch of tax data.")
export class BatchCheckElster extends BatchCheckElsterBase
{
/** @description The batch of ELSTER tax data to check. */
// @ApiMember(Description="The batch of ELSTER tax data to check.", Name="Data")
public data: TaxData[];
public constructor(init?: Partial<BatchCheckElster>) { super(init); (Object as any).assign(this, init); }
}
TypeScript BatchCheckElster DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /BatchCheckElster HTTP/1.1
Host: taxfiling.pwc.de
Accept: application/json
Content-Type: application/json
Content-Length: length
{"data":[{"id":"String","content":"String"}]}
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length [{"zertifikatErforderlich":false,"hatHerstellerId":false,"hatDatenlieferant":false,"stagingEnabled":false,"transferProtokollDruckbar":false,"id":"String","index":0,"responseStatus":{"errorCode":"String","message":"String","stackTrace":"String","errors":[{"errorCode":"String","fieldName":"String","message":"String","meta":{"String":"String"}}],"meta":{"String":"String"}}}]