---
title: "CollectionRequestResponse"
url: "https://developer.tesma.com/apis/tesma-platform-api-v1/versions/333907fb-f0a7-4e20-b01e-c9915c73321a/schemas/CollectionRequestResponse"
---

> Full API specification: https://developer.tesma.com/apis/tesma-platform-api-v1/versions/333907fb-f0a7-4e20-b01e-c9915c73321a.md

# CollectionRequestResponse

## OpenAPI definition

```yaml
openapi: 3.1.1
info:
  title: tesma
  version: v1
servers:
  - url: https://api.tesma.com
components:
  schemas:
    CustomerContextResponse:
      additionalProperties: false
      properties:
        customerName:
          type:
            - "null"
            - string
        customerNumber:
          format: int32
          type: integer
        leaseCompany:
          format: int32
          type: integer
        leaseCompanyName:
          type:
            - "null"
            - string
      type: object
    CollectionRequestPickupDateType:
      enum:
        - asapCollectionFromSpecificDate
        - fixedCollection
        - asapCollection
        - timeSlotCollection
      type: string
    CollectionRequestState:
      enum:
        - noState
        - drafted
        - requested
      type: string
    CollectionRequestRestoreContext:
      enum:
        - assetControl
        - assetValidation
        - pickupInfoInput
        - returnRegulationsConfirmation
        - summary
      type: string
    CollectionRequestResponse:
      additionalProperties: false
      properties:
        addressEqualsCustomer:
          type: boolean
        addressNote:
          maxLength: 256
          minLength: 0
          type:
            - "null"
            - string
        areAssetsValid:
          type: boolean
        areReturnRegulationsConfirmed:
          type: boolean
        city:
          maxLength: 60
          minLength: 0
          type:
            - "null"
            - string
        collectionNote:
          maxLength: 1000
          minLength: 0
          type:
            - "null"
            - string
        companyName:
          maxLength: 256
          minLength: 0
          type:
            - "null"
            - string
        contactEmail:
          format: email
          maxLength: 256
          minLength: 0
          type:
            - "null"
            - string
        contactFirstname:
          maxLength: 60
          minLength: 0
          type:
            - "null"
            - string
        contactLastname:
          maxLength: 60
          minLength: 0
          type:
            - "null"
            - string
        contactPhone:
          maxLength: 60
          minLength: 0
          type:
            - "null"
            - string
        country:
          maxLength: 3
          minLength: 0
          type:
            - "null"
            - string
        creationDate:
          format: date
          type: string
        customerContext:
          $ref: "#/components/schemas/CustomerContextResponse"
        isCustomAddress:
          type: boolean
        isNewPickupAddress:
          type: boolean
        name:
          maxLength: 60
          minLength: 0
          type:
            - "null"
            - string
        numberOfAssets:
          format: int32
          type: integer
        numberOfLinkedAssets:
          format: int32
          type: integer
        numberOfValidAssetClassEntries:
          format: int32
          type: integer
        numberOfValidAssetTypeEntries:
          format: int32
          type: integer
        pickupDateType:
          $ref: "#/components/schemas/CollectionRequestPickupDateType"
        pickupTimestamp:
          format: date
          type:
            - "null"
            - string
        pickupTimestampTo:
          format: date
          type:
            - "null"
            - string
        postalcode:
          maxLength: 15
          minLength: 0
          type:
            - "null"
            - string
        requestCreator:
          format: email
          maxLength: 256
          minLength: 0
          type:
            - "null"
            - string
        requestDate:
          format: date
          type:
            - "null"
            - string
        requestName:
          maxLength: 60
          minLength: 0
          type:
            - "null"
            - string
        requestNumber:
          format: int32
          type: integer
        requestState:
          $ref: "#/components/schemas/CollectionRequestState"
        restoreContext:
          $ref: "#/components/schemas/CollectionRequestRestoreContext"
        street:
          maxLength: 60
          minLength: 0
          type:
            - "null"
            - string
      type: object
```
