Developers
V1PlatformRewardsPublish submitted

Publish several of one merchant's submitted vouchers; one audited decision per voucher

Each listed voucher must be submitted, belong to the given merchant and match its expected version. Each is published exactly as in a single review (own savepoint, own audit rows); one that cannot be published is reported with its error and leaves the others untouched. Unless notifyOwner is false, one email per owner lists everything that went live.

POST
/v1/platform/rewards/publish-submitted
AuthorizationBearer <token>

In: header

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://example.com/v1/platform/rewards/publish-submitted" \  -H "Content-Type: application/json" \  -d '{    "tenantId": "f97df110-f4de-492e-8849-4a6af68026b0",    "items": [      {        "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",        "expectedVersion": 1      }    ]  }'
{  "published": 0,  "failed": 0,  "results": [    {      "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",      "outcome": "published",      "error": "string",      "status": "string",      "version": -9007199254740991    }  ]}