Retrieving the PDF signature file

algulsientoalgulsiento Member Posts: 8

How do I download the PDF signature file? I noted there are URIs of the following type:

s3n://signature.lightspeedcloud/<ACCOUNT_ID>_account/<SALE_ID>_salepaymentSignature_<HASH>_signature.pdf

But these are not directly downloadable from the S3 bucket. Is this something that I need to have bound to an AWS account?

6 comments

  • Adrian SamuelAdrian Samuel Moderator, Lightspeed Staff Posts: 654 moderator

    Hey @algulsiento,

    Please screenshot the file you're speaking of. As a guess, AWS resources are not designed to be accessed by the user and is simply meant to be held as part of the application.

    Kind Regards,

    Adrian Samuel

    Software Developer

    Lightspeed HQ

  • algulsientoalgulsiento Member Posts: 8

    Not sure how I can screenshot a file that I can't seem to retrieve. The file is part of the Sale record located at Sale.SalePayments.Signatures.SalePaymentSignature.filePath

  • Adrian SamuelAdrian Samuel Moderator, Lightspeed Staff Posts: 654 moderator

    If you could take a screenshot of what you're looking at @algulsiento, I could best confirm. A JSON screenshot would be fine too

    I assume this a part of a payload for integrated payment processors?

    Adrian Samuel

    Software Developer

    Lightspeed HQ

  • algulsientoalgulsiento Member Posts: 8
    edited September 2019

    I am writing a script that downloads the data using the API. Here's a snippet of the data it returns:

    curl -X GET -H 'Authorization: Bearer <ACCESS_TOKEN>' "https://api.lightspeedapp.com/API/Account/152184/Sale.json?load_relations=all"

    Which results in the following:

      "SalePayments": {

        "SalePayment": {

         "salePaymentID": "<REDACTED>",

         "amount": "952.44",

         "createTime": "2019-08-31T22:03:04+00:00",

         "archived": "false",

         "remoteReference": "",

         "paymentID": "",

         "saleID": "<REDACTED>",

         "paymentTypeID": "3",

         "ccChargeID": "<REDACTED>",

         "refPaymentID": "0",

         "registerID": "6",

         "employeeID": "53",

         "creditAccountID": "0",

         "PaymentType": {

          "paymentTypeID": "3",

          "code": "Credit Card",

          "name": "Credit Card",

          "requireCustomer": "true",

          "archived": "false",

          "internalReserved": "false",

          "type": "credit card",

          "channel": "",

          "refundAsPaymentTypeID": "0"

         },

         "CCCharge": {

          "ccChargeID": "<REDACTED>",

          "gatewayTransID": "<REDACTED>",

          "xnum": "<REDACTED>",

          "voided": "false",

          "refunded": "0",

          "amount": "952.44",

          "exp": "<REDACTED>",

          "authOnly": "false",

          "authCode": "<REDACTED>",

          "cardType": "MASTERCARD",

          "entryMethod": "SWIPE",

          "cardholderName": "",

          "isDebit": "false",

          "timeStamp": "2019-08-31T22:03:04+00:00",

          "declined": "false",

          "rawResponse": "<REDACTED>",

          "rawVoidResponse": {

           "@attributes": {

            "readonly": "true"

           }

          },

          "saleID": "<REDACTED>",

          "gatewayConfigID": "<REDACTED>"

         },

         "Signatures": {

          "SalePaymentSignature": {

           "salePaymentSignatureID": "<REDACTED>",

           "filePath": "s3n://signature.lightspeedcloud/<REDACTED>_account/<REDACTED>_salepaymentSignature_<REDACTED>_signature.pdf",

           "createTime": "2019-08-31T22:03:04+00:00",

           "salePaymentID": "<REDACTED>"

          }

         }

        }

       },

  • algulsientoalgulsiento Member Posts: 8

    @Adrian Samuel is that enough? What else do you need to see?

  • Adrian SamuelAdrian Samuel Moderator, Lightspeed Staff Posts: 654 moderator

    Hey @algulsiento,

    This information is served in the response because it's the same API used by the application but this is not designed to be consumed and access by an API user.

    Adrian Samuel

    Software Developer

    Lightspeed HQ

Sign In or Register to comment.