interactions:
- request:
    body: grant_type=client_credentials
    headers:
      Accept:
      - application/json
      Accept-Encoding:
      - gzip, deflate
      Authorization:
      - Basic RkZDU0NPNFFPRzJPVk4zRlU2RUQ6MXoyTk0zVlV4bVdpZ3Y0N1RGYktrV2xtR3N4SFFQTlRxeGRzZlJTTHVPWFJEMmFpZGpaVFJxYVBIcEc4amZKeC9tK21JaVFiRk1BQTBEVXg=
      Connection:
      - keep-alive
      Content-Length:
      - '29'
      Content-Type:
      - application/x-www-form-urlencoded;charset=UTF-8
      User-Agent:
      - python-requests/2.28.1
    method: POST
    uri: https://identity-staging.pingen.com/auth/access-tokens
  response:
    body:
      string: '{"token_type":"Bearer","expires_in":43200,"access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJGRkNTQ080UU9HMk9WTjNGVTZFRCIsImp0aSI6IjA5Y2M1MGJhNDA0ZjViY2Y1NjkyZDRkNjAzOTEwNzg5YWM1NjUxYjg0OWYwMzBjMTljYzVmNzc1YjdhYWY1MzJkMDAzN2E3MDRkMmUxZmQ0IiwiaWF0IjoxNjg0ODYxMDA1LjE2ODI4MywibmJmIjoxNjg0ODYxMDA1LjE2ODI4NSwiZXhwIjoxNjg0OTA0MjA1LCJzdWIiOiJleUpwZGlJNklrSkRlVFZWZVZvNWNYRndPRk0zWlZKUWFISjFkVkU5UFNJc0luWmhiSFZsSWpvaVNFTkNOMWhDV21nNVluSmplRmwzVGt0R05uWTNaejA5SWl3aWJXRmpJam9pWlRZNFlURmxOR0V6WVdRek1UazRZVGszTVRnMU5qQmlOVEEzWVdFNE1HUTRZMlU1TmpZNU9UWXhOV1UzTkdVNVl6bGxZakExTkRVeE16aG1ZamN4WVNJc0luUmhaeUk2SWlKOSIsInNjb3BlcyI6WyJsZXR0ZXIiLCJvcmdhbmlzYXRpb25fcmVhZCIsIndlYmhvb2siLCJiYXRjaCJdfQ.BsjXSIFrNZys4ZkEUbAPGol14wovjXhZCTW9D0sO7bjahwwRCD_ahMgAsEBhDO9EPTJL1XGpMS5RaR_ggEewrPyCLudUGpH20cKhvwMz7oFN3tKmZei-zgF8YzsKRQ_6Jcx3kK59YmGyr0IiSb3KZlYURPwTzfQ7gemKHKmVy87oKuBXotafwy526OPk1-1gbWNCLbdO3hlopfSStFMOQsFO2OHhx1CUHg2kIEJn4EJGD9mgTpea03RDg97bwADfKma0J6a4Th2biLCQg_ExiS6DIgNM1H_Gb6HSU8YvIfR3gvPMkNeJELmBtzAXPNkriq3fzaTkGpeXHDw6wEjvDcpI4A2P74Q_vgu5UGuVqSpuewrINWO4aC58ZjoZGmCKY7aVjNb4KIHF3z626s02gJ6YkwIoTRg02z-mZVtKJqWbUGSDgoeb8_gOkgADKGsos7s5x2nlX7USquPclK_JGuJy8qhKiudm2qZsMVCB0RI2ULkyaB1CEEYJztFIbcKHufmRdI2facZ6Vjt0JWHRBKND7J8CO3Axlz0KMaMRTn3k7iOaXz11l0tvyn9EQ6NIGfc0iz7-VtJZU90bI1jJYLZaTFaMYlKoW5cj6mY2hoj8UyuzxOpb74XLe7KwzusVfaS_1ig5xtkZpQtdtCMrhe5vcZPDkwDxD37ivq0pdu4"}'
    headers:
      access-control-allow-origin:
      - '*'
      access-control-expose-headers:
      - X-Request-Id, X-Redirect-Location
      cache-control:
      - no-store, private
      content-type:
      - application/json
      date:
      - Tue, 23 May 2023 16:56:45 GMT
      pragma:
      - no-cache
      server:
      - nginx
      set-cookie:
      - fb7eb3c0fd7448a4f8905cb9504f3ebb=dbd6167e7abb8a3add8206709b5d4743; path=/;
        HttpOnly; Secure; SameSite=None
      strict-transport-security:
      - max-age=86400; includeSubDomains
      transfer-encoding:
      - chunked
      x-content-type-options:
      - nosniff
      x-frame-options:
      - SAMEORIGIN
      x-ratelimit-limit:
      - '900'
      x-ratelimit-remaining:
      - '898'
      x-request-id:
      - 857ca58d-8f94-4047-a8bf-18d1c87b7dc2
      x-xss-protection:
      - 1; mode=block
    status:
      code: 200
      message: OK
