diff --git a/PostmanCollections/VTEX - Payment Provider Protocol.json b/PostmanCollections/VTEX - Payment Provider Protocol.json index ba2f31790..9a71e0103 100644 --- a/PostmanCollections/VTEX - Payment Provider Protocol.json +++ b/PostmanCollections/VTEX - Payment Provider Protocol.json @@ -1,10 +1,10 @@ { "_": { - "postman_id": "a3a8f997-c161-4370-b44f-76bed34d4393" + "postman_id": "63470053-40d3-4944-967e-47d3b7149dfe" }, "item": [ { - "id": "9cf23b81-4d86-41b6-821f-7f09b4717a21", + "id": "88d49ae0-7e99-4419-bed3-fc813f79dab9", "name": "Payment Flow", "description": { "content": "Here we describe each operation you need to implement for the payment flow.", @@ -12,12 +12,12 @@ }, "item": [ { - "id": "589d9741-3231-40a9-9d98-f3489378e441", + "id": "366c913b-d028-4497-a4ab-3745efdf9499", "name": "List Payment Provider Manifest", "request": { "name": "List Payment Provider Manifest", "description": { - "content": "Exposes provider manifest, a range of metadata settings, like payment methods, split configuration and custom fields.\n\n## Available payment methods\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Payment MethodTypeCountry
VisaCredit CardGlobal
MastercardCredit CardGlobal
American ExpressCredit CardGlobal
DiscoverCredit CardGlobal
JCBCredit CardGlobal
DinersCredit CardGlobal
EloCredit CardBrazil
HipercardCredit CardBrazil
AuraCredit CardBrazil
BanricomprasCredit CardBrazil
CredzCredit CardBrazil
VirtualDebitEloDebit CardBrazil
CabalCredit CardArgentina, Brazil, Uruguay, Paraguay
Visa ElectronDebit CardGlobal
MaestroDebit CardGlobal
Mastercard DebitDebit CardGlobal
CobrandedCardGlobal
PrivatelabelsCardGlobal
PromissoriesGenericGlobal
CashGenericGlobal
BankInvoiceOffline/VoucherBrazil (Boleto Bancário)
PixOnline TransferBrazil
SPEIOnline TransferMexico
SafetypayOnline TransferAmericas and Europe
BitcoinCryptocurrencyGlobal
Venda Direta CreditoCredit Card (Physical)Global
Venda Direta DebitoDebit Card (Physical)Global
", + "content": "Exposes provider manifest, a range of metadata settings, like payment methods, split configuration and custom fields.\n\n## Available payment methods\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Payment MethodTypeCountry
VisaCredit CardGlobal
MastercardCredit CardGlobal
American ExpressCredit CardGlobal
DiscoverCredit CardGlobal
JCBCredit CardGlobal
DinersCredit CardGlobal
EloCredit CardBrazil
HipercardCredit CardBrazil
AuraCredit CardBrazil
BanricomprasCredit CardBrazil
CredzCredit CardBrazil
VirtualDebitEloDebit CardBrazil
CabalCredit CardArgentina, Brazil, Uruguay, Paraguay
Visa ElectronDebit CardGlobal
MaestroDebit CardGlobal
Mastercard DebitDebit CardGlobal
CobrandedCardGlobal
PrivatelabelsCardGlobal
PromissoriesGenericGlobal
CashGenericGlobal
BankInvoiceOffline/VoucherBrazil (Boleto Bancário)
PixOnline TransferBrazil
SPEIOnline TransferMexico
SafetypayOnline TransferAmericas and Europe
BitcoinCryptocurrencyGlobal
Venda Direta CreditoCredit Card (Physical)Global
Venda Direta DebitoDebit Card (Physical)Global
\r\n\r\n## Permissions\r\n\r\nThis endpoint does not require [permissions](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3).", "type": "text/plain" }, "url": { @@ -53,7 +53,8 @@ "_": { "postman_previewlanguage": "json" }, - "id": "c739a1b7-dd55-4ab6-966a-b17ebd9ef5d8", + "id": "6c2e7a8a-ab52-4bdd-bd8e-070fe7dd1ee1", + "name": "OK", "originalRequest": { "url": { "path": [ @@ -79,7 +80,7 @@ { "disabled": false, "description": { - "content": "(Required) The Media type of the body of the request. Default value for payment provider protocol is application/json", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, "key": "Content-Type", @@ -88,7 +89,7 @@ { "disabled": false, "description": { - "content": "(Required) Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, "key": "Accept", @@ -118,7 +119,7 @@ { "listen": "test", "script": { - "id": "082607ce-b959-4d9f-8f5b-bea5a761142b", + "id": "e7789834-aad5-4bb5-8f4c-bf2a95c0d070", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/manifest - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -134,12 +135,12 @@ } }, { - "id": "4b6a5bac-5988-48a0-b8bc-2f99bd2f7375", + "id": "e3bd424c-2e0c-4ed7-8da4-85dd381d9ad3", "name": "Create Payment", "request": { "name": "Create Payment", "description": { - "content": "Creates a new payment and initiates the payment flow.\r\n\r\nFor credit/debit card payments or any sync payments, you're expected to execute the authorization.\r\n\r\nYou're expected to return the required information to the customer for bank-issued invoice, redirect, or any async payments.\r\n\r\nThe same request, for the same `paymentId`, can be executed several times, so you must handle it in a way to avoid recreating the payment, but returning the most updated status instead.\r\n\r\n## Callbacks (asynchronous flow)\r\n\r\nCallbacks are used for asynchronous payments, which do not receive the final status immediately. At first, an `undefined` status is returned, and the final status will be received from a callback request in the future as `authorized` or `denied`. There are two types of callbacks:\r\n\r\n- **Notification:** If a payment returns with `undefined` status, you are expected to send us a callback/notification to update it later, sending a POST with an updated version of your response (same structure as above) to the `callbackUrl` we have provided.\r\n\r\n- **Retry:** If a payment returns with `undefined` status, you are expected to call the retry endpoint provided by the `callbackUrl` when the processing of the payment is completed, so we make another Create Payment request to update the status with the new value (`authorized` or `denied`).\r\n\r\nCallback requests should be authenticated using a Key and Token which you can [generate from your VTEX partner account License Manager](https://help.vtex.com/en/tutorial/application-keys--2iffYzlvvz4BDMr6WGUtet#generating-app-keys-in-your-account). To do so, `POST` your request passing the `X-VTEX-API-AppKey` and `X-VTEX-API-AppToken` headers with your credentials. **Note:** do not mix up these credentials with the ones we send on behalf of the merchant when sending our requests.\r\n\r\n>⚠ For integrations not using VTEX IO, use the **Notification** callback. For integrations developed using VTEX IO infrastructure, use the **Retry** callback.\r\n\r\n### Callback URL\r\n\r\nThe `callbackUrl` field contains an URL that the payment provider uses to make a callback and inform our gateway of the final payment status: `approved` or `denied`. \r\n\r\nThis URL has some query parameters, including the `X-VTEX-signature`. This parameter is mandatory and contains a signature token to identify that the request has been generated from VTEX as a security measure. The signature token has at most 32 characters. You can check an example of callback URL with the signature token below:\r\n\r\n```\r\nhttps://gatewayqa.vtexpayments.com.br/api/pvt/payment-provider/transactions/8FB0F111111122222333344449984ACB/payments/A2A9A25B11111111222222333327883C/callback?accountName=teampaymentsintegrations&X-VTEX-signature=R123456789aBcDeFGHij1234567890tk\r\n```\r\n\r\nIn the [Transactions page of the Admin](https://help.vtex.com/en/tutorial/how-to-view-the-orders-details--tutorials_452), the signature token appears masked for security reasons, as in this example: `X-VTEX-signature=Rj******tk`.\r\n\r\nWhen making the callback request, we recommend that payment providers use the callback URL exactly as received, which guarantees that all the parameters are included.\r\n\r\nSee below an example of a payload forwarded along with the callback URL:\r\n\r\n```json\r\n{\r\n \"paymentId\": \"8B3BA2F4352545A8B1C5A215F356A01C\",\r\n \"status\": \"approved\",\r\n \"authorizationId\": \"184520\",\r\n \"nsu\": \"21705348\",\r\n \"tid\": \"21705348\",\r\n \"acquirer\": \"pagmm\",\r\n \"code\": \"0000\",\r\n \"message\": \"Successfully approved transaction\",\r\n \"delayToAutoSettle\": 1200,\r\n \"delayToAutoSettleAfterAntifraud\": 1200,\r\n \"delayToCancel\": 86400,\r\n \"cardBrand\": \"Mastercard\",\r\n \"firstDigits\": \"534696\",\r\n \"lastDigits\": \"6921\",\r\n \"maxValue\": 16.6\r\n}\r\n```\r\n\r\n>ℹ️ The parameter values sent in the callback payload replace the original values informed in the **Create Payment** request.\r\n\r\n>⚠️ If the waiting parameters (`delayToAutoSettle` and `delayToAutoSettleAfterAntifraud`) are not sent with the callback URL, the values for these parameters will be automatically set to 24 hours.\r\n\r\n## Beta features\r\n\r\nThe beta features available for payment providers are:\r\n\r\n- `inboundRequestsUrl`: Allows to forward external requests back to your payment provider implementation, including the configured credentials (`X-VTEX-API-*` headers), and settings.\r\n\r\n>ℹ You can reach out to our team by [opening a ticket](https://help.vtex.com/en/tutorial/opening-tickets-to-vtex-support--16yOEqpO32UQYygSmMSSAM) to know more about any beta features.\r\n\r\n## Request examples\r\n\r\n### Credit Card Success Approved\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"618272\",\r\n \"orderId\": \"1072430428324\",\r\n \"shopperInteraction\": \"ecommerce\",\r\n \"transactionId\": \"2F023FD5A72A49D48A8633252B7CCBD6\",\r\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\r\n \"paymentMethod\": \"Diners\",\r\n \"merchantName\": \"mystore\",\r\n \"card\": {\r\n \"holder\": \"John Doe\",\r\n \"number\": \"364901****2661\",\r\n \"csc\": \"***\",\r\n \"expiration\": {\r\n \"month\": \"12\",\r\n \"year\": \"2020\"\r\n },\r\n \"document\": \"39295416023\",\r\n \"token\": null\r\n },\r\n \"value\": 31.90,\r\n \"referenceValue\": \"31.90\",\r\n \"currency\": \"BRL\",\r\n \"installments\": 1,\r\n \"installmentsInterestRate\": 0.00,\r\n \"installmentsValue\": 31.90,\r\n \"deviceFingerprint\": \"75076388\",\r\n \"ipAddress\": \"187.105.111.65\",\r\n \"miniCart\": {\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"cpf\",\r\n \"corporateName\": null,\r\n \"tradeName\": null,\r\n \"corporateDocument\": null,\r\n \"isCorporate\": false,\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521999999999\",\r\n \"createdDate\": \"2020-02-18T18:17:45\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"8\",\r\n \"name\": \"Tenis Preto I\",\r\n \"price\": 30.9,\r\n \"quantity\": 1,\r\n \"discount\": 0.0,\r\n \"deliveryType\": \"Normal\",\r\n \"categoryId\": \"5\",\r\n \"sellerId\": \"1\"\r\n }\r\n ],\r\n \"shippingValue\": 1.0,\r\n \"taxValue\": 0.0\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders?q=1072430428324\",\r\n \"callbackUrl\": \"https://api.mystore.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/1072430428324\",\r\n \"inboundRequestsUrl\": \"https://api.mystore.example.com/checkout/order/1072430428324/inbound-request/:action\",\r\n \"recipients\": [\r\n {\r\n \"id\": \"mymarketplace\",\r\n \"name\": \"My Marketplace QA\",\r\n \"documentType\": \"CNPJ\",\r\n \"document\": \"99999999999999\",\r\n \"role\": \"marketplace\",\r\n \"chargeProcessingFee\": true,\r\n \"chargebackLiable\": true,\r\n \"amount\": 31.90\r\n }\r\n ],\r\n \"merchantSettings\": [\r\n {\r\n \"name\": \"field1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"field2\",\r\n \"value\": \"value2\"\r\n }\r\n ]\r\n}'\r\n```\r\n\r\n### Pix Success Approved\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw curl --location --request GET '' \\\r\n--header 'Content-Type: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"Pix\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": \"4307.23\",\r\n \"referenceValue\": \"4307.23\",\r\n \"currency\": \"BRL\",\r\n \"installments\": \"1\",\r\n \"deviceFingerprint\": \"15ace369587ha\",\r\n \"card\": {\r\n \"holder\": null,\r\n \"number\": null,\r\n \"csc\": null,\r\n \"expiration\": {\r\n \"month\": null,\r\n \"year\": null\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": \"11.44\",\r\n \"taxValue\": \"10.01\",\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"cpf\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521999999999\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders/v32478982\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/v32478982\"\r\n}'\r\n```\r\n\r\n### Success Undefined\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"Visa\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": \"4000.00\",\r\n \"currency\": \"BRL\",\r\n \"installments\": 3,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": \"John Doe\",\r\n \"number\": \"4682185088924788\",\r\n \"csc\": \"021\",\r\n \"expiration\": {\r\n \"month\": \"06\",\r\n \"year\": \"2029\"\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders/v32478982\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/v32478982\"\r\n}'\r\n```\r\n\r\n### Success Undefined BankInvoice\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"BankInvoice\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": 4307.23,\r\n \"currency\": \"BRL\",\r\n \"installments\": 1,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": null,\r\n \"number\": null,\r\n \"csc\": null,\r\n \"expiration\": {\r\n \"month\": null,\r\n \"year\": null\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders/v32478982\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/v32478982\"\r\n}'\r\n```\r\n\r\n### Success Denied\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"Visa\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": 4000.00,\r\n \"currency\": \"BRL\",\r\n \"installments\": 3,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": \"John Doe\",\r\n \"number\": \"4682185088924788\",\r\n \"csc\": \"021\",\r\n \"expiration\": {\r\n \"month\": \"06\",\r\n \"year\": \"2029\"\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders/v32478982\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/v32478982\"\r\n}'\r\n```\r\n\r\n### Boleto Success Approved\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"618272\",\r\n \"orderId\": \"1072430428324\",\r\n \"shopperInteraction\": \"ecommerce\",\r\n \"transactionId\": \"2F023FD5A72A49D48A8633252B7CCBD6\",\r\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\r\n \"paymentMethod\": \"BankInvoice\",\r\n \"merchantName\": \"mystore\",\r\n \"card\": {\r\n \"holder\": \"null\",\r\n \"number\": \"null\",\r\n \"csc\": \"null\",\r\n \"expiration\": {\r\n \"month\": \"null\",\r\n \"year\": \"null\"\r\n }\r\n },\r\n \"document\": null,\r\n \"token\": null\r\n }\r\n \"value\": 31.90,\r\n \"referenceValue\": 31.90,\r\n \"currency\": \"BRL\",\r\n \"installments\": 1,\r\n \"installmentsInterestRate\": 0.00,\r\n \"installmentsValue\": 31.90,\r\n \"deviceFingerprint\": \"98073964\",\r\n \"ipAddress\": \"187.105.111.65\",\r\n \"miniCart\": {\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"cpf\",\r\n \"corporateName\": null,\r\n \"tradeName\": null,\r\n \"corporateDocument\": null,\r\n \"isCorporate\": false,\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521999999999\",\r\n \"createdDate\": \"2020-02-18T18:17:45\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"8\",\r\n \"name\": \"Tenis Preto I\",\r\n \"price\": 30.9,\r\n \"quantity\": 1,\r\n \"discount\": 0.0,\r\n \"deliveryType\": \"Normal\",\r\n \"categoryId\": \"5\",\r\n \"sellerId\": \"1\"\r\n }\r\n ],\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders?q=1072430428324\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/1072430428324\",\r\n \"inboundRequestsUrl\": \"https://api.mystore.example.com/checkout/order/1072430428324/inbound-request/:action\",\r\n \"recipients\": [\r\n {\r\n \"id\": \"mymarketplace\",\r\n \"name\": \"My Marketplace QA\",\r\n \"documentType\": \"CNPJ\",\r\n \"document\": \"99999999999999\",\r\n \"role\": \"marketplace\",\r\n \"chargeProcessingFee\": true,\r\n \"chargebackLiable\": true,\r\n \"amount\": 31.90\r\n }\r\n ],\r\n \"merchantSettings\": [\r\n {\r\n \"name\": \"field1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"field2\",\r\n \"value\": \"value2\"\r\n }\r\n ]\r\n }\r\n}'\r\n```\r\n\r\n### Payment App + Inbound Request Success Undefined\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"CustomPay\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": 4307.23,\r\n \"currency\": \"BRL\",\r\n \"installments\": 1,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": null,\r\n \"number\": null,\r\n \"csc\": null,\r\n \"expiration\": {\r\n \"month\": null,\r\n \"year\": null\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders/v32478982\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/v32478982\",\r\n \"inboundRequestsUrl\": \"https://mystore.api.example.com/some-path/inbound-request/:action\"\r\n}'\r\n```\r\n\r\n### Redirect Success Undefined\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"FakePay\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": 4307.23,\r\n \"currency\": \"BRL\",\r\n \"installments\": 1,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": null,\r\n \"number\": null,\r\n \"csc\": null,\r\n \"expiration\": {\r\n \"month\": null,\r\n \"year\": null\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders/v32478982\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/v32478982\"\r\n}'\r\n```\r\n\r\n### Redirect Success Approved\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"618272\",\r\n \"orderId\": \"1072430428324\",\r\n \"shopperInteraction\": \"ecommerce\",\r\n \"transactionId\": \"2F023FD5A72A49D48A8633252B7CCBD6\",\r\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\r\n \"paymentMethod\": \"RedirectPay\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 31.90,\r\n \"referenceValue\": 31.90,\r\n \"currency\": \"BRL\",\r\n \"installments\": 1,\r\n \"installmentsInterestRate\": 0.00,\r\n \"installmentsValue\": 31.90,\r\n \"deviceFingerprint\": \"75076388\",\r\n \"ipAddress\": \"187.105.111.65\",\r\n \"miniCart\": {\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"cpf\",\r\n \"corporateName\": null,\r\n \"tradeName\": null,\r\n \"corporateDocument\": null,\r\n \"isCorporate\": false,\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521999999999\",\r\n \"createdDate\": \"2020-02-18T18:17:45\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"8\",\r\n \"name\": \"Tenis Preto I\",\r\n \"price\": 30.9,\r\n \"quantity\": 1,\r\n \"discount\": 0.0,\r\n \"deliveryType\": \"Normal\",\r\n \"categoryId\": \"5\",\r\n \"sellerId\": \"1\"\r\n } \r\n ],\r\n \"shippingValue\": 1.0,\r\n \"taxValue\": 0.0\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders/v32478982\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/v32478982\",\r\n \"inboundRequestsUrl\": \"https://api.mystore.example.com/checkout/order/1072430428324/inbound-request/:action\",\r\n \"recipients\": [\r\n {\r\n \"id\": \"mymarketplace\",\r\n \"name\": \"My Marketplace QA\",\r\n \"documentType\": \"CNPJ\",\r\n \"document\": \"99999999999999\",\r\n \"role\": \"marketplace\",\r\n \"chargeProcessingFee\": true,\r\n \"chargebackLiable\": true,\r\n \"amount\": 31.90\r\n }\r\n ],\r\n \"merchantSettings\": [\r\n {\r\n \"name\": \"field1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"field2\",\r\n \"value\": \"value2\"\r\n }\r\n ]\r\n}'\r\n```\r\n\r\n### Fail Generic Error\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"Visa\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": 4000.00,\r\n \"currency\": \"BRL\",\r\n \"installments\": 3,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": \"John Doe\",\r\n \"number\": \"4682185088924788\",\r\n \"csc\": \"021\",\r\n \"expiration\": {\r\n \"month\": \"06\",\r\n \"year\": \"2029\"\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders/v32478982\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/v32478982\"\r\n}'\r\n```\r\n\r\n### Fail Bad Request\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"Visa\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": 4000.00,\r\n \"currency\": \"BRL\",\r\n \"installments\": 3,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": \"John Doe\",\r\n \"number\": \"4682185088924788\",\r\n \"csc\": \"021\",\r\n \"expiration\": {\r\n \"month\": \"06\",\r\n \"year\": \"2029\"\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders/v32478982\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/v32478982\"\r\n}'\r\n```\r\n\r\n## Response examples\r\n\r\n\r\n\r\n### 200 - OK\r\n\r\n```json\r\n{\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"status\": \"undefined\",\r\n \"tid\": \"TID1578324421\",\r\n \"authorizationId\": null,\r\n \"nsu\": null,\r\n \"code\": \"APP123\",\r\n \"paymentAppData\": {\r\n \"appName\": \"vendor.payment-auth-app\",\r\n \"payload\": \"{\\\"backendUrl\\\":\\\"https://api.example.org/payments/F5C1A4E20D3B4E07B7E871F5B5BC9F91\\\",\\\"randomString\\\":\\\"78818C2C64264212B8D5771BDC7B1A\\\",\\\"randomBool\\\":false,\\\"timestamp\\\":\\\"2019-10-07 21:30:09Z\\\"}\"\r\n },\r\n \"message\": \"The customer needs to finish the payment flow\",\r\n \"delayToAutoSettle\": 604800,\r\n \"delayToAutoSettleAfterAntifraud\": 120,\r\n \"delayToCancel\": 604800\r\n}\r\n```\r\n\r\n### 200 - OK - Pix\r\n\r\n```json\r\n{\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"status\": \"undefined\",\r\n \"tid\": \"TID1578324421\",\r\n \"authorizationId\": null,\r\n \"nsu\": null,\r\n \"code\": \"APP123\",\r\n \"paymentAppData\": {\r\n \"payload\": \"{\\\"code\\\":\\\"https://bacen.pix/pix/code\\\",\\\"qrCodeBase64Image\\\":\\\"iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAABQGlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGDiSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAxSDMwMkgwiCZmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsgspwWXFu+Xeyundb6w0WL33C5M9SiAKyW1OBlI/wHihOSCohIGBsYYIFu5vKQAxG4AskWKgI4CsqeA2OkQ9goQOwnC3gNWExLkDGRfALIFkjMSU4DsB0C2ThKSeDoSG2ovCLAZGZkbhBNwKKmgJLWiBEQ75xdUFmWmZ5QoOAJDJ1XBMy9ZT0fByMDIgIEBFNYQ1Z9vgMOQUYwDIZapzMBgmQEUfIQQSxNmYNiZzsDAU4UQU5/PwMBrxMBw5GJBYlEi3AGM31iK04yNIGzu7QwMrNP+//8M9Ca7JgPD3+v////e/v//32UMDMy3GBgOfAMA4+RdqZ9YRkcAAABWZVhJZk1NACoAAAAIAAGHaQAEAAAAAQAAABoAAAAAAAOShgAHAAAAEgAAAESgAgAEAAAAAQAAAAKgAwAEAAAAAQAAAAIAAAAAQVNDSUkAAABTY3JlZW5zaG900Fpo3gAAAdJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MjwvZXhpZjpQaXhlbFhEaW1lbnNpb24+CiAgICAgICAgIDxleGlmOlVzZXJDb21tZW50PlNjcmVlbnNob3Q8L2V4aWY6VXNlckNvbW1lbnQ+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj4yPC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cl89Cn4AAAASSURBVAgdY/wPBAxAwAQiQAAAPfgEAIAu9DkAAAAASUVORK5CYII=\\\"}\"\r\n },\r\n \"message\": \"The customer needs to finish the payment flow\",\r\n \"delayToAutoSettle\": 604800,\r\n \"delayToAutoSettleAfterAntifraud\": 120,\r\n \"delayToCancel\": 300\r\n}\r\n```\r\n\r\n### 200 - OK - Credit Card\r\n\r\n```json\r\n{\r\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\r\n \"status\": \"approved\",\r\n \"authorizationId\": \"AUT-09DC5E8F03\",\r\n \"nsu\": \"NSU-107521E866\",\r\n \"tid\": \"TID-7B58BE1A08\",\r\n \"acquirer\": \"TestPay\",\r\n \"code\": \"2000\",\r\n \"message\": null,\r\n \"delayToAutoSettle\": 21600,\r\n \"delayToAutoSettleAfterAntifraud\": 1800,\r\n \"delayToCancel\": 21600\r\n}\r\n```\r\n\r\n### 200 - OK - Boleto\r\n\r\n```json\r\n{\r\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\r\n \"status\": \"undefined\",\r\n \"authorizationId\": \"AUT-2E7CBF7290-ASYNC\",\r\n \"paymentUrl\": \"https://example.org/boleto/gatewayqa/2F023FD5A72A49D48A8633252B7CCBD6/01693EB95BE443AC85874E395CD91565\",\r\n \"identificationNumber\": \"23790504004199031316957008109209378300000019900\",\r\n \"identificationNumberFormatted\": \"23790.50400 41990.313169 57008.109209 3 78300000019900\",\r\n \"barCodeImageType\": \"i25\",\r\n \"barCodeImageNumber\": \"23793783000000199000504041990313165700810920\",\r\n \"nsu\": \"NSU-60F328ACD8-ASYNC\",\r\n \"tid\": \"TID-F3FB9B3FDB-ASYNC\",\r\n \"acquirer\": \"TestPay\",\r\n \"code\": \"2000-ASYNC\",\r\n \"message\": null,\r\n \"delayToAutoSettle\": 21600,\r\n \"delayToAutoSettleAfterAntifraud\": 1800,\r\n \"delayToCancel\": 21600\r\n}\r\n```\r\n\r\n### 200 - OK - Payment App\r\n\r\n```json\r\n{\r\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\r\n \"status\": \"undefined\",\r\n \"authorizationId\": \"AUT-6929AD8429\",\r\n \"paymentAppData\": {\r\n \"appName\": \"vtex.payment\",\r\n \"payload\": \"{\\\"approvePaymentUrl\\\":\\\"https://api.mystore.example.com/payments/F5C1A4E20D3B4E07B7E871F5B5BC9F91/callback-trigger/approved?url=https://api.mystore.example.com/transactions/D3AA1FC8372E430E8236649DB5EBD08E/payments/F5C1A4E20D3B4E07B7E871F5B5BC9F91/notification\\\",\\\"denyPaymentUrl\\\":\\\"https://api.mystore.example.com/payments/F5C1A4E20D3B4E07B7E871F5B5BC9F91/callback-trigger/denied?url=https://api.mystore.example.com/transactions/D3AA1FC8372E430E8236649DB5EBD08E/payments/F5C1A4E20D3B4E07B7E871F5B5BC9F91/notification\\\",\\\"orderId\\\":\\\"1072650953886\\\",\\\"transactionId\\\":\\\"D3AA1FC8372E430E8236649DB5EBD08E\\\",\\\"paymentId\\\":\\\"F5C1A4E20D3B4E07B7E871F5B5BC9F91\\\",\\\"timestamp\\\":\\\"2020-10-29 17:15:59Z\\\"}\"\r\n },\r\n \"nsu\": \"NSU-227AFD0BD2\",\r\n \"tid\": \"TID-DBE4BFFB19\",\r\n \"acquirer\": \"TestPay\",\r\n \"code\": \"2001\",\r\n \"message\": null,\r\n \"delayToAutoSettle\": 21600,\r\n \"delayToAutoSettleAfterAntifraud\": 1800,\r\n \"delayToCancel\": 21600\r\n}\r\n```\r\n\r\n### 200 - OK - Redirect\r\n\r\n```json\r\n{\r\n \"paymentId\": \"7ee64e51-a0d3-4405-874c-d7497ab84572\",\r\n \"status\": \"undefined\",\r\n \"tid\": \"214c699cb408ce6a7110\",\r\n \"paymentUrl\": \"http://php-connector.herokuapp.com/installments.php?paymentId=7ee64e51-a0d3-4405-874c-d7497ab84572\"\r\n}\r\n```\r\n\r\n### 200 - OK - Callback\r\n\r\n```json\r\n{\r\n \"paymentId\": \"7ee64e51-a0d3-4405-874c-d7497ab84572\",\r\n \"status\": \"approved\",\r\n \"authorizationId\": \"3baafb4097d6c8ad3883\",\r\n \"paymentUrl\": null,\r\n \"nsu\": \"214c699cb408ce6a7110\",\r\n \"tid\": \"214c699cb408ce6a7110\",\r\n \"acquirer\": null,\r\n \"code\": null,\r\n \"message\": \"Payment with custom installments approved\",\r\n \"delayToAutoSettle\": 21600,\r\n \"delayToAutoSettleAfterAntifraud\": 1800,\r\n \"delayToCancel\": 21600\r\n}\r\n```", + "content": "Creates a new payment and initiates the payment flow.\r\n\r\nFor credit/debit card payments or any sync payments, you're expected to execute the authorization.\r\n\r\nYou're expected to return the required information to the customer for bank-issued invoice, redirect, or any async payments.\r\n\r\nThe same request, for the same `paymentId`, can be executed several times, so you must handle it in a way to avoid recreating the payment, but returning the most updated status instead.\r\n\r\n## Callbacks (asynchronous flow)\r\n\r\nCallbacks are used for asynchronous payments, which do not receive the final status immediately. At first, an `undefined` status is returned, and the final status will be received from a callback request in the future as `authorized` or `denied`. There are two types of callbacks:\r\n\r\n- **Notification:** If a payment returns with `undefined` status, you are expected to send us a callback/notification to update it later, sending a POST with an updated version of your response (same structure as above) to the `callbackUrl` we have provided.\r\n\r\n- **Retry:** If a payment returns with `undefined` status, you are expected to call the retry endpoint provided by the `callbackUrl` when the processing of the payment is completed, so we make another Create Payment request to update the status with the new value (`authorized` or `denied`).\r\n\r\nCallback requests should be authenticated using a Key and Token which you can [generate from your VTEX partner account License Manager](https://help.vtex.com/en/tutorial/application-keys--2iffYzlvvz4BDMr6WGUtet#generating-app-keys-in-your-account). To do so, `POST` your request passing the `X-VTEX-API-AppKey` and `X-VTEX-API-AppToken` headers with your credentials. **Note:** do not mix up these credentials with the ones we send on behalf of the merchant when sending our requests.\r\n\r\n>⚠ For integrations not using VTEX IO, use the **Notification** callback. For integrations developed using VTEX IO infrastructure, use the **Retry** callback.\r\n\r\n### Callback URL\r\n\r\nThe `callbackUrl` field contains an URL that the payment provider uses to make a callback and inform our gateway of the final payment status: `approved` or `denied`. \r\n\r\nThis URL has some query parameters, including the `X-VTEX-signature`. This parameter is mandatory and contains a signature token to identify that the request has been generated from VTEX as a security measure. The signature token has at most 32 characters. You can check an example of callback URL with the signature token below:\r\n\r\n```\r\nhttps://gatewayqa.vtexpayments.com.br/api/pvt/payment-provider/transactions/8FB0F111111122222333344449984ACB/payments/A2A9A25B11111111222222333327883C/callback?accountName=teampaymentsintegrations&X-VTEX-signature=R******tk\r\n```\r\n\r\nIn the [Transactions page of the Admin](https://help.vtex.com/en/tutorial/how-to-view-the-orders-details--tutorials_452), the signature token appears masked for security reasons, as in this example: `X-VTEX-signature=Rj******tk`.\r\n\r\nWhen making the callback request, we recommend that payment providers use the callback URL exactly as received, which guarantees that all the parameters are included.\r\n\r\nSee below an example of a payload forwarded along with the callback URL:\r\n\r\n```json\r\n{\r\n \"paymentId\": \"8B3BA2F4352545A8B1C5A215F356A01C\",\r\n \"status\": \"approved\",\r\n \"authorizationId\": \"184520\",\r\n \"nsu\": \"21705348\",\r\n \"tid\": \"21705348\",\r\n \"acquirer\": \"pagmm\",\r\n \"code\": \"0000\",\r\n \"message\": \"Successfully approved transaction\",\r\n \"delayToAutoSettle\": 1200,\r\n \"delayToAutoSettleAfterAntifraud\": 1200,\r\n \"delayToCancel\": 86400,\r\n \"cardBrand\": \"Mastercard\",\r\n \"firstDigits\": \"534696\",\r\n \"lastDigits\": \"6921\",\r\n \"maxValue\": 16.6\r\n}\r\n```\r\n\r\n>ℹ️ The parameter values sent in the callback payload replace the original values informed in the **Create Payment** request.\r\n\r\n>⚠️ If the waiting parameters (`delayToAutoSettle` and `delayToAutoSettleAfterAntifraud`) are not sent with the callback URL, the values for these parameters will be automatically set to 24 hours.\r\n\r\n## Beta features\r\n\r\nThe beta features available for payment providers are:\r\n\r\n- `inboundRequestsUrl`: Allows to forward external requests back to your payment provider implementation, including the configured credentials (`X-VTEX-API-*` headers), and settings.\r\n\r\n>ℹ You can reach out to our team by [opening a ticket](https://help.vtex.com/en/tutorial/opening-tickets-to-vtex-support--16yOEqpO32UQYygSmMSSAM) to know more about any beta features.\r\n\r\n## Request examples\r\n\r\n### Credit Card Success Approved\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"618272\",\r\n \"orderId\": \"1072430428324\",\r\n \"shopperInteraction\": \"ecommerce\",\r\n \"transactionId\": \"2F023FD5A72A49D48A8633252B7CCBD6\",\r\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\r\n \"paymentMethod\": \"Diners\",\r\n \"merchantName\": \"mystore\",\r\n \"card\": {\r\n \"holder\": \"John Doe\",\r\n \"number\": \"364901****2661\",\r\n \"csc\": \"***\",\r\n \"expiration\": {\r\n \"month\": \"12\",\r\n \"year\": \"2020\"\r\n },\r\n \"document\": \"39295416023\",\r\n \"token\": null\r\n },\r\n \"value\": 31.90,\r\n \"referenceValue\": \"31.90\",\r\n \"currency\": \"BRL\",\r\n \"installments\": 1,\r\n \"installmentsInterestRate\": 0.00,\r\n \"installmentsValue\": 31.90,\r\n \"deviceFingerprint\": \"75076388\",\r\n \"ipAddress\": \"187.105.111.65\",\r\n \"miniCart\": {\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"cpf\",\r\n \"corporateName\": null,\r\n \"tradeName\": null,\r\n \"corporateDocument\": null,\r\n \"isCorporate\": false,\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521999999999\",\r\n \"createdDate\": \"2020-02-18T18:17:45\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"8\",\r\n \"name\": \"Tenis Preto I\",\r\n \"price\": 30.9,\r\n \"quantity\": 1,\r\n \"discount\": 0.0,\r\n \"deliveryType\": \"Normal\",\r\n \"categoryId\": \"5\",\r\n \"sellerId\": \"1\"\r\n }\r\n ],\r\n \"shippingValue\": 1.0,\r\n \"taxValue\": 0.0\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders?q=1072430428324\",\r\n \"callbackUrl\": \"https://api.mystore.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/1072430428324\",\r\n \"inboundRequestsUrl\": \"https://api.mystore.example.com/checkout/order/1072430428324/inbound-request/:action\",\r\n \"recipients\": [\r\n {\r\n \"id\": \"mymarketplace\",\r\n \"name\": \"My Marketplace QA\",\r\n \"documentType\": \"CNPJ\",\r\n \"document\": \"99999999999999\",\r\n \"role\": \"marketplace\",\r\n \"chargeProcessingFee\": true,\r\n \"chargebackLiable\": true,\r\n \"amount\": 31.90\r\n }\r\n ],\r\n \"merchantSettings\": [\r\n {\r\n \"name\": \"field1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"field2\",\r\n \"value\": \"value2\"\r\n }\r\n ]\r\n}'\r\n```\r\n\r\n### Pix Success Approved\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw curl --location --request GET '' \\\r\n--header 'Content-Type: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"Pix\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": \"4307.23\",\r\n \"referenceValue\": \"4307.23\",\r\n \"currency\": \"BRL\",\r\n \"installments\": \"1\",\r\n \"deviceFingerprint\": \"15ace369587ha\",\r\n \"card\": {\r\n \"holder\": null,\r\n \"number\": null,\r\n \"csc\": null,\r\n \"expiration\": {\r\n \"month\": null,\r\n \"year\": null\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": \"11.44\",\r\n \"taxValue\": \"10.01\",\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"cpf\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521999999999\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders/v32478982\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/v32478982\"\r\n}'\r\n```\r\n\r\n### Success Undefined\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"Visa\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": \"4000.00\",\r\n \"currency\": \"BRL\",\r\n \"installments\": 3,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": \"John Doe\",\r\n \"number\": \"4682185088924788\",\r\n \"csc\": \"021\",\r\n \"expiration\": {\r\n \"month\": \"06\",\r\n \"year\": \"2029\"\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders/v32478982\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/v32478982\"\r\n}'\r\n```\r\n\r\n### Success Undefined BankInvoice\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"BankInvoice\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": 4307.23,\r\n \"currency\": \"BRL\",\r\n \"installments\": 1,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": null,\r\n \"number\": null,\r\n \"csc\": null,\r\n \"expiration\": {\r\n \"month\": null,\r\n \"year\": null\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders/v32478982\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/v32478982\"\r\n}'\r\n```\r\n\r\n### Success Denied\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"Visa\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": 4000.00,\r\n \"currency\": \"BRL\",\r\n \"installments\": 3,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": \"John Doe\",\r\n \"number\": \"4682185088924788\",\r\n \"csc\": \"021\",\r\n \"expiration\": {\r\n \"month\": \"06\",\r\n \"year\": \"2029\"\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders/v32478982\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/v32478982\"\r\n}'\r\n```\r\n\r\n### Boleto Success Approved\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"618272\",\r\n \"orderId\": \"1072430428324\",\r\n \"shopperInteraction\": \"ecommerce\",\r\n \"transactionId\": \"2F023FD5A72A49D48A8633252B7CCBD6\",\r\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\r\n \"paymentMethod\": \"BankInvoice\",\r\n \"merchantName\": \"mystore\",\r\n \"card\": {\r\n \"holder\": \"null\",\r\n \"number\": \"null\",\r\n \"csc\": \"null\",\r\n \"expiration\": {\r\n \"month\": \"null\",\r\n \"year\": \"null\"\r\n }\r\n },\r\n \"document\": null,\r\n \"token\": null\r\n }\r\n \"value\": 31.90,\r\n \"referenceValue\": 31.90,\r\n \"currency\": \"BRL\",\r\n \"installments\": 1,\r\n \"installmentsInterestRate\": 0.00,\r\n \"installmentsValue\": 31.90,\r\n \"deviceFingerprint\": \"98073964\",\r\n \"ipAddress\": \"187.105.111.65\",\r\n \"miniCart\": {\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"cpf\",\r\n \"corporateName\": null,\r\n \"tradeName\": null,\r\n \"corporateDocument\": null,\r\n \"isCorporate\": false,\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521999999999\",\r\n \"createdDate\": \"2020-02-18T18:17:45\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"8\",\r\n \"name\": \"Tenis Preto I\",\r\n \"price\": 30.9,\r\n \"quantity\": 1,\r\n \"discount\": 0.0,\r\n \"deliveryType\": \"Normal\",\r\n \"categoryId\": \"5\",\r\n \"sellerId\": \"1\"\r\n }\r\n ],\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders?q=1072430428324\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/1072430428324\",\r\n \"inboundRequestsUrl\": \"https://api.mystore.example.com/checkout/order/1072430428324/inbound-request/:action\",\r\n \"recipients\": [\r\n {\r\n \"id\": \"mymarketplace\",\r\n \"name\": \"My Marketplace QA\",\r\n \"documentType\": \"CNPJ\",\r\n \"document\": \"99999999999999\",\r\n \"role\": \"marketplace\",\r\n \"chargeProcessingFee\": true,\r\n \"chargebackLiable\": true,\r\n \"amount\": 31.90\r\n }\r\n ],\r\n \"merchantSettings\": [\r\n {\r\n \"name\": \"field1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"field2\",\r\n \"value\": \"value2\"\r\n }\r\n ]\r\n }\r\n}'\r\n```\r\n\r\n### Payment App + Inbound Request Success Undefined\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"CustomPay\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": 4307.23,\r\n \"currency\": \"BRL\",\r\n \"installments\": 1,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": null,\r\n \"number\": null,\r\n \"csc\": null,\r\n \"expiration\": {\r\n \"month\": null,\r\n \"year\": null\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders/v32478982\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/v32478982\",\r\n \"inboundRequestsUrl\": \"https://mystore.api.example.com/some-path/inbound-request/:action\"\r\n}'\r\n```\r\n\r\n### Redirect Success Undefined\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"FakePay\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": 4307.23,\r\n \"currency\": \"BRL\",\r\n \"installments\": 1,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": null,\r\n \"number\": null,\r\n \"csc\": null,\r\n \"expiration\": {\r\n \"month\": null,\r\n \"year\": null\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders/v32478982\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/v32478982\"\r\n}'\r\n```\r\n\r\n### Redirect Success Approved\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"618272\",\r\n \"orderId\": \"1072430428324\",\r\n \"shopperInteraction\": \"ecommerce\",\r\n \"transactionId\": \"2F023FD5A72A49D48A8633252B7CCBD6\",\r\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\r\n \"paymentMethod\": \"RedirectPay\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 31.90,\r\n \"referenceValue\": 31.90,\r\n \"currency\": \"BRL\",\r\n \"installments\": 1,\r\n \"installmentsInterestRate\": 0.00,\r\n \"installmentsValue\": 31.90,\r\n \"deviceFingerprint\": \"75076388\",\r\n \"ipAddress\": \"187.105.111.65\",\r\n \"miniCart\": {\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"cpf\",\r\n \"corporateName\": null,\r\n \"tradeName\": null,\r\n \"corporateDocument\": null,\r\n \"isCorporate\": false,\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521999999999\",\r\n \"createdDate\": \"2020-02-18T18:17:45\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"8\",\r\n \"name\": \"Tenis Preto I\",\r\n \"price\": 30.9,\r\n \"quantity\": 1,\r\n \"discount\": 0.0,\r\n \"deliveryType\": \"Normal\",\r\n \"categoryId\": \"5\",\r\n \"sellerId\": \"1\"\r\n } \r\n ],\r\n \"shippingValue\": 1.0,\r\n \"taxValue\": 0.0\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders/v32478982\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/v32478982\",\r\n \"inboundRequestsUrl\": \"https://api.mystore.example.com/checkout/order/1072430428324/inbound-request/:action\",\r\n \"recipients\": [\r\n {\r\n \"id\": \"mymarketplace\",\r\n \"name\": \"My Marketplace QA\",\r\n \"documentType\": \"CNPJ\",\r\n \"document\": \"99999999999999\",\r\n \"role\": \"marketplace\",\r\n \"chargeProcessingFee\": true,\r\n \"chargebackLiable\": true,\r\n \"amount\": 31.90\r\n }\r\n ],\r\n \"merchantSettings\": [\r\n {\r\n \"name\": \"field1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"field2\",\r\n \"value\": \"value2\"\r\n }\r\n ]\r\n}'\r\n```\r\n\r\n### Fail Generic Error\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"Visa\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": 4000.00,\r\n \"currency\": \"BRL\",\r\n \"installments\": 3,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": \"John Doe\",\r\n \"number\": \"4682185088924788\",\r\n \"csc\": \"021\",\r\n \"expiration\": {\r\n \"month\": \"06\",\r\n \"year\": \"2029\"\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders/v32478982\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/v32478982\"\r\n}'\r\n```\r\n\r\n### Fail Bad Request\r\n\r\n```json\r\ncurl --location --request POST 'https://{{providerApiEndpoint}}/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application/json' \\\r\n--header 'Accept: application/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"Visa\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": 4000.00,\r\n \"currency\": \"BRL\",\r\n \"installments\": 3,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": \"John Doe\",\r\n \"number\": \"4682185088924788\",\r\n \"csc\": \"021\",\r\n \"expiration\": {\r\n \"month\": \"06\",\r\n \"year\": \"2029\"\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"São Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https://admin.mystore.example.com/orders/v32478982\",\r\n \"callbackUrl\": \"https://api.example.com/some-path/to-notify/status-changes?an=mystore\",\r\n \"returnUrl\": \"https://mystore.example.com/checkout/order/v32478982\"\r\n}'\r\n```\r\n\r\n## Response examples\r\n\r\n\r\n\r\n### 200 - OK\r\n\r\n```json\r\n{\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"status\": \"undefined\",\r\n \"tid\": \"TID1578324421\",\r\n \"authorizationId\": null,\r\n \"nsu\": null,\r\n \"code\": \"APP123\",\r\n \"paymentAppData\": {\r\n \"appName\": \"vendor.payment-auth-app\",\r\n \"payload\": \"{\\\"backendUrl\\\":\\\"https://api.example.org/payments/F5C1A4E20D3B4E07B7E871F5B5BC9F91\\\",\\\"randomString\\\":\\\"78818C2C64264212B8D5771BDC7B1A\\\",\\\"randomBool\\\":false,\\\"timestamp\\\":\\\"2019-10-07 21:30:09Z\\\"}\"\r\n },\r\n \"message\": \"The customer needs to finish the payment flow\",\r\n \"delayToAutoSettle\": 604800,\r\n \"delayToAutoSettleAfterAntifraud\": 120,\r\n \"delayToCancel\": 604800\r\n}\r\n```\r\n\r\n### 200 - OK - Pix\r\n\r\n```json\r\n{\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"status\": \"undefined\",\r\n \"tid\": \"TID1578324421\",\r\n \"authorizationId\": null,\r\n \"nsu\": null,\r\n \"code\": \"APP123\",\r\n \"paymentAppData\": {\r\n \"payload\": \"{\\\"code\\\":\\\"https://bacen.pix/pix/code\\\",\\\"qrCodeBase64Image\\\":\\\"iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAABQGlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGDiSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAxSDMwMkgwiCZmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsgspwWXFu+Xeyundb6w0WL33C5M9SiAKyW1OBlI/wHihOSCohIGBsYYIFu5vKQAxG4AskWKgI4CsqeA2OkQ9goQOwnC3gNWExLkDGRfALIFkjMSU4DsB0C2ThKSeDoSG2ovCLAZGZkbhBNwKKmgJLWiBEQ75xdUFmWmZ5QoOAJDJ1XBMy9ZT0fByMDIgIEBFNYQ1Z9vgMOQUYwDIZapzMBgmQEUfIQQSxNmYNiZzsDAU4UQU5/PwMBrxMBw5GJBYlEi3AGM31iK04yNIGzu7QwMrNP+//8M9Ca7JgPD3+v////e/v//32UMDMy3GBgOfAMA4+RdqZ9YRkcAAABWZVhJZk1NACoAAAAIAAGHaQAEAAAAAQAAABoAAAAAAAOShgAHAAAAEgAAAESgAgAEAAAAAQAAAAKgAwAEAAAAAQAAAAIAAAAAQVNDSUkAAABTY3JlZW5zaG900Fpo3gAAAdJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MjwvZXhpZjpQaXhlbFhEaW1lbnNpb24+CiAgICAgICAgIDxleGlmOlVzZXJDb21tZW50PlNjcmVlbnNob3Q8L2V4aWY6VXNlckNvbW1lbnQ+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj4yPC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cl89Cn4AAAASSURBVAgdY/wPBAxAwAQiQAAAPfgEAIAu9DkAAAAASUVORK5CYII=\\\"}\"\r\n },\r\n \"message\": \"The customer needs to finish the payment flow\",\r\n \"delayToAutoSettle\": 604800,\r\n \"delayToAutoSettleAfterAntifraud\": 120,\r\n \"delayToCancel\": 300\r\n}\r\n```\r\n\r\n### 200 - OK - Credit Card\r\n\r\n```json\r\n{\r\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\r\n \"status\": \"approved\",\r\n \"authorizationId\": \"AUT-09DC5E8F03\",\r\n \"nsu\": \"NSU-107521E866\",\r\n \"tid\": \"TID-7B58BE1A08\",\r\n \"acquirer\": \"TestPay\",\r\n \"code\": \"2000\",\r\n \"message\": null,\r\n \"delayToAutoSettle\": 21600,\r\n \"delayToAutoSettleAfterAntifraud\": 1800,\r\n \"delayToCancel\": 21600\r\n}\r\n```\r\n\r\n### 200 - OK - Boleto\r\n\r\n```json\r\n{\r\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\r\n \"status\": \"undefined\",\r\n \"authorizationId\": \"AUT-2E7CBF7290-ASYNC\",\r\n \"paymentUrl\": \"https://example.org/boleto/gatewayqa/2F023FD5A72A49D48A8633252B7CCBD6/01693EB95BE443AC85874E395CD91565\",\r\n \"identificationNumber\": \"23790504004199031316957008109209378300000019900\",\r\n \"identificationNumberFormatted\": \"23790.50400 41990.313169 57008.109209 3 78300000019900\",\r\n \"barCodeImageType\": \"i25\",\r\n \"barCodeImageNumber\": \"23793783000000199000504041990313165700810920\",\r\n \"nsu\": \"NSU-60F328ACD8-ASYNC\",\r\n \"tid\": \"TID-F3FB9B3FDB-ASYNC\",\r\n \"acquirer\": \"TestPay\",\r\n \"code\": \"2000-ASYNC\",\r\n \"message\": null,\r\n \"delayToAutoSettle\": 21600,\r\n \"delayToAutoSettleAfterAntifraud\": 1800,\r\n \"delayToCancel\": 21600\r\n}\r\n```\r\n\r\n### 200 - OK - Payment App\r\n\r\n```json\r\n{\r\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\r\n \"status\": \"undefined\",\r\n \"authorizationId\": \"AUT-6929AD8429\",\r\n \"paymentAppData\": {\r\n \"appName\": \"vtex.payment\",\r\n \"payload\": \"{\\\"approvePaymentUrl\\\":\\\"https://api.mystore.example.com/payments/F5C1A4E20D3B4E07B7E871F5B5BC9F91/callback-trigger/approved?url=https://api.mystore.example.com/transactions/D3AA1FC8372E430E8236649DB5EBD08E/payments/F5C1A4E20D3B4E07B7E871F5B5BC9F91/notification\\\",\\\"denyPaymentUrl\\\":\\\"https://api.mystore.example.com/payments/F5C1A4E20D3B4E07B7E871F5B5BC9F91/callback-trigger/denied?url=https://api.mystore.example.com/transactions/D3AA1FC8372E430E8236649DB5EBD08E/payments/F5C1A4E20D3B4E07B7E871F5B5BC9F91/notification\\\",\\\"orderId\\\":\\\"1072650953886\\\",\\\"transactionId\\\":\\\"D3AA1FC8372E430E8236649DB5EBD08E\\\",\\\"paymentId\\\":\\\"F5C1A4E20D3B4E07B7E871F5B5BC9F91\\\",\\\"timestamp\\\":\\\"2020-10-29 17:15:59Z\\\"}\"\r\n },\r\n \"nsu\": \"NSU-227AFD0BD2\",\r\n \"tid\": \"TID-DBE4BFFB19\",\r\n \"acquirer\": \"TestPay\",\r\n \"code\": \"2001\",\r\n \"message\": null,\r\n \"delayToAutoSettle\": 21600,\r\n \"delayToAutoSettleAfterAntifraud\": 1800,\r\n \"delayToCancel\": 21600\r\n}\r\n```\r\n\r\n### 200 - OK - Redirect\r\n\r\n```json\r\n{\r\n \"paymentId\": \"7ee64e51-a0d3-4405-874c-d7497ab84572\",\r\n \"status\": \"undefined\",\r\n \"tid\": \"214c699cb408ce6a7110\",\r\n \"paymentUrl\": \"http://php-connector.herokuapp.com/installments.php?paymentId=7ee64e51-a0d3-4405-874c-d7497ab84572\"\r\n}\r\n```\r\n\r\n### 200 - OK - Callback\r\n\r\n```json\r\n{\r\n \"paymentId\": \"7ee64e51-a0d3-4405-874c-d7497ab84572\",\r\n \"status\": \"approved\",\r\n \"authorizationId\": \"3baafb4097d6c8ad3883\",\r\n \"paymentUrl\": null,\r\n \"nsu\": \"214c699cb408ce6a7110\",\r\n \"tid\": \"214c699cb408ce6a7110\",\r\n \"acquirer\": null,\r\n \"code\": null,\r\n \"message\": \"Payment with custom installments approved\",\r\n \"delayToAutoSettle\": 21600,\r\n \"delayToAutoSettleAfterAntifraud\": 1800,\r\n \"delayToCancel\": 21600\r\n}\r\n``` \r\n\r\n## Permissions\r\n\r\nThis endpoint does not require [permissions](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3).", "type": "text/plain" }, "url": { @@ -163,24 +164,6 @@ ] }, "header": [ - { - "disabled": false, - "description": { - "content": "(Required) The AppKey configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "{{X-VTEX-API-AppKey}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) The AppToken configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppToken", - "value": "{{X-VTEX-API-AppToken}}" - }, { "key": "Content-Type", "value": "application/json" @@ -193,7 +176,7 @@ "method": "POST", "body": { "mode": "raw", - "raw": "{\n \"reference\": \"618272\",\n \"orderId\": \"1072430428324\",\n \"shopperInteraction\": \"ecommerce\",\n \"transactionId\": \"2F023FD5A72A49D48A8633252B7CCBD6\",\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\n \"paymentMethod\": \"Diners\",\n \"paymentMethodCustomCode\": null,\n \"merchantName\": \"mystore\",\n \"value\": 31.9,\n \"currency\": \"BRL\",\n \"installments\": 1,\n \"deviceFingerprint\": \"75076388\",\n \"card\": {\n \"holder\": \"John Doe\",\n \"number\": \"364901****2661\",\n \"csc\": \"***\",\n \"expiration\": {\n \"month\": \"12\",\n \"year\": \"2020\"\n },\n \"holderToken\": \"#vtex#token#d799bae#csc#\",\n \"bin\": \"364901\",\n \"numberToken\": \"#vtex#token#d799bae#number#\",\n \"numberLength\": 16,\n \"cscToken\": \"#vtex#token#d799bae#csc#\",\n \"cscLength\": 3,\n \"document\": \"39295416023\",\n \"paymentOrigin\": \"Google Pay\",\n \"cryptogram\": \"/gAAAAAAAbQHWutaqaYsQLsAAAA=\",\n \"eci\": \"05\"\n },\n \"miniCart\": {\n \"shippingValue\": 2,\n \"taxValue\": 1,\n \"buyer\": {\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"document\": \"01234567890\",\n \"documentType\": \"cpf\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"+5521999999999\",\n \"isCorporate\": false,\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\n \"corporateName\": \"VTEX\",\n \"tradeName\": \"VTEX\",\n \"corporateDocument\": \"123456789\",\n \"createdDate\": \"2020-02-18T18:17:45\"\n },\n \"shippingAddress\": {\n \"country\": \"BRA\",\n \"street\": \"Praia de Botafogo St.\",\n \"number\": \"300\",\n \"neighborhood\": \"Botafogo\",\n \"postalCode\": \"22250040\",\n \"city\": \"Rio de Janeiro\",\n \"state\": \"RJ\",\n \"complement\": \"3rd Floor\"\n },\n \"billingAddress\": {\n \"country\": \"BRA\",\n \"street\": \"Brigadeiro Faria Lima Avenue\",\n \"number\": \"4440\",\n \"neighborhood\": \"Itaim Bibi\",\n \"postalCode\": \"04538132\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"complement\": \"10th Floor\"\n },\n \"items\": [\n {\n \"id\": \"8\",\n \"name\": \"Tenis Preto I\",\n \"price\": 30.9,\n \"quantity\": 1,\n \"discount\": 0,\n \"deliveryType\": \"Normal\",\n \"categoryId\": \"5\",\n \"sellerId\": \"1\",\n \"taxRate\": 0.05,\n \"taxValue\": 1.54\n },\n {\n \"id\": \"8\",\n \"name\": \"Tenis Preto I\",\n \"price\": 30.9,\n \"quantity\": 1,\n \"discount\": 0,\n \"deliveryType\": \"Normal\",\n \"categoryId\": \"5\",\n \"sellerId\": \"1\",\n \"taxRate\": 0.05,\n \"taxValue\": 1.54\n }\n ]\n },\n \"url\": \"https://admin.mystore.example.com/orders?q=1072430428324\",\n \"callbackUrl\": \"https://coinshop.vtexpayments.com.br/payment-provider/transactions/900BA26FEAC84332A53AE1007E740DE3/payments/E713830E32764BF99028A0A275841BFC/notification\",\n \"returnUrl\": \"https://mystore.example.com/checkout/order/1072430428324\",\n \"verificationOnly\": false,\n \"referenceValue\": 31.9,\n \"installmentsInterestRate\": 0,\n \"installmentsValue\": 31.9,\n \"ipAddress\": \"187.105.111.65\",\n \"recipients\": [\n {\n \"id\": \"mystore\",\n \"name\": \"Company ABC\",\n \"documentType\": \"CNPJ\",\n \"document\": \"24830098000172\",\n \"role\": \"seller\",\n \"amount\": 13.8,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"comissionAmount\": 3\n },\n {\n \"id\": \"mystore\",\n \"name\": \"Company ABC\",\n \"documentType\": \"CNPJ\",\n \"document\": \"24830098000172\",\n \"role\": \"seller\",\n \"amount\": 13.8,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"comissionAmount\": 3\n }\n ],\n \"merchantSettings\": [\n {\n \"name\": \"Public Merchant ID Test.\",\n \"value\": \"cillum dolor et\"\n },\n {\n \"name\": \"Public Merchant ID Test.\",\n \"value\": \"aliquip mollit\"\n }\n ],\n \"inboundRequestUrl\": \"https://api.mystore.example.com/checkout/order/1072430428324/inbound-request/:action\",\n \"secureProxyUrl\": \"nisi reprehenderit\",\n \"sandBoxMode\": false,\n \"totalCartValue\": 31.9\n}", + "raw": "{\n \"reference\": \"618272\",\n \"orderId\": \"1072430428324\",\n \"shopperInteraction\": \"ecommerce\",\n \"transactionId\": \"2F023FD5A72A49D48A8633252B7CCBD6\",\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\n \"paymentMethod\": \"Diners\",\n \"paymentMethodCustomCode\": null,\n \"merchantName\": \"mystore\",\n \"value\": 31.9,\n \"currency\": \"BRL\",\n \"installments\": 1,\n \"deviceFingerprint\": \"75076388\",\n \"card\": {\n \"holder\": \"John Doe\",\n \"number\": \"364901****2661\",\n \"csc\": \"***\",\n \"expiration\": {\n \"month\": \"12\",\n \"year\": \"2020\"\n },\n \"holderToken\": \"#vtex#token#d799bae#csc#\",\n \"bin\": \"364901\",\n \"numberToken\": \"#vtex#token#d799bae#number#\",\n \"numberLength\": 16,\n \"cscToken\": \"#vtex#token#d799bae#csc#\",\n \"cscLength\": 3,\n \"document\": \"39295416023\",\n \"paymentOrigin\": \"Google Pay\",\n \"cryptogram\": \"/gAAAAAAAbQHWutaqaYsQLsAAAA=\",\n \"eci\": \"05\"\n },\n \"miniCart\": {\n \"shippingValue\": 2,\n \"taxValue\": 1,\n \"buyer\": {\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"document\": \"01234567890\",\n \"documentType\": \"cpf\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"+5521999999999\",\n \"isCorporate\": false,\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\n \"corporateName\": \"VTEX\",\n \"tradeName\": \"VTEX\",\n \"corporateDocument\": \"123456789\",\n \"createdDate\": \"2020-02-18T18:17:45\"\n },\n \"shippingAddress\": {\n \"country\": \"BRA\",\n \"street\": \"Praia de Botafogo St.\",\n \"number\": \"300\",\n \"neighborhood\": \"Botafogo\",\n \"postalCode\": \"22250040\",\n \"city\": \"Rio de Janeiro\",\n \"state\": \"RJ\",\n \"complement\": \"3rd Floor\"\n },\n \"billingAddress\": {\n \"country\": \"BRA\",\n \"street\": \"Brigadeiro Faria Lima Avenue\",\n \"number\": \"4440\",\n \"neighborhood\": \"Itaim Bibi\",\n \"postalCode\": \"04538132\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"complement\": \"10th Floor\"\n },\n \"items\": [\n {\n \"id\": \"8\",\n \"name\": \"Tenis Preto I\",\n \"price\": 30.9,\n \"quantity\": 1,\n \"discount\": 0,\n \"deliveryType\": \"Normal\",\n \"categoryId\": \"5\",\n \"sellerId\": \"1\",\n \"taxRate\": 0.05,\n \"taxValue\": 1.54\n },\n {\n \"id\": \"8\",\n \"name\": \"Tenis Preto I\",\n \"price\": 30.9,\n \"quantity\": 1,\n \"discount\": 0,\n \"deliveryType\": \"Normal\",\n \"categoryId\": \"5\",\n \"sellerId\": \"1\",\n \"taxRate\": 0.05,\n \"taxValue\": 1.54\n }\n ]\n },\n \"url\": \"https://admin.mystore.example.com/orders?q=1072430428324\",\n \"callbackUrl\": \"https://coinshop.vtexpayments.com.br/payment-provider/transactions/900BA26FEAC84332A53AE1007E740DE3/payments/E713830E32764BF99028A0A275841BFC/notification\",\n \"returnUrl\": \"https://mystore.example.com/checkout/order/1072430428324\",\n \"verificationOnly\": false,\n \"referenceValue\": 31.9,\n \"installmentsInterestRate\": 0,\n \"installmentsValue\": 31.9,\n \"ipAddress\": \"187.105.111.65\",\n \"recipients\": [\n {\n \"id\": \"mystore\",\n \"name\": \"Company ABC\",\n \"documentType\": \"CNPJ\",\n \"document\": \"24830098000172\",\n \"role\": \"seller\",\n \"amount\": 13.8,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"comissionAmount\": 3\n },\n {\n \"id\": \"mystore\",\n \"name\": \"Company ABC\",\n \"documentType\": \"CNPJ\",\n \"document\": \"24830098000172\",\n \"role\": \"seller\",\n \"amount\": 13.8,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"comissionAmount\": 3\n }\n ],\n \"merchantSettings\": [\n {\n \"name\": \"Public Merchant ID Test.\",\n \"value\": \"eiusmod aliquip\"\n },\n {\n \"name\": \"Public Merchant ID Test.\",\n \"value\": \"mollit ut\"\n }\n ],\n \"inboundRequestUrl\": \"https://api.mystore.example.com/checkout/order/1072430428324/inbound-request/:action\",\n \"secureProxyUrl\": \"Lorem adipisicing Excepteur sunt\",\n \"sandBoxMode\": false,\n \"totalCartValue\": 31.9\n}", "options": { "raw": { "language": "json" @@ -226,7 +209,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "cf7ce969-2fbe-478b-8977-72c7ff7130c2", + "id": "34ddade6-4719-4ab8-a678-1be4188f26d7", "name": "OK", "originalRequest": { "url": { @@ -261,37 +244,19 @@ { "disabled": false, "description": { - "content": "(Required) The AppKey configured by the merchant (optional configuration)", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, - "key": "X-VTEX-API-AppKey", - "value": "{{X-VTEX-API-AppKey}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) The AppToken configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppToken", - "value": "{{X-VTEX-API-AppToken}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", - "type": "text/plain" - }, - "key": "Accept", + "key": "Content-Type", "value": "application/json" }, { "disabled": false, "description": { - "content": "(Required) The Media type of the body of the request. Default value for payment provider protocol is application/json", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, - "key": "Content-Type", + "key": "Accept", "value": "application/json" }, { @@ -302,7 +267,7 @@ "method": "POST", "body": { "mode": "raw", - "raw": "{\n \"reference\": \"618272\",\n \"orderId\": \"1072430428324\",\n \"shopperInteraction\": \"ecommerce\",\n \"transactionId\": \"2F023FD5A72A49D48A8633252B7CCBD6\",\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\n \"paymentMethod\": \"Diners\",\n \"paymentMethodCustomCode\": null,\n \"merchantName\": \"mystore\",\n \"value\": 31.9,\n \"currency\": \"BRL\",\n \"installments\": 1,\n \"deviceFingerprint\": \"75076388\",\n \"card\": {\n \"holder\": \"John Doe\",\n \"number\": \"364901****2661\",\n \"csc\": \"***\",\n \"expiration\": {\n \"month\": \"12\",\n \"year\": \"2020\"\n },\n \"holderToken\": \"#vtex#token#d799bae#csc#\",\n \"bin\": \"364901\",\n \"numberToken\": \"#vtex#token#d799bae#number#\",\n \"numberLength\": 16,\n \"cscToken\": \"#vtex#token#d799bae#csc#\",\n \"cscLength\": 3,\n \"document\": \"39295416023\",\n \"paymentOrigin\": \"Google Pay\",\n \"cryptogram\": \"/gAAAAAAAbQHWutaqaYsQLsAAAA=\",\n \"eci\": \"05\"\n },\n \"miniCart\": {\n \"shippingValue\": 2,\n \"taxValue\": 1,\n \"buyer\": {\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"document\": \"01234567890\",\n \"documentType\": \"cpf\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"+5521999999999\",\n \"isCorporate\": false,\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\n \"corporateName\": \"VTEX\",\n \"tradeName\": \"VTEX\",\n \"corporateDocument\": \"123456789\",\n \"createdDate\": \"2020-02-18T18:17:45\"\n },\n \"shippingAddress\": {\n \"country\": \"BRA\",\n \"street\": \"Praia de Botafogo St.\",\n \"number\": \"300\",\n \"neighborhood\": \"Botafogo\",\n \"postalCode\": \"22250040\",\n \"city\": \"Rio de Janeiro\",\n \"state\": \"RJ\",\n \"complement\": \"3rd Floor\"\n },\n \"billingAddress\": {\n \"country\": \"BRA\",\n \"street\": \"Brigadeiro Faria Lima Avenue\",\n \"number\": \"4440\",\n \"neighborhood\": \"Itaim Bibi\",\n \"postalCode\": \"04538132\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"complement\": \"10th Floor\"\n },\n \"items\": [\n {\n \"id\": \"8\",\n \"name\": \"Tenis Preto I\",\n \"price\": 30.9,\n \"quantity\": 1,\n \"discount\": 0,\n \"deliveryType\": \"Normal\",\n \"categoryId\": \"5\",\n \"sellerId\": \"1\",\n \"taxRate\": 0.05,\n \"taxValue\": 1.54\n },\n {\n \"id\": \"8\",\n \"name\": \"Tenis Preto I\",\n \"price\": 30.9,\n \"quantity\": 1,\n \"discount\": 0,\n \"deliveryType\": \"Normal\",\n \"categoryId\": \"5\",\n \"sellerId\": \"1\",\n \"taxRate\": 0.05,\n \"taxValue\": 1.54\n }\n ]\n },\n \"url\": \"https://admin.mystore.example.com/orders?q=1072430428324\",\n \"callbackUrl\": \"https://coinshop.vtexpayments.com.br/payment-provider/transactions/900BA26FEAC84332A53AE1007E740DE3/payments/E713830E32764BF99028A0A275841BFC/notification\",\n \"returnUrl\": \"https://mystore.example.com/checkout/order/1072430428324\",\n \"verificationOnly\": false,\n \"referenceValue\": 31.9,\n \"installmentsInterestRate\": 0,\n \"installmentsValue\": 31.9,\n \"ipAddress\": \"187.105.111.65\",\n \"recipients\": [\n {\n \"id\": \"mystore\",\n \"name\": \"Company ABC\",\n \"documentType\": \"CNPJ\",\n \"document\": \"24830098000172\",\n \"role\": \"seller\",\n \"amount\": 13.8,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"comissionAmount\": 3\n },\n {\n \"id\": \"mystore\",\n \"name\": \"Company ABC\",\n \"documentType\": \"CNPJ\",\n \"document\": \"24830098000172\",\n \"role\": \"seller\",\n \"amount\": 13.8,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"comissionAmount\": 3\n }\n ],\n \"merchantSettings\": [\n {\n \"name\": \"Public Merchant ID Test.\",\n \"value\": \"sed proident ea Ut\"\n },\n {\n \"name\": \"Public Merchant ID Test.\",\n \"value\": \"enim\"\n }\n ],\n \"inboundRequestUrl\": \"https://api.mystore.example.com/checkout/order/1072430428324/inbound-request/:action\",\n \"secureProxyUrl\": \"Excepteur occaecat et veniam Ut\",\n \"sandBoxMode\": false,\n \"totalCartValue\": 31.9\n}", + "raw": "{\n \"reference\": \"618272\",\n \"orderId\": \"1072430428324\",\n \"shopperInteraction\": \"ecommerce\",\n \"transactionId\": \"2F023FD5A72A49D48A8633252B7CCBD6\",\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\n \"paymentMethod\": \"Diners\",\n \"paymentMethodCustomCode\": null,\n \"merchantName\": \"mystore\",\n \"value\": 31.9,\n \"currency\": \"BRL\",\n \"installments\": 1,\n \"deviceFingerprint\": \"75076388\",\n \"card\": {\n \"holder\": \"John Doe\",\n \"number\": \"364901****2661\",\n \"csc\": \"***\",\n \"expiration\": {\n \"month\": \"12\",\n \"year\": \"2020\"\n },\n \"holderToken\": \"#vtex#token#d799bae#csc#\",\n \"bin\": \"364901\",\n \"numberToken\": \"#vtex#token#d799bae#number#\",\n \"numberLength\": 16,\n \"cscToken\": \"#vtex#token#d799bae#csc#\",\n \"cscLength\": 3,\n \"document\": \"39295416023\",\n \"paymentOrigin\": \"Google Pay\",\n \"cryptogram\": \"/gAAAAAAAbQHWutaqaYsQLsAAAA=\",\n \"eci\": \"05\"\n },\n \"miniCart\": {\n \"shippingValue\": 2,\n \"taxValue\": 1,\n \"buyer\": {\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"document\": \"01234567890\",\n \"documentType\": \"cpf\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"+5521999999999\",\n \"isCorporate\": false,\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\n \"corporateName\": \"VTEX\",\n \"tradeName\": \"VTEX\",\n \"corporateDocument\": \"123456789\",\n \"createdDate\": \"2020-02-18T18:17:45\"\n },\n \"shippingAddress\": {\n \"country\": \"BRA\",\n \"street\": \"Praia de Botafogo St.\",\n \"number\": \"300\",\n \"neighborhood\": \"Botafogo\",\n \"postalCode\": \"22250040\",\n \"city\": \"Rio de Janeiro\",\n \"state\": \"RJ\",\n \"complement\": \"3rd Floor\"\n },\n \"billingAddress\": {\n \"country\": \"BRA\",\n \"street\": \"Brigadeiro Faria Lima Avenue\",\n \"number\": \"4440\",\n \"neighborhood\": \"Itaim Bibi\",\n \"postalCode\": \"04538132\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"complement\": \"10th Floor\"\n },\n \"items\": [\n {\n \"id\": \"8\",\n \"name\": \"Tenis Preto I\",\n \"price\": 30.9,\n \"quantity\": 1,\n \"discount\": 0,\n \"deliveryType\": \"Normal\",\n \"categoryId\": \"5\",\n \"sellerId\": \"1\",\n \"taxRate\": 0.05,\n \"taxValue\": 1.54\n },\n {\n \"id\": \"8\",\n \"name\": \"Tenis Preto I\",\n \"price\": 30.9,\n \"quantity\": 1,\n \"discount\": 0,\n \"deliveryType\": \"Normal\",\n \"categoryId\": \"5\",\n \"sellerId\": \"1\",\n \"taxRate\": 0.05,\n \"taxValue\": 1.54\n }\n ]\n },\n \"url\": \"https://admin.mystore.example.com/orders?q=1072430428324\",\n \"callbackUrl\": \"https://coinshop.vtexpayments.com.br/payment-provider/transactions/900BA26FEAC84332A53AE1007E740DE3/payments/E713830E32764BF99028A0A275841BFC/notification\",\n \"returnUrl\": \"https://mystore.example.com/checkout/order/1072430428324\",\n \"verificationOnly\": false,\n \"referenceValue\": 31.9,\n \"installmentsInterestRate\": 0,\n \"installmentsValue\": 31.9,\n \"ipAddress\": \"187.105.111.65\",\n \"recipients\": [\n {\n \"id\": \"mystore\",\n \"name\": \"Company ABC\",\n \"documentType\": \"CNPJ\",\n \"document\": \"24830098000172\",\n \"role\": \"seller\",\n \"amount\": 13.8,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"comissionAmount\": 3\n },\n {\n \"id\": \"mystore\",\n \"name\": \"Company ABC\",\n \"documentType\": \"CNPJ\",\n \"document\": \"24830098000172\",\n \"role\": \"seller\",\n \"amount\": 13.8,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"comissionAmount\": 3\n }\n ],\n \"merchantSettings\": [\n {\n \"name\": \"Public Merchant ID Test.\",\n \"value\": \"in amet\"\n },\n {\n \"name\": \"Public Merchant ID Test.\",\n \"value\": \"irure dolor\"\n }\n ],\n \"inboundRequestUrl\": \"https://api.mystore.example.com/checkout/order/1072430428324/inbound-request/:action\",\n \"secureProxyUrl\": \"in est irure\",\n \"sandBoxMode\": false,\n \"totalCartValue\": 31.9\n}", "options": { "raw": { "language": "json" @@ -415,7 +380,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "4d3c44ae-f332-4627-9be9-8e359fe334e8", + "id": "8b93d215-916b-4b8b-9108-526a796567ee", "name": "Bad Request", "originalRequest": { "url": { @@ -450,37 +415,19 @@ { "disabled": false, "description": { - "content": "(Required) The AppKey configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "{{X-VTEX-API-AppKey}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) The AppToken configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppToken", - "value": "{{X-VTEX-API-AppToken}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, - "key": "Accept", + "key": "Content-Type", "value": "application/json" }, { "disabled": false, "description": { - "content": "(Required) The Media type of the body of the request. Default value for payment provider protocol is application/json", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, - "key": "Content-Type", + "key": "Accept", "value": "application/json" }, { @@ -491,7 +438,7 @@ "method": "POST", "body": { "mode": "raw", - "raw": "{\n \"reference\": \"618272\",\n \"orderId\": \"1072430428324\",\n \"shopperInteraction\": \"ecommerce\",\n \"transactionId\": \"2F023FD5A72A49D48A8633252B7CCBD6\",\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\n \"paymentMethod\": \"Diners\",\n \"paymentMethodCustomCode\": null,\n \"merchantName\": \"mystore\",\n \"value\": 31.9,\n \"currency\": \"BRL\",\n \"installments\": 1,\n \"deviceFingerprint\": \"75076388\",\n \"card\": {\n \"holder\": \"John Doe\",\n \"number\": \"364901****2661\",\n \"csc\": \"***\",\n \"expiration\": {\n \"month\": \"12\",\n \"year\": \"2020\"\n },\n \"holderToken\": \"#vtex#token#d799bae#csc#\",\n \"bin\": \"364901\",\n \"numberToken\": \"#vtex#token#d799bae#number#\",\n \"numberLength\": 16,\n \"cscToken\": \"#vtex#token#d799bae#csc#\",\n \"cscLength\": 3,\n \"document\": \"39295416023\",\n \"paymentOrigin\": \"Google Pay\",\n \"cryptogram\": \"/gAAAAAAAbQHWutaqaYsQLsAAAA=\",\n \"eci\": \"05\"\n },\n \"miniCart\": {\n \"shippingValue\": 2,\n \"taxValue\": 1,\n \"buyer\": {\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"document\": \"01234567890\",\n \"documentType\": \"cpf\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"+5521999999999\",\n \"isCorporate\": false,\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\n \"corporateName\": \"VTEX\",\n \"tradeName\": \"VTEX\",\n \"corporateDocument\": \"123456789\",\n \"createdDate\": \"2020-02-18T18:17:45\"\n },\n \"shippingAddress\": {\n \"country\": \"BRA\",\n \"street\": \"Praia de Botafogo St.\",\n \"number\": \"300\",\n \"neighborhood\": \"Botafogo\",\n \"postalCode\": \"22250040\",\n \"city\": \"Rio de Janeiro\",\n \"state\": \"RJ\",\n \"complement\": \"3rd Floor\"\n },\n \"billingAddress\": {\n \"country\": \"BRA\",\n \"street\": \"Brigadeiro Faria Lima Avenue\",\n \"number\": \"4440\",\n \"neighborhood\": \"Itaim Bibi\",\n \"postalCode\": \"04538132\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"complement\": \"10th Floor\"\n },\n \"items\": [\n {\n \"id\": \"8\",\n \"name\": \"Tenis Preto I\",\n \"price\": 30.9,\n \"quantity\": 1,\n \"discount\": 0,\n \"deliveryType\": \"Normal\",\n \"categoryId\": \"5\",\n \"sellerId\": \"1\",\n \"taxRate\": 0.05,\n \"taxValue\": 1.54\n },\n {\n \"id\": \"8\",\n \"name\": \"Tenis Preto I\",\n \"price\": 30.9,\n \"quantity\": 1,\n \"discount\": 0,\n \"deliveryType\": \"Normal\",\n \"categoryId\": \"5\",\n \"sellerId\": \"1\",\n \"taxRate\": 0.05,\n \"taxValue\": 1.54\n }\n ]\n },\n \"url\": \"https://admin.mystore.example.com/orders?q=1072430428324\",\n \"callbackUrl\": \"https://coinshop.vtexpayments.com.br/payment-provider/transactions/900BA26FEAC84332A53AE1007E740DE3/payments/E713830E32764BF99028A0A275841BFC/notification\",\n \"returnUrl\": \"https://mystore.example.com/checkout/order/1072430428324\",\n \"verificationOnly\": false,\n \"referenceValue\": 31.9,\n \"installmentsInterestRate\": 0,\n \"installmentsValue\": 31.9,\n \"ipAddress\": \"187.105.111.65\",\n \"recipients\": [\n {\n \"id\": \"mystore\",\n \"name\": \"Company ABC\",\n \"documentType\": \"CNPJ\",\n \"document\": \"24830098000172\",\n \"role\": \"seller\",\n \"amount\": 13.8,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"comissionAmount\": 3\n },\n {\n \"id\": \"mystore\",\n \"name\": \"Company ABC\",\n \"documentType\": \"CNPJ\",\n \"document\": \"24830098000172\",\n \"role\": \"seller\",\n \"amount\": 13.8,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"comissionAmount\": 3\n }\n ],\n \"merchantSettings\": [\n {\n \"name\": \"Public Merchant ID Test.\",\n \"value\": \"sed proident ea Ut\"\n },\n {\n \"name\": \"Public Merchant ID Test.\",\n \"value\": \"enim\"\n }\n ],\n \"inboundRequestUrl\": \"https://api.mystore.example.com/checkout/order/1072430428324/inbound-request/:action\",\n \"secureProxyUrl\": \"Excepteur occaecat et veniam Ut\",\n \"sandBoxMode\": false,\n \"totalCartValue\": 31.9\n}", + "raw": "{\n \"reference\": \"618272\",\n \"orderId\": \"1072430428324\",\n \"shopperInteraction\": \"ecommerce\",\n \"transactionId\": \"2F023FD5A72A49D48A8633252B7CCBD6\",\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\n \"paymentMethod\": \"Diners\",\n \"paymentMethodCustomCode\": null,\n \"merchantName\": \"mystore\",\n \"value\": 31.9,\n \"currency\": \"BRL\",\n \"installments\": 1,\n \"deviceFingerprint\": \"75076388\",\n \"card\": {\n \"holder\": \"John Doe\",\n \"number\": \"364901****2661\",\n \"csc\": \"***\",\n \"expiration\": {\n \"month\": \"12\",\n \"year\": \"2020\"\n },\n \"holderToken\": \"#vtex#token#d799bae#csc#\",\n \"bin\": \"364901\",\n \"numberToken\": \"#vtex#token#d799bae#number#\",\n \"numberLength\": 16,\n \"cscToken\": \"#vtex#token#d799bae#csc#\",\n \"cscLength\": 3,\n \"document\": \"39295416023\",\n \"paymentOrigin\": \"Google Pay\",\n \"cryptogram\": \"/gAAAAAAAbQHWutaqaYsQLsAAAA=\",\n \"eci\": \"05\"\n },\n \"miniCart\": {\n \"shippingValue\": 2,\n \"taxValue\": 1,\n \"buyer\": {\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"document\": \"01234567890\",\n \"documentType\": \"cpf\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"+5521999999999\",\n \"isCorporate\": false,\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\n \"corporateName\": \"VTEX\",\n \"tradeName\": \"VTEX\",\n \"corporateDocument\": \"123456789\",\n \"createdDate\": \"2020-02-18T18:17:45\"\n },\n \"shippingAddress\": {\n \"country\": \"BRA\",\n \"street\": \"Praia de Botafogo St.\",\n \"number\": \"300\",\n \"neighborhood\": \"Botafogo\",\n \"postalCode\": \"22250040\",\n \"city\": \"Rio de Janeiro\",\n \"state\": \"RJ\",\n \"complement\": \"3rd Floor\"\n },\n \"billingAddress\": {\n \"country\": \"BRA\",\n \"street\": \"Brigadeiro Faria Lima Avenue\",\n \"number\": \"4440\",\n \"neighborhood\": \"Itaim Bibi\",\n \"postalCode\": \"04538132\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"complement\": \"10th Floor\"\n },\n \"items\": [\n {\n \"id\": \"8\",\n \"name\": \"Tenis Preto I\",\n \"price\": 30.9,\n \"quantity\": 1,\n \"discount\": 0,\n \"deliveryType\": \"Normal\",\n \"categoryId\": \"5\",\n \"sellerId\": \"1\",\n \"taxRate\": 0.05,\n \"taxValue\": 1.54\n },\n {\n \"id\": \"8\",\n \"name\": \"Tenis Preto I\",\n \"price\": 30.9,\n \"quantity\": 1,\n \"discount\": 0,\n \"deliveryType\": \"Normal\",\n \"categoryId\": \"5\",\n \"sellerId\": \"1\",\n \"taxRate\": 0.05,\n \"taxValue\": 1.54\n }\n ]\n },\n \"url\": \"https://admin.mystore.example.com/orders?q=1072430428324\",\n \"callbackUrl\": \"https://coinshop.vtexpayments.com.br/payment-provider/transactions/900BA26FEAC84332A53AE1007E740DE3/payments/E713830E32764BF99028A0A275841BFC/notification\",\n \"returnUrl\": \"https://mystore.example.com/checkout/order/1072430428324\",\n \"verificationOnly\": false,\n \"referenceValue\": 31.9,\n \"installmentsInterestRate\": 0,\n \"installmentsValue\": 31.9,\n \"ipAddress\": \"187.105.111.65\",\n \"recipients\": [\n {\n \"id\": \"mystore\",\n \"name\": \"Company ABC\",\n \"documentType\": \"CNPJ\",\n \"document\": \"24830098000172\",\n \"role\": \"seller\",\n \"amount\": 13.8,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"comissionAmount\": 3\n },\n {\n \"id\": \"mystore\",\n \"name\": \"Company ABC\",\n \"documentType\": \"CNPJ\",\n \"document\": \"24830098000172\",\n \"role\": \"seller\",\n \"amount\": 13.8,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"comissionAmount\": 3\n }\n ],\n \"merchantSettings\": [\n {\n \"name\": \"Public Merchant ID Test.\",\n \"value\": \"in amet\"\n },\n {\n \"name\": \"Public Merchant ID Test.\",\n \"value\": \"irure dolor\"\n }\n ],\n \"inboundRequestUrl\": \"https://api.mystore.example.com/checkout/order/1072430428324/inbound-request/:action\",\n \"secureProxyUrl\": \"in est irure\",\n \"sandBoxMode\": false,\n \"totalCartValue\": 31.9\n}", "options": { "raw": { "language": "json" @@ -514,7 +461,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "0ea9f48a-2555-48ab-937c-ecbf07c2147c", + "id": "1b6267c6-eb47-4321-902d-023a177910c3", "name": "Internal Server Error", "originalRequest": { "url": { @@ -549,37 +496,19 @@ { "disabled": false, "description": { - "content": "(Required) The AppKey configured by the merchant (optional configuration)", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, - "key": "X-VTEX-API-AppKey", - "value": "{{X-VTEX-API-AppKey}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) The AppToken configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppToken", - "value": "{{X-VTEX-API-AppToken}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", - "type": "text/plain" - }, - "key": "Accept", + "key": "Content-Type", "value": "application/json" }, { "disabled": false, "description": { - "content": "(Required) The Media type of the body of the request. Default value for payment provider protocol is application/json", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, - "key": "Content-Type", + "key": "Accept", "value": "application/json" }, { @@ -590,7 +519,7 @@ "method": "POST", "body": { "mode": "raw", - "raw": "{\n \"reference\": \"618272\",\n \"orderId\": \"1072430428324\",\n \"shopperInteraction\": \"ecommerce\",\n \"transactionId\": \"2F023FD5A72A49D48A8633252B7CCBD6\",\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\n \"paymentMethod\": \"Diners\",\n \"paymentMethodCustomCode\": null,\n \"merchantName\": \"mystore\",\n \"value\": 31.9,\n \"currency\": \"BRL\",\n \"installments\": 1,\n \"deviceFingerprint\": \"75076388\",\n \"card\": {\n \"holder\": \"John Doe\",\n \"number\": \"364901****2661\",\n \"csc\": \"***\",\n \"expiration\": {\n \"month\": \"12\",\n \"year\": \"2020\"\n },\n \"holderToken\": \"#vtex#token#d799bae#csc#\",\n \"bin\": \"364901\",\n \"numberToken\": \"#vtex#token#d799bae#number#\",\n \"numberLength\": 16,\n \"cscToken\": \"#vtex#token#d799bae#csc#\",\n \"cscLength\": 3,\n \"document\": \"39295416023\",\n \"paymentOrigin\": \"Google Pay\",\n \"cryptogram\": \"/gAAAAAAAbQHWutaqaYsQLsAAAA=\",\n \"eci\": \"05\"\n },\n \"miniCart\": {\n \"shippingValue\": 2,\n \"taxValue\": 1,\n \"buyer\": {\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"document\": \"01234567890\",\n \"documentType\": \"cpf\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"+5521999999999\",\n \"isCorporate\": false,\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\n \"corporateName\": \"VTEX\",\n \"tradeName\": \"VTEX\",\n \"corporateDocument\": \"123456789\",\n \"createdDate\": \"2020-02-18T18:17:45\"\n },\n \"shippingAddress\": {\n \"country\": \"BRA\",\n \"street\": \"Praia de Botafogo St.\",\n \"number\": \"300\",\n \"neighborhood\": \"Botafogo\",\n \"postalCode\": \"22250040\",\n \"city\": \"Rio de Janeiro\",\n \"state\": \"RJ\",\n \"complement\": \"3rd Floor\"\n },\n \"billingAddress\": {\n \"country\": \"BRA\",\n \"street\": \"Brigadeiro Faria Lima Avenue\",\n \"number\": \"4440\",\n \"neighborhood\": \"Itaim Bibi\",\n \"postalCode\": \"04538132\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"complement\": \"10th Floor\"\n },\n \"items\": [\n {\n \"id\": \"8\",\n \"name\": \"Tenis Preto I\",\n \"price\": 30.9,\n \"quantity\": 1,\n \"discount\": 0,\n \"deliveryType\": \"Normal\",\n \"categoryId\": \"5\",\n \"sellerId\": \"1\",\n \"taxRate\": 0.05,\n \"taxValue\": 1.54\n },\n {\n \"id\": \"8\",\n \"name\": \"Tenis Preto I\",\n \"price\": 30.9,\n \"quantity\": 1,\n \"discount\": 0,\n \"deliveryType\": \"Normal\",\n \"categoryId\": \"5\",\n \"sellerId\": \"1\",\n \"taxRate\": 0.05,\n \"taxValue\": 1.54\n }\n ]\n },\n \"url\": \"https://admin.mystore.example.com/orders?q=1072430428324\",\n \"callbackUrl\": \"https://coinshop.vtexpayments.com.br/payment-provider/transactions/900BA26FEAC84332A53AE1007E740DE3/payments/E713830E32764BF99028A0A275841BFC/notification\",\n \"returnUrl\": \"https://mystore.example.com/checkout/order/1072430428324\",\n \"verificationOnly\": false,\n \"referenceValue\": 31.9,\n \"installmentsInterestRate\": 0,\n \"installmentsValue\": 31.9,\n \"ipAddress\": \"187.105.111.65\",\n \"recipients\": [\n {\n \"id\": \"mystore\",\n \"name\": \"Company ABC\",\n \"documentType\": \"CNPJ\",\n \"document\": \"24830098000172\",\n \"role\": \"seller\",\n \"amount\": 13.8,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"comissionAmount\": 3\n },\n {\n \"id\": \"mystore\",\n \"name\": \"Company ABC\",\n \"documentType\": \"CNPJ\",\n \"document\": \"24830098000172\",\n \"role\": \"seller\",\n \"amount\": 13.8,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"comissionAmount\": 3\n }\n ],\n \"merchantSettings\": [\n {\n \"name\": \"Public Merchant ID Test.\",\n \"value\": \"sed proident ea Ut\"\n },\n {\n \"name\": \"Public Merchant ID Test.\",\n \"value\": \"enim\"\n }\n ],\n \"inboundRequestUrl\": \"https://api.mystore.example.com/checkout/order/1072430428324/inbound-request/:action\",\n \"secureProxyUrl\": \"Excepteur occaecat et veniam Ut\",\n \"sandBoxMode\": false,\n \"totalCartValue\": 31.9\n}", + "raw": "{\n \"reference\": \"618272\",\n \"orderId\": \"1072430428324\",\n \"shopperInteraction\": \"ecommerce\",\n \"transactionId\": \"2F023FD5A72A49D48A8633252B7CCBD6\",\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\n \"paymentMethod\": \"Diners\",\n \"paymentMethodCustomCode\": null,\n \"merchantName\": \"mystore\",\n \"value\": 31.9,\n \"currency\": \"BRL\",\n \"installments\": 1,\n \"deviceFingerprint\": \"75076388\",\n \"card\": {\n \"holder\": \"John Doe\",\n \"number\": \"364901****2661\",\n \"csc\": \"***\",\n \"expiration\": {\n \"month\": \"12\",\n \"year\": \"2020\"\n },\n \"holderToken\": \"#vtex#token#d799bae#csc#\",\n \"bin\": \"364901\",\n \"numberToken\": \"#vtex#token#d799bae#number#\",\n \"numberLength\": 16,\n \"cscToken\": \"#vtex#token#d799bae#csc#\",\n \"cscLength\": 3,\n \"document\": \"39295416023\",\n \"paymentOrigin\": \"Google Pay\",\n \"cryptogram\": \"/gAAAAAAAbQHWutaqaYsQLsAAAA=\",\n \"eci\": \"05\"\n },\n \"miniCart\": {\n \"shippingValue\": 2,\n \"taxValue\": 1,\n \"buyer\": {\n \"firstName\": \"John\",\n \"lastName\": \"Doe\",\n \"document\": \"01234567890\",\n \"documentType\": \"cpf\",\n \"email\": \"john.doe@example.com\",\n \"phone\": \"+5521999999999\",\n \"isCorporate\": false,\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\n \"corporateName\": \"VTEX\",\n \"tradeName\": \"VTEX\",\n \"corporateDocument\": \"123456789\",\n \"createdDate\": \"2020-02-18T18:17:45\"\n },\n \"shippingAddress\": {\n \"country\": \"BRA\",\n \"street\": \"Praia de Botafogo St.\",\n \"number\": \"300\",\n \"neighborhood\": \"Botafogo\",\n \"postalCode\": \"22250040\",\n \"city\": \"Rio de Janeiro\",\n \"state\": \"RJ\",\n \"complement\": \"3rd Floor\"\n },\n \"billingAddress\": {\n \"country\": \"BRA\",\n \"street\": \"Brigadeiro Faria Lima Avenue\",\n \"number\": \"4440\",\n \"neighborhood\": \"Itaim Bibi\",\n \"postalCode\": \"04538132\",\n \"city\": \"São Paulo\",\n \"state\": \"SP\",\n \"complement\": \"10th Floor\"\n },\n \"items\": [\n {\n \"id\": \"8\",\n \"name\": \"Tenis Preto I\",\n \"price\": 30.9,\n \"quantity\": 1,\n \"discount\": 0,\n \"deliveryType\": \"Normal\",\n \"categoryId\": \"5\",\n \"sellerId\": \"1\",\n \"taxRate\": 0.05,\n \"taxValue\": 1.54\n },\n {\n \"id\": \"8\",\n \"name\": \"Tenis Preto I\",\n \"price\": 30.9,\n \"quantity\": 1,\n \"discount\": 0,\n \"deliveryType\": \"Normal\",\n \"categoryId\": \"5\",\n \"sellerId\": \"1\",\n \"taxRate\": 0.05,\n \"taxValue\": 1.54\n }\n ]\n },\n \"url\": \"https://admin.mystore.example.com/orders?q=1072430428324\",\n \"callbackUrl\": \"https://coinshop.vtexpayments.com.br/payment-provider/transactions/900BA26FEAC84332A53AE1007E740DE3/payments/E713830E32764BF99028A0A275841BFC/notification\",\n \"returnUrl\": \"https://mystore.example.com/checkout/order/1072430428324\",\n \"verificationOnly\": false,\n \"referenceValue\": 31.9,\n \"installmentsInterestRate\": 0,\n \"installmentsValue\": 31.9,\n \"ipAddress\": \"187.105.111.65\",\n \"recipients\": [\n {\n \"id\": \"mystore\",\n \"name\": \"Company ABC\",\n \"documentType\": \"CNPJ\",\n \"document\": \"24830098000172\",\n \"role\": \"seller\",\n \"amount\": 13.8,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"comissionAmount\": 3\n },\n {\n \"id\": \"mystore\",\n \"name\": \"Company ABC\",\n \"documentType\": \"CNPJ\",\n \"document\": \"24830098000172\",\n \"role\": \"seller\",\n \"amount\": 13.8,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"comissionAmount\": 3\n }\n ],\n \"merchantSettings\": [\n {\n \"name\": \"Public Merchant ID Test.\",\n \"value\": \"in amet\"\n },\n {\n \"name\": \"Public Merchant ID Test.\",\n \"value\": \"irure dolor\"\n }\n ],\n \"inboundRequestUrl\": \"https://api.mystore.example.com/checkout/order/1072430428324/inbound-request/:action\",\n \"secureProxyUrl\": \"in est irure\",\n \"sandBoxMode\": false,\n \"totalCartValue\": 31.9\n}", "options": { "raw": { "language": "json" @@ -614,7 +543,7 @@ { "listen": "test", "script": { - "id": "c715617b-e1e9-4325-935c-f817ec2e361e", + "id": "eb046841-73b4-46b1-9fff-0a50a9f5a78d", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/payments - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -640,12 +569,12 @@ } }, { - "id": "c09d915d-9058-4114-a30e-487d9ba0916c", + "id": "874c5749-353a-44ce-9ec9-efef840d674e", "name": "Cancel Payment", "request": { "name": "Cancel Payment", "description": { - "content": "Cancels a payment that was not yet approved or settled.", + "content": "Cancels a payment that was not yet approved or settled. \r\n\r\n## Permissions\r\n\r\nThis endpoint does not require [permissions](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3).", "type": "text/plain" }, "url": { @@ -662,11 +591,11 @@ { "disabled": false, "description": { - "content": "(Required) VTEX payment identifier", + "content": "(Required) VTEX payment identifier.", "type": "text/plain" }, "type": "any", - "value": "sit tempor consectetur", + "value": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", "key": "paymentId" }, { @@ -681,24 +610,6 @@ ] }, "header": [ - { - "disabled": false, - "description": { - "content": "(Required) The AppKey configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "{{X-VTEX-API-AppKey}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) The AppToken configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppToken", - "value": "{{X-VTEX-API-AppToken}}" - }, { "key": "Content-Type", "value": "application/json" @@ -744,7 +655,8 @@ "_": { "postman_previewlanguage": "json" }, - "id": "425b8e36-781a-4fba-a6f2-75773a950af0", + "id": "c57c4797-091a-47e7-b479-0bd4831b8c02", + "name": "OK", "originalRequest": { "url": { "path": [ @@ -760,11 +672,11 @@ { "disabled": false, "description": { - "content": "(Required) VTEX payment identifier", + "content": "(Required) VTEX payment identifier.", "type": "text/plain" }, "type": "any", - "value": "sit tempor consectetur", + "value": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", "key": "paymentId" }, { @@ -790,16 +702,7 @@ { "disabled": false, "description": { - "content": "(Required) Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", - "type": "text/plain" - }, - "key": "Accept", - "value": "application/json" - }, - { - "disabled": false, - "description": { - "content": "(Required) The Media type of the body of the request. Default value for payment provider protocol is application/json", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, "key": "Content-Type", @@ -808,20 +711,11 @@ { "disabled": false, "description": { - "content": "(Required) The AppKey configured by the merchant (optional configuration)", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, - "key": "X-VTEX-API-AppKey", - "value": "{{X-VTEX-API-AppKey}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) The AppToken configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppToken", - "value": "{{X-VTEX-API-AppToken}}" + "key": "Accept", + "value": "application/json" }, { "key": "Accept", @@ -944,7 +838,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "4255ab30-8dba-4d9a-aaa6-494cf9a76069", + "id": "f4cc4034-4250-45a8-91a4-dc5471744099", "name": "Internal Server Error", "originalRequest": { "url": { @@ -961,11 +855,11 @@ { "disabled": false, "description": { - "content": "(Required) VTEX payment identifier", + "content": "(Required) VTEX payment identifier.", "type": "text/plain" }, "type": "any", - "value": "sit tempor consectetur", + "value": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", "key": "paymentId" }, { @@ -991,16 +885,7 @@ { "disabled": false, "description": { - "content": "(Required) Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", - "type": "text/plain" - }, - "key": "Accept", - "value": "application/json" - }, - { - "disabled": false, - "description": { - "content": "(Required) The Media type of the body of the request. Default value for payment provider protocol is application/json", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, "key": "Content-Type", @@ -1009,20 +894,11 @@ { "disabled": false, "description": { - "content": "(Required) The AppKey configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "{{X-VTEX-API-AppKey}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) The AppToken configured by the merchant (optional configuration)", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, - "key": "X-VTEX-API-AppToken", - "value": "{{X-VTEX-API-AppToken}}" + "key": "Accept", + "value": "application/json" }, { "key": "Accept", @@ -1055,7 +931,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "4c83d7be-117b-41ec-917f-c78b6ed832ac", + "id": "51c81d41-8ee3-40b7-b4ef-692e7bbd9bf5", "name": "Not Implemented", "originalRequest": { "url": { @@ -1072,11 +948,11 @@ { "disabled": false, "description": { - "content": "(Required) VTEX payment identifier", + "content": "(Required) VTEX payment identifier.", "type": "text/plain" }, "type": "any", - "value": "sit tempor consectetur", + "value": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", "key": "paymentId" }, { @@ -1102,16 +978,7 @@ { "disabled": false, "description": { - "content": "(Required) Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", - "type": "text/plain" - }, - "key": "Accept", - "value": "application/json" - }, - { - "disabled": false, - "description": { - "content": "(Required) The Media type of the body of the request. Default value for payment provider protocol is application/json", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, "key": "Content-Type", @@ -1120,20 +987,11 @@ { "disabled": false, "description": { - "content": "(Required) The AppKey configured by the merchant (optional configuration)", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, - "key": "X-VTEX-API-AppKey", - "value": "{{X-VTEX-API-AppKey}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) The AppToken configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppToken", - "value": "{{X-VTEX-API-AppToken}}" + "key": "Accept", + "value": "application/json" }, { "key": "Accept", @@ -1167,7 +1025,7 @@ { "listen": "test", "script": { - "id": "29a76eb5-8793-48bc-93bb-5a268c27f25c", + "id": "65c83157-d521-45b7-b1ff-0e8d5468da53", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/payments/:paymentId/cancellations - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -1193,12 +1051,12 @@ } }, { - "id": "7ed107cf-2749-454a-9e91-dff66ad87c63", + "id": "19e915bd-eb53-4006-afb0-4169018614ce", "name": "Settle Payment", "request": { "name": "Settle Payment", "description": { - "content": "Settles a payment that was previously approved.", + "content": "Settles a payment that was previously approved. \r\n\r\n## Permissions\r\n\r\nThis endpoint does not require [permissions](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3).", "type": "text/plain" }, "url": { @@ -1215,11 +1073,11 @@ { "disabled": false, "description": { - "content": "(Required) VTEX payment identifier", + "content": "(Required) VTEX payment identifier.", "type": "text/plain" }, "type": "any", - "value": "sit tempor consectetur", + "value": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", "key": "paymentId" }, { @@ -1234,24 +1092,6 @@ ] }, "header": [ - { - "disabled": false, - "description": { - "content": "(Required) The AppKey configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "{{X-VTEX-API-AppKey}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) The AppToken configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppToken", - "value": "{{X-VTEX-API-AppToken}}" - }, { "key": "Content-Type", "value": "application/json" @@ -1264,7 +1104,7 @@ "method": "POST", "body": { "mode": "raw", - "raw": "{\n \"transactionId\": \"sit anim\",\n \"requestId\": \"Lorem culpa adipisicing\",\n \"paymentId\": \"ex elit mollit Excepteur\",\n \"value\": -96827947.68600598,\n \"authorizationId\": \"aliqua cillum ut\",\n \"tid\": \"sit veniam elit est\",\n \"recipients\": [\n {\n \"id\": \"nulla dolore\",\n \"name\": \"labore sunt tempor sed\",\n \"documentType\": \"qui culpa enim mollit\",\n \"document\": \"sunt Duis in do\",\n \"role\": \"aute labore exercitation minim\",\n \"amount\": -17209101.522182286,\n \"chargeProcessingFee\": false,\n \"chargebackLiable\": true,\n \"commissionAmount\": -91662082.18971139\n },\n {\n \"id\": \"Ut sint sit veniam pariatur\",\n \"name\": \"adipisicing aute qui quis\",\n \"documentType\": \"irure\",\n \"document\": \"dolore do magna Lorem\",\n \"role\": \"fugiat\",\n \"amount\": 77848308.70922405,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": false,\n \"commissionAmount\": 51935223.89813778\n }\n ],\n \"sandboxMode\": true,\n \"merchantSettings\": [\n {\n \"name\": \"sed\",\n \"value\": \"pariatur in do et deserunt\"\n },\n {\n \"name\": \"officia Lorem ex\",\n \"value\": \"reprehenderit sunt in\"\n }\n ]\n}", + "raw": "{\n \"transactionId\": \"dolore ut labore\",\n \"requestId\": \"voluptate elit\",\n \"paymentId\": \"ex ad\",\n \"value\": -32019280.894931197,\n \"authorizationId\": \"irure\",\n \"tid\": \"p\",\n \"recipients\": [\n {\n \"id\": \"mollit Excepteur enim nostrud\",\n \"name\": \"proident sed qui dolore\",\n \"documentType\": \"nulla m\",\n \"document\": \"occaecat enim nostrud irure\",\n \"role\": \"magna ex elit dolore a\",\n \"amount\": 82738225.53174117,\n \"chargeProcessingFee\": false,\n \"chargebackLiable\": true,\n \"commissionAmount\": -93171713.24381022\n },\n {\n \"id\": \"pariatur ullamco ex in\",\n \"name\": \"nisi dolor\",\n \"documentType\": \"irure anim cillum laborum\",\n \"document\": \"culpa exercitation ad ex et\",\n \"role\": \"dolore adipisicing Excepteur\",\n \"amount\": -26104008.21327077,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": false,\n \"commissionAmount\": -6961891.041845456\n }\n ],\n \"sandboxMode\": false,\n \"merchantSettings\": [\n {\n \"name\": \"dolore sed officia\",\n \"value\": \"fug\"\n },\n {\n \"name\": \"ea\",\n \"value\": \"dolor\"\n }\n ]\n}", "options": { "raw": { "language": "json" @@ -1297,7 +1137,8 @@ "_": { "postman_previewlanguage": "json" }, - "id": "991d7eb7-eb5e-428e-ab3a-e997fdb55001", + "id": "7c3e28ee-5304-41de-9002-1507ded47236", + "name": "OK", "originalRequest": { "url": { "path": [ @@ -1313,11 +1154,11 @@ { "disabled": false, "description": { - "content": "(Required) VTEX payment identifier", + "content": "(Required) VTEX payment identifier.", "type": "text/plain" }, "type": "any", - "value": "sit tempor consectetur", + "value": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", "key": "paymentId" }, { @@ -1343,37 +1184,19 @@ { "disabled": false, "description": { - "content": "(Required) The AppKey configured by the merchant (optional configuration)", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, - "key": "X-VTEX-API-AppKey", - "value": "{{X-VTEX-API-AppKey}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) The AppToken configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppToken", - "value": "{{X-VTEX-API-AppToken}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", - "type": "text/plain" - }, - "key": "Accept", + "key": "Content-Type", "value": "application/json" }, { "disabled": false, "description": { - "content": "(Required) The Media type of the body of the request. Default value for payment provider protocol is application/json", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, - "key": "Content-Type", + "key": "Accept", "value": "application/json" }, { @@ -1384,7 +1207,7 @@ "method": "POST", "body": { "mode": "raw", - "raw": "{\n \"transactionId\": \"culpa consequat quis\",\n \"requestId\": \"dolor labore cupidatat sit qui\",\n \"paymentId\": \"irure est cupidatat\",\n \"value\": 31551853.825864077,\n \"authorizationId\": \"velit nulla eius\",\n \"tid\": \"ut \",\n \"recipients\": [\n {\n \"id\": \"commodo\",\n \"name\": \"nulla anim magna minim\",\n \"documentType\": \"esse\",\n \"document\": \"dolor ex\",\n \"role\": \"ex proident\",\n \"amount\": -79309640.62518422,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"commissionAmount\": 43726388.94477895\n },\n {\n \"id\": \"laboris veniam\",\n \"name\": \"ullamco eiusmod et dolore\",\n \"documentType\": \"magna ullamco aute qui\",\n \"document\": \"proident dolor sint\",\n \"role\": \"laborum\",\n \"amount\": -23089194.10852015,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"commissionAmount\": 35245369.17703244\n }\n ],\n \"sandboxMode\": true,\n \"merchantSettings\": [\n {\n \"name\": \"cillum enim ut\",\n \"value\": \"cillum nulla occaecat\"\n },\n {\n \"name\": \"irure non eiusmod\",\n \"value\": \"id in\"\n }\n ]\n}", + "raw": "{\n \"transactionId\": \"incididunt\",\n \"requestId\": \"mollit velit Ut aute magna\",\n \"paymentId\": \"minim est anim\",\n \"value\": -84580860.19421564,\n \"authorizationId\": \"ex laboris anim\",\n \"tid\": \"est veniam proident Excepte\",\n \"recipients\": [\n {\n \"id\": \"laborum\",\n \"name\": \"amet Lorem quis\",\n \"documentType\": \"dolor amet cillum\",\n \"document\": \"in sed nulla culpa\",\n \"role\": \"nisi voluptate\",\n \"amount\": 21082381.425366044,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": false,\n \"commissionAmount\": 26269572.198787376\n },\n {\n \"id\": \"anim deserunt\",\n \"name\": \"anim dolor ipsum ullamco\",\n \"documentType\": \"sint et sed\",\n \"document\": \"voluptate\",\n \"role\": \"ut\",\n \"amount\": -10116418.869688421,\n \"chargeProcessingFee\": false,\n \"chargebackLiable\": true,\n \"commissionAmount\": -8597214.300214201\n }\n ],\n \"sandboxMode\": false,\n \"merchantSettings\": [\n {\n \"name\": \"non deserunt\",\n \"value\": \"ipsum occaecat officia incididunt\"\n },\n {\n \"name\": \"laborum co\",\n \"value\": \"eiusmod laboris\"\n }\n ]\n}", "options": { "raw": { "language": "json" @@ -1497,7 +1320,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "6fb07ee6-2e10-42ca-b9e2-c0f2c4a36e95", + "id": "85fe2fae-a977-4c86-a994-4aa6f240c460", "name": "Internal Server Error", "originalRequest": { "url": { @@ -1514,11 +1337,11 @@ { "disabled": false, "description": { - "content": "(Required) VTEX payment identifier", + "content": "(Required) VTEX payment identifier.", "type": "text/plain" }, "type": "any", - "value": "sit tempor consectetur", + "value": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", "key": "paymentId" }, { @@ -1544,37 +1367,19 @@ { "disabled": false, "description": { - "content": "(Required) The AppKey configured by the merchant (optional configuration)", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, - "key": "X-VTEX-API-AppKey", - "value": "{{X-VTEX-API-AppKey}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) The AppToken configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppToken", - "value": "{{X-VTEX-API-AppToken}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", - "type": "text/plain" - }, - "key": "Accept", + "key": "Content-Type", "value": "application/json" }, { "disabled": false, "description": { - "content": "(Required) The Media type of the body of the request. Default value for payment provider protocol is application/json", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, - "key": "Content-Type", + "key": "Accept", "value": "application/json" }, { @@ -1585,7 +1390,7 @@ "method": "POST", "body": { "mode": "raw", - "raw": "{\n \"transactionId\": \"culpa consequat quis\",\n \"requestId\": \"dolor labore cupidatat sit qui\",\n \"paymentId\": \"irure est cupidatat\",\n \"value\": 31551853.825864077,\n \"authorizationId\": \"velit nulla eius\",\n \"tid\": \"ut \",\n \"recipients\": [\n {\n \"id\": \"commodo\",\n \"name\": \"nulla anim magna minim\",\n \"documentType\": \"esse\",\n \"document\": \"dolor ex\",\n \"role\": \"ex proident\",\n \"amount\": -79309640.62518422,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"commissionAmount\": 43726388.94477895\n },\n {\n \"id\": \"laboris veniam\",\n \"name\": \"ullamco eiusmod et dolore\",\n \"documentType\": \"magna ullamco aute qui\",\n \"document\": \"proident dolor sint\",\n \"role\": \"laborum\",\n \"amount\": -23089194.10852015,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": true,\n \"commissionAmount\": 35245369.17703244\n }\n ],\n \"sandboxMode\": true,\n \"merchantSettings\": [\n {\n \"name\": \"cillum enim ut\",\n \"value\": \"cillum nulla occaecat\"\n },\n {\n \"name\": \"irure non eiusmod\",\n \"value\": \"id in\"\n }\n ]\n}", + "raw": "{\n \"transactionId\": \"incididunt\",\n \"requestId\": \"mollit velit Ut aute magna\",\n \"paymentId\": \"minim est anim\",\n \"value\": -84580860.19421564,\n \"authorizationId\": \"ex laboris anim\",\n \"tid\": \"est veniam proident Excepte\",\n \"recipients\": [\n {\n \"id\": \"laborum\",\n \"name\": \"amet Lorem quis\",\n \"documentType\": \"dolor amet cillum\",\n \"document\": \"in sed nulla culpa\",\n \"role\": \"nisi voluptate\",\n \"amount\": 21082381.425366044,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": false,\n \"commissionAmount\": 26269572.198787376\n },\n {\n \"id\": \"anim deserunt\",\n \"name\": \"anim dolor ipsum ullamco\",\n \"documentType\": \"sint et sed\",\n \"document\": \"voluptate\",\n \"role\": \"ut\",\n \"amount\": -10116418.869688421,\n \"chargeProcessingFee\": false,\n \"chargebackLiable\": true,\n \"commissionAmount\": -8597214.300214201\n }\n ],\n \"sandboxMode\": false,\n \"merchantSettings\": [\n {\n \"name\": \"non deserunt\",\n \"value\": \"ipsum occaecat officia incididunt\"\n },\n {\n \"name\": \"laborum co\",\n \"value\": \"eiusmod laboris\"\n }\n ]\n}", "options": { "raw": { "language": "json" @@ -1609,7 +1414,7 @@ { "listen": "test", "script": { - "id": "b4addb8b-1287-46d6-8b4d-4b0ae615e663", + "id": "51335df1-6429-4153-a7e1-e88b78d11267", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/payments/:paymentId/settlements - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -1635,12 +1440,12 @@ } }, { - "id": "8bf46089-283c-426d-bea1-2d3adebebc6a", + "id": "1781de91-af08-4199-be15-4d6ca9bf9578", "name": "Refund Payment", "request": { "name": "Refund Payment", "description": { - "content": "Refunds a payment that was previously settled. You can expect partial refunds.", + "content": "Refunds a payment that was previously settled. You can expect partial refunds. \r\n\r\n## Permissions\r\n\r\nThis endpoint does not require [permissions](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3).", "type": "text/plain" }, "url": { @@ -1657,11 +1462,11 @@ { "disabled": false, "description": { - "content": "(Required) VTEX payment identifier", + "content": "(Required) VTEX payment identifier.", "type": "text/plain" }, "type": "any", - "value": "sit tempor consectetur", + "value": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", "key": "paymentId" }, { @@ -1676,24 +1481,6 @@ ] }, "header": [ - { - "disabled": false, - "description": { - "content": "(Required) The AppKey configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "{{X-VTEX-API-AppKey}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) The AppToken configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppToken", - "value": "{{X-VTEX-API-AppToken}}" - }, { "key": "Content-Type", "value": "application/json" @@ -1706,7 +1493,7 @@ "method": "POST", "body": { "mode": "raw", - "raw": "{\n \"requestId\": \"commodo officia\",\n \"settleId\": \"dolore Lorem\",\n \"paymentId\": \"officia\",\n \"tid\": \"aliquip ea\",\n \"value\": -72147762.521567,\n \"transactionId\": \"in sint\",\n \"recipients\": [\n {\n \"id\": \"eiusmod ame\",\n \"name\": \"aliqua do enim et Duis\",\n \"documentType\": \"nulla\",\n \"document\": \"ex officia aliquip\",\n \"role\": \"eu nisi veniam\",\n \"amount\": 86101415.83367929,\n \"chargeProcessingFee\": false,\n \"chargebackLiable\": false,\n \"comissionAmount\": -61767778.69396242\n },\n {\n \"id\": \"consequat sed id\",\n \"name\": \"Lorem ut sed Duis aliquip\",\n \"documentType\": \"elit\",\n \"document\": \"commodo nisi id nostrud dolor\",\n \"role\": \"elit ut ea\",\n \"amount\": 43339516.97597703,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": false,\n \"comissionAmount\": -97462075.32404095\n }\n ],\n \"sandboxMode\": true,\n \"merchantSettings\": [\n {\n \"name\": \"sint Excepteur qui dolore\",\n \"value\": \"esse\"\n },\n {\n \"name\": \"ut deserunt\",\n \"value\": \"magna nulla\"\n }\n ]\n}", + "raw": "{\n \"requestId\": \"aliquip tempor\",\n \"settleId\": \"ipsum labore nisi consequat\",\n \"paymentId\": \"dolore nisi Duis\",\n \"tid\": \"irure aliquip nisi dolor cupidatat\",\n \"value\": 6899590.1566892415,\n \"transactionId\": \"culpa quis qui consectetur sint\",\n \"recipients\": [\n {\n \"id\": \"sint i\",\n \"name\": \"nisi\",\n \"documentType\": \"Duis sunt cillum\",\n \"document\": \"Lorem minim adipisicing officia\",\n \"role\": \"in reprehenderit mollit\",\n \"amount\": 12900179.480358928,\n \"chargeProcessingFee\": false,\n \"chargebackLiable\": true,\n \"comissionAmount\": -67179283.8394616\n },\n {\n \"id\": \"ipsum ut pariatur in\",\n \"name\": \"consectetur dolor Ut in\",\n \"documentType\": \"labore ut Lorem\",\n \"document\": \"quis in\",\n \"role\": \"nulla Excepteur deserunt\",\n \"amount\": -74325149.01544507,\n \"chargeProcessingFee\": false,\n \"chargebackLiable\": false,\n \"comissionAmount\": -88438449.51644138\n }\n ],\n \"sandboxMode\": true,\n \"merchantSettings\": [\n {\n \"name\": \"eu dolor mollit\",\n \"value\": \"elit\"\n },\n {\n \"name\": \"ut incididu\",\n \"value\": \"ea dolore\"\n }\n ]\n}", "options": { "raw": { "language": "json" @@ -1739,7 +1526,8 @@ "_": { "postman_previewlanguage": "json" }, - "id": "24891277-f9cb-440d-a77c-8952aa59d4c9", + "id": "4604e29e-c7a8-448e-8708-c71f80ac7fd0", + "name": "OK", "originalRequest": { "url": { "path": [ @@ -1755,11 +1543,11 @@ { "disabled": false, "description": { - "content": "(Required) VTEX payment identifier", + "content": "(Required) VTEX payment identifier.", "type": "text/plain" }, "type": "any", - "value": "sit tempor consectetur", + "value": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", "key": "paymentId" }, { @@ -1785,37 +1573,19 @@ { "disabled": false, "description": { - "content": "(Required) The AppKey configured by the merchant (optional configuration)", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, - "key": "X-VTEX-API-AppKey", - "value": "{{X-VTEX-API-AppKey}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) The AppToken configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppToken", - "value": "{{X-VTEX-API-AppToken}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", - "type": "text/plain" - }, - "key": "Accept", + "key": "Content-Type", "value": "application/json" }, { "disabled": false, "description": { - "content": "(Required) The Media type of the body of the request. Default value for payment provider protocol is application/json", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, - "key": "Content-Type", + "key": "Accept", "value": "application/json" }, { @@ -1826,7 +1596,7 @@ "method": "POST", "body": { "mode": "raw", - "raw": "{\n \"requestId\": \"esse quis elit anim\",\n \"settleId\": \"incididunt quis ut esse\",\n \"paymentId\": \"cupidatat labore culpa Ut\",\n \"tid\": \"enim Ut\",\n \"value\": 50652078.65032068,\n \"transactionId\": \"ipsum sunt\",\n \"recipients\": [\n {\n \"id\": \"Duis Ut in\",\n \"name\": \"in incididunt qui\",\n \"documentType\": \"dolor consequat\",\n \"document\": \"ipsum Duis veniam\",\n \"role\": \"reprehenderit ex ut veniam mollit\",\n \"amount\": 11788538.806647882,\n \"chargeProcessingFee\": false,\n \"chargebackLiable\": false,\n \"comissionAmount\": -68732736.51883349\n },\n {\n \"id\": \"magna consectetur eu\",\n \"name\": \"ipsum\",\n \"documentType\": \"labore quis sint Ut proid\",\n \"document\": \"voluptate\",\n \"role\": \"commodo dolore\",\n \"amount\": 6166430.509859428,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": false,\n \"comissionAmount\": -38606582.651451275\n }\n ],\n \"sandboxMode\": true,\n \"merchantSettings\": [\n {\n \"name\": \"in pariatur sit consequat\",\n \"value\": \"do\"\n },\n {\n \"name\": \"ut esse sunt\",\n \"value\": \"mollit aute ipsum fugiat proident\"\n }\n ]\n}", + "raw": "{\n \"requestId\": \"magna ullamco sit sunt\",\n \"settleId\": \"officia est sed occaecat in\",\n \"paymentId\": \"sit voluptate\",\n \"tid\": \"eiusmod mollit\",\n \"value\": -16706450.780128986,\n \"transactionId\": \"tempor\",\n \"recipients\": [\n {\n \"id\": \"laborum nu\",\n \"name\": \"commodo\",\n \"documentType\": \"enim quis laborum sed Excepteur\",\n \"document\": \"eiusmod ex voluptate mollit\",\n \"role\": \"velit ad pariatur eiusmod\",\n \"amount\": 22846591.53994876,\n \"chargeProcessingFee\": false,\n \"chargebackLiable\": false,\n \"comissionAmount\": 88545732.97431877\n },\n {\n \"id\": \"proident\",\n \"name\": \"amet sint consequat\",\n \"documentType\": \"occaecat veniam\",\n \"document\": \"ullamco\",\n \"role\": \"ut sint adipisici\",\n \"amount\": -291414.6786130518,\n \"chargeProcessingFee\": false,\n \"chargebackLiable\": false,\n \"comissionAmount\": 85686260.4586901\n }\n ],\n \"sandboxMode\": true,\n \"merchantSettings\": [\n {\n \"name\": \"consectetur mollit aute\",\n \"value\": \"occaecat veniam ut laboris\"\n },\n {\n \"name\": \"anim exercitation cupidatat Ut\",\n \"value\": \"pariatur\"\n }\n ]\n}", "options": { "raw": { "language": "json" @@ -1939,7 +1709,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "2da0fad7-a938-4773-b0ef-0947f3afab12", + "id": "217ef54b-9918-4fab-ba56-ccb3402ce505", "name": "Internal Server Error", "originalRequest": { "url": { @@ -1956,11 +1726,11 @@ { "disabled": false, "description": { - "content": "(Required) VTEX payment identifier", + "content": "(Required) VTEX payment identifier.", "type": "text/plain" }, "type": "any", - "value": "sit tempor consectetur", + "value": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", "key": "paymentId" }, { @@ -1986,37 +1756,19 @@ { "disabled": false, "description": { - "content": "(Required) The AppKey configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "{{X-VTEX-API-AppKey}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) The AppToken configured by the merchant (optional configuration)", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, - "key": "X-VTEX-API-AppToken", - "value": "{{X-VTEX-API-AppToken}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", - "type": "text/plain" - }, - "key": "Accept", + "key": "Content-Type", "value": "application/json" }, { "disabled": false, "description": { - "content": "(Required) The Media type of the body of the request. Default value for payment provider protocol is application/json", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, - "key": "Content-Type", + "key": "Accept", "value": "application/json" }, { @@ -2027,7 +1779,7 @@ "method": "POST", "body": { "mode": "raw", - "raw": "{\n \"requestId\": \"esse quis elit anim\",\n \"settleId\": \"incididunt quis ut esse\",\n \"paymentId\": \"cupidatat labore culpa Ut\",\n \"tid\": \"enim Ut\",\n \"value\": 50652078.65032068,\n \"transactionId\": \"ipsum sunt\",\n \"recipients\": [\n {\n \"id\": \"Duis Ut in\",\n \"name\": \"in incididunt qui\",\n \"documentType\": \"dolor consequat\",\n \"document\": \"ipsum Duis veniam\",\n \"role\": \"reprehenderit ex ut veniam mollit\",\n \"amount\": 11788538.806647882,\n \"chargeProcessingFee\": false,\n \"chargebackLiable\": false,\n \"comissionAmount\": -68732736.51883349\n },\n {\n \"id\": \"magna consectetur eu\",\n \"name\": \"ipsum\",\n \"documentType\": \"labore quis sint Ut proid\",\n \"document\": \"voluptate\",\n \"role\": \"commodo dolore\",\n \"amount\": 6166430.509859428,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": false,\n \"comissionAmount\": -38606582.651451275\n }\n ],\n \"sandboxMode\": true,\n \"merchantSettings\": [\n {\n \"name\": \"in pariatur sit consequat\",\n \"value\": \"do\"\n },\n {\n \"name\": \"ut esse sunt\",\n \"value\": \"mollit aute ipsum fugiat proident\"\n }\n ]\n}", + "raw": "{\n \"requestId\": \"magna ullamco sit sunt\",\n \"settleId\": \"officia est sed occaecat in\",\n \"paymentId\": \"sit voluptate\",\n \"tid\": \"eiusmod mollit\",\n \"value\": -16706450.780128986,\n \"transactionId\": \"tempor\",\n \"recipients\": [\n {\n \"id\": \"laborum nu\",\n \"name\": \"commodo\",\n \"documentType\": \"enim quis laborum sed Excepteur\",\n \"document\": \"eiusmod ex voluptate mollit\",\n \"role\": \"velit ad pariatur eiusmod\",\n \"amount\": 22846591.53994876,\n \"chargeProcessingFee\": false,\n \"chargebackLiable\": false,\n \"comissionAmount\": 88545732.97431877\n },\n {\n \"id\": \"proident\",\n \"name\": \"amet sint consequat\",\n \"documentType\": \"occaecat veniam\",\n \"document\": \"ullamco\",\n \"role\": \"ut sint adipisici\",\n \"amount\": -291414.6786130518,\n \"chargeProcessingFee\": false,\n \"chargebackLiable\": false,\n \"comissionAmount\": 85686260.4586901\n }\n ],\n \"sandboxMode\": true,\n \"merchantSettings\": [\n {\n \"name\": \"consectetur mollit aute\",\n \"value\": \"occaecat veniam ut laboris\"\n },\n {\n \"name\": \"anim exercitation cupidatat Ut\",\n \"value\": \"pariatur\"\n }\n ]\n}", "options": { "raw": { "language": "json" @@ -2050,7 +1802,7 @@ "_": { "postman_previewlanguage": "json" }, - "id": "1c034cec-64a5-4863-a274-f90263047870", + "id": "91309761-3332-4682-8741-4d6870b49814", "name": "Not Implemented", "originalRequest": { "url": { @@ -2067,11 +1819,11 @@ { "disabled": false, "description": { - "content": "(Required) VTEX payment identifier", + "content": "(Required) VTEX payment identifier.", "type": "text/plain" }, "type": "any", - "value": "sit tempor consectetur", + "value": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", "key": "paymentId" }, { @@ -2097,37 +1849,19 @@ { "disabled": false, "description": { - "content": "(Required) The AppKey configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "{{X-VTEX-API-AppKey}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) The AppToken configured by the merchant (optional configuration)", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, - "key": "X-VTEX-API-AppToken", - "value": "{{X-VTEX-API-AppToken}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", - "type": "text/plain" - }, - "key": "Accept", + "key": "Content-Type", "value": "application/json" }, { "disabled": false, "description": { - "content": "(Required) The Media type of the body of the request. Default value for payment provider protocol is application/json", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, - "key": "Content-Type", + "key": "Accept", "value": "application/json" }, { @@ -2138,7 +1872,7 @@ "method": "POST", "body": { "mode": "raw", - "raw": "{\n \"requestId\": \"esse quis elit anim\",\n \"settleId\": \"incididunt quis ut esse\",\n \"paymentId\": \"cupidatat labore culpa Ut\",\n \"tid\": \"enim Ut\",\n \"value\": 50652078.65032068,\n \"transactionId\": \"ipsum sunt\",\n \"recipients\": [\n {\n \"id\": \"Duis Ut in\",\n \"name\": \"in incididunt qui\",\n \"documentType\": \"dolor consequat\",\n \"document\": \"ipsum Duis veniam\",\n \"role\": \"reprehenderit ex ut veniam mollit\",\n \"amount\": 11788538.806647882,\n \"chargeProcessingFee\": false,\n \"chargebackLiable\": false,\n \"comissionAmount\": -68732736.51883349\n },\n {\n \"id\": \"magna consectetur eu\",\n \"name\": \"ipsum\",\n \"documentType\": \"labore quis sint Ut proid\",\n \"document\": \"voluptate\",\n \"role\": \"commodo dolore\",\n \"amount\": 6166430.509859428,\n \"chargeProcessingFee\": true,\n \"chargebackLiable\": false,\n \"comissionAmount\": -38606582.651451275\n }\n ],\n \"sandboxMode\": true,\n \"merchantSettings\": [\n {\n \"name\": \"in pariatur sit consequat\",\n \"value\": \"do\"\n },\n {\n \"name\": \"ut esse sunt\",\n \"value\": \"mollit aute ipsum fugiat proident\"\n }\n ]\n}", + "raw": "{\n \"requestId\": \"magna ullamco sit sunt\",\n \"settleId\": \"officia est sed occaecat in\",\n \"paymentId\": \"sit voluptate\",\n \"tid\": \"eiusmod mollit\",\n \"value\": -16706450.780128986,\n \"transactionId\": \"tempor\",\n \"recipients\": [\n {\n \"id\": \"laborum nu\",\n \"name\": \"commodo\",\n \"documentType\": \"enim quis laborum sed Excepteur\",\n \"document\": \"eiusmod ex voluptate mollit\",\n \"role\": \"velit ad pariatur eiusmod\",\n \"amount\": 22846591.53994876,\n \"chargeProcessingFee\": false,\n \"chargebackLiable\": false,\n \"comissionAmount\": 88545732.97431877\n },\n {\n \"id\": \"proident\",\n \"name\": \"amet sint consequat\",\n \"documentType\": \"occaecat veniam\",\n \"document\": \"ullamco\",\n \"role\": \"ut sint adipisici\",\n \"amount\": -291414.6786130518,\n \"chargeProcessingFee\": false,\n \"chargebackLiable\": false,\n \"comissionAmount\": 85686260.4586901\n }\n ],\n \"sandboxMode\": true,\n \"merchantSettings\": [\n {\n \"name\": \"consectetur mollit aute\",\n \"value\": \"occaecat veniam ut laboris\"\n },\n {\n \"name\": \"anim exercitation cupidatat Ut\",\n \"value\": \"pariatur\"\n }\n ]\n}", "options": { "raw": { "language": "json" @@ -2162,7 +1896,7 @@ { "listen": "test", "script": { - "id": "74c6283c-7036-4bce-9047-e2c3ab9de4e3", + "id": "dadb39b4-ef9b-4f6f-9888-70096a3d7b5f", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/payments/:paymentId/refunds - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -2188,12 +1922,12 @@ } }, { - "id": "0be73a36-5f68-45d3-a3a2-9b638b548017", + "id": "12260d09-c574-40c9-8736-077754f8f49c", "name": "Inbound Request (BETA)", "request": { "name": "Inbound Request (BETA)", "description": { - "content": "Forwards a request back to your endpoint using the `inboundRequestsUrl` provided in the POST `/payments` payload.\r\n\r\nThe `{action}` part of the path will be the same you have used to call the `inboundRequestsUrl`.", + "content": "Forwards a request back to your endpoint using the `inboundRequestsUrl` provided in the POST `/payments` payload.\r\n\r\nThe `{action}` part of the path will be the same you have used to call the `inboundRequestsUrl`. \r\n\r\n## Permissions\r\n\r\nThis endpoint does not require [permissions](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3).", "type": "text/plain" }, "url": { @@ -2211,22 +1945,22 @@ { "disabled": false, "description": { - "content": "(Required) Will be the same you have used to call the `inboundRequestsUrl`", + "content": "(Required) VTEX payment identifier.", "type": "text/plain" }, "type": "any", - "value": "{{action}}", - "key": "action" + "value": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", + "key": "paymentId" }, { "disabled": false, "description": { - "content": "(Required) VTEX payment identifier", + "content": "(Required) Will be the same you have used to call the `inboundRequestsUrl`.", "type": "text/plain" }, "type": "any", - "value": "sit tempor consectetur", - "key": "paymentId" + "value": "{{action}}", + "key": "action" }, { "description": { @@ -2240,24 +1974,6 @@ ] }, "header": [ - { - "disabled": false, - "description": { - "content": "(Required) The AppKey configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "{{X-VTEX-API-AppKey}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) The AppToken configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppToken", - "value": "{{X-VTEX-API-AppToken}}" - }, { "key": "Content-Type", "value": "application/json" @@ -2303,7 +2019,8 @@ "_": { "postman_previewlanguage": "json" }, - "id": "e91fecc8-49f2-4c34-aba7-bc5e7a31d485", + "id": "10b3713e-806f-4bb6-9281-ac5e002ee51f", + "name": "OK", "originalRequest": { "url": { "path": [ @@ -2320,22 +2037,22 @@ { "disabled": false, "description": { - "content": "(Required) Will be the same you have used to call the `inboundRequestsUrl`", + "content": "(Required) VTEX payment identifier.", "type": "text/plain" }, "type": "any", - "value": "{{action}}", - "key": "action" + "value": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", + "key": "paymentId" }, { "disabled": false, "description": { - "content": "(Required) VTEX payment identifier", + "content": "(Required) Will be the same you have used to call the `inboundRequestsUrl`.", "type": "text/plain" }, "type": "any", - "value": "sit tempor consectetur", - "key": "paymentId" + "value": "{{action}}", + "key": "action" }, { "description": { @@ -2360,37 +2077,19 @@ { "disabled": false, "description": { - "content": "(Required) The AppKey configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppKey", - "value": "{{X-VTEX-API-AppKey}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) The AppToken configured by the merchant (optional configuration)", - "type": "text/plain" - }, - "key": "X-VTEX-API-AppToken", - "value": "{{X-VTEX-API-AppToken}}" - }, - { - "disabled": false, - "description": { - "content": "(Required) Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, - "key": "Accept", + "key": "Content-Type", "value": "application/json" }, { "disabled": false, "description": { - "content": "(Required) The Media type of the body of the request. Default value for payment provider protocol is application/json", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, - "key": "Content-Type", + "key": "Accept", "value": "application/json" }, { @@ -2425,7 +2124,7 @@ { "listen": "test", "script": { - "id": "8558e395-38e9-4a6a-9525-02111bec73dc", + "id": "a34e9137-2078-48bd-bf0d-1099b34e3cc5", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/payments/:paymentId/inbound-request/:action - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -2444,7 +2143,7 @@ "event": [] }, { - "id": "9cc017c3-fb2e-4573-aaca-5aa0eb4306e0", + "id": "96518ac5-0929-4576-b0ae-59149f3aa681", "name": "Configuration Flow", "description": { "content": "Here we describe each operation you need to implement to enable the optional configuration flow.\n\nThis is an easier way to allow VTEX merchants to enable your connector, and be ready to use it without having to copy/paste any credentials (`AppKey`/`AppToken`).", @@ -2452,12 +2151,12 @@ }, "item": [ { - "id": "bac6f27f-3575-4dd1-b86f-566d31ae99d8", + "id": "5874eb51-417c-4f28-8217-9c66cc1d3df3", "name": "Create Authorization Token", "request": { "name": "Create Authorization Token", "description": { - "content": "Create token that will be used to identify the same context when we redirect the merchant to your application.", + "content": "Create token that will be used to identify the same context when we redirect the merchant to your application. \r\n\r\n## Permissions\r\n\r\nThis endpoint does not require [permissions](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3).", "type": "text/plain" }, "url": { @@ -2527,7 +2226,8 @@ "_": { "postman_previewlanguage": "json" }, - "id": "4fa41bac-54dd-417b-889c-4345f5d3c229", + "id": "7ce8b47a-8541-44b3-9d52-a582c793404f", + "name": "OK", "originalRequest": { "url": { "path": [ @@ -2562,19 +2262,19 @@ { "disabled": false, "description": { - "content": "(Required) Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, - "key": "Accept", + "key": "Content-Type", "value": "application/json" }, { "disabled": false, "description": { - "content": "(Required) The Media type of the body of the request. Default value for payment provider protocol is application/json", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, - "key": "Content-Type", + "key": "Accept", "value": "application/json" }, { @@ -2699,7 +2399,7 @@ { "listen": "test", "script": { - "id": "6041be48-0202-411b-937c-0f11435f705b", + "id": "1a19641a-e8a7-4dc6-ab0b-96cf98398f3c", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/authorization/token - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -2725,12 +2425,12 @@ } }, { - "id": "be8530cb-4d31-4a48-b35d-406d6d14ca5d", + "id": "8f3fe6f9-5679-4c2f-aa3e-3455a810b794", "name": "Provider Authentication", "request": { "name": "Provider Authentication", "description": { - "content": "Use the application of provider for merchant's authentication.\r\n\r\nVTEX will redirect the merchant to your application using the `token` we retrieved earlier.\r\n\r\nYou're expected to have a signup/signin process on your side in order to authenticate the merchant, either as a new or as an existent user.\r\n\r\nAt this point, you can present your terms an conditions, a contract, and ask for merchant's final agreement to use your services.\r\n\r\nFinally, you need to generate an `authorizationCode` that you must concatenate to the `returnUrl` we send earlier.\r\n\r\nExample:\r\n\r\n`returnUrl` = `https://admin.mystore.example.com/provider-return?authorizationCode=`\r\n\r\n`authorizationCode` = `7940597D-A63B`\r\n\r\nRedirect the merchant to:\r\n\r\n`https://admin.mystore.example.com/provider-return?authorizationCode=7940597D-A63B`", + "content": "Use the application of provider for merchant's authentication.\r\n\r\nVTEX will redirect the merchant to your application using the `token` we retrieved earlier.\r\n\r\nYou're expected to have a signup/signin process on your side in order to authenticate the merchant, either as a new or as an existent user.\r\n\r\nAt this point, you can present your terms an conditions, a contract, and ask for merchant's final agreement to use your services.\r\n\r\nFinally, you need to generate an `authorizationCode` that you must concatenate to the `returnUrl` we send earlier.\r\n\r\nExample:\r\n\r\n`returnUrl` = `https://admin.mystore.example.com/provider-return?authorizationCode=`\r\n\r\n`authorizationCode` = `7940597D-A63B`\r\n\r\nRedirect the merchant to:\r\n\r\n`https://admin.mystore.example.com/provider-return?authorizationCode=7940597D-A63B` \r\n\r\n## Permissions\r\n\r\nThis endpoint does not require [permissions](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3).", "type": "text/plain" }, "url": { @@ -2745,7 +2445,7 @@ { "disabled": false, "description": { - "content": "(Required) VTEX application identifier", + "content": "(Required) VTEX application identifier.", "type": "text/plain" }, "key": "applicationId", @@ -2800,7 +2500,8 @@ "_": { "postman_previewlanguage": "text" }, - "id": "f3b4e05b-a343-44bc-ae36-75a0a9e7b6b7", + "id": "a6dec38c-ba9a-48aa-8917-02b2cce74d80", + "name": "OK. This endpoint does not return any data in the response body.", "originalRequest": { "url": { "path": [ @@ -2844,19 +2545,19 @@ { "disabled": false, "description": { - "content": "(Required) Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, - "key": "Accept", + "key": "Content-Type", "value": "application/json" }, { "disabled": false, "description": { - "content": "(Required) The Media type of the body of the request. Default value for payment provider protocol is application/json", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, - "key": "Content-Type", + "key": "Accept", "value": "application/json" } ], @@ -2879,7 +2580,7 @@ { "listen": "test", "script": { - "id": "173a797b-e96a-45df-b543-f1a0b13ac212", + "id": "128624f0-76c2-49d6-ae4a-07c627227e50", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/authorization/redirect - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -2892,12 +2593,12 @@ } }, { - "id": "3962d12a-5a62-4629-bfb1-df08b0a310b8", + "id": "601ee2ea-f216-4480-a23b-6ce182881ec0", "name": "Get Credentials", "request": { "name": "Get Credentials", "description": { - "content": "Get the credentials of merchant.", + "content": "Get the credentials of merchant. \r\n\r\n## Permissions\r\n\r\nThis endpoint does not require [permissions](https://help.vtex.com/en/tutorial/license-manager-resources--3q6ztrC8YynQf6rdc6euk3).", "type": "text/plain" }, "url": { @@ -2912,7 +2613,7 @@ { "disabled": false, "description": { - "content": "(Required) VTEX application identifier", + "content": "(Required) VTEX application identifier.", "type": "text/plain" }, "key": "applicationId", @@ -2921,7 +2622,7 @@ { "disabled": false, "description": { - "content": "(Required) Code generate by affiliation that will be used to identify the merchant authorization", + "content": "(Required) Code generate by affiliation that will be used to identify the merchant authorization.", "type": "text/plain" }, "key": "authorizationCode", @@ -2973,7 +2674,8 @@ "_": { "postman_previewlanguage": "json" }, - "id": "8d30359f-9aed-4b7e-8535-9977a1aca459", + "id": "97e11125-1791-4075-91f5-14223ca7c482", + "name": "OK", "originalRequest": { "url": { "path": [ @@ -3017,7 +2719,7 @@ { "disabled": false, "description": { - "content": "(Required) The Media type of the body of the request. Default value for payment provider protocol is application/json", + "content": "(Required) Type of the content being sent.", "type": "text/plain" }, "key": "Content-Type", @@ -3026,7 +2728,7 @@ { "disabled": false, "description": { - "content": "(Required) Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", + "content": "(Required) HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", "type": "text/plain" }, "key": "Accept", @@ -3146,7 +2848,7 @@ { "listen": "test", "script": { - "id": "3f065f80-42d4-4417-99a1-de2cca51a0c2", + "id": "2c9c80eb-78a8-4e85-b8b7-ee1f8593d55d", "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/authorization/credentials - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -3193,11 +2895,11 @@ } ], "info": { - "_postman_id": "a3a8f997-c161-4370-b44f-76bed34d4393", - "name": "Payment Provider Protocol", + "_postman_id": "63470053-40d3-4944-967e-47d3b7149dfe", + "name": "Payment Provider Protocol API", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "description": { - "content": ">ℹ️ Check the new [Payments onboarding guide](https://developers.vtex.com/docs/guides/payments-overview). We created this guide to improve the onboarding experience for developers at VTEX. It assembles all documentation on our Developer Portal about Payments and is organized by focusing on the developer's journey.\r\n\r\nThe Payment Provider Protocol is a set of definitions to help you integrate your payment processing API into the VTEX platform, including sub-acquirers, acquirers, gateways, and custom payment services. \r\n\r\nTo achieve this, you must implement a web API (REST) following the specifications described in this documentation.\r\n\r\nTo learn more about the Payment Provider Protocol, check our [Help Center article](https://help.vtex.com/en/tutorial/payment-provider-protocol--RdsT2spdq80MMwwOeEq0m).\r\n\r\n## Endpoint requirements\r\n\r\n * Must use a standard subdomain/domain name, not an IP address.\r\n * Must be served over HTTPS on port 443 with TLS 1.2 support.\r\n * Must respond in less than 5 seconds when running the tests.\r\n * Must respond in less than 20 seconds when in production.\r\n * Must be [PCI-DSS compliant](https://developers.vtex.com/docs/guides/payments-integration-pci-dss-compliance) or use [Secure Proxy](https://developers.vtex.com/docs/guides/payments-integration-secure-proxy) to accept branded cards like Visa, Mastercard, Amex, etc.\r\n\r\n## Testing\r\n\r\nYou can perform tests on your payment using our [VTEX - Payment Provider Test Suite](https://apps.vtex.com/vtex-payment-provider-test-suite/p).\r\n\r\n>ℹ An extra header `X-VTEX-API-Is-TestSuite` = `true` will be sent for every test suite request, to help you easily identify it and mock any required scenarios.\r\n\r\nFor more details about testing a Payment Provider, check our [Payment Provider Homologation](https://developers.vtex.com/docs/guides/payments-integration-payment-provider-homologation) article.\r\n\r\n## Common parameters in the documentation\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
{{providerApiEndpoint}}Provider's endpoint for the implementation
{{X-VTEX-API-AppKey}}The AppKey from the provider's platform configured by the merchant
{{X-VTEX-API-AppToken}}The AppToken from the provider's platform configured by the merchant
", + "content": ">ℹ️ Check the new [Payments onboarding guide](https://developers.vtex.com/docs/guides/payments-overview). We created this guide to improve the onboarding experience for developers at VTEX. It assembles all documentation on our Developer Portal about Payments and is organized by focusing on the developer's journey.\r\n\r\nThe Payment Provider Protocol is a set of definitions to help you integrate your payment processing API into the VTEX platform, including sub-acquirers, acquirers, gateways, and custom payment services. \r\n\r\nTo achieve this, you must implement a web API (REST) following the specifications described in this documentation.\r\n\r\nTo learn more about the Payment Provider Protocol, check our [Help Center article](https://help.vtex.com/en/tutorial/payment-provider-protocol--RdsT2spdq80MMwwOeEq0m).\r\n\r\n## Endpoint requirements\r\n\r\n * Must use a standard subdomain/domain name, not an IP address.\r\n * Must be served over HTTPS on port 443 with TLS 1.2 support.\r\n * Must respond in less than 5 seconds when running the tests.\r\n * Must respond in less than 20 seconds when in production.\r\n * Must be [PCI-DSS compliant](https://developers.vtex.com/docs/guides/payments-integration-pci-dss-compliance) or use [Secure Proxy](https://developers.vtex.com/docs/guides/payments-integration-secure-proxy) to accept branded cards like Visa, Mastercard, Amex, etc.\r\n\r\n## Testing\r\n\r\nYou can perform tests on your payment using our [VTEX - Payment Provider Test Suite](https://apps.vtex.com/vtex-payment-provider-test-suite/p).\r\n\r\n>ℹ An extra header `X-VTEX-API-Is-TestSuite` = `true` will be sent for every test suite request, to help you easily identify it and mock any required scenarios.\r\n\r\nFor more details about testing a Payment Provider, check our [Payment Provider Homologation](https://developers.vtex.com/docs/guides/payments-integration-payment-provider-homologation) article.\r\n\r\n## Common parameters in the documentation\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
{{providerApiEndpoint}}Provider's endpoint for the implementation
{{X-VTEX-API-AppKey}}The AppKey from the provider's platform configured by the merchant
{{X-VTEX-API-AppToken}}The AppToken from the provider's platform configured by the merchant
\r\n\r\n## Payment Provider Protocol API Index\r\n\r\n### Payment Flow\r\n\r\n- `GET` [List Payment Provider Manifest](https://developers.vtex.com/docs/api-reference/payment-provider-protocol#get-/manifest)\r\n- `POST` [Create Payment](https://developers.vtex.com/docs/api-reference/payment-provider-protocol#post-/payments)\r\n- `POST` [Cancel Payment](https://developers.vtex.com/docs/api-reference/payment-provider-protocol#post-/payments/-paymentId-/cancellations)\r\n- `POST` [Settle Payment](https://developers.vtex.com/docs/api-reference/payment-provider-protocol#post-/payments/-paymentId-/settlements)\r\n- `POST` [Refund Payment](https://developers.vtex.com/docs/api-reference/payment-provider-protocol#post-/payments/-paymentId-/refunds)\r\n- `POST` [Inbound Request (BETA)](https://developers.vtex.com/docs/api-reference/payment-provider-protocol#post-/payments/-paymentId-/inbound-request/-action-)\r\n\r\n### Configuration Flow\r\n\r\n- `POST` [Create Authorization Token](https://developers.vtex.com/docs/api-reference/payment-provider-protocol#post-/authorization/token)\r\n- `GET` [Provider Authentication](https://developers.vtex.com/docs/api-reference/payment-provider-protocol#get-/authorization/redirect)\r\n- `GET` [Get Credentials](https://developers.vtex.com/docs/api-reference/payment-provider-protocol#get-/authorization/credentials)", "type": "text/plain" } } diff --git a/PostmanCollections/VTEX - Promotions & Taxes API - v2.json b/PostmanCollections/VTEX - Promotions & Taxes API - v2.json index d6dc876c4..df856796c 100644 --- a/PostmanCollections/VTEX - Promotions & Taxes API - v2.json +++ b/PostmanCollections/VTEX - Promotions & Taxes API - v2.json @@ -1,10 +1,18 @@ { "_": { +<<<<<<< HEAD + "postman_id": "c9d7ba58-c045-4e96-9d29-40f203476ea4" + }, + "item": [ + { + "id": "a6cdfd00-6f6f-406c-90e6-738ca3a4b548", +======= "postman_id": "25414d10-b65b-404f-953d-ae35b56d81a6" }, "item": [ { "id": "a3d14182-128d-47c3-bad7-accba113e695", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "Coupons", "description": { "content": "", @@ -12,7 +20,11 @@ }, "item": [ { +<<<<<<< HEAD + "id": "432ef52f-fe2b-41b7-8657-0cf188a22f5f", +======= "id": "c7f6ebd2-7a21-49db-b418-ca2697d8f88d", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "Get coupons", "request": { "name": "Get coupons", @@ -66,7 +78,11 @@ "_": { "postman_previewlanguage": "json" }, +<<<<<<< HEAD + "id": "a9f0371f-36e2-421f-96f0-695ac584f4ba", +======= "id": "8fc21572-018b-441c-bec8-ea41bf21d692", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "OK", "originalRequest": { "url": { @@ -153,7 +169,11 @@ { "listen": "test", "script": { +<<<<<<< HEAD + "id": "c43b152f-3132-4e47-87e3-e6f0215e1853", +======= "id": "5b8d70d9-fa6a-45f6-9e75-13f4966aacb1", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/rnb/v2/pvt/coupon - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -169,7 +189,11 @@ } }, { +<<<<<<< HEAD + "id": "7d63171f-8b75-4b68-b3e8-30225ca51803", +======= "id": "5d6a8d4e-a1ff-48d2-b4f2-2771a0037548", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "Get archived coupons", "request": { "name": "Get archived coupons", @@ -225,7 +249,11 @@ "_": { "postman_previewlanguage": "json" }, +<<<<<<< HEAD + "id": "b6c63c85-6e84-472d-a8aa-363e665e1c23", +======= "id": "078c1008-80ca-4fcb-ba2e-244278f4e2a6", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "OK", "originalRequest": { "url": { @@ -314,7 +342,11 @@ { "listen": "test", "script": { +<<<<<<< HEAD + "id": "50608bcf-f2a5-44f4-bf29-74db99f02099", +======= "id": "9401532e-0e0b-479d-af69-fed3c73a9417", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/rnb/v2/pvt/coupon/group/archived - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -330,7 +362,11 @@ } }, { +<<<<<<< HEAD + "id": "7e364eab-c9a2-4a94-8224-16b4c189991a", +======= "id": "b510c741-bf59-4326-99b2-2fbd55b51773", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "Get coupon batch information", "request": { "name": "Get coupon batch information", @@ -396,7 +432,11 @@ "_": { "postman_previewlanguage": "json" }, +<<<<<<< HEAD + "id": "d34a2d24-ccc4-4bca-9f1b-91e907585bfc", +======= "id": "d080fd49-29a3-4ec4-8c09-ca9215a452fa", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "OK", "originalRequest": { "url": { @@ -495,7 +535,11 @@ { "listen": "test", "script": { +<<<<<<< HEAD + "id": "8fa36f39-8991-441a-9710-5eee66ce14c2", +======= "id": "d53ae4ca-69bb-4bc4-ac91-7e96d783b222", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/rnb/v2/pvt/coupon/group/:groupingKey - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -511,7 +555,11 @@ } }, { +<<<<<<< HEAD + "id": "144078ed-6615-4e3e-a7bb-65a7cffc3504", +======= "id": "513fd118-40e9-4b1f-b887-8b3d0f36802d", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "Edit coupon batch configuration", "request": { "name": "Edit coupon batch configuration", @@ -590,7 +638,11 @@ "_": { "postman_previewlanguage": "json" }, +<<<<<<< HEAD + "id": "08c92418-44db-49f1-93e6-5c082e5c3ee2", +======= "id": "4bf02643-4ee9-475b-b019-d8f7093f8889", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "OK", "originalRequest": { "url": { @@ -696,7 +748,11 @@ "_": { "postman_previewlanguage": "text" }, +<<<<<<< HEAD + "id": "e0864c78-d8e0-4467-8f79-77782b7fb15c", +======= "id": "b700f031-ed57-4472-a907-1cc4c7dbb725", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "Bad Request", "originalRequest": { "url": { @@ -803,7 +859,11 @@ { "listen": "test", "script": { +<<<<<<< HEAD + "id": "af566b83-2877-4770-9e32-dd5a6a2a6541", +======= "id": "c08f2b0b-a1b5-4ffc-890f-217e7a84191b", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/rnb/v2/pvt/coupon/group/:groupingKey - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -819,7 +879,11 @@ } }, { +<<<<<<< HEAD + "id": "cfce43cc-6d0e-40f8-9d3f-515a96a9692d", +======= "id": "16850c34-a88a-476f-8feb-4db939149bd2", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "Get coupon batch codes", "request": { "name": "Get coupon batch codes", @@ -886,7 +950,11 @@ "_": { "postman_previewlanguage": "json" }, +<<<<<<< HEAD + "id": "9b9a45b6-242a-46f8-a856-c3fbdbcc97fd", +======= "id": "91f95040-e9f1-470b-a7ad-dec460456120", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "OK", "originalRequest": { "url": { @@ -985,7 +1053,11 @@ "_": { "postman_previewlanguage": "text" }, +<<<<<<< HEAD + "id": "4ace3bd0-5601-47b3-b7de-f62163c71e01", +======= "id": "5f09c3bc-67ef-4dc9-af1c-0f59390aa43d", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "Not Found", "originalRequest": { "url": { @@ -1085,7 +1157,11 @@ { "listen": "test", "script": { +<<<<<<< HEAD + "id": "f5b2b623-8942-46a4-b9ff-735b58f44251", +======= "id": "f1bd24ff-129d-4401-a1cd-d22ddc8cf04c", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/rnb/v2/pvt/coupon/group/:groupingKey/codes - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -1101,7 +1177,11 @@ } }, { +<<<<<<< HEAD + "id": "e5a69a1b-bc22-4ecf-beab-afc8452c379e", +======= "id": "a19ce9c9-0609-456d-9dc2-ec4c1ca7b3d7", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "Archive a coupon batch", "request": { "name": "Archive a coupon batch", @@ -1168,7 +1248,11 @@ "_": { "postman_previewlanguage": "text" }, +<<<<<<< HEAD + "id": "aeee72f6-9a73-45a2-9116-922a495822ed", +======= "id": "2dd98b2b-f088-4ea0-ad90-6ea3c25f56ca", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "OK", "originalRequest": { "url": { @@ -1263,7 +1347,11 @@ "_": { "postman_previewlanguage": "text" }, +<<<<<<< HEAD + "id": "3f4990e7-9873-400c-b241-9305463a314d", +======= "id": "9900acf7-0c75-49e8-bd35-b6fb466a2c59", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "Not Found", "originalRequest": { "url": { @@ -1363,7 +1451,11 @@ { "listen": "test", "script": { +<<<<<<< HEAD + "id": "25ca148a-2cd7-46dc-83ae-5ef1fd1222d7", +======= "id": "a59e50c4-579e-456b-9b48-9b3f5c86baa4", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/rnb/v2/pvt/coupon/group/:groupingKey/archive - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -1376,7 +1468,11 @@ } }, { +<<<<<<< HEAD + "id": "0ffefc9e-489d-4667-a1c5-875751766d1c", +======= "id": "28b87bbb-0201-4aa4-a4d4-ec15c99daba4", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "Create coupon batches", "request": { "name": "Create coupon batches", @@ -1444,7 +1540,11 @@ "_": { "postman_previewlanguage": "json" }, +<<<<<<< HEAD + "id": "8d28b6d3-fc38-4fe2-a0c4-cf24e36a8386", +======= "id": "ffc2339d-4e03-489f-80f7-ccc1164e3541", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "OK", "originalRequest": { "url": { @@ -1539,7 +1639,11 @@ "_": { "postman_previewlanguage": "text" }, +<<<<<<< HEAD + "id": "31943850-fce7-42a4-9209-2d6c11ee3b2d", +======= "id": "bac109e1-e460-4e0c-ab93-ecaa62a680c2", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "Bad Request", "originalRequest": { "url": { @@ -1635,7 +1739,11 @@ { "listen": "test", "script": { +<<<<<<< HEAD + "id": "b29f4914-bdbf-4fed-aa16-9ce1369b596f", +======= "id": "aede05ad-e301-4ea6-b180-77c49cfbb518", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[POST]::/api/rnb/v2/pvt/coupon/group - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -1651,7 +1759,11 @@ } }, { +<<<<<<< HEAD + "id": "475e5e31-dcf9-42f5-bbc7-16e082c1e5d4", +======= "id": "6a279ebf-b2fd-4dd0-b59e-20aad52d90b7", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "Unarchive a coupon batch", "request": { "name": "Unarchive a coupon batch", @@ -1712,7 +1824,11 @@ "_": { "postman_previewlanguage": "text" }, +<<<<<<< HEAD + "id": "87c4d11e-3f45-42fd-851b-ee50efcfa2c8", +======= "id": "94778d62-4cf4-4285-925f-7fb58dee52fb", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "OK", "originalRequest": { "url": { @@ -1808,7 +1924,11 @@ { "listen": "test", "script": { +<<<<<<< HEAD + "id": "7aa03d32-590c-4552-8baa-6614bef0b027", +======= "id": "fc137533-69a2-4c8a-bf15-29aecef7affb", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[PUT]::/api/rnb/v2/pvt/coupon/group/:groupingKey/unarchive - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n" @@ -1821,7 +1941,11 @@ } }, { +<<<<<<< HEAD + "id": "e703e816-d0b5-4b3f-a68f-e6cd4acbfbdc", +======= "id": "c26629d2-561b-4da3-b22d-f236bdf0363c", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "Get usage count for a single coupon", "request": { "name": "Get usage count for a single coupon", @@ -1887,7 +2011,11 @@ "_": { "postman_previewlanguage": "json" }, +<<<<<<< HEAD + "id": "c737fea8-6dad-40e8-9699-98d48e56c4eb", +======= "id": "eb8534ca-5518-40f9-80d3-08a04cd97ecd", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "OK", "originalRequest": { "url": { @@ -1986,7 +2114,11 @@ { "listen": "test", "script": { +<<<<<<< HEAD + "id": "0ccc0016-0c6e-4aaa-bdb1-11b90694eed8", +======= "id": "28fdf811-1248-460b-a570-c74e55894b14", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/rnb/v2/pvt/coupon/usage-count/:couponCode - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -2002,7 +2134,11 @@ } }, { +<<<<<<< HEAD + "id": "22612deb-e25d-438c-b219-297450ca11c9", +======= "id": "ce4335cd-b1f0-4199-8d80-b057deb1ca5c", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "Get usage count for a coupon batch", "request": { "name": "Get usage count for a coupon batch", @@ -2069,7 +2205,11 @@ "_": { "postman_previewlanguage": "json" }, +<<<<<<< HEAD + "id": "1c06e4a1-a082-4552-8478-7bb9a9cc47e0", +======= "id": "51be544d-70dc-433c-8408-0513cf8cfe14", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "OK", "originalRequest": { "url": { @@ -2169,7 +2309,11 @@ { "listen": "test", "script": { +<<<<<<< HEAD + "id": "f49c537d-86dc-4565-bbc6-dbac146662f6", +======= "id": "0dd5ca5c-519e-4967-8e3c-06b3e3f9720d", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "type": "text/javascript", "exec": [ "// Validate status 2xx \npm.test(\"[GET]::/api/rnb/v2/pvt/coupon/usage-count/group/:groupingKey - Status code is 2xx\", function () {\n pm.response.to.be.success;\n});\n", @@ -2235,7 +2379,11 @@ } ], "info": { +<<<<<<< HEAD + "_postman_id": "c9d7ba58-c045-4e96-9d29-40f203476ea4", +======= "_postman_id": "25414d10-b65b-404f-953d-ae35b56d81a6", +>>>>>>> f9376db7729e484c1e6ea7b8919018a3778d7bc4 "name": "Promotions & Taxes API v2", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", "description": { diff --git a/VTEX - Payment Provider Protocol.json b/VTEX - Payment Provider Protocol.json index bb2f5a717..85d246f56 100644 --- a/VTEX - Payment Provider Protocol.json +++ b/VTEX - Payment Provider Protocol.json @@ -1,15 +1,14 @@ { "openapi": "3.0.0", "info": { - "title": "Payment Provider Protocol", - "description": ">ℹ️ Check the new [Payments onboarding guide](https://developers.vtex.com/docs/guides/payments-overview). We created this guide to improve the onboarding experience for developers at VTEX. It assembles all documentation on our Developer Portal about Payments and is organized by focusing on the developer's journey.\r\n\r\nThe Payment Provider Protocol is a set of definitions to help you integrate your payment processing API into the VTEX platform, including sub-acquirers, acquirers, gateways, and custom payment services. \r\n\r\nTo achieve this, you must implement a web API (REST) following the specifications described in this documentation.\r\n\r\nTo learn more about the Payment Provider Protocol, check our [Help Center article](https://help.vtex.com/en/tutorial/payment-provider-protocol--RdsT2spdq80MMwwOeEq0m).\r\n\r\n## Endpoint requirements\r\n\r\n * Must use a standard subdomain/domain name, not an IP address.\r\n * Must be served over HTTPS on port 443 with TLS 1.2 support.\r\n * Must respond in less than 5 seconds when running the tests.\r\n * Must respond in less than 20 seconds when in production.\r\n * Must be [PCI-DSS compliant](https://developers.vtex.com/docs/guides/payments-integration-pci-dss-compliance) or use [Secure Proxy](https://developers.vtex.com/docs/guides/payments-integration-secure-proxy) to accept branded cards like Visa, Mastercard, Amex, etc.\r\n\r\n## Testing\r\n\r\nYou can perform tests on your payment using our [VTEX - Payment Provider Test Suite](https://apps.vtex.com/vtex-payment-provider-test-suite/p).\r\n\r\n>\u2139 An extra header `X-VTEX-API-Is-TestSuite` = `true` will be sent for every test suite request, to help you easily identify it and mock any required scenarios.\r\n\r\nFor more details about testing a Payment Provider, check our [Payment Provider Homologation](https://developers.vtex.com/docs/guides/payments-integration-payment-provider-homologation) article.\r\n\r\n## Common parameters in the documentation\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
{{providerApiEndpoint}}Provider's endpoint for the implementation
{{X-VTEX-API-AppKey}}The AppKey from the provider's platform configured by the merchant
{{X-VTEX-API-AppToken}}The AppToken from the provider's platform configured by the merchant
", - "contact": {}, + "title": "Payment Provider Protocol API", + "description": ">ℹ️ The Payment Provider Protocol is a set of definitions to help you integrate your payment processing API into the VTEX platform, including sub-acquirers, acquirers, gateways, and custom payment services. \r\n\r\nTo achieve this, you must implement a web API (REST) following the specifications described in this documentation.\r\n\r\nTo learn more about the Payment Provider Protocol, check our [Help Center article](https://help.vtex.com/en/tutorial/payment-provider-protocol--RdsT2spdq80MMwwOeEq0m).\r\n\r\n## Endpoint requirements\r\n\r\n * Must use a standard subdomain/domain name, not an IP address.\r\n * Must be served over HTTPS on port 443 with TLS 1.2 support.\r\n * Must respond in less than 5 seconds when running the tests.\r\n * Must respond in less than 20 seconds when in production.\r\n * Must be [PCI-DSS compliant](https://developers.vtex.com/docs/guides/payments-integration-pci-dss-compliance) or use [Secure Proxy](https://developers.vtex.com/docs/guides/payments-integration-secure-proxy) to accept branded cards like Visa, Mastercard, Amex, etc.\r\n\r\n## Testing\r\n\r\nYou can perform tests on your payment using our [VTEX - Payment Provider Test Suite](https://apps.vtex.com/vtex-payment-provider-test-suite/p).\r\n\r\n>\u2139 An extra header `X-VTEX-API-Is-TestSuite` = `true` will be sent for every test suite request, to help you easily identify it and mock any required scenarios.\r\n\r\nFor more details about testing a Payment Provider, check our [Payment Provider Homologation](https://developers.vtex.com/docs/guides/payments-integration-payment-provider-homologation) article.\r\n\r\n## Common parameters in the documentation\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
{{providerApiEndpoint}}Provider's endpoint for the implementation.
{{X-PROVIDER-API-AppKey}}Unique identifier created by the provider and configured on the provider configuration page (Admin VTEX).
{{X-PROVIDER-API-AppToken}}Unique token created by the provider and configured on the provider configuration page (Admin VTEX).
\r\n\r\n## Payment Provider Protocol API Index\r\n\r\n### Payment Flow\r\n\r\n- `GET` [List Payment Provider Manifest](https:\/\/developers.vtex.com\/docs\/api-reference\/payment-provider-protocol#get-\/manifest)\r\n- `POST` [Create Payment](https:\/\/developers.vtex.com\/docs\/api-reference\/payment-provider-protocol#post-\/payments)\r\n- `POST` [Cancel Payment](https:\/\/developers.vtex.com\/docs\/api-reference\/payment-provider-protocol#post-\/payments\/-paymentId-\/cancellations)\r\n- `POST` [Settle Payment](https:\/\/developers.vtex.com\/docs\/api-reference\/payment-provider-protocol#post-\/payments\/-paymentId-\/settlements)\r\n- `POST` [Refund Payment](https:\/\/developers.vtex.com\/docs\/api-reference\/payment-provider-protocol#post-\/payments\/-paymentId-\/refunds)\r\n- `POST` [Inbound Request (BETA)](https:\/\/developers.vtex.com\/docs\/api-reference\/payment-provider-protocol#post-\/payments\/-paymentId-\/inbound-request\/-action-)\r\n\r\n### Configuration Flow\r\n\r\n- `POST` [Create Authorization Token](https:\/\/developers.vtex.com\/docs\/api-reference\/payment-provider-protocol#post-\/authorization\/token)\r\n- `GET` [Provider Authentication](https:\/\/developers.vtex.com\/docs\/api-reference\/payment-provider-protocol#get-\/authorization\/redirect)\r\n- `GET` [Get Credentials](https:\/\/developers.vtex.com\/docs\/api-reference\/payment-provider-protocol#get-\/authorization\/credentials)", "version": "1.0" }, "servers": [ { "url": "https://{providerApiEndpoint}", - "description": "VTEX server URL.", + "description": "Payment provider endpoint URL.", "variables": { "providerApiEndpoint": { "description": "Payment provider endpoint URL.", @@ -25,37 +24,20 @@ "Payment Flow" ], "summary": "List Payment Provider Manifest", - "description": "Exposes provider manifest, a range of metadata settings, like payment methods, split configuration and custom fields.\n\n## Available payment methods\n\n\n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n \n
Payment MethodTypeCountry
VisaCredit CardGlobal
MastercardCredit CardGlobal
American ExpressCredit CardGlobal
DiscoverCredit CardGlobal
JCBCredit CardGlobal
DinersCredit CardGlobal
EloCredit CardBrazil
HipercardCredit CardBrazil
AuraCredit CardBrazil
BanricomprasCredit CardBrazil
CredzCredit CardBrazil
VirtualDebitEloDebit CardBrazil
CabalCredit CardArgentina, Brazil, Uruguay, Paraguay
Visa ElectronDebit CardGlobal
MaestroDebit CardGlobal
Mastercard DebitDebit CardGlobal
CobrandedCardGlobal
PrivatelabelsCardGlobal
PromissoriesGenericGlobal
CashGenericGlobal
BankInvoiceOffline/VoucherBrazil (Boleto Bancário)
PixOnline TransferBrazil
SPEIOnline TransferMexico
SafetypayOnline TransferAmericas and Europe
BitcoinCryptocurrencyGlobal
Venda Direta CreditoCredit Card (Physical)Global
Venda Direta DebitoDebit Card (Physical)Global
", + "description": "Exposes the provider manifest, including metadata settings such as payment methods, split configuration, and custom fields.\r\n\r\n> ℹ️ This request is made from VTEX to the payment provider.\r\n\r\n## Available payment methods\r\n\r\n\r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n \r\n
Payment Method<\/th>\r\n Type<\/th>\r\n Country<\/th>\r\n <\/tr>\r\n
Visa<\/code><\/td>\r\n Credit Card<\/td>\r\n Global<\/td>\r\n <\/tr>\r\n
Mastercard<\/code><\/td>\r\n Credit Card<\/td>\r\n Global<\/td>\r\n <\/tr>\r\n
American Express<\/code><\/td>\r\n Credit Card<\/td>\r\n Global<\/td>\r\n <\/tr>\r\n
Discover<\/code><\/td>\r\n Credit Card<\/td>\r\n Global<\/td>\r\n <\/tr>\r\n
JCB<\/code><\/td>\r\n Credit Card<\/td>\r\n Global<\/td>\r\n <\/tr>\r\n
Diners<\/code><\/td>\r\n Credit Card<\/td>\r\n Global<\/td>\r\n <\/tr>\r\n
Elo<\/code><\/td>\r\n Credit Card<\/td>\r\n Brazil<\/td>\r\n <\/tr>\r\n
Hipercard<\/code><\/td>\r\n Credit Card<\/td>\r\n Brazil<\/td>\r\n <\/tr>\r\n
Aura<\/code><\/td>\r\n Credit Card<\/td>\r\n Brazil<\/td>\r\n <\/tr>\r\n
Banricompras<\/code><\/td>\r\n Credit Card<\/td>\r\n Brazil<\/td>\r\n <\/tr>\r\n
Credz<\/code><\/td>\r\n Credit Card<\/td>\r\n Brazil<\/td>\r\n <\/tr>\r\n
Cabal<\/code><\/td>\r\n Credit Card<\/td>\r\n Argentina, Brazil, Uruguay, Paraguay<\/td>\r\n <\/tr>\r\n Cartes Bancaires (CB)<\/code><\/td>\r\n Credit Card<\/td>\r\n France<\/td>\r\n <\/tr>\r\n
VirtualDebitElo<\/code><\/td>\r\n Debit Card<\/td>\r\n Brazil<\/td>\r\n <\/tr>\r\n
Visa Electron<\/code><\/td>\r\n Debit Card<\/td>\r\n Global<\/td>\r\n <\/tr>\r\n
Maestro<\/code><\/td>\r\n Debit Card<\/td>\r\n Global<\/td>\r\n <\/tr>\r\n
Mastercard Debit<\/code><\/td>\r\n Debit Card<\/td>\r\n Global<\/td>\r\n <\/tr>\r\n
D\u00E9bito Online<\/code><\/td>\r\n Debit Card<\/td>\r\n Brazil<\/td>\r\n <\/tr>\r\n
Cobranded<\/code><\/td>\r\n Card<\/td>\r\n Global<\/td>\r\n <\/tr>\r\n
Privatelabels<\/code><\/td>\r\n Card<\/td>\r\n Global<\/td>\r\n <\/tr>\r\n
Promissories<\/code><\/td>\r\n Generic<\/td>\r\n Global<\/td>\r\n <\/tr>\r\n
Cash<\/code><\/td>\r\n Generic<\/td>\r\n Global<\/td>\r\n <\/tr>\r\n
Pix<\/code><\/td>\r\n Online Transfer<\/td>\r\n Brazil<\/td>\r\n <\/tr>\r\n
Safetypay<\/code><\/td>\r\n Online Transfer<\/td>\r\n Americas and Europe<\/td>\r\n <\/tr>\r\n
BankInvoice<\/code><\/td>\r\n Offline\/Voucher<\/td>\r\n Brazil (Boleto Banc\u00E1rio)<\/td>\r\n <\/tr>\r\n
FichaDeposito<\/code><\/td>\r\n Offline\/Voucher<\/td>\r\n Mexico<\/td>\r\n <\/tr>\r\n
Rapipago<\/code><\/td>\r\n Offline\/Voucher<\/td>\r\n Argentina<\/td>\r\n <\/tr>\r\n
OXXO<\/code><\/td>\r\n Offline\/Voucher<\/td>\r\n Mexico<\/td>\r\n <\/tr>\r\n
Voucher<\/code><\/td>\r\n Offline\/Voucher<\/td>\r\n Mexico<\/td>\r\n <\/tr>\r\n
Bitcoin<\/code><\/td>\r\n Cryptocurrency<\/td>\r\n Global<\/td>\r\n <\/tr>\r\n
Venda Direta Credito<\/code><\/td>\r\n Credit Card (Physical)<\/td>\r\n Global<\/td>\r\n <\/tr>\r\n
Venda Direta Debito<\/code><\/td>\r\n Debit Card (Physical)<\/td>\r\n Global<\/td>\r\n <\/tr>\r\n<\/table> \r\n\r\n## Permissions\r\n\r\nCheck with your service provider to know what permissions are needed.", "operationId": "Manifest", "security": [], "parameters": [ { - "name": "Content-Type", - "in": "header", - "description": "The Media type of the body of the request. Default value for payment provider protocol is application/json", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "application/json" - } + "$ref": "#/components/parameters/Content-Type" }, { - "name": "Accept", - "in": "header", - "description": "Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "application/json" - } + "$ref": "#/components/parameters/Accept" } ], "responses": { "200": { - "description": "", - "headers": {}, + "description": "OK", "content": { "application/json": { "schema": { @@ -138,67 +120,36 @@ "Payment Flow" ], "summary": "Create Payment", - "description": "Creates a new payment and initiates the payment flow.\r\n\r\nFor credit/debit card payments or any sync payments, you're expected to execute the authorization.\r\n\r\nYou're expected to return the required information to the customer for bank-issued invoice, redirect, or any async payments.\r\n\r\nThe same request, for the same `paymentId`, can be executed several times, so you must handle it in a way to avoid recreating the payment, but returning the most updated status instead.\r\n\r\n## Callbacks (asynchronous flow)\r\n\r\nCallbacks are used for asynchronous payments, which do not receive the final status immediately. At first, an `undefined` status is returned, and the final status will be received from a callback request in the future as `authorized` or `denied`. There are two types of callbacks:\r\n\r\n- **Notification:** If a payment returns with `undefined` status, you are expected to send us a callback/notification to update it later, sending a POST with an updated version of your response (same structure as above) to the `callbackUrl` we have provided.\r\n\r\n- **Retry:** If a payment returns with `undefined` status, you are expected to call the retry endpoint provided by the `callbackUrl` when the processing of the payment is completed, so we make another Create Payment request to update the status with the new value (`authorized` or `denied`).\r\n\r\nCallback requests should be authenticated using a Key and Token which you can [generate from your VTEX partner account License Manager](https://help.vtex.com/en/tutorial/application-keys--2iffYzlvvz4BDMr6WGUtet#generating-app-keys-in-your-account). To do so, `POST` your request passing the `X-VTEX-API-AppKey` and `X-VTEX-API-AppToken` headers with your credentials. **Note:** do not mix up these credentials with the ones we send on behalf of the merchant when sending our requests.\r\n\r\n>\u26A0 For integrations not using VTEX IO, use the **Notification** callback. For integrations developed using VTEX IO infrastructure, use the **Retry** callback.\r\n\r\n### Callback URL\r\n\r\nThe `callbackUrl` field contains an URL that the payment provider uses to make a callback and inform our gateway of the final payment status: `approved` or `denied`. \r\n\r\nThis URL has some query parameters, including the `X-VTEX-signature`. This parameter is mandatory and contains a signature token to identify that the request has been generated from VTEX as a security measure. The signature token has at most 32 characters. You can check an example of callback URL with the signature token below:\r\n\r\n```\r\nhttps://gatewayqa.vtexpayments.com.br/api/pvt/payment-provider/transactions/8FB0F111111122222333344449984ACB/payments/A2A9A25B11111111222222333327883C/callback?accountName=teampaymentsintegrations&X-VTEX-signature=R******tk\r\n```\r\n\r\nIn the [Transactions page of the Admin](https://help.vtex.com/en/tutorial/how-to-view-the-orders-details--tutorials_452), the signature token appears masked for security reasons, as in this example: `X-VTEX-signature=Rj******tk`.\r\n\r\nWhen making the callback request, we recommend that payment providers use the callback URL exactly as received, which guarantees that all the parameters are included.\r\n\r\nSee below an example of a payload forwarded along with the callback URL:\r\n\r\n```json\r\n{\r\n \"paymentId\": \"8B3BA2F4352545A8B1C5A215F356A01C\",\r\n \"status\": \"approved\",\r\n \"authorizationId\": \"184520\",\r\n \"nsu\": \"21705348\",\r\n \"tid\": \"21705348\",\r\n \"acquirer\": \"pagmm\",\r\n \"code\": \"0000\",\r\n \"message\": \"Successfully approved transaction\",\r\n \"delayToAutoSettle\": 1200,\r\n \"delayToAutoSettleAfterAntifraud\": 1200,\r\n \"delayToCancel\": 86400,\r\n \"cardBrand\": \"Mastercard\",\r\n \"firstDigits\": \"534696\",\r\n \"lastDigits\": \"6921\",\r\n \"maxValue\": 16.6\r\n}\r\n```\r\n\r\n>ℹ️ The parameter values sent in the callback payload replace the original values informed in the **Create Payment** request.\r\n\r\n>⚠️ If the waiting parameters (`delayToAutoSettle` and `delayToAutoSettleAfterAntifraud`) are not sent with the callback URL, the values for these parameters will be automatically set to 24 hours.\r\n\r\n## Beta features\r\n\r\nThe beta features available for payment providers are:\r\n\r\n- `inboundRequestsUrl`: Allows to forward external requests back to your payment provider implementation, including the configured credentials (`X-VTEX-API-*` headers), and settings.\r\n\r\n>\u2139 You can reach out to our team by [opening a ticket](https://help.vtex.com/en/tutorial/opening-tickets-to-vtex-support--16yOEqpO32UQYygSmMSSAM) to know more about any beta features.\r\n\r\n## Request examples\r\n\r\n### Credit Card Success Approved\r\n\r\n```json\r\ncurl --location --request POST 'https:\/\/{{providerApiEndpoint}}\/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application\/json' \\\r\n--header 'Accept: application\/json' \\\r\n--data-raw '{\r\n \"reference\": \"618272\",\r\n \"orderId\": \"1072430428324\",\r\n \"shopperInteraction\": \"ecommerce\",\r\n \"transactionId\": \"2F023FD5A72A49D48A8633252B7CCBD6\",\r\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\r\n \"paymentMethod\": \"Diners\",\r\n \"merchantName\": \"mystore\",\r\n \"card\": {\r\n \"holder\": \"John Doe\",\r\n \"number\": \"364901****2661\",\r\n \"csc\": \"***\",\r\n \"expiration\": {\r\n \"month\": \"12\",\r\n \"year\": \"2020\"\r\n },\r\n \"document\": \"39295416023\",\r\n \"token\": null\r\n },\r\n \"value\": 31.90,\r\n \"referenceValue\": \"31.90\",\r\n \"currency\": \"BRL\",\r\n \"installments\": 1,\r\n \"installmentsInterestRate\": 0.00,\r\n \"installmentsValue\": 31.90,\r\n \"deviceFingerprint\": \"75076388\",\r\n \"ipAddress\": \"187.105.111.65\",\r\n \"miniCart\": {\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"cpf\",\r\n \"corporateName\": null,\r\n \"tradeName\": null,\r\n \"corporateDocument\": null,\r\n \"isCorporate\": false,\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521999999999\",\r\n \"createdDate\": \"2020-02-18T18:17:45\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"S\u00E3o Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"8\",\r\n \"name\": \"Tenis Preto I\",\r\n \"price\": 30.9,\r\n \"quantity\": 1,\r\n \"discount\": 0.0,\r\n \"deliveryType\": \"Normal\",\r\n \"categoryId\": \"5\",\r\n \"sellerId\": \"1\"\r\n }\r\n ],\r\n \"shippingValue\": 1.0,\r\n \"taxValue\": 0.0\r\n },\r\n \"url\": \"https:\/\/admin.mystore.example.com\/orders?q=1072430428324\",\r\n \"callbackUrl\": \"https:\/\/api.mystore.example.com\/some-path\/to-notify\/status-changes?an=mystore\",\r\n \"returnUrl\": \"https:\/\/mystore.example.com\/checkout\/order\/1072430428324\",\r\n \"inboundRequestsUrl\": \"https:\/\/api.mystore.example.com\/checkout\/order\/1072430428324\/inbound-request\/:action\",\r\n \"recipients\": [\r\n {\r\n \"id\": \"mymarketplace\",\r\n \"name\": \"My Marketplace QA\",\r\n \"documentType\": \"CNPJ\",\r\n \"document\": \"99999999999999\",\r\n \"role\": \"marketplace\",\r\n \"chargeProcessingFee\": true,\r\n \"chargebackLiable\": true,\r\n \"amount\": 31.90\r\n }\r\n ],\r\n \"merchantSettings\": [\r\n {\r\n \"name\": \"field1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"field2\",\r\n \"value\": \"value2\"\r\n }\r\n ]\r\n}'\r\n```\r\n\r\n### Pix Success Approved\r\n\r\n```json\r\ncurl --location --request POST 'https:\/\/{{providerApiEndpoint}}\/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application\/json' \\\r\n--header 'Accept: application\/json' \\\r\n--data-raw curl --location --request GET '' \\\r\n--header 'Content-Type: application\/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"Pix\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": \"4307.23\",\r\n \"referenceValue\": \"4307.23\",\r\n \"currency\": \"BRL\",\r\n \"installments\": \"1\",\r\n \"deviceFingerprint\": \"15ace369587ha\",\r\n \"card\": {\r\n \"holder\": null,\r\n \"number\": null,\r\n \"csc\": null,\r\n \"expiration\": {\r\n \"month\": null,\r\n \"year\": null\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": \"11.44\",\r\n \"taxValue\": \"10.01\",\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"cpf\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521999999999\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"S\u00E3o Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https:\/\/admin.mystore.example.com\/orders\/v32478982\",\r\n \"callbackUrl\": \"https:\/\/api.example.com\/some-path\/to-notify\/status-changes?an=mystore\",\r\n \"returnUrl\": \"https:\/\/mystore.example.com\/checkout\/order\/v32478982\"\r\n}'\r\n```\r\n\r\n### Success Undefined\r\n\r\n```json\r\ncurl --location --request POST 'https:\/\/{{providerApiEndpoint}}\/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application\/json' \\\r\n--header 'Accept: application\/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"Visa\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": \"4000.00\",\r\n \"currency\": \"BRL\",\r\n \"installments\": 3,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": \"John Doe\",\r\n \"number\": \"4682185088924788\",\r\n \"csc\": \"021\",\r\n \"expiration\": {\r\n \"month\": \"06\",\r\n \"year\": \"2029\"\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"S\u00E3o Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https:\/\/admin.mystore.example.com\/orders\/v32478982\",\r\n \"callbackUrl\": \"https:\/\/api.example.com\/some-path\/to-notify\/status-changes?an=mystore\",\r\n \"returnUrl\": \"https:\/\/mystore.example.com\/checkout\/order\/v32478982\"\r\n}'\r\n```\r\n\r\n### Success Undefined BankInvoice\r\n\r\n```json\r\ncurl --location --request POST 'https:\/\/{{providerApiEndpoint}}\/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application\/json' \\\r\n--header 'Accept: application\/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"BankInvoice\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": 4307.23,\r\n \"currency\": \"BRL\",\r\n \"installments\": 1,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": null,\r\n \"number\": null,\r\n \"csc\": null,\r\n \"expiration\": {\r\n \"month\": null,\r\n \"year\": null\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"S\u00E3o Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https:\/\/admin.mystore.example.com\/orders\/v32478982\",\r\n \"callbackUrl\": \"https:\/\/api.example.com\/some-path\/to-notify\/status-changes?an=mystore\",\r\n \"returnUrl\": \"https:\/\/mystore.example.com\/checkout\/order\/v32478982\"\r\n}'\r\n```\r\n\r\n### Success Denied\r\n\r\n```json\r\ncurl --location --request POST 'https:\/\/{{providerApiEndpoint}}\/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application\/json' \\\r\n--header 'Accept: application\/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"Visa\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": 4000.00,\r\n \"currency\": \"BRL\",\r\n \"installments\": 3,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": \"John Doe\",\r\n \"number\": \"4682185088924788\",\r\n \"csc\": \"021\",\r\n \"expiration\": {\r\n \"month\": \"06\",\r\n \"year\": \"2029\"\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"S\u00E3o Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https:\/\/admin.mystore.example.com\/orders\/v32478982\",\r\n \"callbackUrl\": \"https:\/\/api.example.com\/some-path\/to-notify\/status-changes?an=mystore\",\r\n \"returnUrl\": \"https:\/\/mystore.example.com\/checkout\/order\/v32478982\"\r\n}'\r\n```\r\n\r\n### Boleto Success Approved\r\n\r\n```json\r\ncurl --location --request POST 'https:\/\/{{providerApiEndpoint}}\/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application\/json' \\\r\n--header 'Accept: application\/json' \\\r\n--data-raw '{\r\n \"reference\": \"618272\",\r\n \"orderId\": \"1072430428324\",\r\n \"shopperInteraction\": \"ecommerce\",\r\n \"transactionId\": \"2F023FD5A72A49D48A8633252B7CCBD6\",\r\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\r\n \"paymentMethod\": \"BankInvoice\",\r\n \"merchantName\": \"mystore\",\r\n \"card\": {\r\n \"holder\": \"null\",\r\n \"number\": \"null\",\r\n \"csc\": \"null\",\r\n \"expiration\": {\r\n \"month\": \"null\",\r\n \"year\": \"null\"\r\n }\r\n },\r\n \"document\": null,\r\n \"token\": null\r\n }\r\n \"value\": 31.90,\r\n \"referenceValue\": 31.90,\r\n \"currency\": \"BRL\",\r\n \"installments\": 1,\r\n \"installmentsInterestRate\": 0.00,\r\n \"installmentsValue\": 31.90,\r\n \"deviceFingerprint\": \"98073964\",\r\n \"ipAddress\": \"187.105.111.65\",\r\n \"miniCart\": {\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"cpf\",\r\n \"corporateName\": null,\r\n \"tradeName\": null,\r\n \"corporateDocument\": null,\r\n \"isCorporate\": false,\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521999999999\",\r\n \"createdDate\": \"2020-02-18T18:17:45\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"S\u00E3o Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"8\",\r\n \"name\": \"Tenis Preto I\",\r\n \"price\": 30.9,\r\n \"quantity\": 1,\r\n \"discount\": 0.0,\r\n \"deliveryType\": \"Normal\",\r\n \"categoryId\": \"5\",\r\n \"sellerId\": \"1\"\r\n }\r\n ],\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n },\r\n \"url\": \"https:\/\/admin.mystore.example.com\/orders?q=1072430428324\",\r\n \"callbackUrl\": \"https:\/\/api.example.com\/some-path\/to-notify\/status-changes?an=mystore\",\r\n \"returnUrl\": \"https:\/\/mystore.example.com\/checkout\/order\/1072430428324\",\r\n \"inboundRequestsUrl\": \"https:\/\/api.mystore.example.com\/checkout\/order\/1072430428324\/inbound-request\/:action\",\r\n \"recipients\": [\r\n {\r\n \"id\": \"mymarketplace\",\r\n \"name\": \"My Marketplace QA\",\r\n \"documentType\": \"CNPJ\",\r\n \"document\": \"99999999999999\",\r\n \"role\": \"marketplace\",\r\n \"chargeProcessingFee\": true,\r\n \"chargebackLiable\": true,\r\n \"amount\": 31.90\r\n }\r\n ],\r\n \"merchantSettings\": [\r\n {\r\n \"name\": \"field1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"field2\",\r\n \"value\": \"value2\"\r\n }\r\n ]\r\n }\r\n}'\r\n```\r\n\r\n### Payment App + Inbound Request Success Undefined\r\n\r\n```json\r\ncurl --location --request POST 'https:\/\/{{providerApiEndpoint}}\/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application\/json' \\\r\n--header 'Accept: application\/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"CustomPay\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": 4307.23,\r\n \"currency\": \"BRL\",\r\n \"installments\": 1,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": null,\r\n \"number\": null,\r\n \"csc\": null,\r\n \"expiration\": {\r\n \"month\": null,\r\n \"year\": null\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"S\u00E3o Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https:\/\/admin.mystore.example.com\/orders\/v32478982\",\r\n \"callbackUrl\": \"https:\/\/api.example.com\/some-path\/to-notify\/status-changes?an=mystore\",\r\n \"returnUrl\": \"https:\/\/mystore.example.com\/checkout\/order\/v32478982\",\r\n \"inboundRequestsUrl\": \"https:\/\/mystore.api.example.com\/some-path\/inbound-request\/:action\"\r\n}'\r\n```\r\n\r\n### Redirect Success Undefined\r\n\r\n```json\r\ncurl --location --request POST 'https:\/\/{{providerApiEndpoint}}\/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application\/json' \\\r\n--header 'Accept: application\/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"FakePay\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": 4307.23,\r\n \"currency\": \"BRL\",\r\n \"installments\": 1,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": null,\r\n \"number\": null,\r\n \"csc\": null,\r\n \"expiration\": {\r\n \"month\": null,\r\n \"year\": null\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"S\u00E3o Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https:\/\/admin.mystore.example.com\/orders\/v32478982\",\r\n \"callbackUrl\": \"https:\/\/api.example.com\/some-path\/to-notify\/status-changes?an=mystore\",\r\n \"returnUrl\": \"https:\/\/mystore.example.com\/checkout\/order\/v32478982\"\r\n}'\r\n```\r\n\r\n### Redirect Success Approved\r\n\r\n```json\r\ncurl --location --request POST 'https:\/\/{{providerApiEndpoint}}\/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application\/json' \\\r\n--header 'Accept: application\/json' \\\r\n--data-raw '{\r\n \"reference\": \"618272\",\r\n \"orderId\": \"1072430428324\",\r\n \"shopperInteraction\": \"ecommerce\",\r\n \"transactionId\": \"2F023FD5A72A49D48A8633252B7CCBD6\",\r\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\r\n \"paymentMethod\": \"RedirectPay\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 31.90,\r\n \"referenceValue\": 31.90,\r\n \"currency\": \"BRL\",\r\n \"installments\": 1,\r\n \"installmentsInterestRate\": 0.00,\r\n \"installmentsValue\": 31.90,\r\n \"deviceFingerprint\": \"75076388\",\r\n \"ipAddress\": \"187.105.111.65\",\r\n \"miniCart\": {\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"cpf\",\r\n \"corporateName\": null,\r\n \"tradeName\": null,\r\n \"corporateDocument\": null,\r\n \"isCorporate\": false,\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521999999999\",\r\n \"createdDate\": \"2020-02-18T18:17:45\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"S\u00E3o Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"8\",\r\n \"name\": \"Tenis Preto I\",\r\n \"price\": 30.9,\r\n \"quantity\": 1,\r\n \"discount\": 0.0,\r\n \"deliveryType\": \"Normal\",\r\n \"categoryId\": \"5\",\r\n \"sellerId\": \"1\"\r\n } \r\n ],\r\n \"shippingValue\": 1.0,\r\n \"taxValue\": 0.0\r\n },\r\n \"url\": \"https:\/\/admin.mystore.example.com\/orders\/v32478982\",\r\n \"callbackUrl\": \"https:\/\/api.example.com\/some-path\/to-notify\/status-changes?an=mystore\",\r\n \"returnUrl\": \"https:\/\/mystore.example.com\/checkout\/order\/v32478982\",\r\n \"inboundRequestsUrl\": \"https:\/\/api.mystore.example.com\/checkout\/order\/1072430428324\/inbound-request\/:action\",\r\n \"recipients\": [\r\n {\r\n \"id\": \"mymarketplace\",\r\n \"name\": \"My Marketplace QA\",\r\n \"documentType\": \"CNPJ\",\r\n \"document\": \"99999999999999\",\r\n \"role\": \"marketplace\",\r\n \"chargeProcessingFee\": true,\r\n \"chargebackLiable\": true,\r\n \"amount\": 31.90\r\n }\r\n ],\r\n \"merchantSettings\": [\r\n {\r\n \"name\": \"field1\",\r\n \"value\": \"value1\"\r\n },\r\n {\r\n \"name\": \"field2\",\r\n \"value\": \"value2\"\r\n }\r\n ]\r\n}'\r\n```\r\n\r\n### Fail Generic Error\r\n\r\n```json\r\ncurl --location --request POST 'https:\/\/{{providerApiEndpoint}}\/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application\/json' \\\r\n--header 'Accept: application\/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"Visa\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": 4000.00,\r\n \"currency\": \"BRL\",\r\n \"installments\": 3,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": \"John Doe\",\r\n \"number\": \"4682185088924788\",\r\n \"csc\": \"021\",\r\n \"expiration\": {\r\n \"month\": \"06\",\r\n \"year\": \"2029\"\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"S\u00E3o Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https:\/\/admin.mystore.example.com\/orders\/v32478982\",\r\n \"callbackUrl\": \"https:\/\/api.example.com\/some-path\/to-notify\/status-changes?an=mystore\",\r\n \"returnUrl\": \"https:\/\/mystore.example.com\/checkout\/order\/v32478982\"\r\n}'\r\n```\r\n\r\n### Fail Bad Request\r\n\r\n```json\r\ncurl --location --request POST 'https:\/\/{{providerApiEndpoint}}\/payments' \\\r\n--header 'X-VTEX-API-AppKey: {{X-VTEX-API-AppKey}}' \\\r\n--header 'X-VTEX-API-AppToken: {{X-VTEX-API-AppToken}}' \\\r\n--header 'Content-Type: application\/json' \\\r\n--header 'Accept: application\/json' \\\r\n--data-raw '{\r\n \"reference\": \"32478982\",\r\n \"orderId\": \"v967373115140abc\",\r\n \"transactionId\": \"D3AA1FC8372E430E8236649DB5EBD08E\",\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"paymentMethod\": \"Visa\",\r\n \"paymentMethodCustomCode\": null,\r\n \"merchantName\": \"mystore\",\r\n \"value\": 4307.23,\r\n \"referenceValue\": 4000.00,\r\n \"currency\": \"BRL\",\r\n \"installments\": 3,\r\n \"deviceFingerprint\": \"12ade389087fe\",\r\n \"card\": {\r\n \"holder\": \"John Doe\",\r\n \"number\": \"4682185088924788\",\r\n \"csc\": \"021\",\r\n \"expiration\": {\r\n \"month\": \"06\",\r\n \"year\": \"2029\"\r\n }\r\n },\r\n \"miniCart\": {\r\n \"shippingValue\": 11.44,\r\n \"taxValue\": 10.01,\r\n \"buyer\": {\r\n \"id\": \"c1245228-1c68-11e6-94ac-0afa86a846a5\",\r\n \"firstName\": \"John\",\r\n \"lastName\": \"Doe\",\r\n \"document\": \"01234567890\",\r\n \"documentType\": \"CPF\",\r\n \"email\": \"john.doe@example.com\",\r\n \"phone\": \"+5521987654321\"\r\n },\r\n \"shippingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Praia de Botafogo St.\",\r\n \"number\": \"300\",\r\n \"complement\": \"3rd Floor\",\r\n \"neighborhood\": \"Botafogo\",\r\n \"postalCode\": \"22250040\",\r\n \"city\": \"Rio de Janeiro\",\r\n \"state\": \"RJ\"\r\n },\r\n \"billingAddress\": {\r\n \"country\": \"BRA\",\r\n \"street\": \"Brigadeiro Faria Lima Avenue\",\r\n \"number\": \"4440\",\r\n \"complement\": \"10th Floor\",\r\n \"neighborhood\": \"Itaim Bibi\",\r\n \"postalCode\": \"04538132\",\r\n \"city\": \"S\u00E3o Paulo\",\r\n \"state\": \"SP\"\r\n },\r\n \"items\": [\r\n {\r\n \"id\": \"132981\",\r\n \"name\": \"My First Product\",\r\n \"price\": 2134.90,\r\n \"quantity\": 2,\r\n \"discount\": 5.00\r\n },\r\n {\r\n \"id\": \"123242\",\r\n \"name\": \"My Second Product\",\r\n \"price\": 21.98,\r\n \"quantity\": 1,\r\n \"discount\": 1.00\r\n }\r\n ]\r\n },\r\n \"url\": \"https:\/\/admin.mystore.example.com\/orders\/v32478982\",\r\n \"callbackUrl\": \"https:\/\/api.example.com\/some-path\/to-notify\/status-changes?an=mystore\",\r\n \"returnUrl\": \"https:\/\/mystore.example.com\/checkout\/order\/v32478982\"\r\n}'\r\n```\r\n\r\n## Response examples\r\n\r\n\r\n\r\n### 200 - OK\r\n\r\n```json\r\n{\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"status\": \"undefined\",\r\n \"tid\": \"TID1578324421\",\r\n \"authorizationId\": null,\r\n \"nsu\": null,\r\n \"code\": \"APP123\",\r\n \"paymentAppData\": {\r\n \"appName\": \"vendor.payment-auth-app\",\r\n \"payload\": \"{\\\"backendUrl\\\":\\\"https://api.example.org/payments/F5C1A4E20D3B4E07B7E871F5B5BC9F91\\\",\\\"randomString\\\":\\\"78818C2C64264212B8D5771BDC7B1A\\\",\\\"randomBool\\\":false,\\\"timestamp\\\":\\\"2019-10-07 21:30:09Z\\\"}\"\r\n },\r\n \"message\": \"The customer needs to finish the payment flow\",\r\n \"delayToAutoSettle\": 604800,\r\n \"delayToAutoSettleAfterAntifraud\": 120,\r\n \"delayToCancel\": 604800\r\n}\r\n```\r\n\r\n### 200 - OK - Pix\r\n\r\n```json\r\n{\r\n \"paymentId\": \"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\r\n \"status\": \"undefined\",\r\n \"tid\": \"TID1578324421\",\r\n \"authorizationId\": null,\r\n \"nsu\": null,\r\n \"code\": \"APP123\",\r\n \"paymentAppData\": {\r\n \"payload\": \"{\\\"code\\\":\\\"https://bacen.pix/pix/code\\\",\\\"qrCodeBase64Image\\\":\\\"iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAABQGlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGDiSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAxSDMwMkgwiCZmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsgspwWXFu+Xeyundb6w0WL33C5M9SiAKyW1OBlI/wHihOSCohIGBsYYIFu5vKQAxG4AskWKgI4CsqeA2OkQ9goQOwnC3gNWExLkDGRfALIFkjMSU4DsB0C2ThKSeDoSG2ovCLAZGZkbhBNwKKmgJLWiBEQ75xdUFmWmZ5QoOAJDJ1XBMy9ZT0fByMDIgIEBFNYQ1Z9vgMOQUYwDIZapzMBgmQEUfIQQSxNmYNiZzsDAU4UQU5/PwMBrxMBw5GJBYlEi3AGM31iK04yNIGzu7QwMrNP+//8M9Ca7JgPD3+v////e/v//32UMDMy3GBgOfAMA4+RdqZ9YRkcAAABWZVhJZk1NACoAAAAIAAGHaQAEAAAAAQAAABoAAAAAAAOShgAHAAAAEgAAAESgAgAEAAAAAQAAAAKgAwAEAAAAAQAAAAIAAAAAQVNDSUkAAABTY3JlZW5zaG900Fpo3gAAAdJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MjwvZXhpZjpQaXhlbFhEaW1lbnNpb24+CiAgICAgICAgIDxleGlmOlVzZXJDb21tZW50PlNjcmVlbnNob3Q8L2V4aWY6VXNlckNvbW1lbnQ+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj4yPC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cl89Cn4AAAASSURBVAgdY/wPBAxAwAQiQAAAPfgEAIAu9DkAAAAASUVORK5CYII=\\\"}\"\r\n },\r\n \"message\": \"The customer needs to finish the payment flow\",\r\n \"delayToAutoSettle\": 604800,\r\n \"delayToAutoSettleAfterAntifraud\": 120,\r\n \"delayToCancel\": 300\r\n}\r\n```\r\n\r\n### 200 - OK - Credit Card\r\n\r\n```json\r\n{\r\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\r\n \"status\": \"approved\",\r\n \"authorizationId\": \"AUT-09DC5E8F03\",\r\n \"nsu\": \"NSU-107521E866\",\r\n \"tid\": \"TID-7B58BE1A08\",\r\n \"acquirer\": \"TestPay\",\r\n \"code\": \"2000\",\r\n \"message\": null,\r\n \"delayToAutoSettle\": 21600,\r\n \"delayToAutoSettleAfterAntifraud\": 1800,\r\n \"delayToCancel\": 21600\r\n}\r\n```\r\n\r\n### 200 - OK - Boleto\r\n\r\n```json\r\n{\r\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\r\n \"status\": \"undefined\",\r\n \"authorizationId\": \"AUT-2E7CBF7290-ASYNC\",\r\n \"paymentUrl\": \"https://example.org/boleto/gatewayqa/2F023FD5A72A49D48A8633252B7CCBD6/01693EB95BE443AC85874E395CD91565\",\r\n \"identificationNumber\": \"23790504004199031316957008109209378300000019900\",\r\n \"identificationNumberFormatted\": \"23790.50400 41990.313169 57008.109209 3 78300000019900\",\r\n \"barCodeImageType\": \"i25\",\r\n \"barCodeImageNumber\": \"23793783000000199000504041990313165700810920\",\r\n \"nsu\": \"NSU-60F328ACD8-ASYNC\",\r\n \"tid\": \"TID-F3FB9B3FDB-ASYNC\",\r\n \"acquirer\": \"TestPay\",\r\n \"code\": \"2000-ASYNC\",\r\n \"message\": null,\r\n \"delayToAutoSettle\": 21600,\r\n \"delayToAutoSettleAfterAntifraud\": 1800,\r\n \"delayToCancel\": 21600\r\n}\r\n```\r\n\r\n### 200 - OK - Payment App\r\n\r\n```json\r\n{\r\n \"paymentId\": \"01693EB95BE443AC85874E395CD91565\",\r\n \"status\": \"undefined\",\r\n \"authorizationId\": \"AUT-6929AD8429\",\r\n \"paymentAppData\": {\r\n \"appName\": \"vtex.payment\",\r\n \"payload\": \"{\\\"approvePaymentUrl\\\":\\\"https://api.mystore.example.com/payments/F5C1A4E20D3B4E07B7E871F5B5BC9F91/callback-trigger/approved?url=https://api.mystore.example.com/transactions/D3AA1FC8372E430E8236649DB5EBD08E/payments/F5C1A4E20D3B4E07B7E871F5B5BC9F91/notification\\\",\\\"denyPaymentUrl\\\":\\\"https://api.mystore.example.com/payments/F5C1A4E20D3B4E07B7E871F5B5BC9F91/callback-trigger/denied?url=https://api.mystore.example.com/transactions/D3AA1FC8372E430E8236649DB5EBD08E/payments/F5C1A4E20D3B4E07B7E871F5B5BC9F91/notification\\\",\\\"orderId\\\":\\\"1072650953886\\\",\\\"transactionId\\\":\\\"D3AA1FC8372E430E8236649DB5EBD08E\\\",\\\"paymentId\\\":\\\"F5C1A4E20D3B4E07B7E871F5B5BC9F91\\\",\\\"timestamp\\\":\\\"2020-10-29 17:15:59Z\\\"}\"\r\n },\r\n \"nsu\": \"NSU-227AFD0BD2\",\r\n \"tid\": \"TID-DBE4BFFB19\",\r\n \"acquirer\": \"TestPay\",\r\n \"code\": \"2001\",\r\n \"message\": null,\r\n \"delayToAutoSettle\": 21600,\r\n \"delayToAutoSettleAfterAntifraud\": 1800,\r\n \"delayToCancel\": 21600\r\n}\r\n```\r\n\r\n### 200 - OK - Redirect\r\n\r\n```json\r\n{\r\n \"paymentId\": \"7ee64e51-a0d3-4405-874c-d7497ab84572\",\r\n \"status\": \"undefined\",\r\n \"tid\": \"214c699cb408ce6a7110\",\r\n \"paymentUrl\": \"http://php-connector.herokuapp.com/installments.php?paymentId=7ee64e51-a0d3-4405-874c-d7497ab84572\"\r\n}\r\n```\r\n\r\n### 200 - OK - Callback\r\n\r\n```json\r\n{\r\n \"paymentId\": \"7ee64e51-a0d3-4405-874c-d7497ab84572\",\r\n \"status\": \"approved\",\r\n \"authorizationId\": \"3baafb4097d6c8ad3883\",\r\n \"paymentUrl\": null,\r\n \"nsu\": \"214c699cb408ce6a7110\",\r\n \"tid\": \"214c699cb408ce6a7110\",\r\n \"acquirer\": null,\r\n \"code\": null,\r\n \"message\": \"Payment with custom installments approved\",\r\n \"delayToAutoSettle\": 21600,\r\n \"delayToAutoSettleAfterAntifraud\": 1800,\r\n \"delayToCancel\": 21600\r\n}\r\n```", + "description": "Creates a new payment and initiates the payment flow.\r\n\r\n> ℹ️ This request is made from VTEX to the payment provider.\r\n\r\nPayment providers must:\r\n\r\n- Execute authorization on payments made through credit/debit card or any synchronized payments;\r\n\r\n- Return the required information to the customer on payments made through bank-issued invoice, redirect, or any async payments.\r\n\r\n >ℹ️ This endpoint has to meet the principle of [idempotence](https://en.wikipedia.org/wiki/Idempotence). When calling this endpoint for the first time of a payment, without a `paymentId`, it should create a new payment. When calling this endpoint for an existing `paymentId`, it should not create another payment, but return the updated status of the existing payment instead.\r\n\r\n## Callbacks (asynchronous flow)\r\n\r\nCallbacks are used for asynchronous payments, which do not receive the final status immediately. At first, an `undefined` status is returned, and the final status will be received from a callback request in the future as `authorized` or `denied`. There are two types of callbacks:\r\n\r\n- **Notification:** If a payment returns with `undefined` status, you are expected to send us a callback/notification to update it later, sending a POST with an updated version of your response (same structure as above) to the `callbackUrl` we have provided.\r\n\r\n- **Retry:** If a payment returns with `undefined` status, you are expected to call the retry endpoint provided by the `callbackUrl` when the processing of the payment is completed, so we make another Create Payment request to update the status with the new value (`authorized` or `denied`).\r\n\r\nCallback requests should be authenticated using a Key and Token which you can [generate from your VTEX partner account License Manager](https://help.vtex.com/en/tutorial/application-keys--2iffYzlvvz4BDMr6WGUtet#generating-app-keys-in-your-account). To do so, `POST` your request passing the `X-VTEX-API-AppKey` and `X-VTEX-API-AppToken` headers with your credentials. **Note:** do not mix up these credentials with the ones we send on behalf of the merchant when sending our requests.\r\n\r\n>\u26A0 For integrations not using VTEX IO, use the **Notification** callback. For integrations developed using VTEX IO infrastructure, use the **Retry** callback.\r\n\r\n### Callback URL\r\n\r\nThe `callbackUrl` field contains an URL that the payment provider uses to make a callback and inform our gateway of the final payment status: `approved` or `denied`. \r\n\r\nThis URL has some query parameters, including the `X-VTEX-signature`. This parameter is mandatory and contains a signature token to identify that the request has been generated from VTEX as a security measure. The signature token has at most 32 characters. You can check an example of callback URL with the signature token below:\r\n\r\n```\r\nhttps://gatewayqa.vtexpayments.com.br/api/pvt/payment-provider/transactions/8FB0F111111122222333344449984ACB/payments/A2A9A25B11111111222222333327883C/callback?accountName=teampaymentsintegrations&X-VTEX-signature=R******tk\r\n```\r\n\r\nIn the [Transactions page of the Admin](https://help.vtex.com/en/tutorial/how-to-view-the-orders-details--tutorials_452), the signature token appears masked for security reasons, as in this example: `X-VTEX-signature=Rj******tk`.\r\n\r\nWhen making the callback request, we recommend that payment providers use the callback URL exactly as received, which guarantees that all the parameters are included.\r\n\r\nSee below an example of a payload forwarded along with the callback URL:\r\n\r\n```json\r\n{\r\n \"paymentId\": \"8B3BA2F4352545A8B1C5A215F356A01C\",\r\n \"status\": \"approved\",\r\n \"authorizationId\": \"184520\",\r\n \"nsu\": \"21705348\",\r\n \"tid\": \"21705348\",\r\n \"acquirer\": \"pagmm\",\r\n \"code\": \"0000\",\r\n \"message\": \"Successfully approved transaction\",\r\n \"delayToAutoSettle\": 1200,\r\n \"delayToAutoSettleAfterAntifraud\": 1200,\r\n \"delayToCancel\": 86400,\r\n \"cardBrand\": \"Mastercard\",\r\n \"firstDigits\": \"534696\",\r\n \"lastDigits\": \"6921\",\r\n \"maxValue\": 16.6\r\n}\r\n```\r\n\r\n>ℹ️ The parameter values sent in the callback payload replace the original values informed in the **Create Payment** request.\r\n\r\n>⚠️ If the waiting parameters (`delayToAutoSettle` and `delayToAutoSettleAfterAntifraud`) are not sent with the callback URL, the values for these parameters will be automatically set to 24 hours.\r\n\r\n## Beta features\r\n\r\nThe beta features available for payment providers are:\r\n\r\n- `inboundRequestsUrl`: Allows to forward external requests back to your payment provider implementation, including the configured credentials (`X-VTEX-API-*` headers), and settings.\r\n\r\n>\u2139 You can reach out to our team by [opening a ticket](https://help.vtex.com/en/tutorial/opening-tickets-to-vtex-support--16yOEqpO32UQYygSmMSSAM) to know more about any beta features.\r\n\r\n## Permissions\r\n\r\nCheck with your service provider to know what permissions are needed." , "operationId": "CreatePayment", "parameters": [ { - "name": "X-VTEX-API-AppKey", - "in": "header", - "description": "The AppKey configured by the merchant (optional configuration)", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "{{X-VTEX-API-AppKey}}" - } + "$ref": "#/components/parameters/X-PROVIDER-API-AppKey" }, { - "name": "X-VTEX-API-AppToken", - "in": "header", - "description": "The AppToken configured by the merchant (optional configuration)", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "{{X-VTEX-API-AppToken}}" - } + "$ref": "#/components/parameters/X-PROVIDER-API-AppToken" }, { - "name": "Accept", - "in": "header", - "description": "Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "application/json" - } + "$ref": "#/components/parameters/Content-Type" }, { - "name": "Content-Type", - "in": "header", - "description": "The Media type of the body of the request. Default value for payment provider protocol is application/json", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "application/json" - } + "$ref": "#/components/parameters/Accept" } ], "security": [ { "appKey": [], "appToken": [] + }, + { + "VtexIdclientAutCookie": [] } ], "requestBody": { - "description": "", "content": { "application/json": { "schema": { "type": "object", - "title": "The Root", "required": [ "reference", "orderId", @@ -231,7 +182,7 @@ }, "shopperInteraction": { "type": "string", - "description": "Indicates which system the buyer interacted with (examples: e-commerce, instore, subscription).", + "description": "Indicates which system the buyer interacted with (examples: ecommerce, instore, subscription).", "example": "ecommerce" }, "verificationOnly": { @@ -404,7 +355,7 @@ }, "miniCart": { "type": "object", - "title": "Minicart information.", + "description": "Minicart information.", "required": [ "shippingValue", "taxValue", @@ -426,7 +377,7 @@ }, "buyer": { "type": "object", - "title": "Buyer information.", + "description": "Buyer information.", "required": [ "firstName", "lastName", @@ -501,8 +452,7 @@ }, "shippingAddress": { "type": "object", - "title": "shippingAddress", - "description": "Shipping address. Address where the purchase will be delivered.", + "description": "Information about the address where the purchase will be delivered.", "required": [ "country", "street", @@ -515,42 +465,42 @@ "properties": { "country": { "type": "string", - "description": "Shipping address: country code (ISO 3166 alpha-3).", + "description": "Shipping address country code (ISO 3166 alpha-3).", "example": "BRA" }, "street": { "type": "string", - "description": "Shipping address: street.", + "description": "Shipping address street.", "example": "Praia de Botafogo St." }, "number": { "type": "string", - "description": "Shipping address: number.", + "description": "Shipping address number.", "example": "300" }, "complement": { "type": "string", - "description": "Shipping address: complement.", + "description": "Shipping address complement.", "example": "3rd Floor" }, "neighborhood": { "type": "string", - "description": "Shipping address: neighborhood.", + "description": "Shipping address neighborhood.", "example": "Botafogo" }, "postalCode": { "type": "string", - "description": "Shipping address: postal code.", + "description": "Shipping address postal code.", "example": "22250040" }, "city": { "type": "string", - "description": "Shipping address: city.", + "description": "Shipping address city.", "example": "Rio de Janeiro" }, "state": { "type": "string", - "description": "Shipping address: state/province.", + "description": "Shipping address state/province.", "example": "RJ" } } @@ -570,53 +520,51 @@ "properties": { "country": { "type": "string", - "description": "Billing address: country code (ISO 3166 alpha-3).", + "description": "Billing address country code (ISO 3166 alpha-3).", "example": "BRA" }, "street": { "type": "string", - "description": "Billing address: street.", + "description": "Billing address street.", "example": "Brigadeiro Faria Lima Avenue" }, "number": { "type": "string", - "description": "Billing address: number.", + "description": "Billing address number.", "example": "4440" }, "complement": { "type": "string", - "description": "Billing address: complement.", + "description": "Billing address complement.", "example": "10th Floor" }, "neighborhood": { "type": "string", - "description": "Billing address: neighborhood.", + "description": "Billing address neighborhood.", "example": "Itaim Bibi" }, "postalCode": { "type": "string", - "description": "Billing address: postal code.", + "description": "Billing address postal code.", "example": "04538132" }, "city": { "type": "string", - "description": "Billing address: city.", + "description": "Billing address city.", "example": "São Paulo" }, "state": { "type": "string", - "description": "Billing address: state/province.", + "description": "Billing address state/province.", "example": "SP" } } }, "items": { "type": "array", - "title": "items", "description": "Items of the cart of the purchase.", "items": { "type": "object", - "title": "items", "required": [ "id", "name", @@ -746,7 +694,7 @@ }, "merchantSettings": { "type": "array", - "description": "Custom fields (for the given Provider) which the Merchant must fill. Each element of this array is a key-value pair.", + "description": "Custom fields (for the given Provider) which the merchant must fill. Each element of this array is a key-value pair.", "items": { "type": "object", "required": [ @@ -802,123 +750,948 @@ "example": "https://mystore.example.com/checkout/order/1072430428324" } } - } - } - }, - "required": true - }, - "responses": { - "200": { - "description": "OK", - "headers": { - "Cache-Control": { - "content": { - "text/plain": { - "schema": { - "type": "string" + }, + "examples": { + "Credit Card Success Approved": { + "value": { + "reference": "618272", + "orderId": "1072430428324", + "shopperInteraction": "ecommerce", + "transactionId": "2F023FD5A72A49D48A8633252B7CCBD6", + "paymentId": "01693EB95BE443AC85874E395CD91565", + "paymentMethod": "Diners", + "merchantName": "mystore", + "card": { + "holder": "John Doe", + "number": "364901****2661", + "csc": "***", + "expiration": { + "month": "12", + "year": "2020" + }, + "document": "39295416023", + "token": null + }, + "value": 31.90, + "referenceValue": "31.90", + "currency": "BRL", + "installments": 1, + "installmentsInterestRate": 0.00, + "installmentsValue": 31.90, + "deviceFingerprint": "75076388", + "ipAddress": "187.105.111.65", + "miniCart": { + "buyer": { + "id": "c1245228-1c68-11e6-94ac-0afa86a846a5", + "firstName": "John", + "lastName": "Doe", + "document": "01234567890", + "documentType": "cpf", + "corporateName": null, + "tradeName": null, + "corporateDocument": null, + "isCorporate": false, + "email": "john.doe@example.com", + "phone": "+5521999999999", + "createdDate": "2020-02-18T18:17:45" + }, + "shippingAddress": { + "country": "BRA", + "street": "Praia de Botafogo St.", + "number": "300", + "complement": "3rd Floor", + "neighborhood": "Botafogo", + "postalCode": "22250040", + "city": "Rio de Janeiro", + "state": "RJ" + }, + "billingAddress": { + "country": "BRA", + "street": "Brigadeiro Faria Lima Avenue", + "number": "4440", + "complement": "10th Floor", + "neighborhood": "Itaim Bibi", + "postalCode": "04538132", + "city": "São Paulo", + "state": "SP" + }, + "items": [ + { + "id": "8", + "name": "Tenis Preto I", + "price": 30.9, + "quantity": 1, + "discount": 0.0, + "deliveryType": "Normal", + "categoryId": "5", + "sellerId": "1" + } + ], + "shippingValue": 1.0, + "taxValue": 0.0 }, - "example": "no-cache" + "url": "https://admin.mystore.example.com/orders?q=1072430428324", + "callbackUrl": "https://api.mystore.example.com/some-path/to-notify/status-changes?an=mystore", + "returnUrl": "https://mystore.example.com/checkout/order/1072430428324", + "inboundRequestsUrl": "https://api.mystore.example.com/checkout/order/1072430428324/inbound-request/:action", + "recipients": [ + { + "id": "mymarketplace", + "name": "My Marketplace QA", + "documentType": "CNPJ", + "document": "99999999999999", + "role": "marketplace", + "chargeProcessingFee": true, + "chargebackLiable": true, + "amount": 31.90 + } + ], + "merchantSettings": [ + { + "name": "field1", + "value": "value1" + }, + { + "name": "field2", + "value": "value2" + } + ] } - } - }, - "Connection": { - "content": { - "text/plain": { - "schema": { - "type": "string" + }, + "Pix Success Approved": { + "value": { + "reference": "32478982", + "orderId": "v967373115140abc", + "transactionId": "D3AA1FC8372E430E8236649DB5EBD08E", + "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", + "paymentMethod": "Pix", + "paymentMethodCustomCode": null, + "merchantName": "mystore", + "value": "4307.23", + "referenceValue": "4307.23", + "currency": "BRL", + "installments": "1", + "deviceFingerprint": "15ace369587ha", + "card": { + "holder": null, + "number": null, + "csc": null, + "expiration": { + "month": null, + "year": null + } + }, + "miniCart": { + "shippingValue": "11.44", + "taxValue": "10.01", + "buyer": { + "id": "c1245228-1c68-11e6-94ac-0afa86a846a5", + "firstName": "John", + "lastName": "Doe", + "document": "01234567890", + "documentType": "cpf", + "email": "john.doe@example.com", + "phone": "+5521999999999" + }, + "shippingAddress": { + "country": "BRA", + "street": "Praia de Botafogo St.", + "number": "300", + "complement": "3rd Floor", + "neighborhood": "Botafogo", + "postalCode": "22250040", + "city": "Rio de Janeiro", + "state": "RJ" + }, + "billingAddress": { + "country": "BRA", + "street": "Brigadeiro Faria Lima Avenue", + "number": "4440", + "complement": "10th Floor", + "neighborhood": "Itaim Bibi", + "postalCode": "04538132", + "city": "São Paulo", + "state": "SP" + }, + "items": [ + { + "id": "132981", + "name": "My First Product", + "price": 2134.90, + "quantity": 2, + "discount": 5.00 + }, + { + "id": "123242", + "name": "My Second Product", + "price": 21.98, + "quantity": 1, + "discount": 1.00 + } + ] }, - "example": "keep-alive" + "url": "https://admin.mystore.example.com/orders/v32478982", + "callbackUrl": "https://api.example.com/some-path/to-notify/status-changes?an=mystore", + "returnUrl": "https://mystore.example.com/checkout/order/v32478982" } - } - }, - "Content-Length": { - "content": { - "text/plain": { - "schema": { - "type": "string" + }, + "Success Undefined": { + "value": { + "reference": "32478982", + "orderId": "v967373115140abc", + "transactionId": "D3AA1FC8372E430E8236649DB5EBD08E", + "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", + "paymentMethod": "Visa", + "paymentMethodCustomCode": null, + "merchantName": "mystore", + "value": 4307.23, + "referenceValue": "4000.00", + "currency": "BRL", + "installments": 3, + "deviceFingerprint": "12ade389087fe", + "card": { + "holder": "John Doe", + "number": "4682185088924788", + "csc": "021", + "expiration": { + "month": "06", + "year": "2029" + } + }, + "miniCart": { + "shippingValue": 11.44, + "taxValue": 10.01, + "buyer": { + "id": "c1245228-1c68-11e6-94ac-0afa86a846a5", + "firstName": "John", + "lastName": "Doe", + "document": "01234567890", + "documentType": "CPF", + "email": "john.doe@example.com", + "phone": "+5521987654321" + }, + "shippingAddress": { + "country": "BRA", + "street": "Praia de Botafogo St.", + "number": "300", + "complement": "3rd Floor", + "neighborhood": "Botafogo", + "postalCode": "22250040", + "city": "Rio de Janeiro", + "state": "RJ" + }, + "billingAddress": { + "country": "BRA", + "street": "Brigadeiro Faria Lima Avenue", + "number": "4440", + "complement": "10th Floor", + "neighborhood": "Itaim Bibi", + "postalCode": "04538132", + "city": "São Paulo", + "state": "SP" + }, + "items": [ + { + "id": "132981", + "name": "My First Product", + "price": 2134.90, + "quantity": 2, + "discount": 5.00 + }, + { + "id": "123242", + "name": "My Second Product", + "price": 21.98, + "quantity": 1, + "discount": 1.00 + } + ] }, - "example": "250" + "url": "https://admin.mystore.example.com/orders/v32478982", + "callbackUrl": "https://api.example.com/some-path/to-notify/status-changes?an=mystore", + "returnUrl": "https://mystore.example.com/checkout/order/v32478982" } - } - }, - "Date": { - "content": { - "text/plain": { - "schema": { - "type": "string" + }, + "BankInvoice Success Undefined": { + "value": { + "reference": "32478982", + "orderId": "v967373115140abc", + "transactionId": "D3AA1FC8372E430E8236649DB5EBD08E", + "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", + "paymentMethod": "BankInvoice", + "paymentMethodCustomCode": null, + "merchantName": "mystore", + "value": 4307.23, + "referenceValue": 4307.23, + "currency": "BRL", + "installments": 1, + "deviceFingerprint": "12ade389087fe", + "card": { + "holder": null, + "number": null, + "csc": null, + "expiration": { + "month": null, + "year": null + } + }, + "miniCart": { + "shippingValue": 11.44, + "taxValue": 10.01, + "buyer": { + "id": "c1245228-1c68-11e6-94ac-0afa86a846a5", + "firstName": "John", + "lastName": "Doe", + "document": "01234567890", + "documentType": "CPF", + "email": "john.doe@example.com", + "phone": "+5521987654321" + }, + "shippingAddress": { + "country": "BRA", + "street": "Praia de Botafogo St.", + "number": "300", + "complement": "3rd Floor", + "neighborhood": "Botafogo", + "postalCode": "22250040", + "city": "Rio de Janeiro", + "state": "RJ" + }, + "billingAddress": { + "country": "BRA", + "street": "Brigadeiro Faria Lima Avenue", + "number": "4440", + "complement": "10th Floor", + "neighborhood": "Itaim Bibi", + "postalCode": "04538132", + "city": "São Paulo", + "state": "SP" + }, + "items": [ + { + "id": "132981", + "name": "My First Product", + "price": 2134.90, + "quantity": 2, + "discount": 5.00 + }, + { + "id": "123242", + "name": "My Second Product", + "price": 21.98, + "quantity": 1, + "discount": 1.00 + } + ] }, - "example": "Mon, 18 Dec 2017 17:48:04 GMT" + "url": "https://admin.mystore.example.com/orders/v32478982", + "callbackUrl": "https://api.example.com/some-path/to-notify/status-changes?an=mystore", + "returnUrl": "https://mystore.example.com/checkout/order/v32478982" } - } - }, - "Expires": { - "content": { - "text/plain": { - "schema": { - "type": "string" + }, + "Success Denied": { + "value": { + "reference": "32478982", + "orderId": "v967373115140abc", + "transactionId": "D3AA1FC8372E430E8236649DB5EBD08E", + "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", + "paymentMethod": "Visa", + "paymentMethodCustomCode": null, + "merchantName": "mystore", + "value": 4307.23, + "referenceValue": 4000.00, + "currency": "BRL", + "installments": 3, + "deviceFingerprint": "12ade389087fe", + "card": { + "holder": "John Doe", + "number": "4682185088924788", + "csc": "021", + "expiration": { + "month": "06", + "year": "2029" + } + }, + "miniCart": { + "shippingValue": 11.44, + "taxValue": 10.01, + "buyer": { + "id": "c1245228-1c68-11e6-94ac-0afa86a846a5", + "firstName": "John", + "lastName": "Doe", + "document": "01234567890", + "documentType": "CPF", + "email": "john.doe@example.com", + "phone": "+5521987654321" + }, + "shippingAddress": { + "country": "BRA", + "street": "Praia de Botafogo St.", + "number": "300", + "complement": "3rd Floor", + "neighborhood": "Botafogo", + "postalCode": "22250040", + "city": "Rio de Janeiro", + "state": "RJ" + }, + "billingAddress": { + "country": "BRA", + "street": "Brigadeiro Faria Lima Avenue", + "number": "4440", + "complement": "10th Floor", + "neighborhood": "Itaim Bibi", + "postalCode": "04538132", + "city": "São Paulo", + "state": "SP" + }, + "items": [ + { + "id": "132981", + "name": "My First Product", + "price": 2134.90, + "quantity": 2, + "discount": 5.00 + }, + { + "id": "123242", + "name": "My Second Product", + "price": 21.98, + "quantity": 1, + "discount": 1.00 + } + ] }, - "example": "-1" + "url": "https://admin.mystore.example.com/orders/v32478982", + "callbackUrl": "https://api.example.com/some-path/to-notify/status-changes?an=mystore", + "returnUrl": "https://mystore.example.com/checkout/order/v32478982" } - } - }, - "Pragma": { - "content": { - "text/plain": { - "schema": { - "type": "string" + }, + "BankInvoice Success Approved": { + "value": { + "reference": "618272", + "orderId": "1072430428324", + "shopperInteraction": "ecommerce", + "transactionId": "2F023FD5A72A49D48A8633252B7CCBD6", + "paymentId": "01693EB95BE443AC85874E395CD91565", + "paymentMethod": "BankInvoice", + "merchantName": "mystore", + "card": { + "holder": "null", + "number": "null", + "csc": "null", + "expiration": { + "month": "null", + "year": "null" + } + }, + "document": null, + "token": null, + "value": 31.90, + "referenceValue": 31.90, + "currency": "BRL", + "installments": 1, + "installmentsInterestRate": 0.00, + "installmentsValue": 31.90, + "deviceFingerprint": "98073964", + "ipAddress": "187.105.111.65", + "miniCart": { + "buyer": { + "id": "c1245228-1c68-11e6-94ac-0afa86a846a5", + "firstName": "John", + "lastName": "Doe", + "document": "01234567890", + "documentType": "cpf", + "corporateName": null, + "tradeName": null, + "corporateDocument": null, + "isCorporate": false, + "email": "john.doe@example.com", + "phone": "+5521999999999", + "createdDate": "2020-02-18T18:17:45" + }, + "shippingAddress": { + "country": "BRA", + "street": "Praia de Botafogo St.", + "number": "300", + "complement": "3rd Floor", + "neighborhood": "Botafogo", + "postalCode": "22250040", + "city": "Rio de Janeiro", + "state": "RJ" + }, + "billingAddress": { + "country": "BRA", + "street": "Brigadeiro Faria Lima Avenue", + "number": "4440", + "complement": "10th Floor", + "neighborhood": "Itaim Bibi", + "postalCode": "04538132", + "city": "São Paulo", + "state": "SP" + }, + "items": [ + { + "id": "8", + "name": "Tenis Preto I", + "price": 30.9, + "quantity": 1, + "discount": 0.0, + "deliveryType": "Normal", + "categoryId": "5", + "sellerId": "1" + } + ], + "shippingValue": 11.44, + "taxValue": 10.01 }, - "example": "no-cache" + "url": "https://admin.mystore.example.com/orders?q=1072430428324", + "callbackUrl": "https://api.example.com/some-path/to-notify/status-changes?an=mystore", + "returnUrl": "https://mystore.example.com/checkout/order/1072430428324", + "inboundRequestsUrl": "https://api.mystore.example.com/checkout/order/1072430428324/inbound-request/:action", + "recipients": [ + { + "id": "mymarketplace", + "name": "My Marketplace QA", + "documentType": "CNPJ", + "document": "99999999999999", + "role": "marketplace", + "chargeProcessingFee": true, + "chargebackLiable": true, + "amount": 31.90 + } + ], + "merchantSettings": [ + { + "name": "field1", + "value": "value1" + }, + { + "name": "field2", + "value": "value2" + } + ] } - } - }, - "Server": { - "content": { - "text/plain": { - "schema": { - "type": "string" + }, + "Payment App + Inbound Request Success Undefined": { + "value": { + "reference": "32478982", + "orderId": "v967373115140abc", + "transactionId": "D3AA1FC8372E430E8236649DB5EBD08E", + "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", + "paymentMethod": "CustomPay", + "paymentMethodCustomCode": null, + "merchantName": "mystore", + "value": 4307.23, + "referenceValue": 4307.23, + "currency": "BRL", + "installments": 1, + "deviceFingerprint": "12ade389087fe", + "card": { + "holder": null, + "number": null, + "csc": null, + "expiration": { + "month": null, + "year": null + } + }, + "miniCart": { + "shippingValue": 11.44, + "taxValue": 10.01, + "buyer": { + "id": "c1245228-1c68-11e6-94ac-0afa86a846a5", + "firstName": "John", + "lastName": "Doe", + "document": "01234567890", + "documentType": "CPF", + "email": "john.doe@example.com", + "phone": "+5521987654321" + }, + "shippingAddress": { + "country": "BRA", + "street": "Praia de Botafogo St.", + "number": "300", + "complement": "3rd Floor", + "neighborhood": "Botafogo", + "postalCode": "22250040", + "city": "Rio de Janeiro", + "state": "RJ" + }, + "billingAddress": { + "country": "BRA", + "street": "Brigadeiro Faria Lima Avenue", + "number": "4440", + "complement": "10th Floor", + "neighborhood": "Itaim Bibi", + "postalCode": "04538132", + "city": "São Paulo", + "state": "SP" + }, + "items": [ + { + "id": "132981", + "name": "My First Product", + "price": 2134.90, + "quantity": 2, + "discount": 5.00 + }, + { + "id": "123242", + "name": "My Second Product", + "price": 21.98, + "quantity": 1, + "discount": 1.00 + } + ] }, - "example": "Microsoft-IIS/8.0" + "url": "https://admin.mystore.example.com/orders/v32478982", + "callbackUrl": "https://api.example.com/some-path/to-notify/status-changes?an=mystore", + "returnUrl": "https://mystore.example.com/checkout/order/v32478982", + "inboundRequestsUrl": "https://mystore.api.example.com/some-path/inbound-request/:action" } - } - }, - "X-AspNet-Version": { - "content": { - "text/plain": { - "schema": { - "type": "string" + }, + "Redirect Success Undefined": { + "value": { + "reference": "32478982", + "orderId": "v967373115140abc", + "transactionId": "D3AA1FC8372E430E8236649DB5EBD08E", + "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", + "paymentMethod": "FakePay", + "paymentMethodCustomCode": null, + "merchantName": "mystore", + "value": 4307.23, + "referenceValue": 4307.23, + "currency": "BRL", + "installments": 1, + "deviceFingerprint": "12ade389087fe", + "card": { + "holder": null, + "number": null, + "csc": null, + "expiration": { + "month": null, + "year": null + } + }, + "miniCart": { + "shippingValue": 11.44, + "taxValue": 10.01, + "buyer": { + "id": "c1245228-1c68-11e6-94ac-0afa86a846a5", + "firstName": "John", + "lastName": "Doe", + "document": "01234567890", + "documentType": "CPF", + "email": "john.doe@example.com", + "phone": "+5521987654321" + }, + "shippingAddress": { + "country": "BRA", + "street": "Praia de Botafogo St.", + "number": "300", + "complement": "3rd Floor", + "neighborhood": "Botafogo", + "postalCode": "22250040", + "city": "Rio de Janeiro", + "state": "RJ" + }, + "billingAddress": { + "country": "BRA", + "street": "Brigadeiro Faria Lima Avenue", + "number": "4440", + "complement": "10th Floor", + "neighborhood": "Itaim Bibi", + "postalCode": "04538132", + "city": "São Paulo", + "state": "SP" + }, + "items": [ + { + "id": "132981", + "name": "My First Product", + "price": 2134.90, + "quantity": 2, + "discount": 5.00 + }, + { + "id": "123242", + "name": "My Second Product", + "price": 21.98, + "quantity": 1, + "discount": 1.00 + } + ] }, - "example": "4.0.30319" + "url": "https://admin.mystore.example.com/orders/v32478982", + "callbackUrl": "https://api.example.com/some-path/to-notify/status-changes?an=mystore", + "returnUrl": "https://mystore.example.com/checkout/order/v32478982" } - } - }, - "X-Powered-By": { - "content": { - "text/plain": { - "schema": { - "type": "string" + }, + "Redirect Success Approved": { + "value": { + "reference": "618272", + "orderId": "1072430428324", + "shopperInteraction": "ecommerce", + "transactionId": "2F023FD5A72A49D48A8633252B7CCBD6", + "paymentId": "01693EB95BE443AC85874E395CD91565", + "paymentMethod": "RedirectPay", + "paymentMethodCustomCode": null, + "merchantName": "mystore", + "value": 31.90, + "referenceValue": 31.90, + "currency": "BRL", + "installments": 1, + "installmentsInterestRate": 0.00, + "installmentsValue": 31.90, + "deviceFingerprint": "75076388", + "ipAddress": "187.105.111.65", + "miniCart": { + "buyer": { + "id": "c1245228-1c68-11e6-94ac-0afa86a846a5", + "firstName": "John", + "lastName": "Doe", + "document": "01234567890", + "documentType": "cpf", + "corporateName": null, + "tradeName": null, + "corporateDocument": null, + "isCorporate": false, + "email": "john.doe@example.com", + "phone": "+5521999999999", + "createdDate": "2020-02-18T18:17:45" + }, + "shippingAddress": { + "country": "BRA", + "street": "Praia de Botafogo St.", + "number": "300", + "complement": "3rd Floor", + "neighborhood": "Botafogo", + "postalCode": "22250040", + "city": "Rio de Janeiro", + "state": "RJ" + }, + "billingAddress": { + "country": "BRA", + "street": "Brigadeiro Faria Lima Avenue", + "number": "4440", + "complement": "10th Floor", + "neighborhood": "Itaim Bibi", + "postalCode": "04538132", + "city": "São Paulo", + "state": "SP" + }, + "items": [ + { + "id": "8", + "name": "Tenis Preto I", + "price": 30.9, + "quantity": 1, + "discount": 0.0, + "deliveryType": "Normal", + "categoryId": "5", + "sellerId": "1" + } + ], + "shippingValue": 1.0, + "taxValue": 0.0 }, - "example": "ASP.NET" + "url": "https://admin.mystore.example.com/orders/v32478982", + "callbackUrl": "https://api.example.com/some-path/to-notify/status-changes?an=mystore", + "returnUrl": "https://mystore.example.com/checkout/order/v32478982", + "inboundRequestsUrl": "https://api.mystore.example.com/checkout/order/1072430428324/inbound-request/:action", + "recipients": [ + { + "id": "mymarketplace", + "name": "My Marketplace QA", + "documentType": "CNPJ", + "document": "99999999999999", + "role": "marketplace", + "chargeProcessingFee": true, + "chargebackLiable": true, + "amount": 31.90 + } + ], + "merchantSettings": [ + { + "name": "field1", + "value": "value1" + }, + { + "name": "field2", + "value": "value2" + } + ] } - } - }, - "x-vtex-operation-id": { - "content": { - "text/plain": { - "schema": { - "type": "string" + }, + "Fail Generic Error": { + "value": { + "reference": "32478982", + "orderId": "v967373115140abc", + "transactionId": "D3AA1FC8372E430E8236649DB5EBD08E", + "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", + "paymentMethod": "Visa", + "paymentMethodCustomCode": null, + "merchantName": "mystore", + "value": 4307.23, + "referenceValue": 4000.00, + "currency": "BRL", + "installments": 3, + "deviceFingerprint": "12ade389087fe", + "card": { + "holder": "John Doe", + "number": "4682185088924788", + "csc": "021", + "expiration": { + "month": "06", + "year": "2029" + } + }, + "miniCart": { + "shippingValue": 11.44, + "taxValue": 10.01, + "buyer": { + "id": "c1245228-1c68-11e6-94ac-0afa86a846a5", + "firstName": "John", + "lastName": "Doe", + "document": "01234567890", + "documentType": "CPF", + "email": "john.doe@example.com", + "phone": "+5521987654321" + }, + "shippingAddress": { + "country": "BRA", + "street": "Praia de Botafogo St.", + "number": "300", + "complement": "3rd Floor", + "neighborhood": "Botafogo", + "postalCode": "22250040", + "city": "Rio de Janeiro", + "state": "RJ" + }, + "billingAddress": { + "country": "BRA", + "street": "Brigadeiro Faria Lima Avenue", + "number": "4440", + "complement": "10th Floor", + "neighborhood": "Itaim Bibi", + "postalCode": "04538132", + "city": "São Paulo", + "state": "SP" + }, + "items": [ + { + "id": "132981", + "name": "My First Product", + "price": 2134.90, + "quantity": 2, + "discount": 5.00 + }, + { + "id": "123242", + "name": "My Second Product", + "price": 21.98, + "quantity": 1, + "discount": 1.00 + } + ] + }, + "url": "https://admin.mystore.example.com/orders/v32478982", + "callbackUrl": "https://api.example.com/some-path/to-notify/status-changes?an=mystore", + "returnUrl": "https://mystore.example.com/checkout/order/v32478982" + } + }, + "Fail Bad Request": { + "value": { + "reference": "32478982", + "orderId": "v967373115140abc", + "transactionId": "D3AA1FC8372E430E8236649DB5EBD08E", + "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", + "paymentMethod": "Visa", + "paymentMethodCustomCode": null, + "merchantName": "mystore", + "value": 4307.23, + "referenceValue": 4000.00, + "currency": "BRL", + "installments": 3, + "deviceFingerprint": "12ade389087fe", + "card": { + "holder": "John Doe", + "number": "4682185088924788", + "csc": "021", + "expiration": { + "month": "06", + "year": "2029" + } + }, + "miniCart": { + "shippingValue": 11.44, + "taxValue": 10.01, + "buyer": { + "id": "c1245228-1c68-11e6-94ac-0afa86a846a5", + "firstName": "John", + "lastName": "Doe", + "document": "01234567890", + "documentType": "CPF", + "email": "john.doe@example.com", + "phone": "+5521987654321" + }, + "shippingAddress": { + "country": "BRA", + "street": "Praia de Botafogo St.", + "number": "300", + "complement": "3rd Floor", + "neighborhood": "Botafogo", + "postalCode": "22250040", + "city": "Rio de Janeiro", + "state": "RJ" + }, + "billingAddress": { + "country": "BRA", + "street": "Brigadeiro Faria Lima Avenue", + "number": "4440", + "complement": "10th Floor", + "neighborhood": "Itaim Bibi", + "postalCode": "04538132", + "city": "São Paulo", + "state": "SP" + }, + "items": [ + { + "id": "132981", + "name": "My First Product", + "price": 2134.90, + "quantity": 2, + "discount": 5.00 + }, + { + "id": "123242", + "name": "My Second Product", + "price": 21.98, + "quantity": 1, + "discount": 1.00 + } + ] }, - "example": "d1584732-1e85-4e80-94d7-7db826241865" + "url": "https://admin.mystore.example.com/orders/v32478982", + "callbackUrl": "https://api.example.com/some-path/to-notify/status-changes?an=mystore", + "returnUrl": "https://mystore.example.com/checkout/order/v32478982" } } } - }, + } + }, + "required": true + }, + "responses": { + "200": { + "description": "OK", "content": { - "application/json; charset=utf-8": { + "application/json": { "schema": { "$ref": "#/components/schemas/Success-Approved" }, "examples": { - "response": { + "Success": { "value": { "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", "status": "approved", @@ -930,20 +1703,115 @@ "delayToAutoSettleAfterAntifraud": 120, "delayToCancel": 600 } - } - } - } - } - }, - "400": { - "description": "Bad Request", - "content": { - "application/json": { - "schema": { - "$ref": "#/components/schemas/Fail-BadRequest" - }, - "examples": { - "response": { + }, + "Success - PIX": { + "value": { + "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", + "status": "undefined", + "tid": "TID1578324421", + "authorizationId": null, + "nsu": null, + "code": "APP123", + "paymentAppData": { + "payload": "{\"code\":\"https://bacen.pix/pix/code\",\"qrCodeBase64Image\":\"iVBORw0KGgoAAAANSUhEUgAAAAIAAAACCAYAAABytg0kAAABQGlDQ1BJQ0MgUHJvZmlsZQAAKJFjYGDiSSwoyGFhYGDIzSspCnJ3UoiIjFJgf8LAxSDMwMkgwiCZmFxc4BgQ4ANUwgCjUcG3awyMIPqyLsgspwWXFu+Xeyundb6w0WL33C5M9SiAKyW1OBlI/wHihOSCohIGBsYYIFu5vKQAxG4AskWKgI4CsqeA2OkQ9goQOwnC3gNWExLkDGRfALIFkjMSU4DsB0C2ThKSeDoSG2ovCLAZGZkbhBNwKKmgJLWiBEQ75xdUFmWmZ5QoOAJDJ1XBMy9ZT0fByMDIgIEBFNYQ1Z9vgMOQUYwDIZapzMBgmQEUfIQQSxNmYNiZzsDAU4UQU5/PwMBrxMBw5GJBYlEi3AGM31iK04yNIGzu7QwMrNP+//8M9Ca7JgPD3+v////e/v//32UMDMy3GBgOfAMA4+RdqZ9YRkcAAABWZVhJZk1NACoAAAAIAAGHaQAEAAAAAQAAABoAAAAAAAOShgAHAAAAEgAAAESgAgAEAAAAAQAAAAKgAwAEAAAAAQAAAAIAAAAAQVNDSUkAAABTY3JlZW5zaG900Fpo3gAAAdJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6ZXhpZj0iaHR0cDovL25zLmFkb2JlLmNvbS9leGlmLzEuMC8iPgogICAgICAgICA8ZXhpZjpQaXhlbFhEaW1lbnNpb24+MjwvZXhpZjpQaXhlbFhEaW1lbnNpb24+CiAgICAgICAgIDxleGlmOlVzZXJDb21tZW50PlNjcmVlbnNob3Q8L2V4aWY6VXNlckNvbW1lbnQ+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj4yPC9leGlmOlBpeGVsWURpbWVuc2lvbj4KICAgICAgPC9yZGY6RGVzY3JpcHRpb24+CiAgIDwvcmRmOlJERj4KPC94OnhtcG1ldGE+Cl89Cn4AAAASSURBVAgdY/wPBAxAwAQiQAAAPfgEAIAu9DkAAAAASUVORK5CYII=\"}" + }, + "message": "The customer needs to finish the payment flow", + "delayToAutoSettle": 604800, + "delayToAutoSettleAfterAntifraud": 120, + "delayToCancel": 300 + } + }, + "Success - Credit Card": { + "value": { + "paymentId": "01693EB95BE443AC85874E395CD91565", + "status": "approved", + "authorizationId": "AUT-09DC5E8F03", + "nsu": "NSU-107521E866", + "tid": "TID-7B58BE1A08", + "acquirer": "TestPay", + "code": "2000", + "message": null, + "delayToAutoSettle": 21600, + "delayToAutoSettleAfterAntifraud": 1800, + "delayToCancel": 21600 + } + }, + "Success - Bank invoice": { + "value": { + "paymentId": "01693EB95BE443AC85874E395CD91565", + "status": "undefined", + "authorizationId": "AUT-2E7CBF7290-ASYNC", + "paymentUrl": "https://example.org/boleto/gatewayqa/2F023FD5A72A49D48A8633252B7CCBD6/01693EB95BE443AC85874E395CD91565", + "identificationNumber": "23790504004199031316957008109209378300000019900", + "identificationNumberFormatted": "23790.50400 41990.313169 57008.109209 3 78300000019900", + "barCodeImageType": "i25", + "barCodeImageNumber": "23793783000000199000504041990313165700810920", + "nsu": "NSU-60F328ACD8-ASYNC", + "tid": "TID-F3FB9B3FDB-ASYNC", + "acquirer": "TestPay", + "code": "2000-ASYNC", + "message": null, + "delayToAutoSettle": 21600, + "delayToAutoSettleAfterAntifraud": 1800, + "delayToCancel": 21600 + } + }, + "Success - Payment App": { + "value": { + "paymentId": "01693EB95BE443AC85874E395CD91565", + "status": "undefined", + "authorizationId": "AUT-6929AD8429", + "paymentAppData": { + "appName": "vtex.payment", + "payload": "{\"approvePaymentUrl\":\"https://api.mystore.example.com/payments/F5C1A4E20D3B4E07B7E871F5B5BC9F91/callback-trigger/approved?url=https://api.mystore.example.com/transactions/D3AA1FC8372E430E8236649DB5EBD08E/payments/F5C1A4E20D3B4E07B7E871F5B5BC9F91/notification\",\"denyPaymentUrl\":\"https://api.mystore.example.com/payments/F5C1A4E20D3B4E07B7E871F5B5BC9F91/callback-trigger/denied?url=https://api.mystore.example.com/transactions/D3AA1FC8372E430E8236649DB5EBD08E/payments/F5C1A4E20D3B4E07B7E871F5B5BC9F91/notification\",\"orderId\":\"1072650953886\",\"transactionId\":\"D3AA1FC8372E430E8236649DB5EBD08E\",\"paymentId\":\"F5C1A4E20D3B4E07B7E871F5B5BC9F91\",\"timestamp\":\"2020-10-29 17:15:59Z\"}" + }, + "nsu": "NSU-227AFD0BD2", + "tid": "TID-DBE4BFFB19", + "acquirer": "TestPay", + "code": "2001", + "message": null, + "delayToAutoSettle": 21600, + "delayToAutoSettleAfterAntifraud": 1800, + "delayToCancel": 21600 + } + }, + "Success - Redirect": { + "value": { + "paymentId": "7ee64e51-a0d3-4405-874c-d7497ab84572", + "status": "undefined", + "tid": "214c699cb408ce6a7110", + "paymentUrl": "http://php-connector.herokuapp.com/installments.php?paymentId=7ee64e51-a0d3-4405-874c-d7497ab84572" + } + }, + "Success - Callback": { + "value": { + "paymentId": "7ee64e51-a0d3-4405-874c-d7497ab84572", + "status": "approved", + "authorizationId": "3baafb4097d6c8ad3883", + "paymentUrl": null, + "nsu": "214c699cb408ce6a7110", + "tid": "214c699cb408ce6a7110", + "acquirer": null, + "code": null, + "message": "Payment with custom installments approved", + "delayToAutoSettle": 21600, + "delayToAutoSettleAfterAntifraud": 1800, + "delayToCancel": 21600 + } + } + } + } + } + }, + "400": { + "description": "Bad Request", + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/Fail-BadRequest" + }, + "examples": { + "response": { "value": { "status": "error", "code": "ERR123", @@ -983,80 +1851,39 @@ "Payment Flow" ], "summary": "Cancel Payment", - "description": "Cancels a payment that was not yet approved or settled.", + "description": "Cancels a payment that was not yet approved or settled.\r\n\r\n> ℹ️ This request is made from VTEX to the payment provider.\r\n\r\n## Permissions\r\n\r\nCheck with your service provider to know what permissions are needed.", "operationId": "CancelPayment", "parameters": [ { - "name": "Accept", - "in": "header", - "description": "Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "application/json" - } + "$ref": "#/components/parameters/X-PROVIDER-API-AppKey" }, { - "name": "Content-Type", - "in": "header", - "description": "The Media type of the body of the request. Default value for payment provider protocol is application/json", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "application/json" - } + "$ref": "#/components/parameters/X-PROVIDER-API-AppToken" }, { - "name": "X-VTEX-API-AppKey", - "in": "header", - "description": "The AppKey configured by the merchant (optional configuration)", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "{{X-VTEX-API-AppKey}}" - } + "$ref": "#/components/parameters/Content-Type" }, { - "name": "X-VTEX-API-AppToken", - "in": "header", - "description": "The AppToken configured by the merchant (optional configuration)", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "{{X-VTEX-API-AppToken}}" - } + "$ref": "#/components/parameters/Accept" }, { - "name": "paymentId", - "in": "path", - "description": "VTEX payment identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } + "$ref": "#/components/parameters/paymentId" } ], "security": [ { "appKey": [], "appToken": [] + }, + { + "VtexIdclientAutCookie": [] } ], "requestBody": { - "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CancelPaymentRequest" - }, - "example": { - "paymentId": "{{paymentId}}", - "requestId": "{{requestId}}" } } }, @@ -1064,111 +1891,9 @@ }, "responses": { "200": { - "description": "", - "headers": { - "Cache-Control": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "no-cache" - } - } - }, - "Connection": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "keep-alive" - } - } - }, - "Content-Length": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "195" - } - } - }, - "Date": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "Wed, 20 Dec 2017 19:24:56 GMT" - } - } - }, - "Expires": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "-1" - } - } - }, - "Pragma": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "no-cache" - } - } - }, - "Server": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "Microsoft-IIS/8.0" - } - } - }, - "X-AspNet-Version": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "4.0.30319" - } - } - }, - "X-Powered-By": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "ASP.NET" - } - } - }, - "x-vtex-operation-id": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "a356f861-1a30-4260-82ae-938476b30fbf" - } - } - } - }, + "description": "OK", "content": { - "application/json; charset=utf-8": { + "application/json": { "schema": { "$ref": "#/components/schemas/Success1" }, @@ -1238,72 +1963,35 @@ "Payment Flow" ], "summary": "Settle Payment", - "description": "Settles a payment that was previously approved.", + "description": "Settles a payment that was previously approved.\r\n\r\n> ℹ️ This request is made from VTEX to the payment provider.\r\n\r\n## Permissions\r\n\r\nCheck with your service provider to know what permissions are needed.", "operationId": "SettlePayment", "parameters": [ { - "name": "X-VTEX-API-AppKey", - "in": "header", - "description": "The AppKey configured by the merchant (optional configuration)", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "{{X-VTEX-API-AppKey}}" - } + "$ref": "#/components/parameters/X-PROVIDER-API-AppKey" }, { - "name": "X-VTEX-API-AppToken", - "in": "header", - "description": "The AppToken configured by the merchant (optional configuration)", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "{{X-VTEX-API-AppToken}}" - } + "$ref": "#/components/parameters/X-PROVIDER-API-AppToken" }, { - "name": "Accept", - "in": "header", - "description": "Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "application/json" - } + "$ref": "#/components/parameters/Content-Type" }, { - "name": "Content-Type", - "in": "header", - "description": "The Media type of the body of the request. Default value for payment provider protocol is application/json", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "application/json" - } + "$ref": "#/components/parameters/Accept" }, { - "name": "paymentId", - "in": "path", - "description": "VTEX payment identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } + "$ref": "#/components/parameters/paymentId" } ], "security": [ { "appKey": [], "appToken": [] + }, + { + "VtexIdclientAutCookie": [] } ], "requestBody": { - "description": "", "content": { "application/json": { "schema": { @@ -1315,111 +2003,9 @@ }, "responses": { "200": { - "description": "", - "headers": { - "Cache-Control": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "no-cache" - } - } - }, - "Connection": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "keep-alive" - } - } - }, - "Content-Length": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "86" - } - } - }, - "Date": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "Wed, 20 Dec 2017 19:28:24 GMT" - } - } - }, - "Expires": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "-1" - } - } - }, - "Pragma": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "no-cache" - } - } - }, - "Server": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "Microsoft-IIS/8.0" - } - } - }, - "X-AspNet-Version": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "4.0.30319" - } - } - }, - "X-Powered-By": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "ASP.NET" - } - } - }, - "x-vtex-operation-id": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "33189b5d-daa0-4974-8989-47a408752bb8" - } - } - } - }, + "description": "OK", "content": { - "application/json; charset=utf-8": { + "application/json": { "schema": { "$ref": "#/components/schemas/Success2" }, @@ -1470,72 +2056,35 @@ "Payment Flow" ], "summary": "Refund Payment", - "description": "Refunds a payment that was previously settled. You can expect partial refunds.", + "description": "Refunds a payment (in full or in part) that was previously settled.\r\n\r\n> ℹ️ This request is made from VTEX to the payment provider.\r\n\r\n## Permissions\r\n\r\nCheck with your service provider to know what permissions are needed.", "operationId": "RefundPayment", "parameters": [ { - "name": "X-VTEX-API-AppKey", - "in": "header", - "description": "The AppKey configured by the merchant (optional configuration)", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "{{X-VTEX-API-AppKey}}" - } + "$ref": "#/components/parameters/X-PROVIDER-API-AppKey" }, { - "name": "X-VTEX-API-AppToken", - "in": "header", - "description": "The AppToken configured by the merchant (optional configuration)", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "{{X-VTEX-API-AppToken}}" - } + "$ref": "#/components/parameters/X-PROVIDER-API-AppToken" }, { - "name": "Accept", - "in": "header", - "description": "Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "application/json" - } + "$ref": "#/components/parameters/Content-Type" }, { - "name": "Content-Type", - "in": "header", - "description": "The Media type of the body of the request. Default value for payment provider protocol is application/json", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "application/json" - } + "$ref": "#/components/parameters/Accept" }, { - "name": "paymentId", - "in": "path", - "description": "VTEX payment identifier", - "required": true, - "style": "simple", - "schema": { - "type": "string" - } + "$ref": "#/components/parameters/paymentId" } ], "security": [ { "appKey": [], "appToken": [] + }, + { + "VtexIdclientAutCookie": [] } ], "requestBody": { - "description": "", "content": { "application/json": { "schema": { @@ -1547,111 +2096,9 @@ }, "responses": { "200": { - "description": "", - "headers": { - "Cache-Control": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "no-cache" - } - } - }, - "Connection": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "keep-alive" - } - } - }, - "Content-Length": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "86" - } - } - }, - "Date": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "Wed, 20 Dec 2017 19:34:57 GMT" - } - } - }, - "Expires": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "-1" - } - } - }, - "Pragma": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "no-cache" - } - } - }, - "Server": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "Microsoft-IIS/8.0" - } - } - }, - "X-AspNet-Version": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "4.0.30319" - } - } - }, - "X-Powered-By": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "ASP.NET" - } - } - }, - "x-vtex-operation-id": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "d91fb3a7-b233-4d7a-b3d2-75263856d29a" - } - } - } - }, + "description": "OK", "content": { - "application/json; charset=utf-8": { + "application/json": { "schema": { "$ref": "#/components/schemas/Success3" }, @@ -1718,78 +2165,39 @@ "deprecated": false } }, - "/payments/{paymentId}/inbound-request/{action}": { + "/payments/{paymentId}/inbound/{action}": { "post": { "tags": [ "Payment Flow" ], "summary": "Inbound Request (BETA)", - "description": "Forwards a request back to your endpoint using the `inboundRequestsUrl` provided in the POST `/payments` payload.\r\n\r\nThe `{action}` part of the path will be the same you have used to call the `inboundRequestsUrl`.", + "description": "The Inbound Request (BETA) implements an URL that facilitates a direct connection between VTEX Gateway service and the Payment Provider. This functionality allows the payment provider to create other types of specific routes, in addition to those described in the other PPP endpoints, according to their type of operation (e.g. hook or enrollment routes, among others). \r\n\r\nThis endpoint forwards a request back to your endpoint using the `inboundRequestsUrl` provided in the [Create Payment](https://developers.vtex.com/docs/api-reference/payment-provider-protocol#post-/payments?endpoint=post-/payments) endpoint payload.\r\n\r\nThe `{action}` part of the path will be the same you have used to call the `inboundRequestsUrl` (e.g. hook, enrollment, among others).\r\n\r\n> ℹ️ This request is made from VTEX to the payment provider.\r\n\r\n## Permissions\r\n\r\nCheck with your service provider to know what permissions are needed.", "operationId": "InboundRequest(BETA)", "parameters": [ { - "name": "action", - "in": "path", - "description": "Will be the same you have used to call the `inboundRequestsUrl`", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "example": "{{action}}" - } + "$ref": "#/components/parameters/X-PROVIDER-API-AppKey" }, { - "name": "X-VTEX-API-AppKey", - "in": "header", - "description": "The AppKey configured by the merchant (optional configuration)", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "{{X-VTEX-API-AppKey}}" - } + "$ref": "#/components/parameters/X-PROVIDER-API-AppToken" }, { - "name": "X-VTEX-API-AppToken", - "in": "header", - "description": "The AppToken configured by the merchant (optional configuration)", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "{{X-VTEX-API-AppToken}}" - } + "$ref": "#/components/parameters/Content-Type" }, { - "name": "Accept", - "in": "header", - "description": "Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "application/json" - } + "$ref": "#/components/parameters/Accept" }, { - "name": "Content-Type", - "in": "header", - "description": "The Media type of the body of the request. Default value for payment provider protocol is application/json", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "application/json" - } + "$ref": "#/components/parameters/paymentId" }, { - "name": "paymentId", + "name": "action", "in": "path", - "description": "VTEX payment identifier", + "description": "Describes the type of action that will be performed on the route (e.g. hook, enrollment, among others). It is the same `:action` information used in the `inboundRequestsUrl` provided in the [Create Payment](https://developers.vtex.com/docs/api-reference/payment-provider-protocol#post-/payments?endpoint=post-/payments) endpoint payload.", "required": true, "style": "simple", "schema": { - "type": "string" + "type": "string", + "example": "hook" } } ], @@ -1797,24 +2205,16 @@ { "appKey": [], "appToken": [] + }, + { + "VtexIdclientAutCookie": [] } ], "requestBody": { - "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/InboundRequest_BETA_Request" - }, - "example": { - "requestId": "{{requestId}}", - "transactionId": "{{transactionId}}", - "paymentId": "{{paymentId}}", - "authorizationId": "{{authorizationId}}", - "tid": "{{tid}}", - "requestData": { - "body": "{{originalRequestBody}}" - } } } }, @@ -1822,8 +2222,7 @@ }, "responses": { "200": { - "description": "", - "headers": {}, + "description": "OK", "content": { "application/json": { "schema": { @@ -1855,48 +2254,36 @@ "Configuration Flow" ], "summary": "Create Authorization Token", - "description": "Create token that will be used to identify the same context when we redirect the merchant to your application.", + "description": "Creates the authorization token that will be used for VTEX to redirect the merchant to the provider's authentication application. For more information about the Payment Provider Protocol (PPP) merchant authentication procedure, visit [Configuration Flow](https://developers.vtex.com/docs/guides/payments-integration-implementing-a-payment-provider#configuration-flow).\r\n\r\n> ℹ️ This request is made from VTEX to the payment provider.\r\n\r\n## Permissions\r\n\r\nCheck with your service provider to know what permissions are needed.", "operationId": "CreateAuthorizationToken", "parameters": [ { - "name": "Accept", - "in": "header", - "description": "Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "application/json" - } + "$ref": "#/components/parameters/X-PROVIDER-API-AppKey" + }, + { + "$ref": "#/components/parameters/X-PROVIDER-API-AppToken" + }, + { + "$ref": "#/components/parameters/Content-Type" }, { - "name": "Content-Type", - "in": "header", - "description": "The Media type of the body of the request. Default value for payment provider protocol is application/json", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "application/json" - } + "$ref": "#/components/parameters/Accept" } ], "security": [ { "appKey": [], "appToken": [] + }, + { + "VtexIdclientAutCookie": [] } ], "requestBody": { - "description": "", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/CreateAuthorizationTokenRequest" - }, - "example": { - "applicationId": "vtex", - "returnUrl": "https://admin.mystore.example.com/provider-return?authorizationCode=" } } }, @@ -1904,111 +2291,9 @@ }, "responses": { "200": { - "description": "", - "headers": { - "Cache-Control": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "no-cache" - } - } - }, - "Connection": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "keep-alive" - } - } - }, - "Content-Length": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "71" - } - } - }, - "Date": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "Mon, 16 Jul 2018 15:10:44 GMT" - } - } - }, - "Expires": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "-1" - } - } - }, - "Pragma": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "no-cache" - } - } - }, - "Server": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "Microsoft-IIS/8.0" - } - } - }, - "X-AspNet-Version": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "4.0.30319" - } - } - }, - "X-Powered-By": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "ASP.NET" - } - } - }, - "x-vtex-operation-id": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "d8f17ed2-ba9f-4f6d-8f8c-52bd425d7a52" - } - } - } - }, + "description": "OK", "content": { - "application/json; charset=utf-8": { + "application/json": { "schema": { "$ref": "#/components/schemas/Success5" }, @@ -2033,42 +2318,23 @@ "Configuration Flow" ], "summary": "Provider Authentication", - "description": "Use the application of provider for merchant's authentication.\r\n\r\nVTEX will redirect the merchant to your application using the `token` we retrieved earlier.\r\n\r\nYou're expected to have a signup/signin process on your side in order to authenticate the merchant, either as a new or as an existent user.\r\n\r\nAt this point, you can present your terms an conditions, a contract, and ask for merchant's final agreement to use your services.\r\n\r\nFinally, you need to generate an `authorizationCode` that you must concatenate to the `returnUrl` we send earlier.\r\n\r\nExample:\r\n\r\n`returnUrl` = `https://admin.mystore.example.com/provider-return?authorizationCode=`\r\n\r\n`authorizationCode` = `7940597D-A63B`\r\n\r\nRedirect the merchant to:\r\n\r\n`https://admin.mystore.example.com/provider-return?authorizationCode=7940597D-A63B`", + "description": "Use the application of provider for merchant's authentication.\r\n\r\nVTEX will redirect the merchant to your application using the `token` we retrieved earlier.\r\n\r\nYou're expected to have a signup/signin process on your side in order to authenticate the merchant, either as a new or as an existent user.\r\n\r\nAt this point, you can present your terms an conditions, a contract, and ask for merchant's final agreement to use your services.\r\n\r\nFinally, you need to generate an `authorizationCode` that you must concatenate to the `returnUrl` we send earlier.\r\n\r\nExample:\r\n\r\n`returnUrl` = `https://admin.mystore.example.com/provider-return?authorizationCode=`\r\n\r\n`authorizationCode` = `7940597D-A63B`\r\n\r\nRedirect the merchant to:\r\n\r\n`https://admin.mystore.example.com/provider-return?authorizationCode=7940597D-A63B` \r\n\r\n For more information about the Payment Provider Protocol (PPP) merchant authentication procedure, visit [Configuration Flow](https://developers.vtex.com/docs/guides/payments-integration-implementing-a-payment-provider#configuration-flow).\r\n\r\n> ℹ️ This request is made from VTEX to the payment provider.\r\n\r\n## Permissions\r\n\r\nCheck with your service provider to know what permissions are needed.", "operationId": "ProviderAuthentication", "parameters": [ { - "name": "applicationId", - "in": "query", - "description": "VTEX application identifier", - "required": true, - "style": "form", - "explode": true, - "schema": { - "type": "string", - "example": "vtex" - } + "$ref": "#/components/parameters/X-PROVIDER-API-AppKey" }, { - "name": "Accept", - "in": "header", - "description": "Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "application/json" - } + "$ref": "#/components/parameters/X-PROVIDER-API-AppToken" }, { - "name": "Content-Type", - "in": "header", - "description": "The Media type of the body of the request. Default value for payment provider protocol is application/json", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "application/json" - } + "$ref": "#/components/parameters/Content-Type" + }, + { + "$ref": "#/components/parameters/Accept" + }, + { + "$ref": "#/components/parameters/applicationId" }, { "name": "token", @@ -2087,12 +2353,14 @@ { "appKey": [], "appToken": [] + }, + { + "VtexIdclientAutCookie": [] } ], "responses": { "200": { - "description": "", - "headers": {} + "description": "OK. This endpoint does not return any data in the response body." } }, "deprecated": false @@ -2104,25 +2372,28 @@ "Configuration Flow" ], "summary": "Get Credentials", - "description": "Get the credentials of merchant.", + "description": "Retrieves the merchant credentials (applicationId, appKey and appToken) registered with the payment provider. These credentials will be saved in the VTEX system and activated when the retailer decides to enable the connector.\r\n\r\n For more information about the Payment Provider Protocol (PPP) merchant authentication procedure, visit [Configuration Flow](https://developers.vtex.com/docs/guides/payments-integration-implementing-a-payment-provider#configuration-flow).\r\n\r\n> ℹ️ This request is made from VTEX to the payment provider.\r\n\r\n## Permissions\r\n\r\nCheck with your service provider to know what permissions are needed.", "operationId": "GetCredentials", "parameters": [ { - "name": "applicationId", - "in": "query", - "description": "VTEX application identifier", - "required": true, - "style": "form", - "explode": true, - "schema": { - "type": "string", - "example": "vtex" - } + "$ref": "#/components/parameters/X-PROVIDER-API-AppKey" + }, + { + "$ref": "#/components/parameters/X-PROVIDER-API-AppToken" + }, + { + "$ref": "#/components/parameters/Content-Type" + }, + { + "$ref": "#/components/parameters/Accept" + }, + { + "$ref": "#/components/parameters/applicationId" }, { "name": "authorizationCode", "in": "query", - "description": "Code generate by affiliation that will be used to identify the merchant authorization", + "description": "Code generate by affiliation that will be used to identify the merchant authorization.", "required": true, "style": "form", "explode": true, @@ -2130,143 +2401,22 @@ "type": "string", "example": "{{authorizationCode}}" } - }, - { - "name": "Content-Type", - "in": "header", - "description": "The Media type of the body of the request. Default value for payment provider protocol is application/json", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "application/json" - } - }, - { - "name": "Accept", - "in": "header", - "description": "Media type(s) that is/are acceptable for the response. Default value for payment provider protocol is application/json", - "required": true, - "style": "simple", - "schema": { - "type": "string", - "default": "application/json" - } } ], "security": [ { "appKey": [], "appToken": [] + }, + { + "VtexIdclientAutCookie": [] } ], "responses": { "200": { - "description": "", - "headers": { - "Cache-Control": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "no-cache" - } - } - }, - "Connection": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "keep-alive" - } - } - }, - "Content-Length": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "122" - } - } - }, - "Date": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "Mon, 16 Jul 2018 14:22:51 GMT" - } - } - }, - "Expires": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "-1" - } - } - }, - "Pragma": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "no-cache" - } - } - }, - "Server": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "Microsoft-IIS/8.0" - } - } - }, - "X-AspNet-Version": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "4.0.30319" - } - } - }, - "X-Powered-By": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "ASP.NET" - } - } - }, - "x-vtex-operation-id": { - "content": { - "text/plain": { - "schema": { - "type": "string" - }, - "example": "187e390e-8cf8-4f42-a376-242f5ef4f740" - } - } - } - }, + "description": "OK", "content": { - "application/json; charset=utf-8": { + "application/json": { "schema": { "$ref": "#/components/schemas/Success6" }, @@ -2290,7 +2440,6 @@ "components": { "schemas": { "Success": { - "title": "Success", "required": [ "paymentMethods" ], @@ -2317,7 +2466,6 @@ } }, "Success-Manifest": { - "title": "Success-Manifest", "required": [ "paymentMethods" ], @@ -2339,7 +2487,8 @@ }, "allowsSplit": { "type": "string", - "description": "Describes which transaction flow stage the connector should receive payment split data. Accepted values: `onAuthorize`, `onCapture`, `disabled`. Check more details on the [Split Payouts on the Payment Provider Protocol](https://developers.vtex.com/vtex-rest-api/docs/split-payouts-on-payment-provider-protocol) article." + "description": "Describes which transaction flow stage the connector should receive payment split data. Check more details on the [Split Payouts on the Payment Provider Protocol](https://developers.vtex.com/vtex-rest-api/docs/split-payouts-on-payment-provider-protocol) article.", + "enum": ["onAuthorize", "onCapture", "disabled"] } } } @@ -2356,7 +2505,8 @@ }, "type": { "type": "string", - "description": "Custom field type. Accepted values: `text`, `password` and `select.`" + "description": "Custom field type.", + "enum": ["text", "password", "select"] }, "options": { "type": "array", @@ -2396,62 +2546,6 @@ } } } - }, - "example": { - "paymentMethods": [ - { - "name": "Visa", - "allowsSplit": "onCapture" - }, - { - "name": "Pix", - "allowsSplit": "disabled" - }, - { - "name": "Mastercard", - "allowsSplit": "onCapture" - }, - { - "name": "American Express", - "allowsSplit": "onCapture" - }, - { - "name": "BankInvoice", - "allowsSplit": "onAuthorize" - }, - { - "name": "Privatelabels", - "allowsSplit": "disabled" - }, - { - "name": "Promissories", - "allowsSplit": "disabled" - } - ], - "customFields": [ - { - "name": "Merchant's custom field", - "type": "text" - }, - { - "name": "Merchant's custom select field", - "type": "select", - "options": [ - { - "text": "Field option 1", - "value": "1" - }, - { - "text": "Field option 2", - "value": "2" - }, - { - "text": "Field option 3", - "value": "3" - } - ] - } - ] } }, "Success-Approved": { @@ -2581,7 +2675,6 @@ } }, "Fail-BadRequest": { - "title": "Fail-BadRequest", "required": [ "status", "code", @@ -2601,15 +2694,9 @@ "type": "string", "description": "Provider's operation/error message to be logged." } - }, - "example": { - "status": "error", - "code": "ERR123", - "message": "The currency ABC is not supported" } }, "CancelPaymentRequest": { - "title": "CancelPaymentRequest", "required": [ "paymentId", "requestId" @@ -2618,24 +2705,27 @@ "properties": { "paymentId": { "type": "string", - "description": "VTEX payment identifier." + "description": "VTEX payment identifier.", + "example": "F5C1A4E20D3B4E07B7E871F5B5BC9F91" }, "requestId": { "type": "string", - "description": "VTEX request identifier." + "description": "VTEX request identifier.", + "example": "D12D9B80972C462980F5067A3A126837" }, "authorizationId": { "type": "string", - "description": "Payment authorization identifier (in case it was authorized previous to the cancellation request)." + "description": "Payment authorization identifier (in case it was authorized previous to the cancellation request).", + "example": "5784589" }, "sandboxMode": { "type": "boolean", - "description": "Indicates whether or not this request is being sent from a sandbox environment." + "description": "Indicates whether or not this request is being sent from a sandbox environment.", + "default": false }, "merchantSettings": { "type": "array", - "title": "merchantSettings", - "description": "Custom fields (for the given Provider) which the Merchant must fill. Each element of this array is a key-value pair.", + "description": "Custom fields (for the given provider) which the merchant must fill. Each element of this array is a key-value pair.", "items": { "type": "object", "required": [ @@ -2645,23 +2735,20 @@ "properties": { "name": { "type": "string", - "description": "The custom field name." + "description": "The custom field name.", + "example": "Public Merchant ID Test." }, "value": { "type": "string", - "description": "The custom field value." + "description": "The custom field value.", + "example": 1 } } } } - }, - "example": { - "paymentId": "{{paymentId}}", - "requestId": "{{requestId}}" } }, "Success1": { - "title": "Success1", "required": [ "paymentId", "cancellationId", @@ -2692,17 +2779,9 @@ "type": "string", "description": "The same `requestId` sent in the request." } - }, - "example": { - "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", - "cancellationId": "1231323234234", - "code": null, - "message": "Successfully cancelled", - "requestId": "D12D9B80972C462980F5067A3A126837" } }, "Fail-GenericError1": { - "title": "Fail-GenericError1", "required": [ "paymentId", "cancellationId", @@ -2733,17 +2812,9 @@ "type": "string", "description": "The same `requestId` sent in the request." } - }, - "example": { - "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", - "cancellationId": null, - "code": "ERR123", - "message": "Cancellation has failed due to an internal error", - "requestId": "D12D9B80972C462980F5067A3A126837" } }, "Success2": { - "title": "Success2", "required": [ "paymentId", "settleId", @@ -2779,18 +2850,9 @@ "type": "string", "description": "The same `requestId` sent in the request." } - }, - "example": { - "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", - "settleId": "2EA354989E7E4BBC9F9D7B66674C2574", - "value": 57, - "code": null, - "message": "Successfully settled", - "requestId": "DCEAA1FC8372E430E8236649DB5EBD08E" } }, "Fail-GenericError2": { - "title": "Fail-GenericError2", "required": [ "paymentId", "settleId", @@ -2827,18 +2889,9 @@ "type": "string", "description": "The same `requestId` sent in the request." } - }, - "example": { - "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", - "settleId": null, - "value": 0, - "code": "ERR123", - "message": "Settlement has failed due to an internal error", - "requestId": "DCEAA1FC8372E430E8236649DB5EBD08E" } }, "Success3": { - "title": "Success3", "required": [ "paymentId", "refundId", @@ -2874,18 +2927,9 @@ "type": "string", "description": "The same `requestId` sent in the request." } - }, - "example": { - "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", - "refundId": "2EA354989E7E4BBC9F9D7B66674C2574", - "value": 57, - "code": null, - "message": "Successfully refunded", - "requestId": "LA4E20D3B4E07B7E871F5B5BC9F91" } }, "Fail-GenericError3": { - "title": "Fail-GenericError3", "required": [ "paymentId", "refundId", @@ -2922,18 +2966,9 @@ "type": "string", "description": "The same `requestId` sent in the request." } - }, - "example": { - "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", - "refundId": null, - "value": 0, - "code": "ERR123", - "message": "Refund has failed due to an internal error", - "requestId": "LA4E20D3B4E07B7E871F5B5BC9F91" } }, "SettlePayment": { - "title": "SettlePayment", "required": [ "transactionId", "requestId", @@ -3028,8 +3063,7 @@ }, "merchantSettings": { "type": "array", - "title": "merchantSettings", - "description": "Custom fields (for the given Provider) which the Merchant must fill. Each element of this array is a key-value pair.", + "description": "Custom fields (for the given provider) which the merchant must fill. Each element of this array is a key-value pair.", "items": { "type": "object", "required": [ @@ -3078,11 +3112,17 @@ "amount": 37.8, "commissionAmount": 7.2 } + ], + "sandboxMode": false, + "merchantSettings": [ + { + "name": "Public Merchant ID Test.", + "value": "1" + } ] } }, "RefundPayment": { - "title": "RefundPayment", "required": [ "requestId", "settleId", @@ -3177,8 +3217,7 @@ }, "merchantSettings": { "type": "array", - "title": "merchantSettings", - "description": "Custom fields (for the given Provider) which the Merchant must fill. Each element of this array is a key-value pair.", + "description": "Custom fields (for the given provider) which the merchant must fill. Each element of this array is a key-value pair.", "items": { "type": "object", "required": [ @@ -3223,11 +3262,17 @@ "amount": 13.8, "comissionAmount": 3.0 } + ], + "sandboxMode": false, + "merchantSettings": [ + { + "name": "Public Merchant ID Test.", + "value": "1" + } ] } }, "InboundRequest_BETA_Request": { - "title": "InboundRequest(BETA)Request", "required": [ "requestId", "transactionId", @@ -3240,31 +3285,35 @@ "properties": { "requestId": { "type": "string", - "description": "The unique identifier for this request to ensure its idempotency." + "description": "The unique identifier for this request to ensure its idempotency.", + "example": "LA4E20D3B4E07B7E871F5B5BC9F91" }, "transactionId": { "type": "string", - "description": "VTEX transaction ID related to this payment." + "description": "VTEX transaction ID related to this payment.", + "example": "D3AA1FC8372E430E8236649DB5EBD08E" }, "paymentId": { "type": "string", - "description": "VTEX payment ID from this payment." + "description": "VTEX payment ID from this payment.", + "example": "F5C1A4E20D3B4E07B7E871F5B5BC9F91" }, "authorizationId": { "type": "string", - "description": "Provider's unique identifier for the authorization." + "description": "Provider's unique identifier for the authorization.", + "example": "AUT123567" }, "tid": { "type": "string", - "description": "Provider's unique identifier for the transaction." + "description": "Provider's unique identifier for the transaction.", + "example": "10022005181543584603" }, "requestData": { "$ref": "#/components/schemas/RequestData" }, "merchantSettings": { "type": "array", - "title": "merchantSettings", - "description": "Custom fields (for the given Provider) which the Merchant must fill. Each element of this array is a key-value pair.", + "description": "Custom fields (for the given provider) which the merchant must fill. Each element of this array is a key-value pair.", "items": { "type": "object", "required": [ @@ -3274,44 +3323,34 @@ "properties": { "name": { "type": "string", - "description": "The custom field name." + "description": "The custom field name.", + "example": "Public Merchant ID Test." }, "value": { "type": "string", - "description": "The custom field value." + "description": "The custom field value.", + "example": 1 } } } } - }, - "example": { - "requestId": "{{requestId}}", - "transactionId": "{{transactionId}}", - "paymentId": "{{paymentId}}", - "authorizationId": "{{authorizationId}}", - "tid": "{{tid}}", - "requestData": { - "body": "{{originalRequestBody}}" - } } }, "RequestData": { - "title": "RequestData", "required": [ "body" ], "type": "object", + "description": "Request data information.", "properties": { "body": { - "type": "string" + "type": "string", + "description": "Original request body information.", + "example": "{{originalRequestBody}}" } - }, - "example": { - "body": "{{originalRequestBody}}" } }, "Success4": { - "title": "Success4", "required": [ "requestId", "paymentId", @@ -3338,19 +3377,9 @@ "responseData": { "$ref": "#/components/schemas/ResponseData" } - }, - "example": { - "requestId": "LA4E20D3B4E07B7E871F5B5BC9F91", - "paymentId": "F5C1A4E20D3B4E07B7E871F5B5BC9F91", - "responseData": { - "statusCode": 200, - "contentType": "application/json", - "content": "{\"myAttribute\":\"anyValue\"}" - } } }, "ResponseData": { - "title": "ResponseData", "required": [ "statusCode", "contentType", @@ -3371,15 +3400,9 @@ "type": "string", "description": "Your desired content body." } - }, - "example": { - "statusCode": 200, - "contentType": "application/json", - "content": "{\"myAttribute\":\"anyValue\"}" } }, "CreateAuthorizationTokenRequest": { - "title": "CreateAuthorizationTokenRequest", "required": [ "applicationId", "returnUrl" @@ -3388,20 +3411,17 @@ "properties": { "applicationId": { "type": "string", - "description": "VTEX application identifier." + "description": "VTEX application identifier.", + "example": "vtex" }, "returnUrl": { "type": "string", - "description": "The base URL you need to use to form the final URL when redirecting the merchant back to VTEX." + "description": "The base URL you need to use to form the final URL when redirecting the merchant back to VTEX.", + "example":"https://admin.mystore.example.com/provider-return?authorizationCode=" } - }, - "example": { - "applicationId": "vtex", - "returnUrl": "https://admin.mystore.example.com/provider-return?authorizationCode=" } }, "Success5": { - "title": "Success5", "required": [ "applicationId", "token" @@ -3416,14 +3436,9 @@ "type": "string", "description": "You must generate a token that will be used to identify the same context when we redirect the merchant to your application." } - }, - "example": { - "applicationId": "vtex", - "token": "358a5bea-07d0-4122-888a-54ab70b5f02f" } }, "Success6": { - "title": "Success6", "required": [ "applicationId", "appKey", @@ -3443,11 +3458,6 @@ "type": "string", "description": "The value we will send in the header `X-VTEX-API-AppToken` for the payment flow." } - }, - "example": { - "applicationId": "vtex", - "appKey": "c5a5e3f1-4a77-4a00-8b53-0d1adb3e9628", - "appToken": "57ea254d-f3d3-488d-88d7-129766037ed1" } } }, @@ -3456,24 +3466,97 @@ "type": "apiKey", "in": "header", "name": "X-VTEX-API-AppKey", - "description": "Unique identifier of the [application key](https://help.vtex.com/en/tutorial/application-keys--2iffYzlvvz4BDMr6WGUtet)." + "description": "Unique identifier of the [application key](https://developers.vtex.com/docs/guides/api-authentication-using-application-keys)." }, "appToken": { "type": "apiKey", "in": "header", "name": "X-VTEX-API-AppToken", - "description": "Secret token of the [application key](https://help.vtex.com/en/tutorial/application-keys--2iffYzlvvz4BDMr6WGUtet)." + "description": "Secret token of the [application key](https://developers.vtex.com/docs/guides/api-authentication-using-application-keys)." + }, + "VtexIdclientAutCookie": { + "type": "apiKey", + "in": "header", + "name": "VtexIdclientAutCookie", + "description": "[User token](https://developers.vtex.com/docs/guides/api-authentication-using-user-tokens), valid for 24 hours." + } + }, + "parameters": { + "X-PROVIDER-API-AppKey": { + "name": "X-PROVIDER-API-AppKey", + "in": "header", + "description": "Unique identifier created by the provider and configured on the provider configuration page (Admin VTEX). To use this header as authorization, check that the `usesProviderHeadersName` field is set to `true` in the payment provider's `configuration.json`. To check the `configuration.json` file, access the route {{connector}}/paymentProvider/configuration.json.", + "required": true, + "style": "simple", + "schema": { + "type": "string", + "example": "{{X-PROVIDER-API-AppKey}}" + } + }, + "X-PROVIDER-API-AppToken": { + "name": "X-PROVIDER-API-AppToken", + "in": "header", + "description": "Unique token created by the provider and configured on the provider configuration page (Admin VTEX). To use this header as authorization, check that the `usesProviderHeadersName` field is set to `true` in the payment provider's `configuration.json`. To check the `configuration.json` file, access the route {{connector}}/paymentProvider/configuration.json", + "required": true, + "style": "simple", + "schema": { + "type": "string", + "example": "{{X-PROVIDER-API-AppToken}}" + } + }, + "Content-Type": { + "name": "Content-Type", + "in": "header", + "description": "Type of the content being sent.", + "required": true, + "style": "simple", + "schema": { + "type": "string", + "example": "application/json" + } + }, + "Accept": { + "name": "Accept", + "in": "header", + "description": "HTTP Client Negotiation _Accept_ Header. Indicates the types of responses the client can understand.", + "required": true, + "style": "simple", + "schema": { + "type": "string", + "example": "application/json" + } + }, + "paymentId": { + "name": "paymentId", + "in": "path", + "description": "VTEX payment identifier.", + "required": true, + "style": "simple", + "schema": { + "type": "string", + "example": "F5C1A4E20D3B4E07B7E871F5B5BC9F91" + } + }, + "applicationId": { + "name": "applicationId", + "in": "query", + "description": "VTEX application identifier.", + "required": true, + "style": "form", + "explode": true, + "schema": { + "type": "string", + "example": "vtex" + } } } }, "tags": [ { - "name": "Payment Flow", - "description": "Here we describe each operation you need to implement for the payment flow." + "name": "Payment Flow" }, { - "name": "Configuration Flow", - "description": "Here we describe each operation you need to implement to enable the optional configuration flow.\n\nThis is an easier way to allow VTEX merchants to enable your connector, and be ready to use it without having to copy/paste any credentials (`AppKey`/`AppToken`)." + "name": "Configuration Flow" } ] }