{
  "auth": {
    "type": "apikey",
    "apikey": [
      {
        "key": "value",
        "value": "{{publishable_key}}",
        "type": "string"
      },
      {
        "key": "key",
        "value": "api-key",
        "type": "string"
      },
      {
        "key": "in",
        "value": "header",
        "type": "string"
      }
    ]
  },
  "method": "POST",
  "header": [
    {
      "key": "Content-Type",
      "value": "application/json"
    },
    {
      "key": "Accept",
      "value": "application/json"
    }
  ],
  "body": {
    "mode": "raw",
    "options": {
      "raw": {
        "language": "json"
      }
    },
    "raw_json_formatted": {
      "payment_method": "pay_later",
      "payment_method_type": "affirm",
      "payment_experience": "redirect_to_url",
      "payment_method_data": {
        "pay_later": {
          "affirm_redirect": {
            "issuer_name": "affirm",
            "billing_email": "user-us@example.com",
            "billing_country": "US"
          }
        }
      },
      "client_secret": "{{client_secret}}"
    }
  },
  "url": {
    "raw": "{{baseUrl}}/payments/:id/confirm",
    "host": ["{{baseUrl}}"],
    "path": ["payments", ":id", "confirm"],
    "variable": [
      {
        "key": "id",
        "value": "{{payment_id}}",
        "description": "(Required) unique payment id"
      }
    ]
  },
  "description": "This API is to confirm the payment request and forward payment to the payment processor. This API provides more granular control upon when the API is forwarded to the payment processor. Alternatively you can confirm the payment within the Payments-Create API"
}
