POST

Regenerate Receipt Document


Developer Preview

This API is subject to change. Bug fixes and new features will be released based on developer feedback throughout the preview period.

Retries generating a receipt document that has a FAILED status.

Note that you can access a receipt document with an AVAILABLE status with the URL provided in document.downloadUrl without regenerating.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Receipts
Manage Stores
Learn more about app permissions.
Endpoint
POST
https://www.wixapis.com/receipts/v1/receipts/{receiptId}/regenerate-receipt-document

Path Params
receiptIdstringRequired

Receipt ID.

Response Object
Returns an empty object.
Regenerate Receipt Document

Retries generating document if its status is FAILED

Request
cURL
curl -X POST \ 'https://www.wixapis.com/receipts/v1/receipts/b2cfeb72-cc80-4158-9447-182c0c30daff/regenerate-receipt-document' \ -H 'Authorization: <AUTH>' \ -H 'Content-Type: application/json' \ -d '{ "receiptId": "b2cfeb72-cc80-4158-9447-182c0c30daff" }'
Response
JSON
{}
Errors
428Failed Precondition

There is 1 error with this status code.

This method may also return standard errors. Learn more about standard Wix errors.

Did this help?