- request:
    body: null
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate
      Authorization:
      - Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJGRkNTQ080UU9HMk9WTjNGVTZFRCIsImp0aSI6IjA5Y2M1MGJhNDA0ZjViY2Y1NjkyZDRkNjAzOTEwNzg5YWM1NjUxYjg0OWYwMzBjMTljYzVmNzc1YjdhYWY1MzJkMDAzN2E3MDRkMmUxZmQ0IiwiaWF0IjoxNjg0ODYxMDA1LjE2ODI4MywibmJmIjoxNjg0ODYxMDA1LjE2ODI4NSwiZXhwIjoxNjg0OTA0MjA1LCJzdWIiOiJleUpwZGlJNklrSkRlVFZWZVZvNWNYRndPRk0zWlZKUWFISjFkVkU5UFNJc0luWmhiSFZsSWpvaVNFTkNOMWhDV21nNVluSmplRmwzVGt0R05uWTNaejA5SWl3aWJXRmpJam9pWlRZNFlURmxOR0V6WVdRek1UazRZVGszTVRnMU5qQmlOVEEzWVdFNE1HUTRZMlU1TmpZNU9UWXhOV1UzTkdVNVl6bGxZakExTkRVeE16aG1ZamN4WVNJc0luUmhaeUk2SWlKOSIsInNjb3BlcyI6WyJsZXR0ZXIiLCJvcmdhbmlzYXRpb25fcmVhZCIsIndlYmhvb2siLCJiYXRjaCJdfQ.BsjXSIFrNZys4ZkEUbAPGol14wovjXhZCTW9D0sO7bjahwwRCD_ahMgAsEBhDO9EPTJL1XGpMS5RaR_ggEewrPyCLudUGpH20cKhvwMz7oFN3tKmZei-zgF8YzsKRQ_6Jcx3kK59YmGyr0IiSb3KZlYURPwTzfQ7gemKHKmVy87oKuBXotafwy526OPk1-1gbWNCLbdO3hlopfSStFMOQsFO2OHhx1CUHg2kIEJn4EJGD9mgTpea03RDg97bwADfKma0J6a4Th2biLCQg_ExiS6DIgNM1H_Gb6HSU8YvIfR3gvPMkNeJELmBtzAXPNkriq3fzaTkGpeXHDw6wEjvDcpI4A2P74Q_vgu5UGuVqSpuewrINWO4aC58ZjoZGmCKY7aVjNb4KIHF3z626s02gJ6YkwIoTRg02z-mZVtKJqWbUGSDgoeb8_gOkgADKGsos7s5x2nlX7USquPclK_JGuJy8qhKiudm2qZsMVCB0RI2ULkyaB1CEEYJztFIbcKHufmRdI2facZ6Vjt0JWHRBKND7J8CO3Axlz0KMaMRTn3k7iOaXz11l0tvyn9EQ6NIGfc0iz7-VtJZU90bI1jJYLZaTFaMYlKoW5cj6mY2hoj8UyuzxOpb74XLe7KwzusVfaS_1ig5xtkZpQtdtCMrhe5vcZPDkwDxD37ivq0pdu4
      Connection:
      - keep-alive
      User-Agent:
      - python-requests/2.28.1
    method: GET
    uri: https://api-staging.pingen.com/file-upload
  response:
    body:
      string: '{"data":{"type":"file_uploads","id":"f14144b8-a211-4514-8333-f4e09d8a16df","attributes":{"url":"https:\/\/pingen2-staging-transfer.objects.rma.cloudscale.ch\/f14144b8-a211-4514-8333-f4e09d8a16df_2023-05-23_19%3A16%3A45?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=Z3YMWIXX6Y1G0KHUQDZ7%2F20230523%2Fregion1%2Fs3%2Faws4_request&X-Amz-Date=20230523T165645Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=ef959eb9ea0e53824005190a1b4f4f33e460c054e3f29865913945f29e4b1ec5","url_signature":"1fb811d0e1f010292d40bb672bfb1fde","expires_at":"2023-05-23T19:16:45+0200"}}}'
    headers:
      access-control-allow-origin:
      - '*'
      access-control-expose-headers:
      - X-Request-Id, X-Redirect-Location
      cache-control:
      - no-cache, private
      content-type:
      - application/vnd.api+json
      date:
      - Tue, 23 May 2023 16:56:45 GMT
      server:
      - nginx
      set-cookie:
      - 9e95c922595c91f6fd6e3f88ecd31058=dbd6167e7abb8a3add8206709b5d4743; path=/;
        HttpOnly; Secure; SameSite=None
      strict-transport-security:
      - max-age=86400; includeSubDomains
      transfer-encoding:
      - chunked
      x-content-type-options:
      - nosniff
      x-frame-options:
      - SAMEORIGIN
      x-ratelimit-limit:
      - '900'
      x-ratelimit-remaining:
      - '899'
      x-request-id:
      - 66d62b74-720f-4c4d-b12e-ad4891989b4e
      x-xss-protection:
      - 1; mode=block
    status:
      code: 200
      message: OK
- request:
    body: !!binary |
[encoded data, 68641 characters]
      Mzg1NkE5MAo+PgpzdGFydHhyZWYKNDYyNDgKJSVFT0YK
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate
      Connection:
      - keep-alive
      Content-Length:
      - '47172'
      Content-Type:
      - application/pdf
      User-Agent:
      - python-requests/2.28.1
    method: PUT
    uri: https://pingen2-staging-transfer.objects.rma.cloudscale.ch/f14144b8-a211-4514-8333-f4e09d8a16df_2023-05-23_19%3A16%3A45?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=Z3YMWIXX6Y1G0KHUQDZ7%2F20230523%2Fregion1%2Fs3%2Faws4_request&X-Amz-Date=20230523T165645Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=ef959eb9ea0e53824005190a1b4f4f33e460c054e3f29865913945f29e4b1ec5
  response:
    body:
      string: ''
    headers:
      Accept-Ranges:
      - bytes
      Content-Length:
      - '0'
      Date:
      - Tue, 23 May 2023 16:56:45 GMT
      ETag:
      - '"287162a4ff07b702606deb97d1223d17"'
      Strict-Transport-Security:
      - max-age=31536000; includeSubDomains
      x-amz-request-id:
      - tx00000cb19ca4be7fcbec9-00646cf04d-606f5193f-rma1
    status:
      code: 200
      message: OK
