---
agentTools:
  projectIndex: https://payment-orchestrator.readme.io/llms.txt
---

# Update Receiver

Updates the existing receiver.

# OpenAPI definition

```json
{
  "openapi": "3.0.0",
  "info": {
    "version": "v1",
    "title": "Payment API",
    "description": "The Payment API is a service that allows merchants to connect with multiple payment receivers through a single API call.\n"
  },
  "servers": [
    {
      "url": "http://sandbox-planet-oapi-269696318.eu-central-1.elb.amazonaws.com:8080/api",
      "description": "Payment API - Staging"
    }
  ],
  "security": [
    {
      "api-key": []
    }
  ],
  "tags": [
    {
      "name": "Receivers",
      "description": "Manage Receivers"
    }
  ],
  "paths": {
    "/v1/receivers/{receiverId}": {
      "put": {
        "tags": [
          "Receivers"
        ],
        "summary": "Update Receiver",
        "operationId": "update-receiver",
        "description": "Updates the existing receiver.\n",
        "responses": {
          "200": {
            "description": "The receiver was successfully updated.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Receiver"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "404": {
            "$ref": "#/components/responses/NotFound"
          },
          "500": {
            "$ref": "#/components/responses/InternalServerError"
          }
        },
        "parameters": [
          {
            "name": "receiverId",
            "in": "path",
            "required": true,
            "schema": {
              "$ref": "#/components/schemas/ReceiverId"
            }
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateReceiverRequest"
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "responses": {
      "BadRequest": {
        "description": "The request is invalid. The specific reason is returned in the response body.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "The requester is not authorized to access the resource.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        },
        "headers": {
          "WWW_Authenticate": {
            "schema": {
              "type": "string"
            }
          }
        }
      },
      "Forbidden": {
        "description": "The requester is forbidden from accessing the resource.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "InternalServerError": {
        "description": "The request is valid but the server could not process it. The specific reason is returned in the response body.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      },
      "NotFound": {
        "description": "The requested resource was not found.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/Problem"
            }
          }
        }
      }
    },
    "securitySchemes": {
      "api-key": {
        "type": "apiKey",
        "name": "API-KEY",
        "in": "header",
        "description": "The API Key to authorize requests."
      }
    },
    "schemas": {
      "Problem": {
        "type": "object",
        "description": "An explanation of the problem that occurred when processing a request [RFC7807].",
        "properties": {
          "type": {
            "type": "string",
            "format": "uri",
            "description": "A URI reference [RFC3986] that identifies the problem type.  This specification encourages that, when dereferenced, it provide human-readable documentation for the problem type (e.g., using HTML [W3C.REC-html5-20141028]).  When this member is not present, its value is assumed to be \"about:blank\".\n",
            "example": "/problems/validation-failed"
          },
          "title": {
            "type": "string",
            "description": "A short, human-readable summary of the problem type.  It SHOULD NOT change from occurrence to occurrence of the problem, except for purposes of localization (e.g., using proactive content negotiation; see [RFC7231], Section 3.4).",
            "example": "The validation for the request has produced errors."
          },
          "status": {
            "type": "integer",
            "description": "The HTTP status code ([RFC7231], Section 6) generated by the origin server for this occurrence of the problem. Optional field.",
            "example": 400
          },
          "detail": {
            "type": "string",
            "description": "A human-readable explanation specific to this occurrence of the problem.",
            "example": "The validation of the request failed on field(s) 'A'."
          },
          "errors": {
            "type": "array",
            "nullable": true,
            "description": "A collection of all errors that occurred when processing the request.",
            "items": {
              "$ref": "#/components/schemas/Error"
            }
          }
        }
      },
      "Error": {
        "type": "object",
        "description": "Represents a single error within the application.",
        "properties": {
          "code": {
            "type": "string",
            "nullable": true,
            "description": "The unique error code.",
            "example": "V1234"
          },
          "message": {
            "type": "string",
            "description": "A human-readable message that states the error.",
            "example": "Field A value must be between 1 and 20."
          }
        }
      },
      "CreateReceiverRequest": {
        "type": "object",
        "description": "A schema used to register a new receiver",
        "required": [
          "identifier",
          "name",
          "paymentService",
          "integrationArguments"
        ],
        "properties": {
          "identifier": {
            "$ref": "#/components/schemas/ReceiverId"
          },
          "name": {
            "type": "string",
            "description": "The name to assign to this receiver.",
            "example": "Adyen-Acc-EUR",
            "nullable": false
          },
          "paymentService": {
            "$ref": "#/components/schemas/PaymentService"
          },
          "integrationArguments": {
            "type": "array",
            "description": "Additional arguments that will be used to contact the specific receiver through our integrations system. For example, authentication arguments.",
            "minItems": 1,
            "maxItems": 3,
            "uniqueItems": true,
            "items": {
              "$ref": "#/components/schemas/IntegrationArgument"
            }
          }
        }
      },
      "UpdateReceiverRequest": {
        "type": "object",
        "description": "A schema used to update an existing receiver",
        "required": [
          "name",
          "paymentService",
          "integrationArguments"
        ],
        "properties": {
          "name": {
            "type": "string",
            "description": "The name to assign to this receiver.",
            "example": "Adyen-Acc-EUR",
            "nullable": false
          },
          "paymentService": {
            "$ref": "#/components/schemas/PaymentService"
          },
          "integrationArguments": {
            "type": "array",
            "description": "Additional arguments that will be used to contact the specific receiver through our integrations system. For example, authentication arguments.",
            "minItems": 1,
            "maxItems": 3,
            "uniqueItems": true,
            "items": {
              "$ref": "#/components/schemas/IntegrationArgument"
            }
          }
        }
      },
      "Receiver": {
        "allOf": [
          {
            "properties": {
              "identifier": {
                "$ref": "#/components/schemas/ReceiverId"
              }
            }
          },
          {
            "$ref": "#/components/schemas/CreateReceiverRequest"
          }
        ]
      },
      "PaymentService": {
        "type": "string",
        "enum": [
          "ADYEN",
          "DATATRANS",
          "STRIPE"
        ]
      },
      "IntegrationArgument": {
        "type": "object",
        "description": "An integration argument used to pass along to the configured receiver.",
        "properties": {
          "name": {
            "type": "string",
            "description": "The name of the integration argument.",
            "nullable": false,
            "maxLength": 50
          },
          "value": {
            "type": "string",
            "description": "The value of the integration argument.",
            "nullable": false,
            "maxLength": 150
          }
        }
      },
      "ReceiverId": {
        "type": "string",
        "nullable": false,
        "maxLength": 50,
        "description": "The receiver identifier."
      }
    }
  },
  "x-readme": {
    "explorer-enabled": true,
    "proxy-enabled": true
  },
  "_id": {
    "buffer": {
      "0": 100,
      "1": 99,
      "2": 95,
      "3": 209,
      "4": 224,
      "5": 111,
      "6": 134,
      "7": 6,
      "8": 133,
      "9": 199,
      "10": 135,
      "11": 133
    }
  }
}
```