all-about-apikey/square
Muhammad Daffa 7372a52709 Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00
..
README.md Fix repository structure and add todolist 2022-07-23 20:53:29 +07:00

README.md

Square

Description

Easy way to take payments, manage refunds, and help customers checkout online

Example Request

  • Curl
curl https://connect.squareupsandbox.com/v2/payments -H "Authorization: Bearer {{token}}"
  • Raw
GET /v2/payments HTTP/1.1
Authorization: Bearer {{token}}
Host: connect.squareupsandbox.com

Response

  • Success
{}
  • Error
{
    "errors": [
        {
            "code": "UNAUTHORIZED",
            "detail": "The `Authorization` http header of your request was incorrect or expired. The header value is expected to be of the format \"Bearer TOKEN\" (without quotation marks), where TOKEN is a valid access token (e.g. \"Bearer ABC123def456GHI789jkl0\"). For more information, see https://developer.squareup.com/docs/build-basics/using-rest-api#__set-the-headers__ .",
            "category": "AUTHENTICATION_ERROR"
        }
    ]
}

Regex

EAAAE[a-zA-Z0-9_-]{59}

Example API key

EAAAEKR1-pYM45dOv-uDpcJO06g5kGjwqlaT3YK3vxY5xNr66gJxdiG2pzW5lEm-
EAAAEEW9SGAolaA3gTPc30nZSoyssNPJjn3oiKsKQR_JUxix93yi0rW6RfxUqkFG