|
543 | 543 | ] |
544 | 544 | } |
545 | 545 | }, |
546 | | - "/v0.1/checkouts/{id}": { |
| 546 | + "/v0.1/checkouts/{checkout_id}": { |
547 | 547 | "parameters": [ |
548 | 548 | { |
549 | | - "name": "id", |
| 549 | + "name": "checkout_id", |
550 | 550 | "in": "path", |
551 | 551 | "description": "Unique ID of the checkout resource.", |
552 | 552 | "required": true, |
|
1150 | 1150 | ] |
1151 | 1151 | } |
1152 | 1152 | }, |
1153 | | - "/v0.2/checkouts/{id}/apple-pay-session": { |
| 1153 | + "/v0.2/checkouts/{checkout_id}/apple-pay-session": { |
1154 | 1154 | "put": { |
1155 | 1155 | "operationId": "CreateApplePaySession", |
1156 | 1156 | "summary": "Create an Apple Pay session", |
1157 | 1157 | "description": "Creates an Apple Pay merchant session for the specified checkout.\n\nUse this endpoint after the customer selects Apple Pay and before calling\n`ApplePaySession.completeMerchantValidation(...)` in the browser.\nSumUp validates the merchant session request and returns the Apple Pay\nsession object that your frontend should pass to Apple's JavaScript API.\n", |
1158 | 1158 | "parameters": [ |
1159 | 1159 | { |
1160 | | - "name": "id", |
| 1160 | + "name": "checkout_id", |
1161 | 1161 | "in": "path", |
1162 | 1162 | "description": "Unique ID of the checkout resource.", |
1163 | 1163 | "required": true, |
|
1900 | 1900 | ] |
1901 | 1901 | } |
1902 | 1902 | }, |
1903 | | - "/v1.0/merchants/{merchant_code}/payments/{id}/refunds": { |
| 1903 | + "/v1.0/merchants/{merchant_code}/payments/{transaction_id}/refunds": { |
1904 | 1904 | "parameters": [ |
1905 | 1905 | { |
1906 | 1906 | "name": "merchant_code", |
|
1913 | 1913 | } |
1914 | 1914 | }, |
1915 | 1915 | { |
1916 | | - "name": "id", |
| 1916 | + "name": "transaction_id", |
1917 | 1917 | "in": "path", |
1918 | 1918 | "description": "Unique ID of the transaction.", |
1919 | 1919 | "required": true, |
|
2658 | 2658 | ] |
2659 | 2659 | } |
2660 | 2660 | }, |
2661 | | - "/v1.1/receipts/{id}": { |
| 2661 | + "/v1.1/receipts/{transaction_id}": { |
2662 | 2662 | "get": { |
2663 | 2663 | "operationId": "GetReceipt", |
2664 | 2664 | "summary": "Retrieve receipt details", |
2665 | 2665 | "description": "Retrieves receipt specific data for a transaction.", |
2666 | 2666 | "parameters": [ |
2667 | 2667 | { |
2668 | | - "name": "id", |
| 2668 | + "name": "transaction_id", |
2669 | 2669 | "in": "path", |
2670 | 2670 | "description": "SumUp unique transaction ID or transaction code, e.g. TS7HDYLSKD.", |
2671 | 2671 | "required": true, |
|
3436 | 3436 | "type": "object", |
3437 | 3437 | "properties": { |
3438 | 3438 | "nickname": { |
3439 | | - "description": "User's preferred name. Used for display purposes only.", |
| 3439 | + "description": "User's nickname. Used for display purposes only.", |
3440 | 3440 | "type": "string", |
3441 | 3441 | "example": "Test User" |
3442 | 3442 | }, |
|
4549 | 4549 | "UpdateReaderByID": { |
4550 | 4550 | "operationId": "UpdateReader", |
4551 | 4551 | "parameters": { |
4552 | | - "id": "$response.body#/id" |
| 4552 | + "reader_id": "$response.body#/id" |
4553 | 4553 | }, |
4554 | 4554 | "description": "Update the reader object. This can be used to set a name after using this endpoint to verify the pairing code." |
4555 | 4555 | }, |
4556 | 4556 | "DeleteReaderByID": { |
4557 | 4557 | "operationId": "DeleteReader", |
4558 | 4558 | "parameters": { |
4559 | | - "id": "$response.body#/id" |
| 4559 | + "reader_id": "$response.body#/id" |
4560 | 4560 | }, |
4561 | 4561 | "description": "Delete the reader." |
4562 | 4562 | } |
|
4639 | 4639 | ] |
4640 | 4640 | } |
4641 | 4641 | }, |
4642 | | - "/v0.1/merchants/{merchant_code}/readers/{id}": { |
| 4642 | + "/v0.1/merchants/{merchant_code}/readers/{reader_id}": { |
4643 | 4643 | "get": { |
4644 | 4644 | "operationId": "GetReader", |
4645 | 4645 | "summary": "Retrieve a Reader", |
|
4677 | 4677 | } |
4678 | 4678 | }, |
4679 | 4679 | { |
4680 | | - "name": "id", |
| 4680 | + "name": "reader_id", |
4681 | 4681 | "in": "path", |
4682 | 4682 | "description": "The unique identifier of the reader.", |
4683 | 4683 | "required": true, |
|
4757 | 4757 | } |
4758 | 4758 | }, |
4759 | 4759 | { |
4760 | | - "name": "id", |
| 4760 | + "name": "reader_id", |
4761 | 4761 | "in": "path", |
4762 | 4762 | "description": "The unique identifier of the reader.", |
4763 | 4763 | "required": true, |
|
4830 | 4830 | } |
4831 | 4831 | }, |
4832 | 4832 | { |
4833 | | - "name": "id", |
| 4833 | + "name": "reader_id", |
4834 | 4834 | "in": "path", |
4835 | 4835 | "description": "The unique identifier of the reader.", |
4836 | 4836 | "required": true, |
|
5403 | 5403 | } |
5404 | 5404 | }, |
5405 | 5405 | "CheckoutID": { |
5406 | | - "name": "id", |
| 5406 | + "name": "checkout_id", |
5407 | 5407 | "in": "path", |
5408 | 5408 | "required": true, |
5409 | 5409 | "description": "Unique ID of the checkout resource.", |
|
5539 | 5539 | "type": "string" |
5540 | 5540 | } |
5541 | 5541 | }, |
5542 | | - "TxnID": { |
5543 | | - "in": "path", |
5544 | | - "name": "txn_id", |
5545 | | - "required": true, |
5546 | | - "description": "Unique ID of the transaction.", |
5547 | | - "schema": { |
5548 | | - "type": "string" |
5549 | | - } |
5550 | | - }, |
5551 | 5542 | "TypesFilter": { |
5552 | 5543 | "name": "types", |
5553 | 5544 | "in": "query", |
|
8025 | 8016 | "format": "date-time" |
8026 | 8017 | }, |
8027 | 8018 | "nickname": { |
8028 | | - "description": "User's preferred name. Used for display purposes only.", |
| 8019 | + "description": "User's nickname. Used for display purposes only.", |
8029 | 8020 | "type": "string", |
8030 | 8021 | "example": "Test User" |
8031 | 8022 | }, |
|
8235 | 8226 | }, |
8236 | 8227 | "title": "Merchant" |
8237 | 8228 | }, |
8238 | | - "Company": { |
8239 | | - "description": "Information about the company or business. This is legal information that is used for verification.\n", |
8240 | | - "type": "object", |
8241 | | - "properties": { |
8242 | | - "name": { |
8243 | | - "description": "The company's legal name.", |
8244 | | - "type": "string", |
8245 | | - "example": "Gin & Doughnuts Bar GmbH", |
8246 | | - "maxLength": 150, |
8247 | | - "minLength": 1 |
8248 | | - }, |
8249 | | - "merchant_category_code": { |
8250 | | - "description": "The merchant category code for the account as specified by [ISO18245](https://www.iso.org/standard/33365.html). MCCs are used to classify businesses based on the goods or services they provide.\n", |
8251 | | - "type": "string", |
8252 | | - "example": "1532", |
8253 | | - "pattern": "^[0-9]{4}$" |
8254 | | - }, |
8255 | | - "legal_type": { |
8256 | | - "$ref": "#/components/schemas/LegalType" |
8257 | | - }, |
8258 | | - "address": { |
8259 | | - "$ref": "#/components/schemas/Address" |
8260 | | - }, |
8261 | | - "trading_address": { |
8262 | | - "$ref": "#/components/schemas/Address" |
8263 | | - }, |
8264 | | - "identifiers": { |
8265 | | - "$ref": "#/components/schemas/CompanyIdentifiers" |
8266 | | - }, |
8267 | | - "phone_number": { |
8268 | | - "$ref": "#/components/schemas/PhoneNumber" |
8269 | | - }, |
8270 | | - "website": { |
8271 | | - "description": "HTTP(S) URL of the company's website.\n", |
8272 | | - "type": "string", |
8273 | | - "format": "uri", |
8274 | | - "examples": [ |
8275 | | - "https://www.sumup.com" |
8276 | | - ], |
8277 | | - "maxLength": 255, |
8278 | | - "nullable": true |
8279 | | - }, |
8280 | | - "attributes": { |
8281 | | - "$ref": "#/components/schemas/Attributes" |
8282 | | - } |
8283 | | - }, |
8284 | | - "externalDocs": { |
8285 | | - "description": "Company documentation", |
8286 | | - "url": "https://developer.sumup.com/tools/glossary/merchant#company" |
8287 | | - } |
8288 | | - }, |
8289 | 8229 | "Meta": { |
8290 | 8230 | "description": "A set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format.\n\n**Warning**: Updating Meta will overwrite the existing data. Make sure to always include the complete JSON object.", |
8291 | 8231 | "type": "object", |
|
8317 | 8257 | "website": { |
8318 | 8258 | "description": "The business's publicly available website.", |
8319 | 8259 | "type": "string", |
8320 | | - "format": "uri", |
8321 | 8260 | "example": "https://example.com", |
8322 | 8261 | "maxLength": 255 |
8323 | 8262 | }, |
|
8677 | 8616 | "share" |
8678 | 8617 | ] |
8679 | 8618 | }, |
8680 | | - "PersonalIdentifier": { |
8681 | | - "type": "object", |
8682 | | - "properties": { |
8683 | | - "ref": { |
8684 | | - "description": "The unique reference for the personal identifier type as defined in the country SDK.\n", |
8685 | | - "type": "string", |
8686 | | - "examples": [ |
8687 | | - "br.cpf" |
8688 | | - ] |
8689 | | - }, |
8690 | | - "value": { |
8691 | | - "description": "The company identifier value.\n", |
8692 | | - "type": "string", |
8693 | | - "examples": [ |
8694 | | - "847.060.136-90" |
8695 | | - ], |
8696 | | - "maxLength": 30 |
8697 | | - } |
| 8619 | + "PersonalIdentifiers": { |
| 8620 | + "description": "A list of country-specific personal identifiers.\n", |
| 8621 | + "type": "array", |
| 8622 | + "items": { |
| 8623 | + "$ref": "#/components/schemas/PersonalIdentifier" |
8698 | 8624 | }, |
8699 | | - "examples": [ |
8700 | | - { |
8701 | | - "ref": "br.cpf", |
8702 | | - "value": "847.060.136-90" |
8703 | | - } |
8704 | | - ], |
8705 | | - "required": [ |
8706 | | - "ref", |
8707 | | - "value" |
8708 | | - ] |
| 8625 | + "maxItems": 5 |
8709 | 8626 | }, |
8710 | 8627 | "Version": { |
8711 | 8628 | "description": "The version of the resource. The version reflects a specific change submitted to the API via one of the `PATCH` endpoints.\n", |
|
8787 | 8704 | "$ref": "#/components/schemas/Address" |
8788 | 8705 | }, |
8789 | 8706 | "identifiers": { |
8790 | | - "description": "A list of country-specific personal identifiers.\n", |
8791 | | - "type": "array", |
8792 | | - "items": { |
8793 | | - "$ref": "#/components/schemas/PersonalIdentifier" |
8794 | | - }, |
8795 | | - "maxItems": 5 |
| 8707 | + "$ref": "#/components/schemas/PersonalIdentifiers" |
8796 | 8708 | }, |
8797 | 8709 | "citizenship": { |
8798 | 8710 | "$ref": "#/components/schemas/CountryCode" |
|
8824 | 8736 | "id" |
8825 | 8737 | ] |
8826 | 8738 | }, |
| 8739 | + "PersonalIdentifier": { |
| 8740 | + "type": "object", |
| 8741 | + "properties": { |
| 8742 | + "ref": { |
| 8743 | + "description": "The unique reference for the personal identifier type as defined in the country SDK.\n", |
| 8744 | + "type": "string", |
| 8745 | + "examples": [ |
| 8746 | + "br.cpf" |
| 8747 | + ] |
| 8748 | + }, |
| 8749 | + "value": { |
| 8750 | + "description": "The value of the personal identifier.\n", |
| 8751 | + "type": "string", |
| 8752 | + "examples": [ |
| 8753 | + "847.060.136-90" |
| 8754 | + ], |
| 8755 | + "maxLength": 30 |
| 8756 | + } |
| 8757 | + }, |
| 8758 | + "examples": [ |
| 8759 | + { |
| 8760 | + "ref": "br.cpf", |
| 8761 | + "value": "847.060.136-90" |
| 8762 | + } |
| 8763 | + ], |
| 8764 | + "required": [ |
| 8765 | + "ref", |
| 8766 | + "value" |
| 8767 | + ] |
| 8768 | + }, |
| 8769 | + "Company": { |
| 8770 | + "description": "Information about the company or business. This is legal information that is used for verification.\n", |
| 8771 | + "type": "object", |
| 8772 | + "properties": { |
| 8773 | + "name": { |
| 8774 | + "description": "The company's legal name.", |
| 8775 | + "type": "string", |
| 8776 | + "example": "Gin & Doughnuts Bar GmbH", |
| 8777 | + "maxLength": 150, |
| 8778 | + "minLength": 1 |
| 8779 | + }, |
| 8780 | + "merchant_category_code": { |
| 8781 | + "description": "The merchant category code for the account as specified by [ISO18245](https://www.iso.org/standard/33365.html). MCCs are used to classify businesses based on the goods or services they provide.\n", |
| 8782 | + "type": "string", |
| 8783 | + "example": "1532", |
| 8784 | + "pattern": "^[0-9]{4}$" |
| 8785 | + }, |
| 8786 | + "legal_type": { |
| 8787 | + "$ref": "#/components/schemas/LegalType" |
| 8788 | + }, |
| 8789 | + "address": { |
| 8790 | + "$ref": "#/components/schemas/Address" |
| 8791 | + }, |
| 8792 | + "trading_address": { |
| 8793 | + "$ref": "#/components/schemas/Address" |
| 8794 | + }, |
| 8795 | + "identifiers": { |
| 8796 | + "$ref": "#/components/schemas/CompanyIdentifiers" |
| 8797 | + }, |
| 8798 | + "phone_number": { |
| 8799 | + "$ref": "#/components/schemas/PhoneNumber" |
| 8800 | + }, |
| 8801 | + "website": { |
| 8802 | + "description": "HTTP(S) URL of the company's website.\n", |
| 8803 | + "type": "string", |
| 8804 | + "examples": [ |
| 8805 | + "https://www.sumup.com" |
| 8806 | + ], |
| 8807 | + "maxLength": 255 |
| 8808 | + }, |
| 8809 | + "attributes": { |
| 8810 | + "$ref": "#/components/schemas/Attributes" |
| 8811 | + } |
| 8812 | + }, |
| 8813 | + "externalDocs": { |
| 8814 | + "description": "Company documentation", |
| 8815 | + "url": "https://developer.sumup.com/tools/glossary/merchant#company" |
| 8816 | + } |
| 8817 | + }, |
8827 | 8818 | "ClassicMerchantIdentifiers": { |
8828 | 8819 | "type": "object", |
8829 | 8820 | "properties": { |
|
9595 | 9586 | "UpdateReaderByID": { |
9596 | 9587 | "operationId": "UpdateReader", |
9597 | 9588 | "parameters": { |
9598 | | - "id": "$response.body#/id" |
| 9589 | + "reader_id": "$response.body#/id" |
9599 | 9590 | }, |
9600 | 9591 | "description": "Update the reader object. This can be used to set a name after using this endpoint to verify the pairing code." |
9601 | 9592 | }, |
9602 | 9593 | "DeleteReaderByID": { |
9603 | 9594 | "operationId": "DeleteReader", |
9604 | 9595 | "parameters": { |
9605 | | - "id": "$response.body#/id" |
| 9596 | + "reader_id": "$response.body#/id" |
9606 | 9597 | }, |
9607 | 9598 | "description": "Delete the reader." |
9608 | 9599 | } |
|
0 commit comments