Skip to main content
POST
Generate QR code

Authorizations

Authorization
string
header
required

Oauth 2.0 authentication

Path Parameters

invoice_id
string
required

The ID of the draft invoice to delete.

Maximum string length: 2147483647
Pattern: ^.*$

Body

application/json

Optional configuration parameters to adjust QR code width, height and the encoded URL.

The configuration for a QR code.

width
integer
default:500

The width, in pixels, of the QR code image. Value is from 150 to 500.

Required range: 150 <= x <= 500
height
integer
default:500

The height, in pixels, of the QR code image. Value is from 150 to 500.

Required range: 150 <= x <= 500
action
string
default:pay

The type of URL for which to generate a QR code. Valid values are pay and details.

Maximum string length: 7
Pattern: ^(pay|details)$

Response

A successful request returns the HTTP 200 OK status code and a JSON response body that shows the QR code as a PNG image.