question

superdave avatar image
superdave asked

How to identify which guest(s) are for the refund transaction?

{
  "href": "https://sandbox.dev.clover.com/v3/merchants/AHNZRAJD3BMD1/orders/B46XG3FTC7VYJ?", 
  "id": "B46XG3FTC7VYJ", 
  "currency": "CAD", 
  "employee": {
    "id": "7D08XDK35VG9P"
  }, 
  "total": 22946, 
  "paymentState": "PARTIALLY_REFUNDED", 
  "title": "103 - Main Dining Room", 
  "taxRemoved": false, 
  "isVat": false, 
  "state": "locked", 
  "manualTransaction": false, 
  "groupLineItems": true, 
  "testMode": false, 
  "payType": "SPLIT_GUEST", 
  "createdTime": 1653263483000, 
  "clientCreatedTime": 1653263483000, 
  "modifiedTime": 1653264144000, 
  "lineItems": {
    "elements": [ {
        "id": "ASZZ6CK64C5R4", 
        "orderRef": {
          "id": "B46XG3FTC7VYJ"
        }, 
        "item": {
          "id": "H2HQFTR8ESRPG"
        }, 
        "name": "Freddy Funko", 
        "alternateName": "", 
        "price": 4999, 
        "itemCode": "100021", 
        "printed": false, 
        "binName": "Guest 1", 
        "createdTime": 1653263497000, 
        "orderClientCreatedTime": 1653263483000, 
        "exchanged": false, 
        "refunded": false, 
        "isRevenue": true
      }, {
        "id": "JNNTYSQKSZBDE", 
        "orderRef": {
          "id": "B46XG3FTC7VYJ"
        }, 
        "item": {
          "id": "C42VQ2651E4P4"
        }, 
        "name": "Lego Ninja", 
        "price": 1999, 
        "printed": false, 
        "binName": "Guest 2", 
        "createdTime": 1653263498000, 
        "orderClientCreatedTime": 1653263483000, 
        "exchanged": false, 
        "refunded": false, 
        "isRevenue": true
      }, {
        "id": "Z4TQRHPDETDYG", 
        "orderRef": {
          "id": "B46XG3FTC7VYJ"
        }, 
        "item": {
          "id": "8ZQ7WWDA4WFDC"
        }, 
        "name": "Tony The Toger", 
        "alternateName": "", 
        "price": 6999, 
        "itemCode": "889698446013", 
        "printed": false, 
        "binName": "Guest 3", 
        "createdTime": 1653263501000, 
        "orderClientCreatedTime": 1653263483000, 
        "exchanged": false, 
        "refunded": false, 
        "isRevenue": true
      }, {
        "id": "88S56SSHCHZ0J", 
        "orderRef": {
          "id": "B46XG3FTC7VYJ"
        }, 
        "item": {
          "id": "KE75S4A8SMH7Y"
        }, 
        "colorCode": "#AE9009", 
        "name": "sandwich ", 
        "price": 5999, 
        "printed": false, 
        "binName": "Guest 4", 
        "createdTime": 1653263503000, 
        "orderClientCreatedTime": 1653263483000, 
        "exchanged": false, 
        "refunded": false, 
        "isRevenue": true
      }
    ]
  }, 
  "payments": {
    "elements": [ {
        "id": "DQ489YJJY3V5J", 
        "order": {
          "id": "B46XG3FTC7VYJ"
        }, 
        "device": {
          "id": "ced52e1e-8ef3-4078-8cb9-df9c2a5221ac"
        }, 
        "tender": {
          "href": "https://sandbox.dev.clover.com/v3/merchants/AHNZRAJD3BMD1/tenders/XJSNVFJPV3CBY?", 
          "id": "XJSNVFJPV3CBY"
        }, 
        "amount": 12620, 
        "taxAmount": 1622, 
        "cashTendered": 12620, 
        "employee": {
          "id": "7D08XDK35VG9P"
        }, 
        "createdTime": 1653263595000, 
        "clientCreatedTime": 1653263594000, 
        "modifiedTime": 1653263594000, 
        "result": "SUCCESS"
      }, {
        "id": "01DKZE8P3EMYC", 
        "order": {
          "id": "B46XG3FTC7VYJ"
        }, 
        "device": {
          "id": "ced52e1e-8ef3-4078-8cb9-df9c2a5221ac"
        }, 
        "tender": {
          "href": "https://sandbox.dev.clover.com/v3/merchants/AHNZRAJD3BMD1/tenders/XJSNVFJPV3CBY?", 
          "id": "XJSNVFJPV3CBY"
        }, 
        "amount": 10326, 
        "taxAmount": 1328, 
        "cashTendered": 10326, 
        "employee": {
          "id": "7D08XDK35VG9P"
        }, 
        "createdTime": 1653263604000, 
        "clientCreatedTime": 1653263603000, 
        "modifiedTime": 1653263603000, 
        "result": "SUCCESS"
      }
    ]
  }, 
  "refunds": {
    "elements": [ {
        "id": "46Z51QWBGDP28", 
        "orderRef": {
          "href": "https://sandbox.dev.clover.com/v3/merchants/AHNZRAJD3BMD1/orders/B46XG3FTC7VYJ?", 
          "id": "B46XG3FTC7VYJ", 
          "currency": "CAD", 
          "employee": {
            "href": "https://sandbox.dev.clover.com/v3/merchants/AHNZRAJD3BMD1/employees/7D08XDK35VG9P?", 
            "id": "7D08XDK35VG9P", 
            "orders": {
              "href": "https://sandbox.dev.clover.com/v3/merchants/AHNZRAJD3BMD1/employees/7D08XDK35VG9P/orders?"
            }
          }, 
          "total": 22946, 
          "title": "103 - Main Dining Room", 
          "taxRemoved": false, 
          "isVat": false, 
          "state": "locked", 
          "manualTransaction": false, 
          "groupLineItems": true, 
          "testMode": false, 
          "payType": "SPLIT_GUEST", 
          "createdTime": 1653263483000, 
          "clientCreatedTime": 1653263483000, 
          "modifiedTime": 1653264144000, 
          "device": {
            "href": "https://sandbox.dev.clover.com/v3/merchants/AHNZRAJD3BMD1/devices/1340d43f-0d5b-8642-af29-d2f53e287d1b?", 
            "id": "1340d43f-0d5b-8642-af29-d2f53e287d1b"
          }
        }, 
        "device": {
          "id": "1340d43f-0d5b-8642-af29-d2f53e287d1b"
        }, 
        "amount": 10326, 
        "taxAmount": 1328, 
        "tipAmount": 0, 
        "createdTime": 1653264144000, 
        "clientCreatedTime": 1653264144000, 
        "payment": {
          "id": "01DKZE8P3EMYC", 
          "order": {
            "id": "B46XG3FTC7VYJ"
          }, 
          "device": {
            "href": "https://sandbox.dev.clover.com/v3/merchants/AHNZRAJD3BMD1/devices/ced52e1e-8ef3-4078-8cb9-df9c2a5221ac?", 
            "id": "ced52e1e-8ef3-4078-8cb9-df9c2a5221ac"
          }, 
          "tender": {
            "href": "https://sandbox.dev.clover.com/v3/merchants/AHNZRAJD3BMD1/tenders/XJSNVFJPV3CBY?", 
            "id": "XJSNVFJPV3CBY"
          }, 
          "amount": 10326, 
          "tipAmount": 0, 
          "taxAmount": 1328, 
          "cashbackAmount": 0, 
          "cashTendered": 10326, 
          "employee": {
            "href": "https://sandbox.dev.clover.com/v3/merchants/AHNZRAJD3BMD1/employees/7D08XDK35VG9P?", 
            "id": "7D08XDK35VG9P", 
            "orders": {
              "href": "https://sandbox.dev.clover.com/v3/merchants/AHNZRAJD3BMD1/employees/7D08XDK35VG9P/orders?"
            }
          }, 
          "createdTime": 1653263604000, 
          "clientCreatedTime": 1653263603000, 
          "modifiedTime": 1653263603000, 
          "offline": false, 
          "result": "SUCCESS"
        }, 
        "employee": {
          "id": "7D08XDK35VG9P"
        }, 
        "voided": false, 
        "status": "SUCCESS", 
        "reason": ""
      }
    ]
  }, 
  "device": {
    "id": "1340d43f-0d5b-8642-af29-d2f53e287d1b"
  }
}

Show null fields

Clover Android SDK
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

0 Answers

·

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Welcome to the
Clover Developer Community