Order id
Order Management API (1.0.0)
Request
Add shipping info to an order. Read more on Adding shipping info
This header will guarantee the idempotency of the operation. The key should be unique and is recommended to be a UUID version 4. Retries of requests are safe to be applied in case of errors such as network errors, socket errors and timeouts. Input values of the operation are disregarded when evaluating the idempotency of the operation, only the key matters.
- Default Server URLhttps://api.kustom.co/ordermanagement/v1/orders/{order_id}/shipping-info
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.kustom.co/ordermanagement/v1/orders/{order_id}/shipping-info' \
-H 'Content-Type: application/json' \
-H 'Klarna-Idempotency-Key: string' \
-d '{
"shipping_info": [
{
"return_shipping_company": "DHL SE",
"return_tracking_number": 93456415674545680000,
"return_tracking_uri": "http://shipping.example/findmypackage?93456415674545679888",
"shipping_company": "DHL SE",
"shipping_method": "Home",
"tracking_number": 63456415674545680000,
"tracking_uri": "http://shipping.example/findmypackage?63456415674545679874"
}
]
}'Request
Cancel order. Read more on Cancelling an order
This header will guarantee the idempotency of the operation. The key should be unique and is recommended to be a UUID version 4. Retries of requests are safe to be applied in case of errors such as network errors, socket errors and timeouts. Input values of the operation are disregarded when evaluating the idempotency of the operation, only the key matters.
- Default Server URLhttps://api.kustom.co/ordermanagement/v1/orders/{order_id}/cancel
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.kustom.co/ordermanagement/v1/orders/{order_id}/cancel' \
-H 'Klarna-Idempotency-Key: string'Request
Acknowledge order. Read more on Acknowledging orders
This header will guarantee the idempotency of the operation. The key should be unique and is recommended to be a UUID version 4. Retries of requests are safe to be applied in case of errors such as network errors, socket errors and timeouts. Input values of the operation are disregarded when evaluating the idempotency of the operation, only the key matters.
- Default Server URLhttps://api.kustom.co/ordermanagement/v1/orders/{order_id}/acknowledge
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X POST \
'https://api.kustom.co/ordermanagement/v1/orders/{order_id}/acknowledge' \
-H 'Klarna-Idempotency-Key: string'Request
Update merchant references. Read more on Updating merchant references
This header will guarantee the idempotency of the operation. The key should be unique and is recommended to be a UUID version 4. Retries of requests are safe to be applied in case of errors such as network errors, socket errors and timeouts. Input values of the operation are disregarded when evaluating the idempotency of the operation, only the key matters.
- application/json
- application/json-patch+json
New merchant reference 1. Old reference will be overwritten if this field is present.
- Default Server URLhttps://api.kustom.co/ordermanagement/v1/orders/{order_id}/merchant-references
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
- application/json
- application/json-patch+json
curl -i -X PATCH \
'https://api.kustom.co/ordermanagement/v1/orders/{order_id}/merchant-references' \
-H 'Content-Type: application/json' \
-H 'Klarna-Idempotency-Key: string' \
-d '{
"merchant_reference1": "string",
"merchant_reference2": "string"
}'Request
Update shipping address. Read more on Updating customer addresses
This header will guarantee the idempotency of the operation. The key should be unique and is recommended to be a UUID version 4. Retries of requests are safe to be applied in case of errors such as network errors, socket errors and timeouts. Input values of the operation are disregarded when evaluating the idempotency of the operation, only the key matters.
- Default Server URLhttps://api.kustom.co/ordermanagement/v1/orders/{order_id}/customer-details
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X PATCH \
'https://api.kustom.co/ordermanagement/v1/orders/{order_id}/customer-details' \
-H 'Content-Type: application/json' \
-H 'Klarna-Idempotency-Key: string' \
-d '{
"shipping_address": {
"attention": "Anders Exempelsson",
"city": "Vetlanda",
"country": "se",
"email": "john.testsson@kustom.co",
"family_name": "Testsson",
"given_name": "John",
"organization_name": "Kustom",
"phone": "1-555-555-5555",
"postal_code": 12345,
"region": "TN",
"street_address": "Testgatan 10",
"street_address2": 1,
"title": "Herr"
}
}'"string"
Request
An order that has the given order id. Read more on Retrieving order details
- Default Server URLhttps://api.kustom.co/ordermanagement/v1/orders/{order_id}
- curl
- JavaScript
- Node.js
- Python
- Java
- C#
- PHP
- Go
- Ruby
- R
- Payload
curl -i -X GET \
'https://api.kustom.co/ordermanagement/v1/orders/{order_id}' \
-H 'Klarna-Integrator: string'Order found
The time for the purchase. Formatted according to ISO 8601.
Order expiration time. The order can only be captured until this time. Formatted according to ISO 8601.
Fraud status for the order. Either ACCEPTED, PENDING or REJECTED.
A Klarna generated reference that is shorter than the Klarna Order Id and is used as a customer friendly reference. It is most often used as a reference when Klarna is communicating with the customer with regard to payment statuses.
Text field for storing data about the order. Set at order creation.
The order number that the merchant should assign to the order. This is how a customer would reference the purchase they made. If supplied, it is labeled as the Order Number within post purchase communications as well as the payment method related apps.
Can be used to store your internal reference to the order. This is generally an internal reference number that merchants use as alternate identifier that matches their internal ERP or Order Management system.
The order amount in minor units. That is the smallest currency unit available such as cent or penny.
The unique order ID. Cannot be longer than 255 characters.
An array of order_line objects. Each line represents one item in the cart.
The purchase country. Formatted according to ISO 3166-1 alpha-2.
The total amount of refunded for this order. In minor units.
The remaining authorized amount for this order. To increase the remaining_authorized_amount the order_amount needs to be increased.
{ "billing_address": { "attention": "Anders Exempelsson", "city": "Vetlanda", "country": "se", "email": "john.testsson@kustom.co", "family_name": "Testsson", "given_name": "John", "organization_name": "Kustom", "phone": "1-555-555-5555", "postal_code": 12345, "region": "TN", "street_address": "Testgatan 10", "street_address2": 1, "title": "Herr" }, "captured_amount": 0, "captures": [ { … } ], "created_at": "2025-11-29T10:25:40Z", "customer": { "date_of_birth": "Sun Sep 06 02:00:00 CEST 1981", "national_identification_number": "string", "vat_id": "string", "type": "person", "organization_entity_type": "LIMITED_COMPANY", "organization_registration_id": "string" }, "expires_at": "2025-12-04T10:26:06Z", "fraud_status": "ACCEPTED", "initial_payment_method": { "description": "Slice it (Fixed Payments)", "number_of_installments": 3, "type": "FIXED_AMOUNT" }, "klarna_reference": "K4MADNY", "locale": "en-us", "merchant_data": "Order metadata", "merchant_reference1": 10001, "merchant_reference2": 501, "order_amount": 0, "order_id": "f3392f8b-6116-4073-ab96-e330819e2c07", "order_lines": [ { … } ], "original_order_amount": 0, "purchase_country": "us", "purchase_currency": "usd", "refunded_amount": 0, "refunds": [ { … } ], "remaining_authorized_amount": 0, "selected_shipping_option": { "carrier": "string", "carrier_product": { … }, "class": "string", "id": "string", "location": { … }, "method": "string", "name": "string", "price": 0, "selected_addons": [ … ], "tax_amount": 0, "tax_rate": 0, "timeslot": { … }, "tms_reference": "string", "type": "string" }, "shipping_address": { "attention": "Anders Exempelsson", "city": "Vetlanda", "country": "se", "email": "john.testsson@kustom.co", "family_name": "Testsson", "given_name": "John", "organization_name": "Kustom", "phone": "1-555-555-5555", "postal_code": 12345, "region": "TN", "street_address": "Testgatan 10", "street_address2": 1, "title": "Herr" }, "shipping_info": [ { … } ], "status": "AUTHORIZED" }