- request:
    body: '{"data": {"type": "letters", "attributes": {"file_original_name": "in_invoice_yourcompany_demo.pdf",
      "file_url": "https://pingen2-staging-transfer.objects.rma.cloudscale.ch/f14144b8-a211-4514-8333-f4e09d8a16df_2023-05-23_19%3A16%3A45?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=Z3YMWIXX6Y1G0KHUQDZ7%2F20230523%2Fregion1%2Fs3%2Faws4_request&X-Amz-Date=20230523T165645Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=ef959eb9ea0e53824005190a1b4f4f33e460c054e3f29865913945f29e4b1ec5",
      "file_url_signature": "1fb811d0e1f010292d40bb672bfb1fde", "address_position":
      "left", "auto_send": true, "delivery_product": "cheap", "print_spectrum": "grayscale",
      "print_mode": "simplex"}}}'
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate
      Authorization:
      - Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJGRkNTQ080UU9HMk9WTjNGVTZFRCIsImp0aSI6IjA5Y2M1MGJhNDA0ZjViY2Y1NjkyZDRkNjAzOTEwNzg5YWM1NjUxYjg0OWYwMzBjMTljYzVmNzc1YjdhYWY1MzJkMDAzN2E3MDRkMmUxZmQ0IiwiaWF0IjoxNjg0ODYxMDA1LjE2ODI4MywibmJmIjoxNjg0ODYxMDA1LjE2ODI4NSwiZXhwIjoxNjg0OTA0MjA1LCJzdWIiOiJleUpwZGlJNklrSkRlVFZWZVZvNWNYRndPRk0zWlZKUWFISjFkVkU5UFNJc0luWmhiSFZsSWpvaVNFTkNOMWhDV21nNVluSmplRmwzVGt0R05uWTNaejA5SWl3aWJXRmpJam9pWlRZNFlURmxOR0V6WVdRek1UazRZVGszTVRnMU5qQmlOVEEzWVdFNE1HUTRZMlU1TmpZNU9UWXhOV1UzTkdVNVl6bGxZakExTkRVeE16aG1ZamN4WVNJc0luUmhaeUk2SWlKOSIsInNjb3BlcyI6WyJsZXR0ZXIiLCJvcmdhbmlzYXRpb25fcmVhZCIsIndlYmhvb2siLCJiYXRjaCJdfQ.BsjXSIFrNZys4ZkEUbAPGol14wovjXhZCTW9D0sO7bjahwwRCD_ahMgAsEBhDO9EPTJL1XGpMS5RaR_ggEewrPyCLudUGpH20cKhvwMz7oFN3tKmZei-zgF8YzsKRQ_6Jcx3kK59YmGyr0IiSb3KZlYURPwTzfQ7gemKHKmVy87oKuBXotafwy526OPk1-1gbWNCLbdO3hlopfSStFMOQsFO2OHhx1CUHg2kIEJn4EJGD9mgTpea03RDg97bwADfKma0J6a4Th2biLCQg_ExiS6DIgNM1H_Gb6HSU8YvIfR3gvPMkNeJELmBtzAXPNkriq3fzaTkGpeXHDw6wEjvDcpI4A2P74Q_vgu5UGuVqSpuewrINWO4aC58ZjoZGmCKY7aVjNb4KIHF3z626s02gJ6YkwIoTRg02z-mZVtKJqWbUGSDgoeb8_gOkgADKGsos7s5x2nlX7USquPclK_JGuJy8qhKiudm2qZsMVCB0RI2ULkyaB1CEEYJztFIbcKHufmRdI2facZ6Vjt0JWHRBKND7J8CO3Axlz0KMaMRTn3k7iOaXz11l0tvyn9EQ6NIGfc0iz7-VtJZU90bI1jJYLZaTFaMYlKoW5cj6mY2hoj8UyuzxOpb74XLe7KwzusVfaS_1ig5xtkZpQtdtCMrhe5vcZPDkwDxD37ivq0pdu4
      Connection:
      - keep-alive
      Content-Length:
      - '730'
      Content-Type:
      - application/vnd.api+json
      Cookie:
      - 9e95c922595c91f6fd6e3f88ecd31058=dbd6167e7abb8a3add8206709b5d4743
      User-Agent:
      - python-requests/2.28.1
    method: POST
    uri: https://api-staging.pingen.com/organisations/4c08c24e-65f8-47cf-b280-518ee76e3437/letters
  response:
    body:
      string: '{"data":{"type":"letters","id":"bc095d48-996a-4995-bfba-1b8d3d9ef851","attributes":{"status":"validating","file_original_name":"in_invoice_yourcompany_demo.pdf","file_pages":null,"address":null,"address_position":"left","country":null,"delivery_product":"cheap","print_mode":"simplex","print_spectrum":"grayscale","price_currency":null,"price_value":null,"paper_types":null,"fonts":null,"source":"api","tracking_number":null,"submitted_at":null,"created_at":"2023-05-23T18:56:45+0200","updated_at":"2023-05-23T18:56:45+0200"},"relationships":{"organisation":{"links":{"related":"https:\/\/api-staging.v2.pingen.com\/organisations\/4c08c24e-65f8-47cf-b280-518ee76e3437"},"data":{"type":"organisations","id":"4c08c24e-65f8-47cf-b280-518ee76e3437"}},"events":{"links":{"related":{"href":"https:\/\/api-staging.v2.pingen.com\/organisations\/4c08c24e-65f8-47cf-b280-518ee76e3437\/letters\/bc095d48-996a-4995-bfba-1b8d3d9ef851\/events","meta":{"count":1}}}},"batch":{"data":null}},"links":{"self":"https:\/\/api-staging.v2.pingen.com\/organisations\/4c08c24e-65f8-47cf-b280-518ee76e3437\/letters\/bc095d48-996a-4995-bfba-1b8d3d9ef851"},"meta":{"abilities":{"self":{"cancel":"state","delete":"state","submit":"state","send-simplex":"ok","edit":"state","get-pdf-raw":"state","get-pdf-validation":"state","change-paper-type":"state","change-window-position":"state","create-coverpage":"state","fix-overwrite-restricted-areas":"state","fix-coverpage":"state","fix-country":"state","fix-regular-paper":"state"}}}}}'
    headers:
      access-control-allow-origin:
      - '*'
      access-control-expose-headers:
      - X-Request-Id, X-Redirect-Location
      cache-control:
      - no-cache, private
      content-type:
      - application/vnd.api+json
      date:
      - Tue, 23 May 2023 16:56:45 GMT
      server:
      - nginx
      strict-transport-security:
      - max-age=86400; includeSubDomains
      transfer-encoding:
      - chunked
      x-content-type-options:
      - nosniff
      x-frame-options:
      - SAMEORIGIN
      x-ratelimit-limit:
      - '900'
      x-ratelimit-remaining:
      - '898'
      x-request-id:
      - 4c66e037-970c-4fcc-9daa-1a86623bf2c0
      x-xss-protection:
      - 1; mode=block
    status:
      code: 201
      message: Created
