Sandbox Testing Panel - You are not authorized to view this resource

I’m using the Checkout API to create a payment link, and getting a 200 response. But when I click on the returned URL, I get a message saying “Something went wrong. You are not authorized to view this resource.”

Any idea why that would be?

API requests and responses below:

Screen Shot 2022-07-22 at 2.13.22 PM

Request:

{
  "order": {
    "location_id": "L1C1S5NZ06F9R",
    "line_items": [
      {
        "name": "Drip Coffee",
        "quantity": "1",
        "base_price_money": {
          "amount": 300,
          "currency": "USD"
        }
      }
    ],
    "service_charges": [
      {
        "name": "Convenience Fee",
        "amount_money": {
          "amount": 50,
          "currency": "USD"
        },
        "calculation_phase": "SUBTOTAL_PHASE"
      }
    ],
    "fulfillments": [
      {
        "type": "PICKUP",
        "pickup_details": {
          "prep_time_duration": "P1W3D"
        }
      }
    ]
  }
}

Response:

{
  "payment_link": {
    "id": "V372AZHMXYM7SS22",
    "version": 1,
    "order_id": "a2LrCVQBTsdG1xukluwrcKDDXd4F",
    "url": "https://sandbox.square.link/u/hJBYun66",
    "created_at": "2022-07-22T17:54:06Z"
  }
}

:wave: Thanks for all the details. The team is looking into this. :slightly_smiling_face: