---
updatedAt: 2026-06-06T07:52:57.000Z
agentTools:
  projectIndex: https://developers.paygreen.fr/llms.txt
---

# Create Selling Contract

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "Payment API",
    "description": "This API processes PayGreen V3 payment",
    "version": "1.46.3"
  },
  "servers": [
    {
      "url": "https://api.paygreen.fr",
      "description": "Production environment"
    },
    {
      "url": "https://sb-api.paygreen.fr",
      "description": "Sandbox environment"
    }
  ],
  "paths": {
    "/payment/selling-contracts": {
      "post": {
        "tags": [
          "Selling Contracts"
        ],
        "summary": "Create Selling Contract",
        "operationId": "post_create_selling_contract",
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateSellingContractRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Selling Contract successfully created",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/SellingContract"
                }
              }
            }
          },
          "400": {
            "description": "Bad request"
          },
          "401": {
            "description": "Unauthenticated"
          },
          "403": {
            "description": "Forbidden"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "CreateSellingContractRequest": {
        "required": [
          "shop_id",
          "number",
          "mcc",
          "max_amount",
          "type"
        ],
        "properties": {
          "shop_id": {
            "type": "string",
            "pattern": "sh_[0-9a-f]{32}",
            "example": "sh_9cc7d137d12f4c7b9d72ef4a279b3d2d"
          },
          "number": {
            "type": "string"
          },
          "mcc": {
            "description": "The Merchant Category Code of the selling contract.",
            "type": "integer",
            "maximum": 9999,
            "minimum": 1,
            "example": 5812
          },
          "max_amount": {
            "type": "integer"
          },
          "type": {
            "description": "Only `vads` is supported at the moment",
            "type": "string"
          }
        },
        "type": "object"
      },
      "SellingContract": {
        "required": [
          "id",
          "shop_id",
          "number",
          "mcc",
          "max_amount",
          "status",
          "type",
          "created_at"
        ],
        "properties": {
          "id": {
            "description": "The unique identifier of this Selling Contract",
            "type": "string",
            "pattern": "sc_[0-9a-f]{32}"
          },
          "object": {
            "type": "string",
            "default": "selling_contract"
          },
          "shop_id": {
            "type": "string",
            "pattern": "sh_[0-9a-f]{32}"
          },
          "number": {
            "description": "The number, or identifier, of the selling contract you have with your bank - check with your bank for more informations",
            "type": "string"
          },
          "mcc": {
            "description": "Merchant Category Code (ISO-18245)",
            "type": "integer"
          },
          "max_amount": {
            "description": "The maximum amount allowed by your selling contract",
            "type": "integer"
          },
          "status": {
            "description": "The status of the selling contract",
            "type": "string",
            "enum": [
              "created",
              "processing",
              "validated",
              "disabled"
            ]
          },
          "type": {
            "description": "The type of the selling contract",
            "type": "string",
            "enum": [
              "vads",
              "moto"
            ]
          },
          "iban": {
            "description": "The IBAN of the selling contract",
            "type": "string",
            "pattern": "^[A-Z]{2}[0-9]{2}[a-zA-Z0-9]{1,30}$",
            "nullable": true
          },
          "bic": {
            "description": "The BIC of the selling contract",
            "type": "string",
            "pattern": "^[A-Z]{6}[A-Z0-9]{2}([A-Z0-9]{3})?$",
            "nullable": true
          },
          "created_at": {
            "type": "string",
            "format": "date-time"
          }
        },
        "type": "object"
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "bearerFormat": "JWT",
        "scheme": "bearer"
      }
    }
  },
  "security": [
    {
      "Bearer": []
    }
  ],
  "tags": [
    {
      "name": "Selling Contracts"
    }
  ]
}
```