- request:
    body: grant_type=client_credentials
    headers:
      Accept:
      - application/json
      Accept-Encoding:
      - gzip, deflate
      Authorization:
      - Basic RkZDU0NPNFFPRzJPVk4zRlU2RUQ6MXoyTk0zVlV4bVdpZ3Y0N1RGYktrV2xtR3N4SFFQTlRxeGRzZlJTTHVPWFJEMmFpZGpaVFJxYVBIcEc4amZKeC9tK21JaVFiRk1BQTBEVXg=
      Connection:
      - keep-alive
      Content-Length:
      - '29'
      Content-Type:
      - application/x-www-form-urlencoded;charset=UTF-8
      User-Agent:
      - python-requests/2.28.1
    method: POST
    uri: https://identity-staging.pingen.com/auth/access-tokens
  response:
    body:
      string: '{"token_type":"Bearer","expires_in":43200,"access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJGRkNTQ080UU9HMk9WTjNGVTZFRCIsImp0aSI6ImJkOTU3MTY0NDMyNDYyZTk0ZWM2NTUyZDkzNzhlMmJkOWZiNmVhNjBhMGE3Yzc2MWViMjhiZTI2OGZlNDVjNzFjNWRlOTZhZjA4MzBhODcwIiwiaWF0IjoxNjk2NDkyMTQxLjcwNTM2MiwibmJmIjoxNjk2NDkyMTQxLjcwNTM2NCwiZXhwIjoxNjk2NTM1MzQxLCJzdWIiOiJleUpwZGlJNklsVXhjVVVyWVdkQ09HZ3laVmRoV205R2FtazBSWGM5UFNJc0luWmhiSFZsSWpvaVNqWkNiemsyVWpSMlJEVTVMMkZEZDAwdlREZzVRVDA5SWl3aWJXRmpJam9pTURJMk56VmxZelZtTXpJd09USmhPVGN4T0RCaU9HSmlaV1l3T0dZeE5EQTVaVEpsTnpKaU5EWmpZVFV3WW1Kak1HRmxaREJtTVdZNVlUY3hNekUwTUNJc0luUmhaeUk2SWlKOSIsInNjb3BlcyI6WyJsZXR0ZXIiLCJvcmdhbmlzYXRpb25fcmVhZCIsIndlYmhvb2siLCJiYXRjaCJdfQ.JwmdocLAu7eElyoRHkPOAnLWqv6THC_dxcgNgKsbxalIkcDPV53dSEaYJVnBe6tBEoC-blOhcbyKmI0zT67lra3PkZjMTVMBc1lieip340gs2ZthzDfMo5_y46pSS9QmBCzQAlzwACWoWvTcxEwd0Dha0aDR55QlYOUnY6WdrxbEf9tpJJDNFENSmrRRxaUfjVKIq1WR5IXFOCMCJhEaBOs8RCZBxz6GPwemGW2T7Qn5E2Q9kbcrGVixP1eShTCCUu6D9EduWcxWB9-kgcuMBDQwjktkYFhac7bYWVQpgOSilTDK5RXySNjFKA-SIMeDLJP0KkArqUGJRHuIVdhCVsKWAMHZzgUG0jbeMzjOoN0q5m4DWX-lzjReEdKmwFajUs44KXd_6FEd1e7Z2n3v2oDSf19svunLnWZw6lyQViWFuvpAw3jX05nryLcmXzcOYwsOw-oLWl19nek1sLpyJbCJqLOltBCsUjIbjDeDt9_8qYmSKZRA6FWateIuPLXJnzst4_-hkelcj_MKDeTEEPI5qEX9W4PQDRHfTPhsqaxrw8EtYuiRfxNOkM1TJ3-_96ZrfT9CeDH-tUAdwFyg93pvevV5zsWiWxgOMmJoZldGcazj0fN2BYCS7WZEOhYskYdXhTwLQCG1ycuIxxmI5lwGXFGBr13OTUP1qEOhA-Y"}'
    headers:
      access-control-allow-origin:
      - '*'
      access-control-expose-headers:
      - X-Request-Id, X-Redirect-Location
      cache-control:
      - no-store, private
      content-type:
      - application/json
      date:
      - Thu, 05 Oct 2023 07:49:01 GMT
      pragma:
      - no-cache
      server:
      - nginx
      set-cookie:
      - fb7eb3c0fd7448a4f8905cb9504f3ebb=ba0f79c6de12140eb5d2094b68953974; path=/;
        HttpOnly; Secure; SameSite=None
      strict-transport-security:
      - max-age=86400; includeSubDomains
      transfer-encoding:
      - chunked
      x-content-type-options:
      - nosniff
      x-frame-options:
      - SAMEORIGIN
      x-ratelimit-limit:
      - '900'
      x-ratelimit-remaining:
      - '899'
      x-request-id:
      - 7e763f85-f0e7-4aad-aeb6-27f8803d5231
      x-xss-protection:
      - 1; mode=block
    status:
      code: 200
      message: OK
