customer receipts
aid_receipts_customers_cid_get
Get the receipts for a customer
scopes:
- admin:receipts
- read:receipts
- user:receipts
get/accounts/{aid}/receipts/customers/{customer_id}
Path parameters
aidstring ^[PT]{1}\d{8}$ required
An id that uniquely identifies the account.
customer_idstring required
The customer id you have defined for the customer. (must not have trailing or leading spaces)
Query parameters
limitinteger
A limit on the number of objects to be returned. Limit can range between 1 and 100 items, and the default is 10 items.
starting_afterstring
cursor for use in pagination. starting_after is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, end the result contains paging_token=pt1, your subsequent call can include starting_after=pt1 in order to fetch the next page of the list.
Response
Receipt collection
Example response
{
"receipts": [
{
"created_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
"deleted_by": "1c92f7e1-2897-4d46-bdcc-c127a914fb4e",
"store": {
"id": "sc029",
"name": "SC Oslo",
"business_name": "SC Oslo AS",
"address": {
"address_line": "Sommerkroveien 34",
"address_line_2": "PB 123",
"postal_code": "0349",
"postal_place": "Oslo",
"country": "NO"
},
"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"
},
"items": [
{
"id": "175938",
"groups": [
{
"id": "B234",
"name": "Stol"
},
{
"id": "B1",
"name": "Møbel"
}
],
"quantity": 2,
"unit": "stk",
"description": "Stablestol for utendørsbruk",
"description_alias": "Stablestol",
"net_amount": 27840,
"net_amount_dwh": "27840.10",
"gross_amount": 39800,
"gross_amount_dwh": "34800.12",
"unit_gross_price": 10900,
"tax_percent": 25,
"line_id": 1,
"barcode": "3123212343212",
"cost_price": 2033,
"eligible_for_discount": true,
"included_in_total_discount": true,
"is_changed": true,
"salesperson_id": "000111",
"salesperson_name": "Jesper",
"serial_id": "32424234231312312",
"comment": "Kan være hva som helst",
"infocode_lines": [
{
"line_id": 1,
"amount_dwh": "1.14"
}
],
"tax_lines": [
{
"amount": 5584,
"amount_dwh": "5584.0440",
"included_in_price": true,
"percentage": 25,
"tax_basis": 27920,
"tax_basis_dwh": "27920.22",
"tax_code": "3",
"tax_group": "Vmva-høy"
}
],
"discount_lines": [
{
"amount": 4400,
"percentage": 44,
"discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
"line_id": 1
}
],
"bonus_lines": [
{
"bonus": 3130,
"percentage": 10,
"discount_id": "766da0ef-9283-42bd-b012-0582344ec53c",
"line_id": 1
}
]
}
],
"gross_amount": 47840,
"net_amount": 38000,
"currency": "NOK"
}
]
}