Submit Redeem Products Internal

Redeen Products Internal

POST /redeem

Process redeem for internal product.

Headers

Name
Value

Accept

application/json

Authorization

Bearer <token>

Body

Name
Type
Description

client_code

string

client identifier

customer_id

number

ID of customers

store

string

ID of the store

product[x][id]

number

ID of products

product[x][qty]

number

Qty of products

product[x][serialNo]

string

Serial No of Products

Response

{
	"status": "success",
	"status_code": 200,
	"message": "Redeem success.",
	"data": {
		"id": 6,
		"posted_by": "admin",
		"posted_at": "2018-08-21 16:34:00",
		"booking_code": null,
		"type": "product",
		"receipt_number": "RD\/18\/00000004",
		"total_point": 2,
		"total_amount": 2,
		"voided_by": null,
		"voided_at": null,
		"note": null,
		"updated_at": "2018-08-21 16:34:00",
		"store": {
			"id": 11,
			"code": "004",
			"name": "Amazone",
			"contact_name": "Jimmy Setiawan",
			"contact_email": "[email protected]",
			"contact_phone": "081385183353",
			"note": "",
			"unit": null,
			"floor": 0,
			"longitude": 0,
			"latitude": 0,
			"altitude": 0,
			"image": null
		},
		"details": [{
			"id": 9,
			"total_point": 1,
			"total_amount": 1,
			"quantity": 1,
			"serial_number": null,
			"created_at": "2018-08-21 16:34:00",
			"updated_at": "2018-08-21 16:34:00",
			"product": {
				"id": 1,
				"code": "0001",
				"name": "Product 1",
				"period": {
					"start": "2018-08-16",
					"end": "2018-09-20"
				},
				"price": 1,
				"point": 1,
				"stock": 987,
				"type": "product",
				"limit": null,
				"note": null,
				"active": true,
				"images": []
			}
		}, {
			"id": 10,
			"total_point": 1,
			"total_amount": 1,
			"quantity": 1,
			"serial_number": "M",
			"created_at": "2018-08-21 16:34:00",
			"updated_at": "2018-08-21 16:34:00",
			"product": {
				"id": 2,
				"code": "0002",
				"name": "Voucher 1",
				"period": {
					"start": "2018-08-16",
					"end": "2018-09-30"
				},
				"price": 1,
				"point": 1,
				"stock": 7,
				"type": "voucher",
				"limit": null,
				"note": null,
				"active": true,
				"images": []
			}
		}]
	}
}

Last updated