Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
946 B
1
Indexable
Never
CREATE Prize response
{
	"message": "New prize added successfully!",
	"prize": {
		"id": 60,
		"name": "Nima is Testing Ba Careful 5",
		"photo": "https://ghoflycdn.com/ghofly-prizes/a02a2cfe-9828-4071-acad-9ec113c23d7b-file.png",
		"pointsNeeded": 10000,
		"gemsNeeded": "0.000",
		"type": "cash",
		"count": "",
		"mixedPaymentPrice": {
			"gemsNeeded": "6.000",
			"pointsNeeded": 7000
		},
		"createdAt": "2023-07-25T16:07:55.486Z"
	}
}

UPDATE PRIZE response
{
	"message": "Prize updated successfully!",
	"gemsNeeded": "4.570",
	"updatedPrize": {
		"name": "Nima is Testing Ba Careful 4",
		"photo": "https://ghoflycdn.com/ghofly-prizes/a02a2cfe-9828-4071-acad-9ec113c23d7b-file.png",
		"type": "cash",
		"count": "",
		"gemsNeeded": 4.57,
		"pointsNeeded": 10000,
		"mixedPaymentPrice": {
			"gemsNeeded": "4.500",
			"pointsNeeded": 30000
		},
		"createdAt": "2023-07-25T14:55:36.167Z",
		"id": 59
	}
}