- request:
    body: null
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate
      Authorization:
      - Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJGRkNTQ080UU9HMk9WTjNGVTZFRCIsImp0aSI6ImJkOTU3MTY0NDMyNDYyZTk0ZWM2NTUyZDkzNzhlMmJkOWZiNmVhNjBhMGE3Yzc2MWViMjhiZTI2OGZlNDVjNzFjNWRlOTZhZjA4MzBhODcwIiwiaWF0IjoxNjk2NDky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I5lwGXFGBr13OTUP1qEOhA-Y
      Connection:
      - keep-alive
      User-Agent:
      - python-requests/2.28.1
    method: GET
    uri: https://api-staging.pingen.com/file-upload
  response:
    body:
      string: '{"data":{"type":"file_uploads","id":"640b2883-c576-4a35-87f9-1abf2801461f","attributes":{"url":"https:\/\/pingen2-staging-transfer.objects.rma.cloudscale.ch\/640b2883-c576-4a35-87f9-1abf2801461f_2023-10-05_10%3A09%3A01?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=Z3YMWIXX6Y1G0KHUQDZ7%2F20231005%2Fregion1%2Fs3%2Faws4_request&X-Amz-Date=20231005T074901Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=fe7fce59939b3bd73b03124ecc3fba6abb3312690c0c54674bc95e1fb8b2bd1f","url_signature":"a29e61a0f8f9a11fc76e90ede9a5d7e6","expires_at":"2023-10-05T10:09:01+0200"}}}'
    headers:
      access-control-allow-origin:
      - '*'
      access-control-expose-headers:
      - X-Request-Id, X-Redirect-Location
      cache-control:
      - no-cache, private
      content-type:
      - application/vnd.api+json
      date:
      - Thu, 05 Oct 2023 07:49:01 GMT
      server:
      - nginx
      set-cookie:
      - 9e95c922595c91f6fd6e3f88ecd31058=af9045857b546686a55bedf0fc71c236; path=/;
        HttpOnly; Secure; SameSite=None
      strict-transport-security:
      - max-age=86400; includeSubDomains
      transfer-encoding:
      - chunked
      x-content-type-options:
      - nosniff
      x-frame-options:
      - SAMEORIGIN
      x-ratelimit-limit:
      - '900'
      x-ratelimit-remaining:
      - '899'
      x-request-id:
      - fc3bcb68-9cbc-4615-8833-f2eedb391909
      x-xss-protection:
      - 1; mode=block
    status:
      code: 200
      message: OK
- request:
    body: null
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate
      Connection:
      - keep-alive
      Content-Length:
      - '0'
      Content-Type:
      - application/pdf
      User-Agent:
      - python-requests/2.28.1
    method: PUT
    uri: https://pingen2-staging-transfer.objects.rma.cloudscale.ch/640b2883-c576-4a35-87f9-1abf2801461f_2023-10-05_10%3A09%3A01?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=Z3YMWIXX6Y1G0KHUQDZ7%2F20231005%2Fregion1%2Fs3%2Faws4_request&X-Amz-Date=20231005T074901Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=fe7fce59939b3bd73b03124ecc3fba6abb3312690c0c54674bc95e1fb8b2bd1f
  response:
    body:
      string: ''
    headers:
      Accept-Ranges:
      - bytes
      Content-Length:
      - '0'
      Date:
      - Thu, 05 Oct 2023 07:49:01 GMT
      ETag:
      - '"d41d8cd98f00b204e9800998ecf8427e"'
      Strict-Transport-Security:
      - max-age=31536000; includeSubDomains
      x-amz-request-id:
      - tx000000fdc64c3dd45be93-00651e6a6d-62438a6ca-rma1
    status:
      code: 200
      message: OK
- request:
    body: '{"data": {"type": "letters", "attributes": {"file_original_name": "in_invoice_yourcompany_demo.pdf",
      "file_url": "https://pingen2-staging-transfer.objects.rma.cloudscale.ch/640b2883-c576-4a35-87f9-1abf2801461f_2023-10-05_10%3A09%3A01?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=Z3YMWIXX6Y1G0KHUQDZ7%2F20231005%2Fregion1%2Fs3%2Faws4_request&X-Amz-Date=20231005T074901Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=fe7fce59939b3bd73b03124ecc3fba6abb3312690c0c54674bc95e1fb8b2bd1f",
      "file_url_signature": "a29e61a0f8f9a11fc76e90ede9a5d7e6", "address_position":
      "left", "auto_send": true, "delivery_product": "cheap", "print_spectrum": "grayscale",
      "print_mode": "simplex"}}}'
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate
      Authorization:
      - Bearer eyJ0eXA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XzcOYwsOw-oLWl19nek1sLpyJbCJqLOltBCsUjIbjDeDt9_8qYmSKZRA6FWateIuPLXJnzst4_-hkelcj_MKDeTEEPI5qEX9W4PQDRHfTPhsqaxrw8EtYuiRfxNOkM1TJ3-_96ZrfT9CeDH-tUAdwFyg93pvevV5zsWiWxgOMmJoZldGcazj0fN2BYCS7WZEOhYskYdXhTwLQCG1ycuIxxmI5lwGXFGBr13OTUP1qEOhA-Y
      Connection:
      - keep-alive
      Content-Length:
      - '730'
      Content-Type:
      - application/vnd.api+json
      Cookie:
      - 9e95c922595c91f6fd6e3f88ecd31058=af9045857b546686a55bedf0fc71c236
      User-Agent:
      - python-requests/2.28.1
    method: POST
    uri: https://api-staging.pingen.com/organisations/4c08c24e-65f8-47cf-b280-518ee76e3437/letters
  response:
    body:
      string: '{"data":{"type":"letters","id":"aa99abf2-8fb5-4f8d-9f06-f84fe6b752cf","attributes":{"status":"validating","file_original_name":"in_invoice_yourcompany_demo.pdf","file_pages":null,"address":null,"address_position":"left","country":null,"delivery_product":"cheap","print_mode":"simplex","print_spectrum":"grayscale","price_currency":null,"price_value":null,"paper_types":null,"fonts":null,"source":"api","tracking_number":null,"submitted_at":null,"created_at":"2023-10-05T09:49:02+0200","updated_at":"2023-10-05T09:49:02+0200"},"relationships":{"organisation":{"links":{"related":"https:\/\/api-staging.v2.pingen.com\/organisations\/4c08c24e-65f8-47cf-b280-518ee76e3437"},"data":{"type":"organisations","id":"4c08c24e-65f8-47cf-b280-518ee76e3437"}},"events":{"links":{"related":{"href":"https:\/\/api-staging.v2.pingen.com\/organisations\/4c08c24e-65f8-47cf-b280-518ee76e3437\/letters\/aa99abf2-8fb5-4f8d-9f06-f84fe6b752cf\/events","meta":{"count":1}}}},"batch":{"data":null}},"links":{"self":"https:\/\/api-staging.v2.pingen.com\/organisations\/4c08c24e-65f8-47cf-b280-518ee76e3437\/letters\/aa99abf2-8fb5-4f8d-9f06-f84fe6b752cf"},"meta":{"abilities":{"self":{"cancel":"state","delete":"state","submit":"state","send-simplex":"ok","edit":"state","get-pdf-raw":"state","get-pdf-validation":"state","change-paper-type":"state","change-window-position":"state","create-coverpage":"state","add-attachment":"state","fix-overwrite-restricted-areas":"state","fix-coverpage":"state","fix-country":"state","fix-regular-paper":"state","fix-address":"state"}}}}}'
    headers:
      access-control-allow-origin:
      - '*'
      access-control-expose-headers:
      - X-Request-Id, X-Redirect-Location
      cache-control:
      - no-cache, private
      content-type:
      - application/vnd.api+json
      date:
      - Thu, 05 Oct 2023 07:49:02 GMT
      server:
      - nginx
      strict-transport-security:
      - max-age=86400; includeSubDomains
      transfer-encoding:
      - chunked
      x-content-type-options:
      - nosniff
      x-frame-options:
      - SAMEORIGIN
      x-ratelimit-limit:
      - '900'
      x-ratelimit-remaining:
      - '898'
      x-request-id:
      - 41992d11-0b17-47b3-b1d1-c8695d22a2ef
      x-xss-protection:
      - 1; mode=block
    status:
      code: 201
      message: Created
