Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Create Retirement Application

Resource information

Response format(s)

JSON

Requires authentication?

Yes using API token

Request Header

Name

Value

Content-Type

application/json

Authorization

{{token}}

Request Body

DeviceId

  • require

  • string

Unique device identifiers from orders with a status of “completed”

Quantity

  • require

  • decimal

Quantity <= Number of RECs of Device

Vintage

  • require

  • int

Vintage Year of RECs of Device

Reason

  • require

  • string

  • max length: 500

Reason for retirement (max length 500 character)

BeneficiatyId

  • require

  • uuid

Beneficiary Unique identifier

Returns

Returns Rec Retirement Application Id

Response Header

Content-Type

application/json

Response Body

Field

Type

Description

Id

uuid

 Beneficiary Unique Identifier

Request

Status
colourGreen
titlePOST
/rehash/v1/retirement-applications

Request Payload

Code Block
languagejson
{
  "BeneficiatyId": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  "DeviceId": "3fa85f64-5717-4562-b3fc-2c963f66afa6",
  "Vintage": 2023,
  "Quantity": 10,
  "Reason": "string",
}

Response

Info

200 Success

Code Block
languagejson
{
  "Data": {
    "Id": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
  },
  "StatusCode": 200,
  "Message": "Success"
}

Warning

400 BadRequest

Code Block
languagejson
{
  "Data": null
  "StatusCode": 400,
  "Message": "BadRequest"
}

Warning

401 Unauthorized

Code Block
languagejson
{
  "Data": null
  "StatusCode": 401,
  "Message": "Unauthorized"
}