PlaceOrder API

Use the PlaceOrder API to place the order for a voucher via the Rewards API

Base URL :

curl -X POST {OAUTH_URL}/v1/oauth/api 
-H 'Authorization: Bearer eyJ0b2tlbkNvbnRlbnQiOnsiaXNzdWVkRm9yIjoiRnJlc2h3b3JrcyIsInNjb3BlIjoiIiwiaXNzdWVkQXQiOjE1NTk4MDQ1Nzg1ODIsImV4cGlyZXNBdCI6IjIwMTktMDYtMjFUMDc6MDI6NTguNTgyWiIsInRva2VuX3R5cGUiOiJVU0VSIn0sImFfdCI6ImV5SmxibU1pT2lKQk1USTRRMEpsETFVoVE1qVTJJaXdpWVd4bklqb2lSVU5FU0MxRlV5SXNJbXRwWkNJNkltVnVZeUlzSW1Wd2F5STZleUpyZEhraU9pSkZReUlzSW1OeWRpSTZJbEF0TWpVMklpd2llQ0k2SWpoMmJVTkVRMUZQZW1wQlNHWndabXQ0TVhjNVluZHphM1JhZWtRek0ySXRZamx0VVhSclEyRnhNV3NpTENKNUlqb2lZMGR0V2kxdWIySjBWbUptTVdGdVNraDBUMmxoWW5VMFZHUlVhRzVVYmpCYWRuWnJabGMwYzBWb2N5SjlmUS4uU1h3TlNUSWhFUXNlN0htaXpPUmFIQS5NRzBVUy1lek1IOEFsbWFLc2ZTY3Nwa2FlYzBIcW9FcUV1YXRoNHRSTTRpeVg2dFByX1ZjTnlsdnk5YjlGLTZHR01DbjY1TjYwYnpIUUJtRVZvZGRYVWlvQS1kTkpuaE9KdThHczRfeW9pM042VGFOdWhjRENCUGtwWk1CeTlDRjJBaEh4UGotQkd0SzdEamhNbjBBQXpTM1VhTE11eUdrTmNwSGxQSUxNcFlVM' 
--header 'Content-Type: application/json'
  -d '{
	"query": "plumProAPI.mutation.placeOrder",
	"tag": "plumProAPI",
	"variables": {
		"data":{
			"productId":15365,
	        	"quantity": 1,
	        	"denomination": 20, 
	        	"email":"",
	        	"contact":"+1-5234567890",
	        	"tag":"",
	        	"poNumber":"PO12662",
			"notifyReceiverEmail":0,
			"notifyAdminEmail":0
		}
	}
}

Parameters

Body Parameters

Property

Type

Description

productId*

Integer

ProductId of the product to be ordered

quantity*

Integer

Quantity of the product to be ordered

denomination

Integer

Denomination of the product to be ordered

email

String

Email on which the product should be delivered

contact

String

Mobile number the product should be delivered to in the format specified, Optional for products except Paytm

tag

String

A comment or reference data parameter

poNumber

String

Client-side orderId or reference id

notifyAdminEmail*

Integer

Send 1 if order reference need to be emailed to Admin user

notifyReceiverEmail*

Integer

Send 1 if the product should be delivered via email to the receiver

"*" means the parameter is mandatory

Note: We do not currently support Notification by SMS functionality

Last updated