Get payment periods
/v1/klarna_payments/payment_periods
Info
Target audience: Developers
Release version: 4.2.3.1
Get payment periods¶
Introduction¶
This endpoint fetches klarna payments
payment periods for a package or campaign.
Attention
This API gives access to Klarna payments related endpoints. Since this section is quite specific it has it's own section of documentation. See here for more information.
URI¶
Environment | URI |
---|---|
Stage | https://payway-api.stage.adeprimo.se/external/api/v1/klarna_payments/payment_periods |
Production | https://backend.worldoftulo.com/external/api/v1/klarna_payments/payment_periods |
Requirements¶
Identity | Scope |
---|---|
No | /external/klarna_payments/r |
Curl example¶
Get by product_code¶
curl --request GET \
--url https://payway-api.stage.adeprimo.se/external/api/v1/klarna_payments/payment_periods?code=adeprimo_digital \
--header 'accept: application/json' \
--header 'authorization: Bearer token' \
Response¶
Successful response
HTTP 200
{
"items": [
{
"id": "5e4bbd0e09c04c1f6498c57f",
"payment_method": "klarna_payments",
"type": "recurring",
"enabled": true,
"iteration_type": "month",
"iteration_length": 1,
"price": 210
},
{
"id": "5e4bbd0e09c04c1f6498c57f",
"payment_method": "klarna_payments",
"type": "recurring",
"enabled": false,
"iteration_type": "month",
"iteration_length": 2,
"price": 410
}
]
}
Parameters
Parameter | Description | Required | Format | Type |
---|---|---|---|---|
code | The package or campaign code | Yes | Size range: ..1024 | String |
Errors¶
This API uses the common error conventions of the Payway API