klarna_payments

Create a klarna payment

Changed on

Create a klarna payment

post/klarna_payments

Request

  • Base URL
    https://{your_organization_slug}.commercelayer.io/api
  • URL
    https://{your_organization_slug}.commercelayer.io/api/klarna_payments
  • Auth
    HTTP bearer

Request body

Example request

{
  "data": {
    "attributes": {
      "reference": "ANY-EXTERNAL-REFEFERNCE",
      "reference_origin": "ANY-EXTERNAL-REFEFERNCE-ORIGIN",
      "metadata": {
        "foo": "bar"
      }
    },
    "relationships": {
      "order": {
        "data": {
          "id": "XAyRWNUzyN"
        }
      }
    }
  }
}

Response

The created klarna payment object

Changes

    • breaking

      added the new required request property ///

    • breaking

      request property / was restricted to a list of enum values

    • warning

      removed the request property ///

    • warning

      removed the request property ///

    • info

      the request property default value klarna_payments was removed

    • info

      added the new klarna_payments enum value to the request property /

    • info

      added the media type application/vnd.api+json for the response with the status