Earning Detail

The Earning Detail feature provides detailed information about a selected earning process. It allows users to view all relevant data, including the status, amount, and any other associated details of the specific earning process.

Get Earning Detail

GET /customer/transaction/earning/{id}/detail

Get the transaction detail of the earning type.

Headers

Name
Value

Accept

application/json

Authorization

Bearer <token>

Params

Name
Type
Description

client_code

string

client identifier

customer_id

number

ID of the customers

Response

{
	"status": "success",
	"status_code": 200,
	"data": {
		"id": 8,
		"card_type_multiplier": 1,
		"receipt_number": "EA/18/00000004",
		"transaction_date": "2018-08-20",
		"amount": 255000,
		"points": {
			"redeem_point": {
				"regular": 255,
				"reward": 0,
				"bonus": 0
			},
			"lucky_draw_point": {
				"regular": 5,
				"reward": 0,
				"bonus": 0
			},
			"lucky_draw_numbers": {
				"from": "0000000315",
				"to": "0000000319"
			}
		},
		"receipt_type": "combine",
		"posted_by": null,
		"status": "success",
		"voided": {
			"by": null,
			"at": null
		},
		"adjusted": {
			"by": null,
			"at": null
		},
		"card_type": {
			"id": 4,
			"name": "Grand Indonesia Silver Card",
			"target_amount": 0,
			"minimum_expense": 0,
			"multiplier_point": 1,
			"expired_period": 365,
			"level_up_evaluation_days": 365,
			"level_down_evaluation_days": 365,
			"default": true,
			"active": true,
			"image": null
		},
		"instant_gifts": [],
		"details": [{
				"id": 22,
				"transaction_date": "2018-08-20 11:38:00",
				"amount": 150000,
				"note": "Example Note",
				"invoice_photo": "http://localhost/loyalto/public/uploads/earning/invoice-photo/JHJH8NV08L-1540445900.png",
				"store": {
					"id": 4,
					"code": "001",
					"name": "KFC",
					"contact_name": null,
					"contact_email": null,
					"contact_phone": null,
					"note": "",
					"unit": null,
					"floor": 0,
					"longitude": 0,
					"latitude": 0,
					"altitude": 0,
					"image": "http://localhost/loyalto/public/uploads/store/photo/BWMUIYS80Y-1534176249.jpg"
				},
				"payment": {
					"id": 5,
					"code": "001",
					"name": "Cash"
				}
			},
			{
				"id": 23,
				"transaction_date": "2018-08-20 11:38:00",
				"amount": 5000,
				"note": "Example Note",
				"invoice_photo": null,
				"store": {
					"id": 9,
					"code": "002",
					"name": "McD",
					"contact_name": "Jimmy Setiawan",
					"contact_email": "[email protected]",
					"contact_phone": "081385183353",
					"note": "",
					"unit": null,
					"floor": 0,
					"longitude": 0,
					"latitude": 0,
					"altitude": 0,
					"image": null
				},
				"payment": {
					"id": 7,
					"code": "003",
					"name": "Credit BCA"
				}
			},
			{
				"id": 24,
				"transaction_date": "2018-08-20 11:38:00",
				"amount": 100000,
				"note": "Example Note",
				"invoice_photo": null,
				"store": {
					"id": 10,
					"code": "003",
					"name": "Timezone",
					"contact_name": "Jimmy Setiawan",
					"contact_email": "[email protected]",
					"contact_phone": "081385183353",
					"note": "",
					"unit": null,
					"floor": 0,
					"longitude": 0,
					"latitude": 0,
					"altitude": 0,
					"image": null
				},
				"payment": {
					"id": 6,
					"code": "002",
					"name": "Debit BCA"
				}
			}
		]
	}
}

Last updated