Create new Delegated

This endpoint creates a new delegated which is linked to an intermediary .

[POST] /api/v1/{itemId}/intermediary/{taxId}/delegated

Reminder : One intermediary can have many delegates

Header

Header used on this API are those taken from header standards of TS Digital.

Content-type is accepted in application/json

Query Parameters

Parameters used to make a successful request.

Body

Body request for this endpoint is a JSON in a format described below

{
  "taxId": "stringstringstri",
  "firstName": "string",
  "lastName": "string",
  "description": "string"
}

Response

On successful response

If successful, the API responds with HTTP code 200(OK) with the following body:

{
  "firstName": "string",
  "lastName": "string",
  "description": "string"
}
On error response

In the event of an error, the API responds with a body JSON with the following format:

{
  "code": "string",
  "timestamp": "2022-04-13T13:35:16.678Z",
  "message": "string",
  "subErrors": [
    {}
  ]
}

Possible errors are:

 


Revision #5
Created 2022-05-06 13:02:47 UTC by Arbis Malasi
Updated 2022-05-11 13:01:30 UTC by Arbis Malasi