在Klarna中创建会话时发生INVALID_OPERATION错误

时间:2019-02-16 08:59:14

标签: e-commerce payment-gateway payment klarna

我是Klarna的初学者,正在尝试入门。

我使用邮递员,尝试通过对https://api-na.playground.klarna.com/payments/v1/sessions进行POST来创建会话。 我正在使用HTTP基本身份验证。

以下是请求与响应。 您能帮我弄清楚我做错了吗。

请求标头:

Accept: */*
Klarna-Correlation-Id: 45021dd4-b216-417a-a8e7-85f2447a936d
User-Agent: PostmanRuntime/7.4.0
Host: api-na.playground.klarna.com
Accept-Encoding: gzip, deflate
Content-Length: 495
Content-Type: application/json

请求正文(带有测试数据):

{
    "purchase_country": "us",
    "purchase_currency": "usd",
    "locale": "en-US",
    "order_amount": 1000,
    "order_tax_amount": 0,
    "order_lines": [
        {
            "type": "physical",
            "reference": "19-402-USA",
            "name": "Battery Power Pack",
            "quantity": 1,
            "unit_price": 1000,
            "tax_rate": 0,
            "total_amount": 1000,
            "total_discount_amount": 0,
            "total_tax_amount": 0
        }
    ]
}

回复:

{
    "error_code": "INVALID_OPERATION",
    "error_messages": [
      ""
    ],
    "correlation_id": "45021dd4-b216-417a-a8e7-85f2447a936d"
}

0 个答案:

没有答案