Earning Request Detail

The Earning Request List feature displays a list of pending earning requests that have not yet been approved. This allows users to review and take necessary actions for requests that require approval before proceeding.

Get Earning Request Detail

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

Get the transaction detail of the earning-request type. This means the data is still pending admin approval.

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": 1,
		"amount": 255000,
		"receipt_type": "combine",
		"status": "pending",
		"details": [{
			"id": 1,
			"transaction_id": "123123127",
			"transaction_date": "2018-08-20 11:38:00",
			"amount": 150000,
			"note": "Example Note",
			"invoice_photo": "http:\/\/localhost\/loyalto\/public\/uploads\/earning\/invoice-photo\/1WQXV8LGN5-1534404013.jpg",
			"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": 2,
			"transaction_id": "123123125",
			"transaction_date": "2018-08-20 11:38:00",
			"amount": 5000,
			"note": null,
			"invoice_photo": "http:\/\/localhost\/loyalto\/public\/uploads\/earning\/invoice-photo\/OYGCMJZIIP-1534404014.jpg",
			"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": 3,
			"transaction_id": "123123127",
			"transaction_date": "2018-08-20 11:38:00",
			"amount": 100000,
			"note": null,
			"invoice_photo": "http:\/\/localhost\/loyalto\/public\/uploads\/earning\/invoice-photo\/O4NTWBDIVE-1534404014.jpg",
			"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