POST /purchase-notifications.json
Body Required
-
destination string | null
Destination
-
format string | null
Format
Values are
json
,xml
,csv
, oremail
. -
Purchase
-
raw string | null
Raw
-
Status
Values are
pending
,success
,error
, oropened
. Default value issuccess
. -
statusMessage string | null
Status message
statusProblem object | null | array | boolean | integer | number | string
-
userId integer(int32) | null
User
POST /purchase-notifications.json
curl \
-X POST http://api.example.com/v1/purchase-notifications.json \
-H "Authorization: Bearer $ACCESS_TOKEN" \
-H "Content-Type: application/json" \
-d '{"destination":"string","events":{},"format":"json","payload":{},"purchaseId":42,"raw":"string","response":{},"status":"success","statusMessage":"string","statusProblem":{},"userId":42}'
Request example
{
"destination": "string",
"events": {},
"format": "json",
"payload": {},
"purchaseId": 42,
"raw": "string",
"response": {},
"status": "success",
"statusMessage": "string",
"statusProblem": {},
"userId": 42
}
Response examples (200)
{
"createdAt": "2024-05-04T09:42:00+00:00",
"destination": "string",
"events": {},
"format": "json",
"id": 42,
"payload": {},
"purchaseId": 42,
"raw": "string",
"response": {},
"status": "success",
"statusMessage": "string",
"statusProblem": {},
"updatedAt": "2024-05-04T09:42:00+00:00",
"userId": 42
}