- request:
    body: grant_type=client_credentials
    headers:
      Accept:
      - application/json
      Accept-Encoding:
      - gzip, deflate
      Authorization:
      - Basic RkZDU0NPNFFPRzJPVk4zRlU2RUQ6MXoyTk0zVlV4bVdpZ3Y0N1RGYktrV2xtR3N4SFFQTlRxeGRzZlJTTHVPWFJEMmFpZGpaVFJxYVBIcEc4amZKeC9tK21JaVFiRk1BQTBEVXg=
      Connection:
      - keep-alive
      Content-Length:
      - '29'
      Content-Type:
      - application/x-www-form-urlencoded;charset=UTF-8
      User-Agent:
      - python-requests/2.28.1
    method: POST
    uri: https://identity-staging.pingen.com/auth/access-tokens
  response:
    body:
      string: '{"token_type":"Bearer","expires_in":43200,"access_token":"eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJGRkNTQ080UU9HMk9WTjNGVTZFRCIsImp0aSI6IjA4MWVlMTZmY2U1YzlhZjcyNzc1MWJmMjA4M2JkM2Y5MWY5MmQ0NDVlOWMzNjUwM2U2YWUxODYxOWU0Yzg3Zjc3YTJhOTY5NDMwY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0wgk_ilvaudND6r_oMPzWiTVL4of5a_jLvBiiFDs5ZFNYvFbmQpWmGo5swXg7Aur5M8"}'
    headers:
      access-control-allow-origin:
      - '*'
      access-control-expose-headers:
      - X-Request-Id, X-Redirect-Location
      cache-control:
      - no-store, private
      content-type:
      - application/json
      date:
      - Thu, 05 Oct 2023 07:52:06 GMT
      pragma:
      - no-cache
      server:
      - nginx
      set-cookie:
      - fb7eb3c0fd7448a4f8905cb9504f3ebb=af9045857b546686a55bedf0fc71c236; path=/;
        HttpOnly; Secure; SameSite=None
      strict-transport-security:
      - max-age=86400; includeSubDomains
      transfer-encoding:
      - chunked
      x-content-type-options:
      - nosniff
      x-frame-options:
      - SAMEORIGIN
      x-ratelimit-limit:
      - '900'
      x-ratelimit-remaining:
      - '899'
      x-request-id:
      - e87ea252-7a6d-43e8-9540-9372c769265b
      x-xss-protection:
      - 1; mode=block
    status:
      code: 200
      message: OK
