getSendBlockList
    • PDF

    getSendBlockList

    • PDF

    Article Summary

    Get shipping block history

    GET https://{endpoint}/send-block
    

    Request

    Request Parameters

    ParameterRequiredTypeLimitationDescription
    sizeNoIntegerDefault:10Number of records per page.
    pageNoIntegerDefault:0Index of a page to receive results (0..N).
    sortNoStringDefault: createUtc, createUtc: Creation timeSort by (format: property(,asc|desc)): Messages are sorted in ascending order (asc) by default; multiple fields can be used for sorting.
    targetAddressYesStringemail 주소 형식발송 차단 내역을 확인할 메일 주소

    Response

    HTTP status codeDescription
    200Block History Lookup Completed
    400Authentication failed, invalid request.
    500Server error

    Example

    Request Example

    GET https://mail.apigw.ntruss.com/api/v1/send-block?targetAddress=test01%40ncp-mail.com
    
    

    Response Example

    {
      "content": [
        {
          "targetAddress": "test01@ncp-mail.com",
          "actionType": {
            "label": "Delete",
            "code": "D"
          },
          "actionRequesterType": {
            "label": "System",
            "code": "SYSTEM"
          },
          "requestDate": {
            "utc": 1588649460935,
            "formattedDate": "2020-05-05",
            "formattedDateTime": "2020-05-05 12:31:00 935"
          }
        },
        {
          "targetAddress": "test01@ncp-mail.com",
          "actionType": {
            "label": "Create",
            "code": "C"
          },
          "actionRequesterType": {
            "label": "Other customer",
            "code": "OTHER_CUSTOMER"
          },
          "requestDate": {
            "utc": 1588044631372,
            "formattedDate": "2020-04-28",
            "formattedDateTime": "2020-04-28 12:30:31 372"
          }
        }
      ],
      "registerStatus": "Not blocked",
      "expectedDeleteDate": null,
      "totalElements": 2,
      "totalPages": 1,
      "last": true,
      "numberOfElements": 2,
      "first": true,
      "sort": [
        {
          "direction": "DESC",
          "property": "createUtc",
          "ignoreCase": false,
          "nullHandling": "NATIVE",
          "descending": true,
          "ascending": false
        }
      ],
      "size": 10,
      "number": 0
    }
    

    Properties

    PropertyRequiredTypeLimitationDescription
    totalElementsYesIntegerTotal number of records
    totalPagesYesIntegerTotal number of pages
    numberOfElementsYesIntegerNumber of records in the current page
    firstYesBooleanIndicates whether it is the first page
    lastYesBooleanIndicates whether it is the last page
    numberYesIntegerIndex of the current page (starting from 0)
    sizeYesIntegerNumber of records per page
    sortYesList<Sort>Sort
    registerStatusYesStringstatus : Blocking, Not blockedWhether this mail is currently blocked from being sent
    expectedDeleteDateNoNesDateTimeEstimated time to unblock
    contentNoList<SendBlockHistoryResponse>Content

    Error Codes

    HTTP status codeReturn codeResponse message
    40077101Error in login information
    40077102BAD_REQUEST
    40077103Resource not found
    40377201No permissions
    40377202No subscription
    40577001METHOD_NOT_ALLOWED
    41577002UNSUPPORTED_MEDIA_TYPE
    50077301Default project not found
    50077302Error in working with external system API
    50077303Other INTERNAL_SERVER_ERROR

    Was this article helpful?

    Changing your password will log you out immediately. Use the new password to log back in.
    First name must have atleast 2 characters. Numbers and special characters are not allowed.
    Last name must have atleast 1 characters. Numbers and special characters are not allowed.
    Enter a valid email
    Enter a valid password
    Your profile has been successfully updated.