Tony

Setting Package Expiration Date With REST API

0 votes
I need to set the package expiration date when I submit a package via the REST API with status=SENT. I have found the documentation on how to do this with the SDK but not with REST.

Reply to: Setting Package Expiration Date With REST API

0 votes
Hi Tony, I'm not pretty sure you can set your expiration in SENT status, but definitely you can change your package status to DRAFT first and then update due with REST api:
PUT /api/packages/{packageID}
Authorization: Basic apikey
Accept: application/json
Content-type: application/json

Request Payload:
{
	"due": "2018-08-30"
}
Hope this could help you! Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Reply to: Setting Package Expiration Date With REST API

0 votes
Thank you, Duo. I am also able to specify the "due" date in my initial POST request which is what I had hoped. No need to do a separate PUT

Reply to: Setting Package Expiration Date With REST API

0 votes
Hi Tony, Glad you figured out your issue. Just let us know if you have any other problems. Duo

Duo Liang OneSpan Evangelism and Partner Integrations Developer


Hello! Looks like you're enjoying the discussion, but haven't signed up for an account.

When you create an account, we remember exactly what you've read, so you always come right back where you left off