- request:
    body: null
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate
      Authorization:
      - Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJGRkNTQ080UU9HMk9WTjNGVTZFRCIsImp0aSI6IjA4MWVlMTZmY2U1YzlhZjcyNzc1MWJmMjA4M2JkM2Y5MWY5MmQ0NDVlOWMzNjUwM2U2YWUxODYxOWU0Yzg3Zjc3YTJhOTY5NDMwYWFiMTA2IiwiaWF0IjoxNjk2NDkyMzI2LjM3ODY0MywibmJmIjoxNjk2NDkyMzI2LjM3ODY0NCwiZXhwIjoxNjk2NTM1NTI2LCJzdWIiOiJleUpwZGlJNklsVnNiSFZuWTFOVFVVTkljSEZOV0hwck1TdFdjR2M5UFNJc0luWmhiSFZsSWpvaVMyeEtUMUZPT1VKTWVEbDBTR1UyWm1RM2VEaHNRVDA5SWl3aWJXRmpJam9pTm1FelpUbGhNRFU0WXpJd016VmlZelEwWXpFNE9HVXlNelkwTm1Zek5HRTBNekZoWXpCaFpqTTBOelk0WkdZNU4yVXlaR1ZsTldRM1lUVTVOVFF6WVNJc0luUmhaeUk2SWlKOSIsInNjb3BlcyI6WyJsZXR0ZXIiLCJvcmdhbmlzYXRpb25fcmVhZCIsIndlYmhvb2siLCJiYXRjaCJdfQ.YF-MNUMiobEim76PDSxTYrLyTbjjaTKDP13010NpwrpM7UWf8jD7_tZALiR7WFSagPf_BqbhsZYJc8FRlH3XnDHmmdBc6QzwEbiV5oT7vvzBiv5vilzVKY-FuGSxJ3lHJfkcbCXNNmanllvkBwP4gTD6SQ1JJcLhZHDV-8fRBJojiHmS1cbHGaJ21LwT1o3nYXzAmWH2gGbLq_X3a0x6tk1IKR1FSPIb6BAKW5A43H9pw4v5-ZIOzjy5KTwqwF8-03eLcQkUEOoUN3FSmQI2bB_25DzXZLT-sjByTqBntquZ1Q08sbd8RQCjI6_CxxA5E-zwe2NYj25vUzwCI-_KQGwSq-_VUD26m1w61mVtAQBl74p6ey5w8EfN8TVfAT4roDU2PpT7FyRxIBQ25uG1shQZkWKqoOdRc7gbYHvnLj__LFeRWgupH6bZjJ3zbuTMygsmepjzGvKDaFUGMTKxiPSPqs6F7ksxsIw2iAL3Epi7I0bk5VEvoN9L628GQnMVRri859k9AVpfTjB8DNpxLP6PRhA2Fm9MdAHoEfjGOHjBHf53d-dWl9ZpKFUpRxXlyqaiRpsLosRgHyGwwfwfY3VQNHtaVew2k7cPf-Zi0wgk_ilvaudND6r_oMPzWiTVL4of5a_jLvBiiFDs5ZFNYvFbmQpWmGo5swXg7Aur5M8
      Connection:
      - keep-alive
      User-Agent:
      - python-requests/2.28.1
    method: GET
    uri: https://api-staging.pingen.com/file-upload
  response:
    body:
      string: '{"data":{"type":"file_uploads","id":"a52b11df-21cd-471c-9c4d-9e4022a78458","attributes":{"url":"https:\/\/pingen2-staging-transfer.objects.rma.cloudscale.ch\/a52b11df-21cd-471c-9c4d-9e4022a78458_2023-10-05_10%3A12%3A07?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=Z3YMWIXX6Y1G0KHUQDZ7%2F20231005%2Fregion1%2Fs3%2Faws4_request&X-Amz-Date=20231005T075207Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=b6194ba3b382f4de472123c9a7a16aa96be42df54e504a7137d26117bf9332d9","url_signature":"99ab75a425865c7f563dbd6880bdc453","expires_at":"2023-10-05T10:12:07+0200"}}}'
    headers:
      access-control-allow-origin:
      - '*'
      access-control-expose-headers:
      - X-Request-Id, X-Redirect-Location
      cache-control:
      - no-cache, private
      content-type:
      - application/vnd.api+json
      date:
      - Thu, 05 Oct 2023 07:52:07 GMT
      server:
      - nginx
      set-cookie:
      - 9e95c922595c91f6fd6e3f88ecd31058=ba0f79c6de12140eb5d2094b68953974; path=/;
        HttpOnly; Secure; SameSite=None
      strict-transport-security:
      - max-age=86400; includeSubDomains
      transfer-encoding:
      - chunked
      x-content-type-options:
      - nosniff
      x-frame-options:
      - SAMEORIGIN
      x-ratelimit-limit:
      - '900'
      x-ratelimit-remaining:
      - '899'
      x-request-id:
      - e928916a-d0f3-45ff-9320-3a297eef97cf
      x-xss-protection:
      - 1; mode=block
    status:
      code: 200
      message: OK
- request:
    body: null
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate
      Connection:
      - keep-alive
      Content-Length:
      - '0'
      Content-Type:
      - application/pdf
      User-Agent:
      - python-requests/2.28.1
    method: PUT
    uri: https://pingen2-staging-transfer.objects.rma.cloudscale.ch/a52b11df-21cd-471c-9c4d-9e4022a78458_2023-10-05_10%3A12%3A07?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=Z3YMWIXX6Y1G0KHUQDZ7%2F20231005%2Fregion1%2Fs3%2Faws4_request&X-Amz-Date=20231005T075207Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=b6194ba3b382f4de472123c9a7a16aa96be42df54e504a7137d26117bf9332d9
  response:
    body:
      string: ''
    headers:
      Accept-Ranges:
      - bytes
      Content-Length:
      - '0'
      Date:
      - Thu, 05 Oct 2023 07:52:08 GMT
      ETag:
      - '"d41d8cd98f00b204e9800998ecf8427e"'
      Strict-Transport-Security:
      - max-age=31536000; includeSubDomains
      x-amz-request-id:
      - tx00000ea3646c679ebcb41-00651e6b28-65a723d5d-rma1
    status:
      code: 200
      message: OK
