Skip to the content.

square post

Make POST requests to the Square API.

Synopsis

Make POST requests to the Square API.

For a full list of supported paths, see the API reference: https://developer.squareup.com/reference/square

Update a customer: $ square post /v2/customers -d ‘{“given_name”: “Jack”, “family_name”: “Dorsey”}’

square post [flags]

Options

  -c, --confirm              Automatically confirm the command being entered. WARNING: This will result in NOT being prompted for confirmation for certain commands
  -d, --data stringArray     JSON data to pass in API request body
  -h, --help                 help for post
  -i, --idempotency string   Sets the idempotency key for your request, preventing replaying the same requests within a 24 hour period
  -s, --show-headers         Show headers on responses to GET, POST, and DELETE requests

Options inherited from parent commands

      --access-token string   The access token to use for authentication
      --config string         config file (default is $HOME/.config/square/config.toml)
      --log-level string      log level (debug, info, warn, error) (default "info")
      --profile string        the profile name to read from for config (default "default")

SEE ALSO

Auto generated by spf13/cobra on 13-Sep-2020