Skip to main content

Get Upload Receipt Url

Retrieve pre-signed urls to upload receipt softcopy to cloud storage.

note
  • The url will only be valid for 60 minutes.
  • The receipts to upload should be in pdf format.

Request

POST:/{integrationId}/receipt/getuploadreceipturl

Request Body

Get Upload Receipt Url Input Model
FieldDescriptionType
guidReceipt globally unique identifier.guidrequired
Example of Request Body
[
"3fa85f64-5717-4562-b3fc-2c963f66afa6",
"760894ca-95ca-4be5-8f10-a5f35a342608"
]

Example of Request URL:

Parameters:
integrationId = d9cdb75e-da7c-43dc-8dee-7d786b464c59

URL:
POST: https://onerewards-integration-api.autocountcloud.com/d9cdb75e-da7c-43dc-8dee-7d786b464c59/receipt/getuploadreceipturl

Response

Success Response

Status Code: 200

Response Body

Get Upload Receipt Url Result Model
FieldDescriptionType
urlReceipt url. Used to upload receipt.string
requestHeadersHeaders sent with the request to the URL.dictionary<string, string>nullable
contentHeadersHeaders associated with the receipt content.dictionary<string, string>nullable
Example of Success Response Body
[
{
"url": "https://intstaging-receipt-customer-data-public.obs.ap-southeast-3.myhuaweicloud.com/EX/1/3fa85f64-5717-4562-b3fc-2c963f66afa6?AccessKeyId=VZGRSX9NONCKQCIPZSYP&Expires=1698747819&Signature=O%2F3yqAGcM6y6er3%2FeIt3dd7qO7Y%3D",
"requestHeaders": {},
"contentHeaders": {
"Content-Type": "application/pdf"
}
},
{
"url": "https://intstaging-receipt-customer-data-public.obs.ap-southeast-3.myhuaweicloud.com/EX/1/760894ca-95ca-4be5-8f10-a5f35a342608?AccessKeyId=VZGRSX9NONCKQCIPZSYP&Expires=1698747819&Signature=TVC1ygMAqWA35H31dZny3cABIYg%3D",
"requestHeaders": {},
"contentHeaders": {
"Content-Type": "application/pdf"
}
}
]

Error Response