- request:
    body: '{"data": {"type": "letters", "attributes": {"file_original_name": "in_invoice_yourcompany_demo.pdf",
      "file_url": "https://pingen2-staging-transfer.objects.rma.cloudscale.ch/a52b11df-21cd-471c-9c4d-9e4022a78458_2023-10-05_10%3A12%3A07?X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=Z3YMWIXX6Y1G0KHUQDZ7%2F20231005%2Fregion1%2Fs3%2Faws4_request&X-Amz-Date=20231005T075207Z&X-Amz-SignedHeaders=host&X-Amz-Expires=1200&X-Amz-Signature=b6194ba3b382f4de472123c9a7a16aa96be42df54e504a7137d26117bf9332d9",
      "file_url_signature": "99ab75a425865c7f563dbd6880bdc453", "address_position":
      "left", "auto_send": true, "delivery_product": "cheap", "print_spectrum": "grayscale",
      "print_mode": "simplex"}}}'
    headers:
      Accept:
      - '*/*'
      Accept-Encoding:
      - gzip, deflate
      Authorization:
      - Bearer eyJ0eXAiOiJKV1QiLCJhbGciOiJSUzI1NiJ9.eyJhdWQiOiJGRkNTQ080UU9HMk9WTjNGVTZFRCIsImp0aSI6IjA4MWVlMTZmY2U1YzlhZjcyNzc1MWJmMjA4M2JkM2Y5MWY5MmQ0NDVlOWMzNjUwM2U2YWUxODYxOWU0Yzg3Zjc3YTJhOTY5NDMwYWFiMTA2IiwiaWF0IjoxNjk2NDkyMzI2LjM3ODY0MywibmJmIjoxNjk2NDkyMzI2LjM3ODY0NCwiZXhwIjoxNjk2NTM1NTI2LCJzdWIiOiJleUpwZGlJNklsVnNiSFZuWTFOVFVVTkljSEZOV0hwck1TdFdjR2M5UFNJc0luWmhiSFZsSWpvaVMyeEtUMUZPT1VKTWVEbDBTR1UyWm1RM2VEaHNRVDA5SWl3aWJXRmpJam9pTm1FelpUbGhNRFU0WXpJd016VmlZelEwWXpFNE9HVXlNelkwTm1Zek5HRTBNekZoWXpCaFpqTTBOelk0WkdZNU4yVXlaR1ZsTldRM1lUVTVOVFF6WVNJc0luUmhaeUk2SWlKOSIsInNjb3BlcyI6WyJsZXR0ZXIiLCJvcmdhbmlzYXRpb25fcmVhZCIsIndlYmhvb2siLCJiYXRjaCJdfQ.YF-MNUMiobEim76PDSxTYrLyTbjjaTKDP13010NpwrpM7UWf8jD7_tZALiR7WFSagPf_BqbhsZYJc8FRlH3XnDHmmdBc6QzwEbiV5oT7vvzBiv5vilzVKY-FuGSxJ3lHJfkcbCXNNmanllvkBwP4gTD6SQ1JJcLhZHDV-8fRBJojiHmS1cbHGaJ21LwT1o3nYXzAmWH2gGbLq_X3a0x6tk1IKR1FSPIb6BAKW5A43H9pw4v5-ZIOzjy5KTwqwF8-03eLcQkUEOoUN3FSmQI2bB_25DzXZLT-sjByTqBntquZ1Q08sbd8RQCjI6_CxxA5E-zwe2NYj25vUzwCI-_KQGwSq-_VUD26m1w61mVtAQBl74p6ey5w8EfN8TVfAT4roDU2PpT7FyRxIBQ25uG1shQZkWKqoOdRc7gbYHvnLj__LFeRWgupH6bZjJ3zbuTMygsmepjzGvKDaFUGMTKxiPSPqs6F7ksxsIw2iAL3Epi7I0bk5VEvoN9L628GQnMVRri859k9AVpfTjB8DNpxLP6PRhA2Fm9MdAHoEfjGOHjBHf53d-dWl9ZpKFUpRxXlyqaiRpsLosRgHyGwwfwfY3VQNHtaVew2k7cPf-Zi0wgk_ilvaudND6r_oMPzWiTVL4of5a_jLvBiiFDs5ZFNYvFbmQpWmGo5swXg7Aur5M8
      Connection:
      - keep-alive
      Content-Length:
      - '730'
      Content-Type:
      - application/vnd.api+json
      Cookie:
      - 9e95c922595c91f6fd6e3f88ecd31058=ba0f79c6de12140eb5d2094b68953974
      User-Agent:
      - python-requests/2.28.1
    method: POST
    uri: https://api-staging.pingen.com/organisations/4c08c24e-65f8-47cf-b280-518ee76e3437/letters
  response:
    body:
      string: '{"data":{"type":"letters","id":"2f826b9d-7325-4494-887a-77652817a2bd","attributes":{"status":"validating","file_original_name":"in_invoice_yourcompany_demo.pdf","file_pages":null,"address":null,"address_position":"left","country":null,"delivery_product":"cheap","print_mode":"simplex","print_spectrum":"grayscale","price_currency":null,"price_value":null,"paper_types":null,"fonts":null,"source":"api","tracking_number":null,"submitted_at":null,"created_at":"2023-10-05T09:52:09+0200","updated_at":"2023-10-05T09:52:09+0200"},"relationships":{"organisation":{"links":{"related":"https:\/\/api-staging.v2.pingen.com\/organisations\/4c08c24e-65f8-47cf-b280-518ee76e3437"},"data":{"type":"organisations","id":"4c08c24e-65f8-47cf-b280-518ee76e3437"}},"events":{"links":{"related":{"href":"https:\/\/api-staging.v2.pingen.com\/organisations\/4c08c24e-65f8-47cf-b280-518ee76e3437\/letters\/2f826b9d-7325-4494-887a-77652817a2bd\/events","meta":{"count":1}}}},"batch":{"data":null}},"links":{"self":"https:\/\/api-staging.v2.pingen.com\/organisations\/4c08c24e-65f8-47cf-b280-518ee76e3437\/letters\/2f826b9d-7325-4494-887a-77652817a2bd"},"meta":{"abilities":{"self":{"cancel":"state","delete":"state","submit":"state","send-simplex":"ok","edit":"state","get-pdf-raw":"state","get-pdf-validation":"state","change-paper-type":"state","change-window-position":"state","create-coverpage":"state","add-attachment":"state","fix-overwrite-restricted-areas":"state","fix-coverpage":"state","fix-country":"state","fix-regular-paper":"state","fix-address":"state"}}}}}'
    headers:
      access-control-allow-origin:
      - '*'
      access-control-expose-headers:
      - X-Request-Id, X-Redirect-Location
      cache-control:
      - no-cache, private
      content-type:
      - application/vnd.api+json
      date:
      - Thu, 05 Oct 2023 07:52:09 GMT
      server:
      - nginx
      strict-transport-security:
      - max-age=86400; includeSubDomains
      transfer-encoding:
      - chunked
      x-content-type-options:
      - nosniff
      x-frame-options:
      - SAMEORIGIN
      x-ratelimit-limit:
      - '900'
      x-ratelimit-remaining:
      - '898'
      x-request-id:
      - 8600aeff-7209-4cce-a480-0a29c8b628a2
      x-xss-protection:
      - 1; mode=block
    status:
      code: 201
      message: Created
version: 1
