{
  "opencollection": "1.0.0",
  "info": {
    "name": "Amazon Pay API",
    "version": "2.0"
  },
  "request": {
    "auth": {
      "type": "apikey",
      "key": "authorization",
      "value": "{{authorization}}",
      "placement": "header"
    }
  },
  "items": [
    {
      "info": {
        "name": "Checkout Sessions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Amazon Create Checkout Session",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://pay-api.amazon.com/live/v2/checkoutSessions",
            "headers": [
              {
                "name": "x-amz-pay-date",
                "value": ""
              },
              {
                "name": "x-amz-pay-region",
                "value": ""
              },
              {
                "name": "x-amz-pay-idempotency-key",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a new checkout session for a buyer to authorize payment."
        },
        {
          "info": {
            "name": "Amazon Get Checkout Session",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pay-api.amazon.com/live/v2/checkoutSessions/:checkoutSessionId",
            "headers": [
              {
                "name": "x-amz-pay-date",
                "value": ""
              },
              {
                "name": "x-amz-pay-region",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "checkoutSessionId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns details about the specified checkout session."
        },
        {
          "info": {
            "name": "Amazon Update Checkout Session",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://pay-api.amazon.com/live/v2/checkoutSessions/:checkoutSessionId",
            "headers": [
              {
                "name": "x-amz-pay-date",
                "value": ""
              },
              {
                "name": "x-amz-pay-region",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "checkoutSessionId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the specified checkout session with new information."
        },
        {
          "info": {
            "name": "Amazon Complete Checkout Session",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://pay-api.amazon.com/live/v2/checkoutSessions/:checkoutSessionId/complete",
            "headers": [
              {
                "name": "x-amz-pay-date",
                "value": ""
              },
              {
                "name": "x-amz-pay-region",
                "value": ""
              },
              {
                "name": "x-amz-pay-idempotency-key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "checkoutSessionId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Completes the checkout session and processes the payment."
        }
      ]
    },
    {
      "info": {
        "name": "Charges",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Amazon Create a Charge",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://pay-api.amazon.com/live/v2/charges",
            "headers": [
              {
                "name": "x-amz-pay-date",
                "value": ""
              },
              {
                "name": "x-amz-pay-region",
                "value": ""
              },
              {
                "name": "x-amz-pay-idempotency-key",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a charge against a charge permission to authorize payment."
        },
        {
          "info": {
            "name": "Amazon Get Charge Details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pay-api.amazon.com/live/v2/charges/:chargeId",
            "headers": [
              {
                "name": "x-amz-pay-date",
                "value": ""
              },
              {
                "name": "x-amz-pay-region",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "chargeId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns details about the specified charge."
        },
        {
          "info": {
            "name": "Amazon Capture a Charge",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://pay-api.amazon.com/live/v2/charges/:chargeId/capture",
            "headers": [
              {
                "name": "x-amz-pay-date",
                "value": ""
              },
              {
                "name": "x-amz-pay-region",
                "value": ""
              },
              {
                "name": "x-amz-pay-idempotency-key",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "chargeId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Captures a previously authorized charge."
        },
        {
          "info": {
            "name": "Amazon Cancel a Charge",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://pay-api.amazon.com/live/v2/charges/:chargeId/cancel",
            "headers": [
              {
                "name": "x-amz-pay-date",
                "value": ""
              },
              {
                "name": "x-amz-pay-region",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "chargeId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Cancels a previously authorized charge."
        }
      ]
    },
    {
      "info": {
        "name": "Charge Permissions",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Amazon Get Charge Permission",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pay-api.amazon.com/live/v2/chargePermissions/:chargePermissionId",
            "headers": [
              {
                "name": "x-amz-pay-date",
                "value": ""
              },
              {
                "name": "x-amz-pay-region",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "chargePermissionId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns details about the specified charge permission."
        },
        {
          "info": {
            "name": "Amazon Update Charge Permission",
            "type": "http"
          },
          "http": {
            "method": "PATCH",
            "url": "https://pay-api.amazon.com/live/v2/chargePermissions/:chargePermissionId",
            "headers": [
              {
                "name": "x-amz-pay-date",
                "value": ""
              },
              {
                "name": "x-amz-pay-region",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "chargePermissionId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Updates the specified charge permission."
        },
        {
          "info": {
            "name": "Amazon Close Charge Permission",
            "type": "http"
          },
          "http": {
            "method": "DELETE",
            "url": "https://pay-api.amazon.com/live/v2/chargePermissions/:chargePermissionId/close",
            "headers": [
              {
                "name": "x-amz-pay-date",
                "value": ""
              },
              {
                "name": "x-amz-pay-region",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "chargePermissionId",
                "value": "",
                "type": "path"
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Closes the specified charge permission so no further charges can be made."
        }
      ]
    },
    {
      "info": {
        "name": "Refunds",
        "type": "folder"
      },
      "items": [
        {
          "info": {
            "name": "Amazon Create a Refund",
            "type": "http"
          },
          "http": {
            "method": "POST",
            "url": "https://pay-api.amazon.com/live/v2/refunds",
            "headers": [
              {
                "name": "x-amz-pay-date",
                "value": ""
              },
              {
                "name": "x-amz-pay-region",
                "value": ""
              },
              {
                "name": "x-amz-pay-idempotency-key",
                "value": ""
              }
            ],
            "body": {
              "type": "json",
              "data": "{}"
            }
          },
          "docs": "Creates a refund for a previously captured charge."
        },
        {
          "info": {
            "name": "Amazon Get Refund Details",
            "type": "http"
          },
          "http": {
            "method": "GET",
            "url": "https://pay-api.amazon.com/live/v2/refunds/:refundId",
            "headers": [
              {
                "name": "x-amz-pay-date",
                "value": ""
              },
              {
                "name": "x-amz-pay-region",
                "value": ""
              }
            ],
            "params": [
              {
                "name": "refundId",
                "value": "",
                "type": "path"
              }
            ]
          },
          "docs": "Returns details about the specified refund."
        }
      ]
    }
  ],
  "bundled": true
}