|
243 | 243 | "post": { |
244 | 244 | "operationId": "CreateCheckout", |
245 | 245 | "summary": "Create a checkout", |
246 | | - "description": "Creates a new payment checkout resource. The unique `checkout_reference` created by this request, is used for further manipulation of the checkout.\n\nFor 3DS checkouts, add the `redirect_url` parameter to your request body schema.\nTo use the [Hosted Checkout](https://developer.sumup.com/online-payments/checkouts/hosted-checkout/) page, set the `hosted_checkout.enabled` to `true`.\n\nFollow by processing a checkout to charge the provided payment instrument.", |
| 246 | + "description": "Creates a payment checkout for the specified merchant, amount, and currency. Supply a `checkout_reference` to identify the payment attempt in your own systems. Creating a checkout does not charge a payment instrument.\n\nSet `hosted_checkout.enabled` to `true` to receive a [Hosted Checkout](https://developer.sumup.com/online-payments/checkouts/hosted-checkout/) URL where the customer can complete the payment.\nUse `redirect_url` for redirect-based payment and 3DS flows. If `return_url` is provided, SumUp sends processing updates to that backend callback URL.\n\nComplete the payment through [Hosted Checkout](https://developer.sumup.com/online-payments/checkouts/hosted-checkout/) or the [Payment Widget](https://developer.sumup.com/online-payments/checkouts/card-widget).", |
247 | 247 | "tags": [ |
248 | 248 | "Checkouts" |
249 | 249 | ], |
|
746 | 746 | "patch": { |
747 | 747 | "operationId": "UpdateCheckout", |
748 | 748 | "summary": "Update a checkout", |
749 | | - "description": "Updates an identified checkout resource.", |
| 749 | + "description": "Updates the amount, currency, description, reference, expiration, or customer associated with an existing checkout. Only the supplied fields are updated.\n\nThis request changes the checkout details; it does not charge a payment instrument. Process the checkout separately to attempt a payment.", |
750 | 750 | "tags": [ |
751 | 751 | "Checkouts" |
752 | 752 | ], |
|
3443 | 3443 | "type": "string" |
3444 | 3444 | } |
3445 | 3445 | }, |
| 3446 | + { |
| 3447 | + "name": "resource.id", |
| 3448 | + "in": "query", |
| 3449 | + "description": "Filter memberships by the ID of the resource the membership is in.", |
| 3450 | + "schema": { |
| 3451 | + "type": "string" |
| 3452 | + } |
| 3453 | + }, |
3446 | 3454 | { |
3447 | 3455 | "name": "resource.parent.id", |
3448 | 3456 | "in": "query", |
3449 | | - "description": "Filter memberships by the parent of the resource the membership is in.\nWhen filtering by parent both `resource.parent.id` and `resource.parent.type` must be present. Pass explicit null to filter for resources without a parent.", |
| 3457 | + "allowEmptyValue": true, |
| 3458 | + "description": "Filter memberships by the parent of the resource the membership is in.\nOmit both `resource.parent.id` and `resource.parent.type` to skip parent filtering. When filtering by parent, both parameters must be present. To select resources without a parent, set each parameter to an empty value. Otherwise, both parameters must identify a parent.", |
3450 | 3459 | "schema": { |
3451 | | - "type": [ |
3452 | | - "string", |
3453 | | - "null" |
3454 | | - ] |
| 3460 | + "type": "string" |
3455 | 3461 | } |
3456 | 3462 | }, |
3457 | 3463 | { |
3458 | 3464 | "name": "resource.parent.type", |
3459 | 3465 | "in": "query", |
3460 | | - "description": "Filter memberships by the parent of the resource the membership is in.\nWhen filtering by parent both `resource.parent.id` and `resource.parent.type` must be present. Pass explicit null to filter for resources without a parent.", |
| 3466 | + "allowEmptyValue": true, |
| 3467 | + "description": "Filter memberships by the parent of the resource the membership is in.\nOmit both `resource.parent.id` and `resource.parent.type` to skip parent filtering. When filtering by parent, both parameters must be present. To select resources without a parent, set each parameter to an empty value. Otherwise, both parameters must identify a parent.", |
3461 | 3468 | "schema": { |
3462 | | - "allOf": [ |
3463 | | - { |
3464 | | - "$ref": "#/components/schemas/ResourceType" |
3465 | | - } |
3466 | | - ], |
3467 | | - "type": "null" |
| 3469 | + "$ref": "#/components/schemas/ResourceType" |
3468 | 3470 | } |
3469 | 3471 | }, |
3470 | 3472 | { |
|
3603 | 3605 | "example": "245b2ead-85bf-45ff-856f-311a88a5d454" |
3604 | 3606 | } |
3605 | 3607 | }, |
3606 | | - { |
3607 | | - "name": "user.type", |
3608 | | - "in": "query", |
3609 | | - "description": "Filter the returned members by user type. Repeat this parameter to include multiple user types.", |
3610 | | - "schema": { |
3611 | | - "type": "array", |
3612 | | - "items": { |
3613 | | - "$ref": "#/components/schemas/UserType" |
3614 | | - } |
3615 | | - }, |
3616 | | - "style": "form", |
3617 | | - "explode": true |
3618 | | - }, |
3619 | 3608 | { |
3620 | 3609 | "name": "status", |
3621 | 3610 | "in": "query", |
|
3730 | 3719 | "post": { |
3731 | 3720 | "operationId": "CreateMerchantMember", |
3732 | 3721 | "summary": "Create a member", |
3733 | | - "description": "Create a merchant member.", |
| 3722 | + "description": "Adds a member to the merchant account with the specified roles.\n\nBy default, sends an invitation email to the provided address. The recipient must accept the invitation to join the account.\nWhen `is_managed_user` is `true`, creates a managed user with the provided password and optional nickname and assigns the roles directly, without sending an invitation.", |
3734 | 3723 | "tags": [ |
3735 | 3724 | "Members" |
3736 | 3725 | ], |
|
3795 | 3784 | "roles": { |
3796 | 3785 | "type": "array", |
3797 | 3786 | "description": "List of roles to assign to the new member.", |
| 3787 | + "minItems": 1, |
3798 | 3788 | "maxItems": 124, |
3799 | 3789 | "items": { |
3800 | 3790 | "type": "string", |
|
3978 | 3968 | }, |
3979 | 3969 | "put": { |
3980 | 3970 | "summary": "Update a member", |
3981 | | - "description": "Update the merchant member.", |
| 3971 | + "description": "Updates a merchant member and returns the updated member.\n\nProviding `roles` replaces the member's assigned roles and can grant or revoke access. Providing `metadata` replaces the entire metadata object.\nFor managed users, `user.nickname` changes the display name and `user.password` replaces the password. Updating the password also enables the managed user account.", |
3982 | 3972 | "tags": [ |
3983 | 3973 | "Members" |
3984 | 3974 | ], |
|
4017 | 4007 | "properties": { |
4018 | 4008 | "roles": { |
4019 | 4009 | "type": "array", |
| 4010 | + "minItems": 1, |
4020 | 4011 | "maxItems": 124, |
4021 | 4012 | "items": { |
4022 | 4013 | "type": "string", |
|
4392 | 4383 | "permissions": { |
4393 | 4384 | "type": "array", |
4394 | 4385 | "description": "User's permissions.", |
| 4386 | + "minItems": 1, |
4395 | 4387 | "maxItems": 100, |
4396 | 4388 | "items": { |
4397 | 4389 | "type": "string" |
|
4652 | 4644 | "patch": { |
4653 | 4645 | "operationId": "UpdateMerchantRole", |
4654 | 4646 | "summary": "Update a role", |
4655 | | - "description": "Update a custom role.", |
| 4647 | + "description": "Updates a custom role's name, description, or permissions and returns the updated role.\n\nProviding `permissions` replaces the role's permission list and changes the access granted to members assigned to that role. Omitted fields remain unchanged.", |
4656 | 4648 | "tags": [ |
4657 | 4649 | "Roles" |
4658 | 4650 | ], |
|
4696 | 4688 | "permissions": { |
4697 | 4689 | "type": "array", |
4698 | 4690 | "description": "User's permissions.", |
| 4691 | + "minItems": 1, |
4699 | 4692 | "maxItems": 100, |
4700 | 4693 | "items": { |
4701 | 4694 | "type": "string" |
|
5438 | 5431 | }, |
5439 | 5432 | "patch": { |
5440 | 5433 | "summary": "Update a Reader", |
5441 | | - "description": "Update a Reader.", |
| 5434 | + "description": "Updates a reader's name or metadata and returns the updated reader.\n\nProviding `metadata` replaces the entire metadata object; include all entries that should be retained. Omitted fields remain unchanged.", |
5442 | 5435 | "operationId": "UpdateReader", |
5443 | 5436 | "tags": [ |
5444 | 5437 | "Readers" |
|
8923 | 8916 | } |
8924 | 8917 | } |
8925 | 8918 | }, |
8926 | | - "UserType": { |
8927 | | - "type": "string", |
8928 | | - "description": "Type of the user account.", |
8929 | | - "enum": [ |
8930 | | - "user", |
8931 | | - "managed_user", |
8932 | | - "service_account", |
8933 | | - "system_account" |
8934 | | - ], |
8935 | | - "example": "user" |
8936 | | - }, |
8937 | 8919 | "Metadata": { |
8938 | 8920 | "description": "Set of user-defined key-value pairs attached to the object. Partial updates are not supported. When updating, always submit whole metadata. Maximum of 64 parameters are allowed in the object.", |
8939 | 8921 | "type": "object", |
|
8947 | 8929 | "example": {}, |
8948 | 8930 | "additionalProperties": true |
8949 | 8931 | }, |
| 8932 | + "UserType": { |
| 8933 | + "type": "string", |
| 8934 | + "description": "Type of the user account.", |
| 8935 | + "enum": [ |
| 8936 | + "user", |
| 8937 | + "managed_user", |
| 8938 | + "service_account", |
| 8939 | + "system_account" |
| 8940 | + ], |
| 8941 | + "example": "user" |
| 8942 | + }, |
8950 | 8943 | "Address": { |
8951 | 8944 | "externalDocs": { |
8952 | 8945 | "description": "Address documentation", |
|
0 commit comments