---
title: "PayByLink QR Code"
method: POST
path: "/v1.02/paybylink/qrcode"
---

# PayByLink QR Code

`POST /v1.02/paybylink/qrcode`

## Request

- Base URL: `https://sandbox.eupago.pt/api/auth`
- URL: `https://sandbox.eupago.pt/api/auth/v1.02/paybylink/qrcode`
- Auth: none required
- TypeScript: <https://skmtc.dev/eupago/apis/intro-and-oauth/docs/v1.02/paybylink/qrcode/post.ts> (a function with typed inputs; its response is checked against the schema)

Creates a request to allow the customer to pay using PayByLink.

## Request body

- object
  - `payment` object, required: Informations regarding the payment
    - `identifier` string
    - `amount` object
      - `value` number, float, required: Payment amount
      - `currency` string, required
    - `shipping` object
      - `value` number, float, required: Shipping amount
      - `currency` string
    - `lang` string: Defines the Language of the email notifications.
    - `expirationDate` string, date: Defines the date when the link will expire (Default value is 24 hours after the link creation)
    - `successUrl` string: The payer will be forwarded to this url if the payment process is successful.
    - `failUrl` string: The payer will be forwarded to this url if the payment process fails.
    - `backUrl` string: The payer will be forwarded to this url if the user presses back.
  - `products` object[]: All products in the order. This param may include different objects (products).
    - `sku` string: Product code (Required to pay with Cofidis Pay)
    - `name` string: Product name
    - `value` number, float, required: Product price
    - `quantity` integer: Number of times this product is ordered (Required to pay with Cofidis Pay)
    - `tax` number, float: Tax percentage (Required to pay with Cofidis Pay)
    - `discount` number, float: (Required to pay with Cofidis Pay)
    - `description` string: Text describing the product (Required to pay with Cofidis Pay)
  - `customer` object: Informations regarding customer's notifications
    - `notify` boolean
    - `email` string: Customer's email
    - `nome` string: Customer's name

## Response `200`

200

## Other responses

- `401`: 401

---

[API](https://skmtc.dev/eupago/apis/intro-and-oauth.md) - [All operations](https://skmtc.dev/eupago/apis/intro-and-oauth/llms.txt) - [OpenAPI document](https://skmtc.dev/eupago/apis/intro-and-oauth/revisions/778475fa98e9?raw)
