Skip to main content
POST
/
api
/
v1
/
qr
Create Qr
curl --request POST \
  --url https://api.example.com/api/v1/qr \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "<string>",
  "pump_id": 123
}
'
{
  "id": 123,
  "url": "<string>",
  "pump_id": 123,
  "created_at": "2023-11-07T05:31:56Z",
  "updated_at": "2023-11-07T05:31:56Z"
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Schema for creating/updating QR code.

url
string
required
pump_id
integer
required

Response

Successful Response

Schema for QR code response.

id
integer
required
url
string
required
pump_id
integer
required
created_at
string<date-time>
required
updated_at
string<date-time> | null