items_id_get
curl --request GET \
--url https://api.dintero.com/v1/accounts/{aid}/payments/items/{items_reference_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dintero.com/v1/accounts/{aid}/payments/items/{items_reference_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dintero.com/v1/accounts/{aid}/payments/items/{items_reference_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dintero.com/v1/accounts/{aid}/payments/items/{items_reference_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dintero.com/v1/accounts/{aid}/payments/items/{items_reference_id}")
.header("Authorization", "Bearer <token>")
.asString();{
"items": [
{
"id": "item_01",
"groups": [
{
"id": "B234",
"name": "Stol"
}
],
"line_id": "1",
"version": 123,
"description": "Stablestol",
"quantity": 1,
"amount": 2000,
"vat_amount": 400,
"vat": 20,
"unit_volume": 123,
"unit_weight": 123,
"unit_dimensional_weight": 123,
"type": "physical",
"fee_split": {
"type": "proportional",
"destinations": [
"<string>"
]
},
"splits": [
{
"payout_destination_id": "seller-1",
"amount": 29700
}
],
"thumbnail_url": "<string>",
"emd": {
"event": [
{
"event_name": "Michael Jackson",
"event_company": "Diamond Events",
"genre_of_event": "Pop",
"start_time": "2023-08-16T15:00:00Z",
"end_time": "2023-08-16T16:00:00Z",
"ticket_delivery_method": "email",
"ticket_delivery_recipient": "recipient@mail.com",
"arena_name": "Oslo Spektrum",
"arena_location": {
"city": "Oslo",
"country": "NO",
"street_address": "Sonja Henies plass 2",
"postal_code": "0185"
},
"access_controlled_venue": true,
"affiliate_name": "Klarna affiliate"
}
],
"subscription": {
"subscription": {
"subscription_name": "Contact lenses",
"start_time": "2023-08-16T15:00:00Z",
"end_time": "2023-09-16T15:00:00Z",
"auto_renewal_of_subscription": true,
"affiliate_name": "Klarna affiliate"
},
"customer_account_info": {
"unique_account_identifier": "Adam Adamsson",
"account_registration_date": "2023-08-16T15:00:00Z",
"account_last_modified": "2023-10-16T15:00:00Z"
}
},
"travel": {
"air_reservation_details": {
"itinerary": [
{
"departure": "OSL",
"arrival": "MUC",
"carrier": "LH",
"departure_date": "2023-08-16T15:00:00Z",
"ticket_delivery_method": "phone",
"ticket_delivery_recipient": "97712123",
"departure_city": "Oslo",
"arrival_city": "Munich",
"segment_price": 200000,
"passenger_id": [
1
],
"class": "First Class"
}
],
"pnr": "VH67899",
"insurance": [
{
"insurance_company": "Oopsie Insurance Ltd.",
"insurance_type": "travel",
"insurance_price": 50000
}
],
"passengers": [
{
"first_name": "Paul",
"last_name": "Lamb",
"id": 1,
"title": "mr"
}
],
"affiliate_name": "Klarna affiliate"
},
"bus_reservation_details": {
"itinerary": [
{
"departure_city": "Oslo",
"arrival_city": "Munich",
"carrier": "Big Bus Travels Ltd.",
"departure_date": "2023-08-16T15:00:00Z",
"ticket_delivery_method": "phone",
"ticket_delivery_recipient": "97712123",
"segment_price": 200000,
"passenger_id": [
1
],
"class": "First Class"
}
],
"pnr": "VH67899",
"insurance": [
{
"insurance_company": "Oopsie Insurance Ltd.",
"insurance_type": "travel",
"insurance_price": 50000
}
],
"passengers": [
{
"first_name": "Paul",
"last_name": "Lamb",
"id": 1,
"title": "mr"
}
],
"affiliate_name": "Klarna affiliate"
},
"train_reservation_details": {
"itinerary": [
{
"departure_city": "Oslo",
"arrival_city": "Munich",
"carrier": "Big Train Travels Ltd.",
"departure_date": "2023-08-16T15:00:00Z",
"ticket_delivery_method": "phone",
"ticket_delivery_recipient": "97712123",
"passenger_id": [
1
],
"segment_price": 200000,
"class": "First Class"
}
],
"pnr": "VH67899",
"insurance": [
{
"insurance_company": "Oopsie Insurance Ltd.",
"insurance_type": "travel",
"insurance_price": 50000
}
],
"passengers": [
{
"first_name": "Paul",
"last_name": "Lamb",
"id": 1,
"title": "mr"
}
],
"affiliate_name": "Klarna affiliate"
},
"ferry_reservation_details": {
"itinerary": [
{
"departure_city": "Oslo",
"arrival_city": "Munich",
"carrier": "Big Ferry Travels Ltd.",
"departure_date": "2023-08-16T15:00:00Z",
"ticket_delivery_method": "phone",
"ticket_delivery_recipient": "97712123",
"segment_price": 200000,
"passenger_id": [
1
],
"class": "First Class"
}
],
"pnr": "VH67899",
"insurance": [
{
"insurance_company": "Oopsie Insurance Ltd.",
"insurance_type": "travel",
"insurance_price": 50000
}
],
"passengers": [
{
"first_name": "Paul",
"last_name": "Lamb",
"id": 1,
"title": "mr"
}
],
"affiliate_name": "Klarna affiliate"
},
"hotel_reservation_details": {
"itinerary": [
{
"start_time": "2023-08-16T15:00:00Z",
"end_time": "2023-08-20T15:00:00Z",
"number_of_rooms": 2,
"passenger_id": [
1
],
"ticket_delivery_method": "phone",
"ticket_delivery_recipient": "97712123",
"hotel_price": 200000,
"hotel_name": "Premium Hotel",
"address": {
"city": "Oslo",
"country": "NO",
"street_address": "Karl Johans gt. 31",
"postal_code": "0159"
},
"class": "First Class"
}
],
"pnr": "VH67899",
"insurance": [
{
"insurance_company": "Oopsie Insurance Ltd.",
"insurance_type": "travel",
"insurance_price": 50000
}
],
"passengers": [
{
"first_name": "Paul",
"last_name": "Lamb",
"id": 1,
"title": "mr"
}
],
"affiliate_name": "Klarna affiliate"
},
"car_rental_reservation_details": {
"itinerary": [
{
"rental_company": "Premium Cars",
"start_time": "2023-08-16T15:00:00Z",
"end_time": "2023-08-20T15:00:00Z",
"drivers_id": [
1
],
"pick_up_location": {
"city": "Oslo",
"country": "NO",
"street_address": "Karl Johans gt. 31",
"postal_code": "0159"
},
"drop_off_location": {
"city": "Oslo",
"country": "NO",
"street_address": "Karl Johans gt. 31",
"postal_code": "0159"
},
"car_price": 500000,
"class": "Premium Cars Premium Class"
}
],
"drivers": [
{
"first_name": "Paul",
"last_name": "Lamb",
"id": 1,
"title": "mr"
}
],
"pnr": "VH67899",
"insurance": [
{
"insurance_company": "Oopsie Insurance Ltd.",
"insurance_type": "travel",
"insurance_price": 50000
}
],
"affiliate_name": "Klarna affiliate"
}
},
"marketplace_order": {
"seller_info": {
"sub_merchant_id": "Marketbrick Ltd.",
"product_category": "Phones",
"account_registration_date": "2023-08-16T15:00:00Z",
"account_last_modified": {
"password": "2023-08-17T15:00:00Z",
"email": "2023-08-17T15:00:00Z",
"listing": "2023-08-17T15:00:00Z",
"login": "2023-08-17T15:00:00Z",
"address": "2023-08-17T15:00:00Z"
},
"number_of_trades": 23,
"unique_account_identifier_seller": {
"email": "<string>",
"phone_number": "97712123",
"other": "<string>"
},
"product_name": "iPhone 14 Pro Max",
"seller_rating": 5,
"volume_of_trades": 230
},
"winner_info": {
"account_registration_date": "2023-08-16T15:00:00Z",
"account_last_modified": {
"password": "2023-08-17T15:00:00Z",
"email": "2023-08-17T15:00:00Z",
"listing": "2023-08-17T15:00:00Z",
"login": "2023-08-17T15:00:00Z",
"address": "2023-08-17T15:00:00Z"
},
"number_of_trades": 23,
"unique_account_identifier_winner": {
"email": "<string>",
"phone_number": "97712123",
"other": "<string>"
},
"volume_of_trades": 230
}
}
},
"store": {
"id": "sc029",
"name": "SC Oslo",
"business_name": "SC Oslo AS",
"address": {
"address_line": "Sommerkroveien 34",
"postal_place": "Oslo",
"country": "NO",
"address_line_2": "PB 123",
"postal_code": "0349"
},
"chain": "SuperChain",
"email": "contact@superchain.com",
"gln": "5790001398644",
"organization_number": "123456789MVA",
"phone_number": "+4738260107",
"mcc": "5814",
"bax": "102603",
"terminal_id": "T0292",
"payout_destination_id": "seller-1"
},
"eligible_for_discount": true,
"is_changed": true,
"gross_amount": 123,
"discount_lines": [
{
"amount": 4400,
"percentage": 44,
"discount_type": "customer",
"discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
"description": "<string>",
"line_id": 1
}
]
}
],
"starting_after": "<string>"
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}Items
Get items
Get the items stored separately for a session, transaction or
transaction event. The items_reference_id is items_reference.id.
Snapshots are immutable.
scopes:
- admin:checkout
- read:checkout
GET
https://api.dintero.com/v1
/
accounts
/
{aid}
/
payments
/
items
/
{items_reference_id}
items_id_get
curl --request GET \
--url https://api.dintero.com/v1/accounts/{aid}/payments/items/{items_reference_id} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dintero.com/v1/accounts/{aid}/payments/items/{items_reference_id}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dintero.com/v1/accounts/{aid}/payments/items/{items_reference_id}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dintero.com/v1/accounts/{aid}/payments/items/{items_reference_id}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dintero.com/v1/accounts/{aid}/payments/items/{items_reference_id}")
.header("Authorization", "Bearer <token>")
.asString();{
"items": [
{
"id": "item_01",
"groups": [
{
"id": "B234",
"name": "Stol"
}
],
"line_id": "1",
"version": 123,
"description": "Stablestol",
"quantity": 1,
"amount": 2000,
"vat_amount": 400,
"vat": 20,
"unit_volume": 123,
"unit_weight": 123,
"unit_dimensional_weight": 123,
"type": "physical",
"fee_split": {
"type": "proportional",
"destinations": [
"<string>"
]
},
"splits": [
{
"payout_destination_id": "seller-1",
"amount": 29700
}
],
"thumbnail_url": "<string>",
"emd": {
"event": [
{
"event_name": "Michael Jackson",
"event_company": "Diamond Events",
"genre_of_event": "Pop",
"start_time": "2023-08-16T15:00:00Z",
"end_time": "2023-08-16T16:00:00Z",
"ticket_delivery_method": "email",
"ticket_delivery_recipient": "recipient@mail.com",
"arena_name": "Oslo Spektrum",
"arena_location": {
"city": "Oslo",
"country": "NO",
"street_address": "Sonja Henies plass 2",
"postal_code": "0185"
},
"access_controlled_venue": true,
"affiliate_name": "Klarna affiliate"
}
],
"subscription": {
"subscription": {
"subscription_name": "Contact lenses",
"start_time": "2023-08-16T15:00:00Z",
"end_time": "2023-09-16T15:00:00Z",
"auto_renewal_of_subscription": true,
"affiliate_name": "Klarna affiliate"
},
"customer_account_info": {
"unique_account_identifier": "Adam Adamsson",
"account_registration_date": "2023-08-16T15:00:00Z",
"account_last_modified": "2023-10-16T15:00:00Z"
}
},
"travel": {
"air_reservation_details": {
"itinerary": [
{
"departure": "OSL",
"arrival": "MUC",
"carrier": "LH",
"departure_date": "2023-08-16T15:00:00Z",
"ticket_delivery_method": "phone",
"ticket_delivery_recipient": "97712123",
"departure_city": "Oslo",
"arrival_city": "Munich",
"segment_price": 200000,
"passenger_id": [
1
],
"class": "First Class"
}
],
"pnr": "VH67899",
"insurance": [
{
"insurance_company": "Oopsie Insurance Ltd.",
"insurance_type": "travel",
"insurance_price": 50000
}
],
"passengers": [
{
"first_name": "Paul",
"last_name": "Lamb",
"id": 1,
"title": "mr"
}
],
"affiliate_name": "Klarna affiliate"
},
"bus_reservation_details": {
"itinerary": [
{
"departure_city": "Oslo",
"arrival_city": "Munich",
"carrier": "Big Bus Travels Ltd.",
"departure_date": "2023-08-16T15:00:00Z",
"ticket_delivery_method": "phone",
"ticket_delivery_recipient": "97712123",
"segment_price": 200000,
"passenger_id": [
1
],
"class": "First Class"
}
],
"pnr": "VH67899",
"insurance": [
{
"insurance_company": "Oopsie Insurance Ltd.",
"insurance_type": "travel",
"insurance_price": 50000
}
],
"passengers": [
{
"first_name": "Paul",
"last_name": "Lamb",
"id": 1,
"title": "mr"
}
],
"affiliate_name": "Klarna affiliate"
},
"train_reservation_details": {
"itinerary": [
{
"departure_city": "Oslo",
"arrival_city": "Munich",
"carrier": "Big Train Travels Ltd.",
"departure_date": "2023-08-16T15:00:00Z",
"ticket_delivery_method": "phone",
"ticket_delivery_recipient": "97712123",
"passenger_id": [
1
],
"segment_price": 200000,
"class": "First Class"
}
],
"pnr": "VH67899",
"insurance": [
{
"insurance_company": "Oopsie Insurance Ltd.",
"insurance_type": "travel",
"insurance_price": 50000
}
],
"passengers": [
{
"first_name": "Paul",
"last_name": "Lamb",
"id": 1,
"title": "mr"
}
],
"affiliate_name": "Klarna affiliate"
},
"ferry_reservation_details": {
"itinerary": [
{
"departure_city": "Oslo",
"arrival_city": "Munich",
"carrier": "Big Ferry Travels Ltd.",
"departure_date": "2023-08-16T15:00:00Z",
"ticket_delivery_method": "phone",
"ticket_delivery_recipient": "97712123",
"segment_price": 200000,
"passenger_id": [
1
],
"class": "First Class"
}
],
"pnr": "VH67899",
"insurance": [
{
"insurance_company": "Oopsie Insurance Ltd.",
"insurance_type": "travel",
"insurance_price": 50000
}
],
"passengers": [
{
"first_name": "Paul",
"last_name": "Lamb",
"id": 1,
"title": "mr"
}
],
"affiliate_name": "Klarna affiliate"
},
"hotel_reservation_details": {
"itinerary": [
{
"start_time": "2023-08-16T15:00:00Z",
"end_time": "2023-08-20T15:00:00Z",
"number_of_rooms": 2,
"passenger_id": [
1
],
"ticket_delivery_method": "phone",
"ticket_delivery_recipient": "97712123",
"hotel_price": 200000,
"hotel_name": "Premium Hotel",
"address": {
"city": "Oslo",
"country": "NO",
"street_address": "Karl Johans gt. 31",
"postal_code": "0159"
},
"class": "First Class"
}
],
"pnr": "VH67899",
"insurance": [
{
"insurance_company": "Oopsie Insurance Ltd.",
"insurance_type": "travel",
"insurance_price": 50000
}
],
"passengers": [
{
"first_name": "Paul",
"last_name": "Lamb",
"id": 1,
"title": "mr"
}
],
"affiliate_name": "Klarna affiliate"
},
"car_rental_reservation_details": {
"itinerary": [
{
"rental_company": "Premium Cars",
"start_time": "2023-08-16T15:00:00Z",
"end_time": "2023-08-20T15:00:00Z",
"drivers_id": [
1
],
"pick_up_location": {
"city": "Oslo",
"country": "NO",
"street_address": "Karl Johans gt. 31",
"postal_code": "0159"
},
"drop_off_location": {
"city": "Oslo",
"country": "NO",
"street_address": "Karl Johans gt. 31",
"postal_code": "0159"
},
"car_price": 500000,
"class": "Premium Cars Premium Class"
}
],
"drivers": [
{
"first_name": "Paul",
"last_name": "Lamb",
"id": 1,
"title": "mr"
}
],
"pnr": "VH67899",
"insurance": [
{
"insurance_company": "Oopsie Insurance Ltd.",
"insurance_type": "travel",
"insurance_price": 50000
}
],
"affiliate_name": "Klarna affiliate"
}
},
"marketplace_order": {
"seller_info": {
"sub_merchant_id": "Marketbrick Ltd.",
"product_category": "Phones",
"account_registration_date": "2023-08-16T15:00:00Z",
"account_last_modified": {
"password": "2023-08-17T15:00:00Z",
"email": "2023-08-17T15:00:00Z",
"listing": "2023-08-17T15:00:00Z",
"login": "2023-08-17T15:00:00Z",
"address": "2023-08-17T15:00:00Z"
},
"number_of_trades": 23,
"unique_account_identifier_seller": {
"email": "<string>",
"phone_number": "97712123",
"other": "<string>"
},
"product_name": "iPhone 14 Pro Max",
"seller_rating": 5,
"volume_of_trades": 230
},
"winner_info": {
"account_registration_date": "2023-08-16T15:00:00Z",
"account_last_modified": {
"password": "2023-08-17T15:00:00Z",
"email": "2023-08-17T15:00:00Z",
"listing": "2023-08-17T15:00:00Z",
"login": "2023-08-17T15:00:00Z",
"address": "2023-08-17T15:00:00Z"
},
"number_of_trades": 23,
"unique_account_identifier_winner": {
"email": "<string>",
"phone_number": "97712123",
"other": "<string>"
},
"volume_of_trades": 230
}
}
},
"store": {
"id": "sc029",
"name": "SC Oslo",
"business_name": "SC Oslo AS",
"address": {
"address_line": "Sommerkroveien 34",
"postal_place": "Oslo",
"country": "NO",
"address_line_2": "PB 123",
"postal_code": "0349"
},
"chain": "SuperChain",
"email": "contact@superchain.com",
"gln": "5790001398644",
"organization_number": "123456789MVA",
"phone_number": "+4738260107",
"mcc": "5814",
"bax": "102603",
"terminal_id": "T0292",
"payout_destination_id": "seller-1"
},
"eligible_for_discount": true,
"is_changed": true,
"gross_amount": 123,
"discount_lines": [
{
"amount": 4400,
"percentage": 44,
"discount_type": "customer",
"discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
"description": "<string>",
"line_id": 1
}
]
}
],
"starting_after": "<string>"
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}{
"error": {
"message": "<string>",
"code": "<string>",
"errors": [
{}
]
}
}Authorizations
Bearer authentication (token authentication) should be used for accessing the API.
Use Get Token to get an access token for client credentials. Pass the token in the request header:
Authorization: Bearer {access_token}
where the access_token is JSON Web Tokens (JWT).