PUT /purchase-notifications/{id}.json
PUT
/purchase-notifications/{id}.json
Path parameters
-
id integer(int64) Required
Numeric ID of the instance
Minimum value is
1
.
Body Required
-
createdAt string(date-time)
Created at
-
destination string | null
Destination
-
format string | null
Format
Values are
json
,xml
,csv
, oremail
. -
id integer(int32)
Id
-
purchaseId integer(int32) Required
Purchase
-
raw string | null
Raw
-
status string | null Required
Status
Values are
pending
,success
,error
, oropened
. Default value issuccess
. -
statusMessage string | null
Status message
-
updatedAt string(date-time)
Updated at
-
userId integer(int32) | null
User
PUT /purchase-notifications/{id}.json
curl \
-X PUT http://api.example.com/v1/purchase-notifications/{id}.json \
-H "Content-Type: application/json" \
-d '{"createdAt":"2023-05-04T09:42:00+00:00","destination":"string","events":{},"format":"json","id":42,"payload":{},"purchaseId":42,"raw":"string","response":{},"status":"success","statusMessage":"string","updatedAt":"2023-05-04T09:42:00+00:00","userId":42}'
Request example
{
"createdAt": "2023-05-04T09:42:00+00:00",
"destination": "string",
"events": {},
"format": "json",
"id": 42,
"payload": {},
"purchaseId": 42,
"raw": "string",
"response": {},
"status": "success",
"statusMessage": "string",
"updatedAt": "2023-05-04T09:42:00+00:00",
"userId": 42
}