{ "$schema": "http://json-schema.org/draft-07/schema#", "$id": "https://raw.githubusercontent.com/api-evangelist/verifone/refs/heads/main/json-schema/ecommerce-api-klarnapaymentcompletionresponse.json", "title": "Klarna Complete Payment Response", "description": "klarnaPaymentCompletionResponse from Verifone eCommerce API", "type": "object", "properties": { "id": { "type": "string", "title": "Transaction ID", "format": "uuid-flexible", "description": "The ID of the transaction." }, "instore_reference": { "type": "string", "description": "In-store reference for the transaction" }, "authorized_payment_method": { "$ref": "#/components/schemas/klarnaPaymentCompletionResponse_authorized_payment_method" }, "amount": { "type": "integer", "description": "Amount is charged without a decimal place e.g. $1.5 = 150. Currencies can have different decimals/exponentials, see Currencies Section for more details. For Account Verification transactions, provide 0 as value for this field." }, "blocked": { "type": "boolean", "description": "True if the transaction has been blocked by a ruleset, false otherwise" }, "created_at": { "type": "string", "description": "The time at which the transaction was created.", "format": "date-time" }, "customer": { "type": "string", "description": "The ID of a customer" }, "details": { "$ref": "#/components/schemas/ecomPaymentResponse_details" }, "merchant_reference": { "type": "string", "description": "A reference specified by the merchant to identify the transaction" }, "processor": { "type": "string", "description": "The name of the processor used for this transaction", "default": "KLARNA" }, "payment_product": { "type": "string", "description": "The payment product corresponding to this transaction", "default": "KLARNA" }, "payment_product_type": { "$ref": "#/components/schemas/PaymentProductType" }, "shipping_information": { "allOf": [ { "$ref": "#/components/schemas/ShippingInformation" } ] }, "status": { "type": "string", "description": "The outcome of the payment request.", "title": "Ecommerce Transaction Status", "enum": [ "INITIATED", "AUTHORIZED", "AUTHORIZATION_VOIDED", "CANCELLED", "CUSTOMER_ACCEPTED", "REFUNDED", "FAILED", "PENDING", "DECLINED", "SETTLEMENT_CANCELLED", "SETTLEMENT_REQUESTED", "SETTLEMENT_SUBMITTED", "SETTLEMENT_COMPLETED", "SETTLEMENT_PARTIAL", "SETTLEMENT_DECLINED", "VOIDED", "UNKNOWN" ] }, "status_reason": { "type": "string", "description": "Message provided by the 3rd party service as additional information, when the transaction does not succeed." }, "created_by": { "type": "string", "description": "The ID of the user who initiated the transaction. Only set when shopper_interaction = moto, mail_order or telephone_order" }, "shopper_interaction": { "type": "string", "description": "Determines the point of sale of a customer. Possible values: pos, moto, mail_order, telephone_order, ecommerce and cont_auth", "enum": [ "ECOMMERCE", "MAIL", "TELEPHONE" ] }, "geo_location": { "type": "array", "description": "The latitude / longitude resolved from the customer's ip address.", "items": { "type": "number" } }, "city": { "type": "string", "description": "The city resolved from the customer's ip address." }, "country_code": { "title": "Country Code", "type": "string", "description": "The [ISO 3166-1 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2) country code.
Note: The country code for Great Britain is GB and not UK as is used in that country's top-level domain names.
." } } }