---
updatedAt: 2026-06-08T11:05:39.000Z
agentTools:
  projectIndex: https://developer.pay.nl/llms.txt
---

# Merchants:UpdatePackage

Update the package. If a merchantCode is supplied then you need to have access to that merchant. You need to authenticate with an AT-code as username and the corresponding token as password.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "title": "PAY. Global Management System API's",
    "description": "A restful journey to your payments.",
    "termsOfService": "https://www.pay.nl/en/terms-conditions",
    "contact": {
      "email": "support@pay.nl"
    },
    "version": "v2.0"
  },
  "servers": [
    {
      "url": "https://rest.pay.nl/v2",
      "description": "PAY. API server"
    }
  ],
  "paths": {
    "/merchants/{merchantCode}/package": {
      "patch": {
        "tags": [
          "Merchants"
        ],
        "summary": "Merchants:UpdatePackage",
        "description": "Update the package. If a merchantCode is supplied then you need to have access to that merchant. You need to authenticate with an AT-code as username and the corresponding token as password.",
        "parameters": [
          {
            "name": "merchantCode",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/Merchant/properties/code"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "required": [
                  "referralProfileCode"
                ],
                "properties": {
                  "referralProfileCode": {
                    "type": "string",
                    "example": "CP-1234-4321"
                  }
                },
                "type": "object"
              }
            }
          }
        },
        "responses": {
          "204": {
            "description": "No content."
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "405": {
            "$ref": "#/components/responses/MethodNotAllowed"
          },
          "406": {
            "$ref": "#/components/responses/NotAcceptable"
          },
          "422": {
            "$ref": "#/components/responses/Unprocessable"
          },
          "429": {
            "$ref": "#/components/responses/RateLimiting"
          },
          "500": {
            "description": "An internal error occurred"
          }
        },
        "security": [
          {
            "basicAuth": []
          },
          {
            "bearerAuth": []
          }
        ]
      }
    }
  },
  "components": {
    "schemas": {
      "Merchant": {
        "properties": {
          "code": {
            "description": "The merchant id of your company starting with M.",
            "type": "string",
            "example": "M-1234-4321"
          },
          "name": {
            "description": "The name of your merchant.",
            "type": "string",
            "maxLength": 128,
            "minLength": 2,
            "example": "CompanyName"
          },
          "publicName": {
            "description": "The public name of your merchant.",
            "type": "string",
            "example": "CompanyName"
          },
          "boardingStatus": {
            "description": "The status of the boarding process for this merchant.",
            "type": "string",
            "enum": [
              "REGISTERED",
              "ONBOARDING",
              "ACCEPTED",
              "SUSPENDED",
              "OFFBOARDED"
            ],
            "example": "REGISTERED"
          },
          "status": {
            "description": "Merchant state",
            "type": "string",
            "example": "ACTIVE"
          },
          "payoutStatus": {
            "description": "Merchant payout state",
            "type": "string",
            "enum": [
              "ENABLED",
              "DISABLED"
            ],
            "example": "Enabled"
          },
          "coc": {
            "description": "Your Chamber of commerce registration number. This format differs per country.",
            "type": "string",
            "example": "12345678"
          },
          "vat": {
            "description": "Value added tax identification number (VAT identification number).",
            "type": "string",
            "example": "NL807960147B01"
          },
          "companyTypeId": {
            "description": "ID of the company type. The available company types can be retrieved with the Core Data API Companytypes (https://developer.pay.nl/reference/get_companytypes)",
            "type": "string",
            "example": "1"
          },
          "countryCode": {
            "description": "The country code consisting of 2 uppercase letters",
            "type": "string",
            "example": "NL"
          },
          "contractLanguage": {
            "description": "The language code supplied needs to be a locale in i18n format. The available languages can be retrieved with the Core Data API Languages (https://developer.pay.nl/reference/get_languages) where the contractLanguageAvailable flag is set to 'True'",
            "type": "string",
            "example": "nl_NL"
          },
          "contractPackage": {
            "type": "string"
          },
          "contractPackageCode": {
            "description": "The authorisation group code of the contract package linked to the merchant. Returns null when the merchant has no linked authorisation group.",
            "type": "string",
            "example": "AG-1234-4321",
            "nullable": true
          },
          "currentProfileCode": {
            "description": "The active company profile code of the merchant.",
            "type": "string",
            "example": "CP-1234-4321",
            "nullable": true
          },
          "contactPhone": {
            "description": "The primary contact phone number of the merchant.",
            "type": "string",
            "format": "phone",
            "example": "+31612345678"
          },
          "contactEmail": {
            "description": "The primary contact email address of the merchant.",
            "type": "string",
            "format": "email",
            "example": "info@mycompany.nl"
          },
          "establishmentLegalRegistrationNumber": {
            "description": "The legal registration number of the establishment/location of the merchant. If omitted and the country code is FR, this defaults to the CoC number.",
            "type": "string",
            "example": "12345678901234"
          },
          "accountManager": {
            "description": "The email address of the active account manager.",
            "type": "string",
            "example": "account.manager@pay.nl"
          },
          "website": {
            "description": "The website.",
            "type": "string",
            "format": "uri",
            "example": "https://www.my-website.com"
          },
          "categories": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Category"
            }
          },
          "integrations": {
            "type": "array",
            "items": {
              "properties": {
                "code": {
                  "description": "The plugin identifier.",
                  "type": "string",
                  "example": "PL-3010-1000"
                },
                "name": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "clearingAccounts": {
            "type": "array",
            "items": {
              "required": [
                "code",
                "status",
                "method",
                "iban"
              ],
              "properties": {
                "code": {
                  "type": "string"
                },
                "status": {
                  "type": "string",
                  "enum": [
                    "APPROVED",
                    "DENIED",
                    "NOT_CHECKED"
                  ]
                },
                "method": {
                  "type": "string",
                  "enum": [
                    "iban"
                  ]
                },
                "iban": {
                  "$ref": "#/components/schemas/BankAccount"
                }
              },
              "type": "object"
            }
          },
          "postalAddress": {
            "$ref": "#/components/schemas/Location"
          },
          "visitAddress": {
            "$ref": "#/components/schemas/Location"
          },
          "contactMethods": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContactMethod"
            }
          },
          "authenticationTokens": {
            "type": "array",
            "items": {
              "properties": {
                "authenticationTokens": {
                  "type": "string"
                }
              },
              "type": "object"
            }
          },
          "trademarks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Trademark"
            }
          },
          "licenses": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Person"
            }
          },
          "services": {
            "type": "array",
            "items": {
              "properties": {
                "code": {
                  "type": "string"
                },
                "secret": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "status": {
                  "type": "string"
                },
                "category": {
                  "properties": {
                    "code": {
                      "$ref": "#/components/schemas/Category/properties/code"
                    },
                    "name": {
                      "$ref": "#/components/schemas/Category/properties/name"
                    }
                  },
                  "type": "object"
                },
                "integration": {
                  "properties": {
                    "code": {
                      "description": "The plugin identifier.",
                      "type": "string",
                      "example": "PL-3010-1000"
                    },
                    "name": {
                      "type": "string"
                    }
                  },
                  "type": "object"
                },
                "website": {
                  "description": "The website URL.",
                  "type": "string",
                  "example": "https://www.pay.nl"
                },
                "urls": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/WebsiteUrl"
                  }
                }
              },
              "type": "object"
            }
          },
          "partner": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Partner"
            }
          },
          "createdAt": {
            "$ref": "#/components/schemas/Universal/properties/createdAt"
          },
          "createdBy": {
            "$ref": "#/components/schemas/Universal/properties/createdBy"
          },
          "acceptedAt": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2016-06-04T08:15:00+01:00",
            "nullable": true
          },
          "suspendedAt": {
            "type": "string",
            "format": "date-time",
            "example": "2016-06-04T08:15:00+01:00",
            "nullable": true
          },
          "suspendedBy": {
            "description": "SUSPENDED_BY_DESCRIPTION",
            "type": "string",
            "example": "A-1234-4321",
            "nullable": true
          },
          "modifiedAt": {
            "$ref": "#/components/schemas/Universal/properties/modifiedAt"
          },
          "modifiedBy": {
            "$ref": "#/components/schemas/Universal/properties/modifiedBy"
          },
          "deletedAt": {
            "$ref": "#/components/schemas/Universal/properties/deletedAt"
          },
          "deletedBy": {
            "$ref": "#/components/schemas/Universal/properties/deletedBy"
          },
          "reviewedAt": {
            "type": "string",
            "format": "date-time",
            "readOnly": true,
            "example": "2016-06-04T08:15:00+01:00",
            "nullable": true
          },
          "nextReviewDate": {
            "type": "string",
            "format": "date-time"
          }
        },
        "type": "object"
      },
      "Error": {
        "properties": {
          "type": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "detail": {
            "type": "string"
          },
          "violations": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Violation"
            }
          }
        },
        "type": "object"
      },
      "Violation": {
        "properties": {
          "propertyPath": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "code": {
            "type": "string"
          }
        },
        "type": "object"
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Bad request, see response body for more information",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Unauthorized. Supplied credentials are invalid"
      },
      "Forbidden": {
        "description": "Forbidden. Supplied credentials have no rights"
      },
      "NotFound": {
        "description": "Not found"
      },
      "MethodNotAllowed": {
        "description": "Used HTTP method is not allowed"
      },
      "NotAcceptable": {
        "description": "Not acceptable. The supplied content type in the accept parameter in the header is not supported"
      },
      "Unprocessable": {
        "description": "Unprocessable entity, see response body for more information",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Error"
            },
            "examples": {
              "error": {
                "summary": "Unprocessable",
                "value": {
                  "type": "https://developer.pay.nl/docs/error-codes",
                  "title": "An error occurred",
                  "detail": "Unable to complete request",
                  "violations": [
                    {
                      "propertyPath": null,
                      "message": "Unable to complete request",
                      "code": "PAY-3000"
                    }
                  ]
                }
              }
            }
          }
        }
      },
      "RateLimiting": {
        "description": "Rate limit reached."
      }
    },
    "securitySchemes": {
      "basicAuth": {
        "type": "http",
        "scheme": "basic"
      },
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer"
      }
    }
  },
  "externalDocs": {
    "description": "Official PAY. documentation",
    "url": "https://docs.pay.nl"
  }
}
```