PagoPA Carts API

The Carts API from PagoPA — 1 operation(s) for carts.

GitHub OpenAPI

Operations 1

POST /carts PostCarts #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/pagopa:pagopa-carts-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

pagopa-carts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Checkout - EC Carts API
  description: Checkout API for EC
  termsOfService: https://www.pagopa.gov.it/
  version: 1.0.0
servers:
- url: https://api.platform.pagopa.it/checkout/ec/v1
security:
- apiKeyHeader: []
- apiKeyQuery: []
tags:
- name: Carts
paths:
  /carts:
    post:
      summary: PostCarts
      description: create a cart
      operationId: PostCarts
      requestBody:
        description: New Cart related to payment requests
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/CartRequest'
            example:
              emailNotice: my_email@mail.it
              paymentNotices:
              - noticeNumber: '302012387654312384'
                fiscalCode: '77777777777'
                amount: 1000
              - noticeNumber: '302012387654312385'
                fiscalCode: '77777777777'
                amount: 2000
              returnUrls:
                returnOkUrl: www.comune.di.prova.it/pagopa/success.html
                returnCancelUrl: www.comune.di.prova.it/pagopa/cancel.html
                returnErrorUrl: www.comune.di.prova.it/pagopa/error.html
              idCart: id_cart
              allCCP: 'false'
      responses:
        '302':
          description: Redirect
          headers:
            location:
              description: CheckOut Url
              schema:
                type: string
                format: uri
        '400':
          description: Formally invalid input
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemJson'
              example:
                type: about:blank
                title: string
                status: 200
                detail: There was an error processing the request
                instance: string
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ProblemJson'
              example:
                type: about:blank
                title: string
                status: 200
                detail: There was an error processing the request
                instance: string
      tags:
      - Carts
components:
  schemas:
    CartRequest:
      required:
      - paymentNotices
      - returnUrls
      type: object
      properties:
        emailNotice:
          type: string
          format: email
          example: my_email@mail.it
        paymentNotices:
          maxItems: 5
          minItems: 1
          type: array
          items:
            $ref: '#/components/schemas/PaymentNotice'
          example:
          - noticeNumber: '302012387654312384'
            fiscalCode: '77777777777'
            amount: 1000
          - noticeNumber: '302012387654312385'
            fiscalCode: '77777777777'
            amount: 2000
        returnUrls:
          required:
          - returnOkUrl
          - returnCancelUrl
          - returnErrorUrl
          type: object
          properties:
            returnOkUrl:
              type: string
              format: uri
              example: www.comune.di.prova.it/pagopa/success.html
            returnCancelUrl:
              type: string
              format: uri
              example: www.comune.di.prova.it/pagopa/cancel.html
            returnErrorUrl:
              type: string
              format: uri
              example: www.comune.di.prova.it/pagopa/error.html
        idCart:
          type: string
          example: id_cart
        allCCP:
          type: boolean
          description: Flag that indicates that all transfers are associated with a postal IBAN
          example: 'false'
    ProblemJson:
      type: object
      properties:
        type:
          type: string
          description: 'An absolute URI that identifies the problem type. When dereferenced,

            it SHOULD provide human-readable documentation for the problem type

            (e.g., using HTML).'
          format: uri
          default: about:blank
          example: https://example.com/problem/constraint-violation
        title:
          type: string
          description: 'A short, summary of the problem type. Written in english and readable

            for engineers (usually not suited for non technical stakeholders and

            not localized); example: Service Unavailable'
        status:
          $ref: '#/components/schemas/HttpStatusCode'
        detail:
          type: string
          description: 'A human readable explanation specific to this occurrence of the

            problem.'
          example: There was an error processing the request
        instance:
          type: string
          description: 'An absolute URI that identifies the specific occurrence of the problem.

            It may or may not yield further information if dereferenced.'
          format: uri
    HttpStatusCode:
      minimum: 100.0
      type: integer
      description: 'The HTTP status code generated by the origin server for this occurrence

        of the problem.'
      format: int32
      example: 200
      exclusiveMaximum: 600.0
    PaymentNotice:
      required:
      - noticeNumber
      - fiscalCode
      - amount
      - companyName
      - description
      type: object
      properties:
        noticeNumber:
          maxLength: 18
          minLength: 18
          type: string
          description: notice number
        fiscalCode:
          maxLength: 11
          minLength: 11
          type: string
          description: Public Administration tax code
        amount:
          minimum: 1.0
          type: integer
          description: amount (in euro cents) of the payment notice
        companyName:
          maxLength: 140
          type: string
          description: Public Administration company name
        description:
          maxLength: 140
          type: string
          description: subject of payment
  securitySchemes:
    apiKeyHeader:
      type: apiKey
      name: Ocp-Apim-Subscription-Key
      in: header
    apiKeyQuery:
      type: apiKey
      name: subscription-key
      in: query